fpspreadsheet: Extend fpspreadsheet actions to supply default captions and hints.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6493 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2018-06-13 21:51:40 +00:00
parent f62d2b35d7
commit 29f1533516
3 changed files with 624 additions and 24 deletions

View File

@@ -231,6 +231,159 @@ const
rsViolet = 'violet' deprecated;
rsWheat = 'wheat' deprecated;
{ Hints and caption for fpspreadsheet actions }
rsAddCaption = 'Add...';
rsDeleteCaption = 'Delete';
rsRenameCaption = 'Rename...';
rsZoomCaption = 'Zoom';
rsAddWorksheetHint = 'Add worksheet';
rsDeleteWorksheetHint = 'Delete worksheet';
rsRenameWorksheetHint = 'Rename worksheet';
rsZoomWorksheetHint = 'Zoom worksheet';
rsClearFormat = 'Clear format';
rsFontStyle_Bold = 'Bold';
rsFontStyle_Italic = 'Italic';
rsFontStyle_Underlined = 'Underlined';
rsFontStyle_StrikeThrough = 'Strike-through';
rsHorAlignment_Default = 'Default horizontal alignment';
rsHorAlignment_Left = 'Left-justified text';
rsHorAlignment_Center = 'Horizontally centered text';
rsHorAlignment_Right = 'Right-justified text';
rsVertAlignment_Default = 'Default vertical alignment';
rsVertAlignment_Top = 'Top-aligned text';
rsVertAlignment_Center = 'Vertically centered text';
rsVertAlignment_Bottom = 'Bottom-aligned text';
rsTextRotation_Hor = 'Horizontal';
rsTextRotation_Vert_CW = 'Vertical (90° clockwise)';
rsTextRotation_Vert_CCW = 'Vertical (90° counter-clockwise)';
rsTextRotation_Vert_Stacked = 'Vertically stacked';
rsWordwrap = 'Word-wrap';
rsNumberFormatCaption_General = 'General';
rsNumberFormatCaption_Fixed = 'Fixed';
rsNumberFormatCaption_FixedTh = 'Fixed w/thousand separator';
rsNumberFormatCaption_Exp = 'Exponential';
rsNumberFormatCaption_Percentage = 'Percent';
rsNumberFormatCaption_Fraction = 'Fraction';
rsNumberFormatCaption_Currency = 'Currency';
rsNumberFormatCaption_CurrencyRed = 'Currency (red)';
rsNumberFormatCaption_ShortDateTime = 'Date and time';
rsNumberFormatCaption_ShortDate = 'Short date';
rsNumberFormatCaption_LongDate = 'Long date';
rsNumberFormatCaption_ShortTime = 'Short time';
rsNumberFormatCaption_LongTime = 'Long time';
rsNumberFormatCaption_ShortTimeAM = 'Short time AM/PM';
rsNumberFormatCaption_LongTimeAM = 'Long time AM/PM';
rsNumberFormatCaption_DayMonth = 'Day and month';
rsNumberFormatCaption_MonthYear = 'Month and year';
rsNumberFormatCaption_TimeInterval = 'Time interval';
rsNumberFormatCaption_Text = 'Text';
rsNumberFormatCaption_Custom = 'Custom...';
rsNumberFormatHint_General = 'General number format';
rsNumberFormatHint_Fixed = 'Fixed number of decimal places';
rsNumberFormatHint_FixedTh = 'Fixed number of decimal places, thousand separator';
rsNumberFormatHint_Exp = 'Exponential (scientific) format';
rsNumberFormatHint_Percentage = 'Percent';
rsNumberFormatHint_Fraction = 'Fraction';
rsNumberFormatHint_Currency = 'Currency';
rsNumberFormatHint_CurrencyRed = 'Currency (negative values in red)';
rsNumberFormatHint_ShortDateTime = 'Short date and time';
rsNumberFormatHint_ShortDate = 'Short date';
rsNumberFormatHint_LongDate = 'Long date';
rsNumberFormatHint_ShortTime = 'Short time';
rsNumberFormatHint_LongTime = 'Long time';
rsNumberFormatHint_ShortTimeAM = 'Short time with AM/PM';
rsNumberFormatHint_LongTimeAM = 'Long time with AM/PM';
rsNumberFormatHint_DayMonth = 'Day and month';
rsNumberFormatHint_MonthYear = 'Month and year';
rsNumberFormatHint_TimeInterval = 'Time interval';
rsNumberFormatHint_Text = 'Number as text';
rsNumberFormatHint_Custom = 'Custom number format';
rsMoreDecimals = 'More decimals';
rsLessDecimals = 'Less decimals';
rsCommentCaption_New = 'New comment...';
rsCommentCaption_Edit = 'Edit comment...';
rsCommentCaption_Delete = 'Delete comment';
rsCommentHint_New = 'New comment';
rsCommentHint_Edit = 'Edit comment';
rsCommentHint_Delete = 'Delete comment';
rsHyperlinkCaption_New = 'New hyperlink...';
rsHyperlinkCaption_Edit = 'Edit hyperlink...';
rsHyperlinkCaption_Delete = 'Delete hyperlink';
rsHyperlinkHint_New = 'New hyperlink';
rsHyperlinkHint_Edit = 'Edit hyperlink';
rsHyperlinkHint_Delete = 'Delete hyperlink';
rsMergeUnmerge = 'Merge/unmerge';
rsCellFontCaption = 'Cell font...';
rsCellFontHint = 'Cell font';
rsBackgroundColorCaption = 'Background color...';
rsBackgroundColorHint = 'Background color';
rsCellBorder = 'Cell border';
rsNoCellBorders = 'No borders';
rsBorderTop_Menu = 'Top';
rsBorderTop_Hint = 'Top border';
rsBorderTopFmt_Menu = 'Top (%s)';
rsBorderTopFmt_Hint = 'Top border (%s)';
rsBorderBottom_Menu = 'Bottom';
rsBorderBottom_Hint = 'Bottom border';
rsBorderBottomFmt_Menu = 'Bottom (%s)';
rsBorderBottomFmt_Hint = 'Bottom border (%s)';
rsBorderLeft_Menu = 'Left';
rsBorderLeft_Hint = 'Left border';
rsBorderLeftFmt_Menu = 'Left (%s)';
rsBorderLeftFmt_Hint = 'Left border (%s)';
rsBorderRight_Menu = 'Right';
rsBorderRight_Hint = 'Right border';
rsBorderRightFmt_Menu = 'Right (%s)';
rsBorderRightFmt_Hint = 'Right border (%s)';
rsBorderTopBottomFmt_Menu = 'Top && %s bottom';
rsBorderTopBottomFmt_Hint = 'Top && %s bottom border lines';
rsBorderInnerHor_Menu = 'Inner horizontal';
rsBorderInnerHor_Hint = 'Inner horizontal border';
rsBorderInnerHorFmt_Menu = 'Inner horizontal (%s)';
rsBorderinnerHorFmt_Hint = 'Inner horizontal lines (%s)';
rsBorderInnerVert_Menu = 'Inner vertical';
rsBorderInnerVert_Hint = 'Inner vertical border';
rsBorderInnerVertFmt_Menu = 'Inner vertical (%s)';
rsBorderInnerVertFmt_Hint = 'Inner vertical border (%s)';
rsBorderAllHor_Menu = 'All horizontal';
rsBorderAllHor_Hint = 'All horizontal lines';
rsBorderAllHorFmt_Menu = 'All horizontal (%s)';
rsBorderAllHorFmt_Hint = 'All horizontal lines (%s)';
rsBorderAllVert_Menu = 'All vertical';
rsBorderAllVert_Hint = 'All vertical lines';
rsBorderAllVertFmt_Menu = 'All vertical (%s)';
rsBorderAllVertFmt_Hint = 'All vertical lines (%s)';
rsBorderAllInner_Menu = 'All inner';
rsBorderAllInner_Hint = 'All inner lines';
rsBorderAllInnerFmt_Menu = 'All inner (%s)';
rsBorderAllInnerFmt_Hint = 'All inner lines (%s)';
rsBorderAllOuter_Menu = 'All outer';
rsBorderAllOuter_Hint = 'All outer lines';
rsBorderAllOuterFmt_Menu = 'All outer (%s)';
rsBorderAllOuterFmt_Hint = 'All outer lines (%s)';
rsBorderAll_Menu = 'All';
rsBorderAll_Hint = 'All lines';
rsBorderAllFmt_Menu = 'All (%s)';
rsBorderAllFmt_Hint = 'All lines (%s)';
rsBorderDiagUp = 'Upward diagonal';
rsBorderDiagUpFmt = 'Upward diagonal (%s)';
rsBorderDiagDown = 'Downward diagonal';
rsBorderDiagDownFmt = 'Downward diagonal (%s)';
rsThin = 'thin';
rsMedium = 'thick';
rsDashed = 'dashed';
rsDotted = 'dotted';
rsThick = 'very thick';
rsDouble = 'double';
rsHair = 'hair';
rsMediumDash = 'thick dash';
rsDashDot = 'dash-dot';
rsMediumDashDot = 'thick dash-dot';
rsDashDotDot = 'dash-dot-dot';
rsMediumDashDotDot = 'thick dash-dot-dot';
rsSlantDashDot = 'slanted dash-dot';
implementation
end.

View File

@@ -295,8 +295,6 @@ const
LAST_PALETTE_INDEX = 63;
ROWHEIGHT_EPS = 1E-2;
type
TFillListData = class
PatternType: String;