diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-11-02 14:31:57 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-11-02 14:58:12 +0100 |
commit | 7cc964a33e2b5c230c46ae279ea9af9f46bdc89a (patch) | |
tree | 539276a1967624945d0e28f0e70f45fbb42dc051 /sc | |
parent | 95cf9d5a48232e45cded632ef440420db1c26866 (diff) |
start exporting the new cond formats to ooxml
Change-Id: I8dbc07719263b17f2066c2dfd6e0bfef70630d53
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xecontent.cxx | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx index 91bd9186f6a5..6c317e996fbc 100644 --- a/sc/source/filter/excel/xecontent.cxx +++ b/sc/source/filter/excel/xecontent.cxx @@ -832,9 +832,21 @@ const char* GetOperatorString(ScConditionMode eMode, bool& bFrmla2) const char* GetTypeString(ScConditionMode eMode) { - if (eMode == SC_COND_DIRECT) - return "expression"; - return "cellIs"; + switch(eMode) + { + case SC_COND_DIRECT: + return "expression"; + case SC_COND_TOP10: + case SC_COND_TOP_PERCENT: + case SC_COND_BOTTOM10: + case SC_COND_BOTTOM_PERCENT: + return "top10"; + case SC_COND_ABOVE_AVERAGE: + case SC_COND_BELOW_AVERAGE: + return "aboveAverage"; + default: + return "cellIs"; + } } } |