[Libreoffice-commits] core.git: sc/source

Markus Mohrhard markus.mohrhard at googlemail.com
Mon Sep 19 21:25:19 UTC 2016


 sc/source/filter/excel/xecontent.cxx |   12 ++++++++++++
 1 file changed, 12 insertions(+)

New commits:
commit 11370a0ce5a8ca503927cff38d79b38e513123fe
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Mon Sep 19 23:20:22 2016 +0200

    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

diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx
index 86a19f7..cfa6c5a 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:


More information about the Libreoffice-commits mailing list