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 )
46 moFormatConditions( _xFormatConditions ), mxStyle( _xStyle ), mxParentRangePropertySet( _xPropertySet )
68 pFormatConditions->
Add(_nType, _aOperator, _aFormula1, _aFormula2,
mxStyle);
70 catch (
const uno::Exception&)
76 uno::Reference< excel::XInterior > SAL_CALL
82 uno::Reference< excel::XFont > SAL_CALL
89 {
return mxStyle->Borders( Index );
92 sheet::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";
147 uno::Sequence< OUString >
152 "ooo.vba.excel.FormatCondition"
#define SC_UNONAME_CONDFMT
Sequence< OUString > aServiceNames
exports com.sun.star. sheet
css::uno::Reference< css::sheet::XSheetCondition > mxSheetCondition
virtual sal_Int32 SAL_CALL Operator() override=0
#define ERRCODE_BASIC_METHOD_FAILED