From de1ecc0a8e544a401e9ddb838b6aa9799c810299 Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Fri, 16 Apr 2021 11:42:23 +0000 Subject: [PATCH] fpspreadsheet: Put conditional define REGISTER_ALL_FILE_FORMATS around file format registration in fpsvisualreg. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7999 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- .../source/design/fpsvisualreg.pas | 8 ++++++-- .../source/visual/fpspreadsheetctrls.pas | 20 +++++++++---------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/components/fpspreadsheet/source/design/fpsvisualreg.pas b/components/fpspreadsheet/source/design/fpsvisualreg.pas index 2eed1639e..b28b1b53d 100644 --- a/components/fpspreadsheet/source/design/fpsvisualreg.pas +++ b/components/fpspreadsheet/source/design/fpsvisualreg.pas @@ -1,13 +1,14 @@ unit fpsvisualreg; -{$mode objfpc}{$H+} +{$MODE objfpc}{$H+} +{$DEFINE REGISTER_ALL_FILE_FORMATS} {$R ../../resource/fpsvisualreg.res} interface uses - Classes, SysUtils, {%H-}fpsallformats; + Classes, SysUtils; procedure Register; @@ -15,6 +16,9 @@ implementation uses LResources, ActnList, PropEdits, + {$IFDEF REGISTER_ALL_FILE_FORMATS} + fpsallformats, + {$ENDIF} fpspreadsheetctrls, fpspreadsheetgrid, fpspreadsheetchart, fpsactions; {@@ ---------------------------------------------------------------------------- diff --git a/components/fpspreadsheet/source/visual/fpspreadsheetctrls.pas b/components/fpspreadsheet/source/visual/fpspreadsheetctrls.pas index 8d08c0cb2..56365d76a 100644 --- a/components/fpspreadsheet/source/visual/fpspreadsheetctrls.pas +++ b/components/fpspreadsheet/source/visual/fpspreadsheetctrls.pas @@ -1,5 +1,5 @@ {@@ ---------------------------------------------------------------------------- - Unit fpspreadsheetctrls implements some visual controls which help + Unit fpspreadsheetctrls implements some **visual controls** which help to create a spreadsheet application without writing too much code. AUTHORS: Werner Pamler @@ -8,21 +8,21 @@ distribution, for details about the license. EXAMPLE - * Add a WorkbookSource component to the form. - * Add a WorksheetTabControl - * Add a WorksheetGrid (from unit fpspreadsheetgrid) - * Link their WorkbookSource properties to the added - WorkbookSource component - * Set the property FileName of the WorkbookSource to a + * Add a _WorkbookSource_ component to the form. + * Add a _WorksheetTabControl_ + * Add a _WorksheetGrid_ (from unit fpspreadsheetgrid) + * Link their _WorkbookSource_ properties to the added + _WorkbookSource_ component + * Set the property _FileName_ of the _WorkbookSource_ to a spreadsheet file. - As a result, the WorksheetTabControl displays tabs for each worksheet - in the file, and the WorksheetGrid displays the worksheet according + As a result, the _WorksheetTabControl_ displays tabs for each worksheet + in the file, and the _WorksheetGrid_ displays the worksheet according to the selected tab. -------------------------------------------------------------------------------} unit fpspreadsheetctrls; -{$mode objfpc}{$H+} +{$MODE objfpc}{$H+} interface