You've already forked lazarus-ccr
fpspreadsheet: Activate missing conditional formatting conditions in ODS writer (a few issues left)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7508 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -183,7 +183,7 @@ begin
|
||||
fmt.SetBackgroundColor($FFC0C0);
|
||||
fmtIdx := wb.AddCellFormat(fmt);
|
||||
sh.WriteConditionalCellFormat(Range(row, 2, row, lastCol), cfcBottomPercent, 10, fmtIdx);
|
||||
(*
|
||||
|
||||
// conditional format #6: duplicates
|
||||
inc(row);
|
||||
sh.WriteText(row, 0, 'duplicate values');
|
||||
@ -199,7 +199,7 @@ begin
|
||||
fmt.SetBackgroundColor($D0D0FF);
|
||||
fmtIdx := wb.AddCellFormat(fmt);
|
||||
sh.WriteConditionalCellFormat(Range(row, 2, row, lastCol), cfcUnique, fmtIdx);
|
||||
*)
|
||||
|
||||
// conditional format #6: contains any text
|
||||
inc(row);
|
||||
sh.WriteText(row, 0, 'contains any text');
|
||||
@ -247,7 +247,7 @@ begin
|
||||
fmt.SetBackgroundColor(scRed);
|
||||
fmtIdx := wb.AddCellFormat(fmt);
|
||||
sh.WriteConditionalCellFormat(Range(row, 2, row, lastCol), cfcNotContainsText, 'ef', fmtIdx);
|
||||
(*
|
||||
|
||||
// conditional format #6: contains error
|
||||
inc(row);
|
||||
sh.WriteText(row, 0, 'contains error');
|
||||
@ -263,7 +263,6 @@ begin
|
||||
fmt.SetBackgroundColor(scRed);
|
||||
fmtIdx := wb.AddCellFormat(fmt);
|
||||
sh.WriteConditionalCellFormat(Range(row, 2, row, lastCol), cfcNotContainsErrors, fmtIdx);
|
||||
*)
|
||||
|
||||
WriteLn('row = ', row);
|
||||
WriteLn('wb.GetNumcellFormats = ', wb.GetNumCellFormats);
|
||||
|
@ -404,10 +404,10 @@ const
|
||||
'above-equal-average', 'below-equal-average', // cfcAboveEqualAverage, cfcBelowEqualAverage
|
||||
'top-elements(%s)', 'bottom-elements(%s)', // cfcTop, cfcBottom,
|
||||
'top-percent(%s)', 'bottom-percent(%s)', // cfcTopPercent, cfcBottomPercent,
|
||||
'', '', // cfcDuplicate, cfcUnique,
|
||||
'duplicate', 'unique', // cfcDuplicate, cfcUnique,
|
||||
'begins-with(%s)', 'ends-with(%s)', // cfcBeginsWith, cfcEndsWith,
|
||||
'contains-text(%s)', 'not-contains-text(%s)', // cfcContainsText, cfcNotContainsText,
|
||||
'', '' // cfcContainsErrors, cfcNotContainsErrors
|
||||
'is-error', 'is-no-error' // cfcContainsErrors, cfcNotContainsErrors
|
||||
);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user