diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-08-24 22:55:18 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-08-28 15:31:41 +0200 |
commit | 06784203728ae5c03edd2a5e311fae532c3e7a12 (patch) | |
tree | c18e770f8dbf7eb9a5703220be9fb1006f6bc2ed | |
parent | 176598dbbee3d6e14893de11c08401a00cdd87aa (diff) |
remove redundant function
Change-Id: If082663aea3e5ed4d242997a1fdd3fd2769daf8d
-rw-r--r-- | sc/source/filter/xml/xmlcelli.cxx | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx index f1e49fedc87a..3b6ca50a735f 100644 --- a/sc/source/filter/xml/xmlcelli.cxx +++ b/sc/source/filter/xml/xmlcelli.cxx @@ -511,25 +511,6 @@ ScValidErrorStyle validAlertToValidError( const sheet::ValidationAlertStyle eVAl return eVErrStyle; } -ScConditionMode conditionOpToMode( const sheet::ConditionOperator eOp ) -{ - ScConditionMode eMode; - switch( eOp ) - { - case sheet::ConditionOperator_EQUAL: eMode = SC_COND_EQUAL; break; - case sheet::ConditionOperator_NOT_EQUAL: eMode = SC_COND_NOTEQUAL; break; - case sheet::ConditionOperator_GREATER: eMode = SC_COND_GREATER; break; - case sheet::ConditionOperator_GREATER_EQUAL: eMode = SC_COND_EQGREATER; break; - case sheet::ConditionOperator_LESS: eMode = SC_COND_LESS; break; - case sheet::ConditionOperator_LESS_EQUAL: eMode = SC_COND_EQLESS; break; - case sheet::ConditionOperator_BETWEEN: eMode = SC_COND_BETWEEN; break; - case sheet::ConditionOperator_NOT_BETWEEN: eMode = SC_COND_NOTBETWEEN; break; - case sheet::ConditionOperator_FORMULA: eMode = SC_COND_DIRECT; break; - default: eMode = SC_COND_NONE; break; - } - return eMode; -} - } void ScXMLTableRowCellContext::SetContentValidation( const ScRange& rScRange ) @@ -543,7 +524,7 @@ void ScXMLTableRowCellContext::SetContentValidation( const ScRange& rScRange ) { ScValidationData aScValidationData( validationTypeToMode(aValidation.aValidationType), - conditionOpToMode(aValidation.aOperator), + ScConditionEntry::GetModeFromApi(static_cast<sal_Int32>(aValidation.aOperator)), aValidation.sFormula1, aValidation.sFormula2, pDoc, ScAddress(), aValidation.sFormulaNmsp1, aValidation.sFormulaNmsp2, aValidation.eGrammar1, aValidation.eGrammar2 |