Component list which can display component properties in grid. Class implements functions of saving/reading table properties, but does not bind grid positions with list items. If number of columns returned by GetColCount is changed then corresponding changes in SetCaption, SetColOptions, SetColFunc, SetRowContents, GetRowContents should be done.
|
constructor Create; |
|
destructor Destroy; override; |
|
function AutoHeights: boolean; |
|
function AutoWidths: boolean; |
|
function GetCellColor( const ACol, ARow: longint; var Color: TColor): boolean; virtual; |
|
function GetCellEditMask(const ACol, ARow: longint): string; virtual; |
|
function GetCellEnabledCharSet(const ACol, ARow: longint): TCharSet; virtual; abstract; |
|
function GetCol: longint; |
|
function GetColCount: longint; virtual; |
|
function GetColNumFixed: boolean; virtual; |
|
function GetColWidth(const Col: longint): longint; |
|
function GetColWidthByDefault(const Index: longint): longint; virtual; |
|
function GetDataFromGrid(Grid: TStringGrid): boolean; virtual; abstract; |
|
function GetFixedCols: longint; virtual; |
|
function GetFixedRows: longint; virtual; |
|
function GetInfoCols: longint; virtual; abstract; |
|
function GetInfoRows: longint; virtual; abstract; |
|
function GetLeftCol: longint; |
|
function GetRow: longint; |
|
function GetRowCount: longint; virtual; |
|
function GetRowHeight(const Row: longint): longint; |
|
function GetRowHeightByDefault(const Index: longint): longint; virtual; |
|
function GetRowNumFixed: boolean; virtual; |
|
function GetSelection: TGridRect; |
|
function GetTopRow: longint; |
|
function IsCellDisabled( const ACol, ARow: longint): boolean; virtual; |
|
function IsDataSourceEmpty: boolean; virtual; abstract; |
|
function IsDataValid(const ACol, ARow: longint; const AString: string): boolean; virtual; abstract; |
|
function MayIDoAddColumn: boolean; virtual; |
|
function MayIDoAddRow: boolean; virtual; |
|
function MayIDoClearAllCells: boolean; virtual; |
|
function MayIDoClearSelectedArea: boolean; virtual; |
|
function MayIDoDeleteAllData: boolean; virtual; |
|
function MayIDoDeleteColumns(StartCol, ColsCount: longint): boolean; virtual; |
|
function MayIDoDeleteRows(StartRow, RowsCount: longint): boolean; virtual; |
|
function MayIDoInsertColumns(StartCol, ColsCount: longint): boolean; virtual; |
|
function MayIDoInsertRows(StartRow, RowsCount: longint): boolean; virtual; |
|
function ValueToString(const ACol, ARow: longint): string; virtual; abstract; |
|
procedure AddColWidthItem; |
|
procedure AddRowHeightItem; |
|
procedure AllDataDeleted; virtual; |
|
procedure BeforeStringToValue(const ACol, ARow: longint; const AString: string); virtual; abstract; |
|
procedure ColumnAdded; virtual; |
|
procedure ColumnsDeleted(const StartCol, ColsCount: longint); virtual; |
|
procedure ColumnsInserted(const StartCol, ColsCount: longint); virtual; |
|
procedure DeleteAllColWidthItems; |
|
procedure DeleteAllRowHeightItems; |
|
procedure DeleteColWidthItem(const Index: longint); |
|
procedure DeleteRowHeightItem(const Index: longint); |
|
procedure GetColWidths(Grid: TStringGrid); |
|
procedure GetRowHeights(Grid: TStringGrid); |
|
procedure GridAssign(Grid: TStringGrid); virtual; |
|
procedure GridRelease(Grid: TStringGrid); virtual; |
|
procedure InitColWidths; |
|
procedure InitRowHeights; |
|
procedure InsertColWidthItem(const Index: longint); |
|
procedure InsertRowHeightItem(const Index: longint); |
|
procedure RowAdded; virtual; |
|
procedure RowsDeleted(const StartRow, RowsCount: longint); virtual; |
|
procedure RowsInserted(const StartRow, RowsCount: longint); virtual; |
|
procedure SaveCol(const Col: longint); |
|
procedure SaveColWidth(const Col, Width: longint); |
|
procedure SaveLeftCol(const LeftCol: longint); |
|
procedure SaveRow(const Row: longint); |
|
procedure SaveRowHeight(const Row, Height: longint); |
|
procedure SaveSelection(const Selection: TGridRect); |
|
procedure SaveTopRow(const TopRow: longint); |
|
procedure SetCaption(Grid: TStringGrid); virtual; abstract; |
|
procedure SetColFunc(Grid: TStringGrid); virtual; |
|
procedure SetColOptions(Grid: TStringGrid); virtual; abstract; |
|
procedure SetColWidths(Grid: TStringGrid); |
|
procedure SetDataToGrid(Grid: TStringGrid); virtual; abstract; |
|
procedure SetRowHeights(Grid: TStringGrid); |
|
procedure SetValueByDefault(const ACol, ARow: longint); virtual; abstract; |
|
procedure StringToValue(const ACol, ARow: longint; const AString: string); virtual; abstract; |
|
procedure CheckColIndex(const Index: longint); |
|
procedure CheckRowIndex(const Index: longint); |