diff --git a/src/BlazorDatasheet.Core/Events/FormatChangedEventArgs.cs b/src/BlazorDatasheet.Core/Events/FormatChangedEventArgs.cs deleted file mode 100644 index bd426889..00000000 --- a/src/BlazorDatasheet.Core/Events/FormatChangedEventArgs.cs +++ /dev/null @@ -1,41 +0,0 @@ -using BlazorDatasheet.Core.Formats; -using BlazorDatasheet.DataStructures.Geometry; - -namespace BlazorDatasheet.Core.Events; - -public class FormatChangedEventArgs -{ - /// - /// All the individual CELL that were made to the formats of ranges in this event. - /// - public IEnumerable CellsChanged { get; } - - public IEnumerable ColumnsChanged { get; } - public IEnumerable RowsChanged { get; } - - public FormatChangedEventArgs( - IEnumerable changedFormats, - IEnumerable columnsChanged, - IEnumerable rowsChanged) - { - CellsChanged = changedFormats; - ColumnsChanged = columnsChanged; - RowsChanged = rowsChanged; - } -} - -public class CellChangedFormat -{ - public CellChangedFormat(int row, int col, CellFormat? oldFormat, CellFormat? newFormat) - { - Row = row; - Col = col; - OldFormat = oldFormat; - NewFormat = newFormat; - } - - public int Row { get; } - public int Col { get; } - public CellFormat? OldFormat { get; } - public CellFormat? NewFormat { get; } -} \ No newline at end of file diff --git a/src/BlazorDatasheet.Core/Events/FormulaChangedEventArgs.cs b/src/BlazorDatasheet.Core/Events/FormulaChangedEventArgs.cs deleted file mode 100644 index 1c43cd9f..00000000 --- a/src/BlazorDatasheet.Core/Events/FormulaChangedEventArgs.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace BlazorDatasheet.Core.Events; - -public class FormulaChangedEventArgs -{ - public int Row { get; } - public int Col { get; } - public string? OldFormula { get; } - public string? NewFormula { get; } - - public FormulaChangedEventArgs(int row, int col, string? oldFormula, string? newFormula) - { - Row = row; - Col = col; - OldFormula = oldFormula; - NewFormula = newFormula; - } -} \ No newline at end of file diff --git a/src/BlazorDatasheet.Core/Events/PageMovementEvent.cs b/src/BlazorDatasheet.Core/Events/PageMovementEvent.cs deleted file mode 100644 index 26bd3b47..00000000 --- a/src/BlazorDatasheet.Core/Events/PageMovementEvent.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace BlazorDatasheet.Core.Events; - -public class PageMovementEvent -{ - public double PageX { get; set; } - public double PageY { get; set; } -} \ No newline at end of file diff --git a/src/BlazorDatasheet.Core/Events/SheetInvalidateEventArgs.cs b/src/BlazorDatasheet.Core/Events/SheetInvalidateEventArgs.cs deleted file mode 100644 index 85861b55..00000000 --- a/src/BlazorDatasheet.Core/Events/SheetInvalidateEventArgs.cs +++ /dev/null @@ -1,13 +0,0 @@ -using BlazorDatasheet.DataStructures.Geometry; - -namespace BlazorDatasheet.Core.Events; - -public class SheetInvalidateEventArgs -{ - public IReadOnlySet DirtyCells { get; } - - internal SheetInvalidateEventArgs(IReadOnlySet dirtyCells) - { - DirtyCells = dirtyCells; - } -} \ No newline at end of file diff --git a/src/BlazorDatasheet.Core/FormulaEngine/Highlight.cs b/src/BlazorDatasheet.Core/FormulaEngine/Highlight.cs deleted file mode 100644 index ccfab97a..00000000 --- a/src/BlazorDatasheet.Core/FormulaEngine/Highlight.cs +++ /dev/null @@ -1,15 +0,0 @@ -namespace BlazorDatasheet.Core.FormulaEngine; - -public class Highlight -{ - public int StartPosition { get; } - public int EndPosition { get; } - public System.Drawing.Color Color { get; } - - public Highlight(int startPosition, int endPosition, System.Drawing.Color color) - { - StartPosition = startPosition; - EndPosition = endPosition; - Color = color; - } -} \ No newline at end of file diff --git a/src/BlazorDatasheet.Core/FormulaEngine/SyntaxHighlightOptions.cs b/src/BlazorDatasheet.Core/FormulaEngine/SyntaxHighlightOptions.cs deleted file mode 100644 index 0edc230c..00000000 --- a/src/BlazorDatasheet.Core/FormulaEngine/SyntaxHighlightOptions.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace BlazorDatasheet.Core.FormulaEngine; - -public class SyntaxHighlightOptions -{ - public List RangeColors { get; set; } = new() - { - System.Drawing.Color.DodgerBlue, - System.Drawing.Color.Red, - System.Drawing.Color.MediumPurple, - System.Drawing.Color.ForestGreen, - }; -} \ No newline at end of file diff --git a/src/BlazorDatasheet.Core/FormulaEngine/SyntaxHighlightResult.cs b/src/BlazorDatasheet.Core/FormulaEngine/SyntaxHighlightResult.cs deleted file mode 100644 index ec35f5f2..00000000 --- a/src/BlazorDatasheet.Core/FormulaEngine/SyntaxHighlightResult.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace BlazorDatasheet.Core.FormulaEngine; - -public class SyntaxHighlightResult -{ - public ICollection Highlights { get; } - - public SyntaxHighlightResult(ICollection highlights) - { - Highlights = highlights; - } -} \ No newline at end of file diff --git a/src/BlazorDatasheet.Core/FormulaEngine/SyntaxHighlighter.cs b/src/BlazorDatasheet.Core/FormulaEngine/SyntaxHighlighter.cs deleted file mode 100644 index 024e4e54..00000000 --- a/src/BlazorDatasheet.Core/FormulaEngine/SyntaxHighlighter.cs +++ /dev/null @@ -1,7 +0,0 @@ -using BlazorDatasheet.Formula.Core; - -namespace BlazorDatasheet.Core.FormulaEngine; - -public class SyntaxHighlighter -{ -} \ No newline at end of file diff --git a/src/BlazorDatasheet.Core/Interfaces/IClearable.cs b/src/BlazorDatasheet.Core/Interfaces/IClearable.cs deleted file mode 100644 index 892a9f52..00000000 --- a/src/BlazorDatasheet.Core/Interfaces/IClearable.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace BlazorDatasheet.Core.Interfaces; - -/// -/// If a cell's Data implements this, this function will be called when the cell is cleared -/// in order to perform custom logic for clearing the data. -/// -public interface IClearable -{ - public void Clear(string? key); -} \ No newline at end of file diff --git a/src/BlazorDatasheet.Core/Interfaces/IEditorManager.cs b/src/BlazorDatasheet.Core/Interfaces/IEditorManager.cs deleted file mode 100644 index befa57b3..00000000 --- a/src/BlazorDatasheet.Core/Interfaces/IEditorManager.cs +++ /dev/null @@ -1,31 +0,0 @@ -namespace BlazorDatasheet.Core.Interfaces; - -public interface IEditorManager -{ - /// - /// Gets the actively edited value, that is saved even if an editor is disposed - /// - /// - /// - T GetEditedValue(); - - /// - /// Sets the actively edited value, that is saved even if an editor is disposed - /// - /// - /// - void SetEditedValue(T value); - - /// - /// Accepts the current edit & attempts to set the active cell's value based on the current edited value. - /// Applies data validation when setting the value. - /// - /// Whether the accepted edit was successful - bool AcceptEdit(); - - /// - /// Cancels the current edit (without setting the active cell's value). - /// - /// Whether the edit has been cancelled - bool CancelEdit(); -} \ No newline at end of file diff --git a/src/BlazorDatasheet.Core/Interfaces/IWriteableCell.cs b/src/BlazorDatasheet.Core/Interfaces/IWriteableCell.cs deleted file mode 100644 index 082e0d4f..00000000 --- a/src/BlazorDatasheet.Core/Interfaces/IWriteableCell.cs +++ /dev/null @@ -1,12 +0,0 @@ -using BlazorDatasheet.Core.Formats; - -namespace BlazorDatasheet.Core.Interfaces; - -public interface IWriteableCell -{ - public CellFormat Format { set; } - public string Type { set; } - public string? Formula { set; } - public object? Value { set; } - void SetMetaData(string name, object? value); -} \ No newline at end of file