summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-04 02:34:17 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-04 16:33:16 +0100
commit7365db393b5c9f7035c9a8ea36e44904e641a269 (patch)
tree11111100fb0dfaef588135109d038f7e8379bf87
parent63ea94f1e5134e09fe33c8d36375d3608a5861ce (diff)
implement text cond format export to odf
Change-Id: I3992fb7150fff1422a04d85ead5f666f2d3f1bfb
-rw-r--r--sc/source/filter/xml/xmlexprt.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index b38f273a2f93..58cdaa42b243 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -3914,6 +3914,26 @@ void ScXMLExport::ExportConditionalFormat(SCTAB nTab)
case SC_COND_NOERROR:
aCond.append("is-no-error");
break;
+ case SC_COND_BEGINS_WITH:
+ aCond.append("begins-with(");
+ aCond.append(pEntry->GetExpression(aPos, 0, 0, formula::FormulaGrammar::GRAM_ODFF));
+ aCond.append(")");
+ break;
+ case SC_COND_ENDS_WITH:
+ aCond.append("ends-with(");
+ aCond.append(pEntry->GetExpression(aPos, 0, 0, formula::FormulaGrammar::GRAM_ODFF));
+ aCond.append(")");
+ break;
+ case SC_COND_CONTAINS_TEXT:
+ aCond.append("contains-text(");
+ aCond.append(pEntry->GetExpression(aPos, 0, 0, formula::FormulaGrammar::GRAM_ODFF));
+ aCond.append(")");
+ break;
+ case SC_COND_NOT_CONTAINS_TEXT:
+ aCond.append("not-contains-text(");
+ aCond.append(pEntry->GetExpression(aPos, 0, 0, formula::FormulaGrammar::GRAM_ODFF));
+ aCond.append(")");
+ break;
case SC_COND_NONE:
continue;
default: