fpspreadsheet: Complete of conditional formatting from xlsx. Untested.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7527 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2020-07-07 21:48:03 +00:00
parent 9bc1afa59b
commit 57fc4d5095
3 changed files with 335 additions and 64 deletions

View File

@@ -411,6 +411,7 @@ const
);
CF_VALUE_KIND: array[TsCFValueKind] of string = (
'', // vkNone
'minimum', // vkMin
'maximum', // vkMax
'percent', // vkPercent
@@ -5954,7 +5955,7 @@ begin
'<calcext:formatting-entry calcext:value="%g" calcext:type="%s" />' +
'<calcext:formatting-entry calcext:value="%g" calcext:type="%s" />' +
'</calcext:data-bar>', [
ColorToHTMLColorStr(cf_DatabarRule.BarColor), ColorToHTMLColorStr(cf_DatabarRule.BarColor),
ColorToHTMLColorStr(cf_DatabarRule.Color), ColorToHTMLColorStr(cf_DatabarRule.Color),
cf_DatabarRule.StartValue, CF_VALUE_KIND[cf_DatabarRule.StartValueKind],
cf_DatabarRule.EndValue, CF_VALUE_KIND[cf_DatabarRule.EndValueKind]
]));