LibreOffice Module sw (master) 1
Public Member Functions | List of all members
SwVbaContentControls Class Reference

#include <vbacontentcontrols.hxx>

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

Public Member Functions

 SwVbaContentControls (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::text::XTextDocument > &xTextDocument, const OUString &rTag, const OUString &rTitle)
 Content Controls can be accessed and filtered in many different ways. More...
 
css::uno::Type SAL_CALL getElementType () override
 
css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override
 
css::uno::Any createCollectionObject (const css::uno::Any &aSource) override
 
OUString getServiceImplName () override
 
css::uno::Sequence< OUString > getServiceNames () override
 
- Public Member Functions inherited from CollTestImplHelper< typename... 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
 

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 18 of file vbacontentcontrols.hxx.

Constructor & Destructor Documentation

◆ SwVbaContentControls()

SwVbaContentControls::SwVbaContentControls ( const css::uno::Reference< ov::XHelperInterface > &  xParent,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
const css::uno::Reference< css::text::XTextDocument > &  xTextDocument,
const OUString &  rTag,
const OUString &  rTitle 
)

Content Controls can be accessed and filtered in many different ways.

Exceptions
css::uno::RuntimeException

Surprisingly however, there is no clear, descriptive "by name" access. Instead, each content control (probably) has a unique signed-integer identifier, which can be passed to Item() as a float or unsigned-integer string (to differentiate it from getByIndex).

Index access can be filtered by Tag, Title, Range, and XML link. TODO: add filtering for Range, SelectLinkedControls, SelectUnlinkedControls

Definition at line 218 of file vbacontentcontrols.cxx.

References Reference.

Member Function Documentation

◆ createCollectionObject()

uno::Any SwVbaContentControls::createCollectionObject ( const css::uno::Any &  aSource)
overridevirtual

◆ createEnumeration()

uno::Reference< container::XEnumeration > SwVbaContentControls::createEnumeration ( )
overridevirtual

◆ getElementType()

uno::Type SwVbaContentControls::getElementType ( )
overridevirtual

◆ getServiceImplName()

OUString SwVbaContentControls::getServiceImplName ( )
overridevirtual

Implements InheritedHelperInterfaceImpl< Ifc... >.

Definition at line 260 of file vbacontentcontrols.cxx.

◆ getServiceNames()

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

Implements InheritedHelperInterfaceImpl< Ifc... >.

Definition at line 262 of file vbacontentcontrols.cxx.


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