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

#include <vbacommandbar.hxx>

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

Public Member Functions

 ScVbaCommandBar (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, VbaCommandBarHelperRef pHelper, css::uno::Reference< css::container::XIndexAccess > xBarSettings, OUString sResourceUrl, bool bIsMenu)
 
virtual OUString SAL_CALL getName () override
 
virtual void SAL_CALL setName (const OUString &_name) 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 void SAL_CALL Delete () override
 
virtual css::uno::Any SAL_CALL Controls (const css::uno::Any &aIndex) override
 
virtual sal_Int32 SAL_CALL Type () override
 
virtual css::uno::Any SAL_CALL FindControl (const css::uno::Any &aType, const css::uno::Any &aId, const css::uno::Any &aTag, const css::uno::Any &aVisible, const css::uno::Any &aRecursive) 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
 

Private Attributes

VbaCommandBarHelperRef pCBarHelper
 
css::uno::Reference< css::container::XIndexAccess > m_xBarSettings
 
OUString m_sResourceUrl
 
bool m_bIsMenu
 

Additional Inherited Members

- Protected Attributes inherited from InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >
css::uno::WeakReference< ov::XHelperInterface > mxParent
 
css::uno::Reference< css::uno::XComponentContext > mxContext
 

Detailed Description

Definition at line 29 of file vbacommandbar.hxx.

Constructor & Destructor Documentation

◆ ScVbaCommandBar()

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

Definition at line 31 of file vbacommandbar.cxx.

Member Function Documentation

◆ Controls()

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

◆ Delete()

void SAL_CALL ScVbaCommandBar::Delete ( )
overridevirtual

Definition at line 141 of file vbacommandbar.cxx.

References m_sResourceUrl, and pCBarHelper.

◆ FindControl()

uno::Any SAL_CALL ScVbaCommandBar::FindControl ( const css::uno::Any &  aType,
const css::uno::Any &  aId,
const css::uno::Any &  aTag,
const css::uno::Any &  aVisible,
const css::uno::Any &  aRecursive 
)
overridevirtual

Definition at line 171 of file vbacommandbar.cxx.

◆ getEnabled()

sal_Bool SAL_CALL ScVbaCommandBar::getEnabled ( )
overridevirtual

Definition at line 127 of file vbacommandbar.cxx.

References getVisible().

◆ getName()

OUString SAL_CALL ScVbaCommandBar::getName ( )
overridevirtual

◆ getServiceImplName()

OUString ScVbaCommandBar::getServiceImplName ( )
overridevirtual

◆ getServiceNames()

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

◆ getVisible()

sal_Bool SAL_CALL ScVbaCommandBar::getVisible ( )
overridevirtual

Definition at line 81 of file vbacommandbar.cxx.

References bVisible, ooo::vba::getPropertyValue(), m_bIsMenu, m_sResourceUrl, and pCBarHelper.

Referenced by getEnabled().

◆ setEnabled()

void SAL_CALL ScVbaCommandBar::setEnabled ( sal_Bool  _enabled)
overridevirtual

Definition at line 134 of file vbacommandbar.cxx.

References setVisible().

◆ setName()

void SAL_CALL ScVbaCommandBar::setName ( const OUString &  _name)
overridevirtual

Definition at line 73 of file vbacommandbar.cxx.

References m_sResourceUrl, m_xBarSettings, and pCBarHelper.

◆ setVisible()

void SAL_CALL ScVbaCommandBar::setVisible ( sal_Bool  _visible)
overridevirtual

Definition at line 104 of file vbacommandbar.cxx.

References m_sResourceUrl, pCBarHelper, and SAL_INFO.

Referenced by setEnabled().

◆ Type()

sal_Int32 SAL_CALL ScVbaCommandBar::Type ( )
overridevirtual

Definition at line 162 of file vbacommandbar.cxx.

References m_bIsMenu, and nType.

Member Data Documentation

◆ m_bIsMenu

bool ScVbaCommandBar::m_bIsMenu
private

Definition at line 35 of file vbacommandbar.hxx.

Referenced by getName(), getVisible(), and Type().

◆ m_sResourceUrl

OUString ScVbaCommandBar::m_sResourceUrl
private

Definition at line 34 of file vbacommandbar.hxx.

Referenced by Controls(), Delete(), getName(), getVisible(), setName(), and setVisible().

◆ m_xBarSettings

css::uno::Reference< css::container::XIndexAccess > ScVbaCommandBar::m_xBarSettings
private

Definition at line 33 of file vbacommandbar.hxx.

Referenced by Controls(), getName(), and setName().

◆ pCBarHelper

VbaCommandBarHelperRef ScVbaCommandBar::pCBarHelper
private

Definition at line 32 of file vbacommandbar.hxx.

Referenced by Controls(), Delete(), getName(), getVisible(), setName(), and setVisible().


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