summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-04 00:41:36 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-04 16:33:15 +0100
commit2a87ed2c3dbd71dcf7d791b5d3fb756872582aa5 (patch)
tree0826923ecd0bd0d7363ac45a0b0e9825f60ccdb7 /sc
parentf506e99344158f0215228ab478bd3a19391d7220 (diff)
implement (no) error cond format import from odf
Change-Id: I97d049360c9d7868ed1b92e3453f9523747b526a
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/xml/xmlcondformat.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/filter/xml/xmlcondformat.cxx b/sc/source/filter/xml/xmlcondformat.cxx
index fa2d2f998fd9..ab71696ba18f 100644
--- a/sc/source/filter/xml/xmlcondformat.cxx
+++ b/sc/source/filter/xml/xmlcondformat.cxx
@@ -433,6 +433,14 @@ void GetConditionData(const rtl::OUString& rValue, ScConditionMode& eMode, rtl::
rExpr1 = ScXMLConditionHelper::getExpression( pStart, pEnd, ')');
eMode = SC_COND_DIRECT;
}
+ else if(rValue.indexOf("is-error") == 0)
+ {
+ eMode = SC_COND_ERROR;
+ }
+ else if(rValue.indexOf("is-no-error") == 0)
+ {
+ eMode = SC_COND_NOERROR;
+ }
else
eMode = SC_COND_NONE;
}