21#include <unonames.hxx>
22#include <ooo/vba/excel/XlFormatConditionType.hpp>
33 if ( !pFormatConditions )
35 return pFormatConditions;
39 const uno::Reference< uno::XComponentContext > & xContext,
40 const uno::Reference< sheet::XSheetConditionalEntry >& _xSheetConditionalEntry,
41 const uno::Reference< excel::XStyle >& _xStyle,
42 const uno::Reference< excel::XFormatConditions >& _xFormatConditions,
43 const uno::Reference< css::beans::XPropertySet >& _xPropertySet )
45 uno::
Reference< sheet::XSheetCondition >( _xSheetConditionalEntry, css::
uno::UNO_QUERY_THROW ) ),
46 moFormatConditions( _xFormatConditions ), mxStyle( _xStyle ), mxParentRangePropertySet(
_xPropertySet )
68 pFormatConditions->
Add(_nType, _aOperator, _aFormula1, _aFormula2,
mxStyle);
70 catch (
const uno::Exception&)
76uno::Reference< excel::XInterior > SAL_CALL
82uno::Reference< excel::XFont > SAL_CALL
92sheet::ConditionOperator
95 sheet::ConditionOperator aAPIType = sheet::ConditionOperator_NONE;
98 case excel::XlFormatConditionType::xlExpression:
99 aAPIType = sheet::ConditionOperator_FORMULA;
101 case excel::XlFormatConditionType::xlCellValue:
102 if ( _xSheetCondition.is() && (_xSheetCondition->getOperator() == sheet::ConditionOperator_FORMULA ) )
103 aAPIType = sheet::ConditionOperator_NONE;
114 sal_Int32 nReturnType = 0;
116 nReturnType = excel::XlFormatConditionType::xlExpression;
118 nReturnType = excel::XlFormatConditionType::xlCellValue;
135 catch (uno::Exception& )
144 return "ScVbaFormatCondition";
147uno::Sequence< OUString >
152 "ooo.vba.excel.FormatCondition"
css::uno::Reference< css::sheet::XSheetCondition > mxSheetCondition
virtual sal_Int32 SAL_CALL Operator() override=0
Sequence< OUString > aServiceNames
Reference< XPropertySet > _xPropertySet
#define ERRCODE_BASIC_METHOD_FAILED
#define SC_UNONAME_CONDFMT