Kaydet (Commit) 52a6d6f5 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

add (no) error cond format import from ooxml

Change-Id: I668a9b843cf281a167ca87d24b717c782bbc1e1b
üst 94700370
......@@ -735,10 +735,10 @@ void CondFormatRule::finalizeImport()
aReplaceFormula = "LEN(TRIM(#B))>0";
break;
case XML_containsErrors:
aReplaceFormula = "ISERROR(#B)";
eOperator = SC_COND_ERROR;
break;
case XML_notContainsErrors:
aReplaceFormula = "NOT(ISERROR(#B))";
eOperator = SC_COND_NOERROR;
break;
case XML_top10:
if(maModel.mbPercent)
......@@ -861,6 +861,13 @@ void CondFormatRule::finalizeImport()
ScCondFormatEntry* pNewEntry = new ScCondFormatEntry( eOperator, &aTokenArrayEqual, &aTokenArrayDev, &rDoc, aPos, aStyleName );
mpFormat->AddEntry(pNewEntry);
}
else if( eOperator == SC_COND_ERROR || eOperator == SC_COND_NOERROR )
{
ScDocument& rDoc = getScDocument();
OUString aStyleName = getStyles().createDxfStyle( maModel.mnDxfId );
ScCondFormatEntry* pNewEntry = new ScCondFormatEntry( eOperator, NULL, NULL, &rDoc, aPos, aStyleName );
mpFormat->AddEntry(pNewEntry);
}
else if( eOperator == SC_COND_DUPLICATE || eOperator == SC_COND_NOTDUPLICATE )
{
ScDocument& rDoc = getScDocument();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment