LibreOffice Module sc (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ScVbaFormatConditions Class Reference

#include <vbaformatconditions.hxx>

Inheritance diagram for ScVbaFormatConditions:
[legend]
Collaboration diagram for ScVbaFormatConditions:
[legend]

Public Member Functions

void notifyRange ()
 
css::uno::Reference< ov::excel::XFormatCondition > Add (::sal_Int32 Type, const css::uno::Any &Operator, const css::uno::Any &Formula1, const css::uno::Any &Formula2, const css::uno::Reference< ov::excel::XStyle > &_xCalcStyle)
 
OUString getStyleName ()
 
void removeFormatCondition (const OUString &_sStyleName, bool _bRemoveStyle)
 
const css::uno::Reference< css::sheet::XSheetConditionalEntries > & getSheetConditionalEntries () const
 
virtual void SAL_CALL Delete () override
 
virtual css::uno::Reference< ov::excel::XFormatCondition > SAL_CALL Add (::sal_Int32 Type, const css::uno::Any &Operator, const css::uno::Any &Formula1, const css::uno::Any &Formula2) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override
 
virtual css::uno::Any createCollectionObject (const css::uno::Any &) override
 
virtual OUString getServiceImplName () override
 
virtual css::uno::Sequence< OUString > getServiceNames () override
 
 ScVbaFormatConditions ()=delete
 
- Public Member Functions inherited from CollTestImplHelper< ov::excel::XFormatConditions >
 CollTestImplHelper (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::container::XIndexAccess > &xIndexAccess, bool bIgnoreCase=false)
 
- Public Member Functions inherited from ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >
 ScVbaCollectionBase (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, css::uno::Reference< css::container::XIndexAccess > xIndexAccess, bool bIgnoreCase=false)
 
virtual ::sal_Int32 SAL_CALL getCount () override
 
virtual css::uno::Any SAL_CALL Item (const css::uno::Any &Index1, const css::uno::Any &) override
 
OUString SAL_CALL getDefaultMethodName () override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override=0
 
virtual css::uno::Type SAL_CALL getElementType () override=0
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual css::uno::Any createCollectionObject (const css::uno::Any &aSource)=0
 
- Public Member Functions inherited from InheritedHelperInterfaceImpl< Ifc... >
 InheritedHelperInterfaceImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, css::uno::Reference< css::uno::XComponentContext > xContext)
 
virtual OUString getServiceImplName ()=0
 
virtual css::uno::Sequence< OUString > getServiceNames ()=0
 
virtual ::sal_Int32 SAL_CALL getCreator () override
 
virtual css::uno::Reference< ov::XHelperInterface > SAL_CALL getParent () override
 
virtual css::uno::Any SAL_CALL Application () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 

Static Public Member Functions

static OUString getA1Formula (const css::uno::Any &_aFormula)
 

Private Attributes

css::uno::Reference< css::sheet::XSheetConditionalEntries > mxSheetConditionalEntries
 
css::uno::Reference< ov::excel::XStyles > mxStyles
 
css::uno::Reference< ov::excel::XRange > mxRangeParent
 
css::uno::Reference< css::beans::XPropertySetmxParentRangePropertySet
 

Additional Inherited Members

- Protected Member Functions inherited from ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >
virtual css::uno::Any getItemByStringIndex (const OUString &sIndex)
 
virtual css::uno::Any getItemByIntIndex (const sal_Int32 nIndex)
 
void UpdateCollectionIndex (const css::uno::Reference< css::container::XIndexAccess > &xIndexAccess)
 
- Protected Attributes inherited from ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >
css::uno::Reference< css::container::XIndexAccess > m_xIndexAccess
 
css::uno::Reference< css::container::XNameAccess > m_xNameAccess
 
bool mbIgnoreCase
 
- Protected Attributes inherited from InheritedHelperInterfaceImpl< Ifc... >
css::uno::WeakReference< ov::XHelperInterface > mxParent
 
css::uno::Reference< css::uno::XComponentContext > mxContext
 

Detailed Description

Definition at line 34 of file vbaformatconditions.hxx.

Constructor & Destructor Documentation

◆ ScVbaFormatConditions()

ScVbaFormatConditions::ScVbaFormatConditions ( )
delete

Member Function Documentation

◆ Add() [1/2]

virtual css::uno::Reference< ov::excel::XFormatCondition > SAL_CALL ScVbaFormatConditions::Add ( ::sal_Int32  Type,
const css::uno::Any &  Operator,
const css::uno::Any &  Formula1,
const css::uno::Any &  Formula2 
)
overridevirtual

◆ Add() [2/2]

css::uno::Reference< ov::excel::XFormatCondition > ScVbaFormatConditions::Add ( ::sal_Int32  Type,
const css::uno::Any &  Operator,
const css::uno::Any &  Formula1,
const css::uno::Any &  Formula2,
const css::uno::Reference< ov::excel::XStyle > &  _xCalcStyle 
)
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Referenced by ScVbaFormatCondition::Modify().

◆ createCollectionObject()

uno::Any ScVbaFormatConditions::createCollectionObject ( const css::uno::Any &  )
overridevirtual

◆ createEnumeration()

uno::Reference< container::XEnumeration > SAL_CALL ScVbaFormatConditions::createEnumeration ( )
overridevirtual

◆ Delete()

void SAL_CALL ScVbaFormatConditions::Delete ( )
overridevirtual

◆ getA1Formula()

OUString ScVbaFormatConditions::getA1Formula ( const css::uno::Any &  _aFormula)
static
Exceptions
css::script::BasicErrorException

Definition at line 226 of file vbaformatconditions.cxx.

References ERRCODE_BASIC_BAD_PARAMETER, and sFormula.

◆ getElementType()

uno::Type SAL_CALL ScVbaFormatConditions::getElementType ( )
overridevirtual

◆ getServiceImplName()

OUString ScVbaFormatConditions::getServiceImplName ( )
overridevirtual

Implements InheritedHelperInterfaceImpl< Ifc... >.

Definition at line 275 of file vbaformatconditions.cxx.

◆ getServiceNames()

uno::Sequence< OUString > ScVbaFormatConditions::getServiceNames ( )
overridevirtual

Implements InheritedHelperInterfaceImpl< Ifc... >.

Definition at line 281 of file vbaformatconditions.cxx.

References aServiceNames.

◆ getSheetConditionalEntries()

const css::uno::Reference< css::sheet::XSheetConditionalEntries > & ScVbaFormatConditions::getSheetConditionalEntries ( ) const
inline

◆ getStyleName()

OUString ScVbaFormatConditions::getStyleName ( )

◆ notifyRange()

void ScVbaFormatConditions::notifyRange ( )
Exceptions
css::script::BasicErrorException

Definition at line 213 of file vbaformatconditions.cxx.

References ERRCODE_BASIC_METHOD_FAILED, mxParentRangePropertySet, mxSheetConditionalEntries, and SC_UNONAME_CONDFMT.

Referenced by Delete().

◆ removeFormatCondition()

void ScVbaFormatConditions::removeFormatCondition ( const OUString &  _sStyleName,
bool  _bRemoveStyle 
)
Exceptions
css::script::BasicErrorException

Definition at line 246 of file vbaformatconditions.cxx.

References ScVbaStyles::Delete(), ERRCODE_BASIC_METHOD_FAILED, i, mxSheetConditionalEntries, and mxStyles.

Referenced by ScVbaFormatCondition::Delete(), and ScVbaFormatCondition::Modify().

Member Data Documentation

◆ mxParentRangePropertySet

css::uno::Reference< css::beans::XPropertySet > ScVbaFormatConditions::mxParentRangePropertySet
private

Definition at line 39 of file vbaformatconditions.hxx.

Referenced by createCollectionObject(), createEnumeration(), and notifyRange().

◆ mxRangeParent

css::uno::Reference< ov::excel::XRange > ScVbaFormatConditions::mxRangeParent
private

Definition at line 38 of file vbaformatconditions.hxx.

Referenced by createCollectionObject(), and createEnumeration().

◆ mxSheetConditionalEntries

css::uno::Reference< css::sheet::XSheetConditionalEntries > ScVbaFormatConditions::mxSheetConditionalEntries
private

◆ mxStyles

css::uno::Reference< ov::excel::XStyles > ScVbaFormatConditions::mxStyles
private

The documentation for this class was generated from the following files: