From 11370a0ce5a8ca503927cff38d79b38e513123fe Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 19 Sep 2016 23:20:22 +0200 Subject: [PATCH] try to generate more excel compliant files, tdf#41722 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit §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 --- sc/source/filter/excel/xecontent.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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: