diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-09-19 23:20:22 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-09-19 23:23:25 +0200 |
commit | 11370a0ce5a8ca503927cff38d79b38e513123fe (patch) | |
tree | d07f11045836c6898874fd2c108396c46c781191 | |
parent | 38a61ddaf63768ebe19c92d561eac6f50d67ded7 (diff) |
try to generate more excel compliant files, tdf#41722
§18.3.1.10 says for the operator attribute: "The operator in a "cell
value is" conditional formatting rule. This attribute is ignored if
type is not equal to cellIs"
but checking §18.18.15 there are at least 4 attribute values that are
not related to cellIs. I have added them now but need to test that this
really helps.
Change-Id: Id15efc7e0148b4e3b54404d1ffd911adc56b11ec
-rw-r--r-- | sc/source/filter/excel/xecontent.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx index 86a19f7582af..cfa6c5abc751 100644 --- a/sc/source/filter/excel/xecontent.cxx +++ b/sc/source/filter/excel/xecontent.cxx @@ -836,6 +836,18 @@ const char* GetOperatorString(ScConditionMode eMode, bool& bFrmla2) case SC_COND_NOTDUPLICATE: pRet = nullptr; break; + case SC_COND_BEGINS_WITH: + pRet = "beginsWith"; + break; + case SC_COND_ENDS_WITH: + pRet = "endsWith"; + break; + case SC_COND_CONTAINS_TEXT: + pRet = "containsText"; + break; + case SC_COND_NOT_CONTAINS_TEXT: + pRet = "notContains"; + break; case SC_COND_DIRECT: break; case SC_COND_NONE: |