summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-05 01:16:54 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-05 01:26:26 +0100
commitc412b2196343bdd13f4ab59314805a3b92b32071 (patch)
treed060272a6cc708dbedc7e454aed757953c613cdd /sc
parentexport dxfs at the correct place (diff)
downloadcore-c412b2196343bdd13f4ab59314805a3b92b32071.tar.gz
core-c412b2196343bdd13f4ab59314805a3b92b32071.zip
add export for new cond formats to odf
still missing: above average below average Change-Id: I32d4de1d5de3e61d05d75065952dca90bd81370a
Diffstat (limited to 'sc')
-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 58cdaa42b243..0249852afec2 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -3908,6 +3908,26 @@ void ScXMLExport::ExportConditionalFormat(SCTAB nTab)
aCond.append(pEntry->GetExpression(aPos, 0, 0, formula::FormulaGrammar::GRAM_ODFF));
aCond.append(')');
break;
+ case SC_COND_TOP10:
+ aCond.append("top-elements(");
+ aCond.append(pEntry->GetExpression(aPos, 0, 0, formula::FormulaGrammar::GRAM_ODFF));
+ aCond.append(")");
+ break;
+ case SC_COND_BOTTOM10:
+ aCond.append("bottom-elements(");
+ aCond.append(pEntry->GetExpression(aPos, 0, 0, formula::FormulaGrammar::GRAM_ODFF));
+ aCond.append(")");
+ break;
+ case SC_COND_TOP_PERCENT:
+ aCond.append("top-percent(");
+ aCond.append(pEntry->GetExpression(aPos, 0, 0, formula::FormulaGrammar::GRAM_ODFF));
+ aCond.append(")");
+ break;
+ case SC_COND_BOTTOM_PERCENT:
+ aCond.append("bottom-percent(");
+ aCond.append(pEntry->GetExpression(aPos, 0, 0, formula::FormulaGrammar::GRAM_ODFF));
+ aCond.append(")");
+ break;
case SC_COND_ERROR:
aCond.append("is-error");
break;