LibreOffice Module vbahelper (master) 1
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
ScVbaCommandBarControl Class Reference

#include <vbacommandbarcontrol.hxx>

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

Public Member Functions

 ScVbaCommandBarControl (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, css::uno::Reference< css::container::XIndexAccess > xSettings, VbaCommandBarHelperRef pHelper, css::uno::Reference< css::container::XIndexAccess > xBarSettings, OUString sResourceUrl)
 
virtual OUString SAL_CALL getCaption () override
 
virtual void SAL_CALL setCaption (const OUString &_caption) override
 
virtual OUString SAL_CALL getOnAction () override
 
virtual void SAL_CALL setOnAction (const OUString &_onaction) override
 
virtual sal_Bool SAL_CALL getVisible () override
 
virtual void SAL_CALL setVisible (sal_Bool _visible) override
 
virtual sal_Bool SAL_CALL getEnabled () override
 
virtual void SAL_CALL setEnabled (sal_Bool _enabled) override
 
virtual sal_Bool SAL_CALL getBeginGroup () override
 
virtual void SAL_CALL setBeginGroup (sal_Bool _begin) override
 
virtual sal_Int32 SAL_CALL getType () override
 
virtual void SAL_CALL Delete () override
 
virtual css::uno::Any SAL_CALL Controls (const css::uno::Any &aIndex) override
 
virtual OUString getServiceImplName () override
 
virtual css::uno::Sequence< OUString > getServiceNames () override
 
- Public Member Functions inherited from InheritedHelperInterfaceWeakImpl< Ifc >
 InheritedHelperInterfaceWeakImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
- Public Member Functions inherited from InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< 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
 

Protected Attributes

VbaCommandBarHelperRef pCBarHelper
 
OUString m_sResourceUrl
 
css::uno::Reference< css::container::XIndexAccess > m_xCurrentSettings
 
css::uno::Reference< css::container::XIndexAccess > m_xBarSettings
 
css::uno::Sequence< css::beans::PropertyValue > m_aPropertyValues
 
sal_Int32 m_nPosition
 
- Protected Attributes inherited from InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >
css::uno::WeakReference< ov::XHelperInterface > mxParent
 
css::uno::Reference< css::uno::XComponentContext > mxContext
 

Private Member Functions

void ApplyChange ()
 

Detailed Description

Definition at line 33 of file vbacommandbarcontrol.hxx.

Constructor & Destructor Documentation

◆ ScVbaCommandBarControl()

ScVbaCommandBarControl::ScVbaCommandBarControl ( const css::uno::Reference< ov::XHelperInterface > &  xParent,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
css::uno::Reference< css::container::XIndexAccess >  xSettings,
VbaCommandBarHelperRef  pHelper,
css::uno::Reference< css::container::XIndexAccess >  xBarSettings,
OUString  sResourceUrl 
)
Exceptions
css::uno::RuntimeException

Definition at line 29 of file vbacommandbarcontrol.cxx.

References m_nPosition.

Member Function Documentation

◆ ApplyChange()

void ScVbaCommandBarControl::ApplyChange ( )
private
Exceptions
css::uno::RuntimeException

Definition at line 33 of file vbacommandbarcontrol.cxx.

References m_aPropertyValues, m_nPosition, m_sResourceUrl, m_xBarSettings, m_xCurrentSettings, and pCBarHelper.

Referenced by setCaption(), setEnabled(), setOnAction(), and setVisible().

◆ Controls()

uno::Any SAL_CALL ScVbaCommandBarControl::Controls ( const css::uno::Any &  aIndex)
overridevirtual

◆ Delete()

void SAL_CALL ScVbaCommandBarControl::Delete ( )
overridevirtual

◆ getBeginGroup()

sal_Bool SAL_CALL ScVbaCommandBarControl::getBeginGroup ( )
overridevirtual

Definition at line 135 of file vbacommandbarcontrol.cxx.

Referenced by setBeginGroup().

◆ getCaption()

OUString SAL_CALL ScVbaCommandBarControl::getCaption ( )
overridevirtual

Definition at line 41 of file vbacommandbarcontrol.cxx.

References ooo::vba::getPropertyValue(), and m_aPropertyValues.

◆ getEnabled()

sal_Bool SAL_CALL ScVbaCommandBarControl::getEnabled ( )
overridevirtual

◆ getOnAction()

OUString SAL_CALL ScVbaCommandBarControl::getOnAction ( )
overridevirtual

Definition at line 58 of file vbacommandbarcontrol.cxx.

References ooo::vba::getPropertyValue(), and m_aPropertyValues.

◆ getServiceImplName()

OUString ScVbaCommandBarControl::getServiceImplName ( )
overridevirtual

◆ getServiceNames()

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

◆ getType()

virtual sal_Int32 SAL_CALL ScVbaCommandBarControl::getType ( )
inlineoverridevirtual

Definition at line 63 of file vbacommandbarcontrol.hxx.

◆ getVisible()

sal_Bool SAL_CALL ScVbaCommandBarControl::getVisible ( )
overridevirtual

◆ setBeginGroup()

void SAL_CALL ScVbaCommandBarControl::setBeginGroup ( sal_Bool  _begin)
overridevirtual

Definition at line 143 of file vbacommandbarcontrol.cxx.

References getBeginGroup().

◆ setCaption()

void SAL_CALL ScVbaCommandBarControl::setCaption ( const OUString &  _caption)
overridevirtual

Definition at line 50 of file vbacommandbarcontrol.cxx.

References ApplyChange(), m_aPropertyValues, and setPropertyValue().

◆ setEnabled()

void SAL_CALL ScVbaCommandBarControl::setEnabled ( sal_Bool  _enabled)
overridevirtual

◆ setOnAction()

void SAL_CALL ScVbaCommandBarControl::setOnAction ( const OUString &  _onaction)
overridevirtual

◆ setVisible()

void SAL_CALL ScVbaCommandBarControl::setVisible ( sal_Bool  _visible)
overridevirtual

Member Data Documentation

◆ m_aPropertyValues

css::uno::Sequence< css::beans::PropertyValue > ScVbaCommandBarControl::m_aPropertyValues
protected

◆ m_nPosition

sal_Int32 ScVbaCommandBarControl::m_nPosition
protected

Definition at line 42 of file vbacommandbarcontrol.hxx.

Referenced by ApplyChange(), and Delete().

◆ m_sResourceUrl

OUString ScVbaCommandBarControl::m_sResourceUrl
protected

Definition at line 37 of file vbacommandbarcontrol.hxx.

Referenced by ApplyChange(), Controls(), and Delete().

◆ m_xBarSettings

css::uno::Reference< css::container::XIndexAccess > ScVbaCommandBarControl::m_xBarSettings
protected

Definition at line 39 of file vbacommandbarcontrol.hxx.

Referenced by ApplyChange(), Controls(), and Delete().

◆ m_xCurrentSettings

css::uno::Reference< css::container::XIndexAccess > ScVbaCommandBarControl::m_xCurrentSettings
protected

Definition at line 38 of file vbacommandbarcontrol.hxx.

Referenced by ApplyChange(), and Delete().

◆ pCBarHelper

VbaCommandBarHelperRef ScVbaCommandBarControl::pCBarHelper
protected

Definition at line 36 of file vbacommandbarcontrol.hxx.

Referenced by ApplyChange(), Controls(), Delete(), and setOnAction().


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