LibreOffice Module vbahelper (master) 1
|
#include <vbacommandbarcontrols.hxx>
Public Member Functions | |
ScVbaCommandBarControls (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::container::XIndexAccess > &xIndexAccess, VbaCommandBarHelperRef pHelper, css::uno::Reference< css::container::XIndexAccess > xBarSettings, const OUString &sResourceUrl) | |
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 &aSource) override |
virtual css::uno::Any SAL_CALL | Item (const css::uno::Any &Index, const css::uno::Any &) override |
virtual css::uno::Reference< ov::XCommandBarControl > SAL_CALL | Add (const css::uno::Any &Type, const css::uno::Any &Id, const css::uno::Any &Parameter, const css::uno::Any &Before, const css::uno::Any &Temporary) override |
virtual OUString | getServiceImplName () override |
virtual css::uno::Sequence< OUString > | getServiceNames () override |
Public Member Functions inherited from CollTestImplHelper< Ifc > | |
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 Private Member Functions | |
static css::uno::Sequence< css::beans::PropertyValue > | CreateMenuItemData (const OUString &sCommandURL, const OUString &sHelpURL, const OUString &sLabel, sal_uInt16 nType, const css::uno::Any &aSubMenu, bool isVisible, bool isEnabled) |
static css::uno::Sequence< css::beans::PropertyValue > | CreateToolbarItemData (const OUString &sCommandURL, const OUString &sHelpURL, const OUString &sLabel, sal_uInt16 nType, const css::uno::Any &aSubMenu, bool isVisible, sal_Int32 nStyle) |
Private Attributes | |
VbaCommandBarHelperRef | pCBarHelper |
css::uno::Reference< css::container::XIndexAccess > | m_xBarSettings |
OUString | m_sResourceUrl |
bool | m_bIsMenu |
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 |
Definition at line 28 of file vbacommandbarcontrols.hxx.
ScVbaCommandBarControls::ScVbaCommandBarControls | ( | const css::uno::Reference< ov::XHelperInterface > & | xParent, |
const css::uno::Reference< css::uno::XComponentContext > & | xContext, | ||
const css::uno::Reference< css::container::XIndexAccess > & | xIndexAccess, | ||
VbaCommandBarHelperRef | pHelper, | ||
css::uno::Reference< css::container::XIndexAccess > | xBarSettings, | ||
const OUString & | sResourceUrl | ||
) |
css::uno::RuntimeException |
Definition at line 56 of file vbacommandbarcontrols.cxx.
References ITEM_MENUBAR_URL, and m_bIsMenu.
|
overridevirtual |
Definition at line 159 of file vbacommandbarcontrols.cxx.
References Before, CreateMenuItemData(), CreateToolbarItemData(), CUSTOM_MENU_STR, m_bIsMenu, m_sResourceUrl, m_xBarSettings, ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >::m_xIndexAccess, InheritedHelperInterfaceImpl< Ifc... >::mxContext, nType, Parameter, and pCBarHelper.
|
overridevirtual |
Implements ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 117 of file vbacommandbarcontrols.cxx.
References ooo::vba::getPropertyValue(), ITEM_DESCRIPTOR_CONTAINER, m_sResourceUrl, m_xBarSettings, ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >::m_xIndexAccess, InheritedHelperInterfaceImpl< Ifc... >::mxContext, and pCBarHelper.
Referenced by Item().
|
overridevirtual |
Implements ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 111 of file vbacommandbarcontrols.cxx.
|
staticprivate |
Definition at line 61 of file vbacommandbarcontrols.cxx.
References ITEM_DESCRIPTOR_COMMANDURL, ITEM_DESCRIPTOR_CONTAINER, ITEM_DESCRIPTOR_ENABLED, ITEM_DESCRIPTOR_HELPURL, ITEM_DESCRIPTOR_ISVISIBLE, ITEM_DESCRIPTOR_LABEL, ITEM_DESCRIPTOR_TYPE, comphelper::makePropertyValue(), and nType.
Referenced by Add().
|
staticprivate |
Definition at line 82 of file vbacommandbarcontrols.cxx.
References ITEM_DESCRIPTOR_COMMANDURL, ITEM_DESCRIPTOR_CONTAINER, ITEM_DESCRIPTOR_HELPURL, ITEM_DESCRIPTOR_ISVISIBLE, ITEM_DESCRIPTOR_LABEL, ITEM_DESCRIPTOR_STYLE, ITEM_DESCRIPTOR_TYPE, comphelper::makePropertyValue(), and nType.
Referenced by Add().
|
overridevirtual |
Implements ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 105 of file vbacommandbarcontrols.cxx.
References cppu::UnoType< typename T >::get().
|
overridevirtual |
Implements InheritedHelperInterfaceImpl< Ifc... >.
Definition at line 224 of file vbacommandbarcontrols.cxx.
|
overridevirtual |
Implements InheritedHelperInterfaceImpl< Ifc... >.
Definition at line 230 of file vbacommandbarcontrols.cxx.
References aServiceNames.
|
overridevirtual |
Reimplemented from ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 136 of file vbacommandbarcontrols.cxx.
References aIndex, createCollectionObject(), VbaCommandBarHelper::findControlByName(), ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >::getCount(), m_bIsMenu, ScVbaCollectionBase< ::cppu::WeakImplHelper< Ifc... > >::m_xIndexAccess, and sName.
|
private |
Definition at line 34 of file vbacommandbarcontrols.hxx.
Referenced by Add(), Item(), and ScVbaCommandBarControls().
|
private |
Definition at line 33 of file vbacommandbarcontrols.hxx.
Referenced by Add(), and createCollectionObject().
|
private |
Definition at line 32 of file vbacommandbarcontrols.hxx.
Referenced by Add(), and createCollectionObject().
|
private |
Definition at line 31 of file vbacommandbarcontrols.hxx.
Referenced by Add(), and createCollectionObject().