You've already forked lazarus-ccr
66 lines
1.7 KiB
ObjectPascal
66 lines
1.7 KiB
ObjectPascal
![]() |
unit fpsvisualreg;
|
||
|
|
||
|
{$mode objfpc}{$H+}
|
||
|
|
||
|
{$R ../../resource\fpsvisualreg.res}
|
||
|
|
||
|
interface
|
||
|
|
||
|
uses
|
||
|
Classes, SysUtils, fpsallformats;
|
||
|
|
||
|
procedure Register;
|
||
|
|
||
|
implementation
|
||
|
|
||
|
uses
|
||
|
LResources, ActnList,
|
||
|
fpspreadsheetctrls, fpspreadsheetgrid, fpspreadsheetchart, fpsactions;
|
||
|
|
||
|
{@@ ----------------------------------------------------------------------------
|
||
|
Registers the visual spreadsheet components in the Lazarus component palette,
|
||
|
page "FPSpreadsheet".
|
||
|
-------------------------------------------------------------------------------}
|
||
|
procedure Register;
|
||
|
begin
|
||
|
RegisterComponents('FPSpreadsheet', [
|
||
|
TsWorkbookSource,
|
||
|
TsWorkbookTabControl,
|
||
|
TsWorksheetGrid,
|
||
|
TsCellEdit, TsCellIndicator, TsCellCombobox,
|
||
|
TsSpreadsheetInspector
|
||
|
]);
|
||
|
|
||
|
RegisterComponents('Chart', [
|
||
|
TsWorksheetChartSource,
|
||
|
TsWorkbookChartSource
|
||
|
]);
|
||
|
|
||
|
RegisterActions('FPSpreadsheet', [
|
||
|
// Worksheet-releated actions
|
||
|
TsWorksheetAddAction, TsWorksheetDeleteAction, TsWorksheetRenameAction,
|
||
|
TsWorksheetZoomAction,
|
||
|
// Cell or cell range formatting actions
|
||
|
TsCopyAction,
|
||
|
TsFontStyleAction, TsFontDialogAction, TsBackgroundColorDialogAction,
|
||
|
TsHorAlignmentAction, TsVertAlignmentAction,
|
||
|
TsTextRotationAction, TsWordWrapAction,
|
||
|
TsNumberFormatAction, TsDecimalsAction,
|
||
|
TsCellProtectionAction,
|
||
|
TsCellBorderAction, TsNoCellBordersAction,
|
||
|
TsCellCommentAction, TsCellHyperlinkAction,
|
||
|
TsMergeAction
|
||
|
], nil);
|
||
|
|
||
|
end;
|
||
|
|
||
|
initialization
|
||
|
RegisterPropertyToSkip(TsSpreadsheetInspector, 'RowHeights',
|
||
|
'For compatibility with older Laz versions.', '');
|
||
|
|
||
|
RegisterPropertyToSkip(TsSpreadsheetInspector, 'ColWidths',
|
||
|
'For compatibility with older Laz versions.', '');
|
||
|
|
||
|
end.
|
||
|
|