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

#include <vbaformfielddropdown.hxx>

Inheritance diagram for SwVbaFormFieldDropDown:
Collaboration diagram for SwVbaFormFieldDropDown:

Public Member Functions

 SwVbaFormFieldDropDown (const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, sw::mark::IFieldmark &rFormField)
 DropDown formfields are inline text objects that are only found in MS Word. More...
 ~SwVbaFormFieldDropDown () override
OUString SAL_CALL getDefaultPropertyName () override
sal_Bool SAL_CALL getValid () override
sal_Int32 SAL_CALL getDefault () override
void SAL_CALL setDefault (sal_Int32 nSet) override
sal_Int32 SAL_CALL getValue () override
void SAL_CALL setValue (sal_Int32 nIndex) override
css::uno::Any SAL_CALL ListEntries (const css::uno::Any &rIndex) override
OUString getServiceImplName () override
css::uno::Sequence< OUString > getServiceNames () override
- Public Member Functions inherited from InheritedHelperInterfaceWeakImpl< typename... 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


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 19 of file vbaformfielddropdown.hxx.

Constructor & Destructor Documentation

◆ SwVbaFormFieldDropDown()

SwVbaFormFieldDropDown::SwVbaFormFieldDropDown ( const css::uno::Reference< ooo::vba::XHelperInterface > &  rParent,
const css::uno::Reference< css::uno::XComponentContext > &  rContext,
sw::mark::IFieldmark &  rFormField 

DropDown formfields are inline text objects that are only found in MS Word.


They cannot be created in Excel or in Calc.

Note that VBA might call this a DropDown, but it might not actually be one, so make good use of getValid()

Definition at line 25 of file vbaformfielddropdown.cxx.

◆ ~SwVbaFormFieldDropDown()

SwVbaFormFieldDropDown::~SwVbaFormFieldDropDown ( )

Definition at line 33 of file vbaformfielddropdown.cxx.

Member Function Documentation

◆ getDefault()

sal_Int32 SwVbaFormFieldDropDown::getDefault ( )

Definition at line 44 of file vbaformfielddropdown.cxx.

References getValue().

◆ getDefaultPropertyName()

OUString SwVbaFormFieldDropDown::getDefaultPropertyName ( )

Definition at line 35 of file vbaformfielddropdown.cxx.

◆ getServiceImplName()

OUString SwVbaFormFieldDropDown::getServiceImplName ( )

◆ getServiceNames()

uno::Sequence< OUString > SwVbaFormFieldDropDown::getServiceNames ( )

◆ getValid()

sal_Bool SwVbaFormFieldDropDown::getValid ( )

◆ getValue()

sal_Int32 SwVbaFormFieldDropDown::getValue ( )

Definition at line 56 of file vbaformfielddropdown.cxx.

References sw::mark::IDropdownFieldmark::GetContent(), getValid(), and m_pDropDown.

Referenced by getDefault(), and setValue().

◆ ListEntries()

uno::Any SwVbaFormFieldDropDown::ListEntries ( const css::uno::Any &  rIndex)

◆ setDefault()

void SwVbaFormFieldDropDown::setDefault ( sal_Int32  nSet)

Definition at line 46 of file vbaformfielddropdown.cxx.

References setValue().

◆ setValue()

void SwVbaFormFieldDropDown::setValue ( sal_Int32  nIndex)

Member Data Documentation

◆ m_pDropDown

sw::mark::IDropdownFieldmark* SwVbaFormFieldDropDown::m_pDropDown

Definition at line 22 of file vbaformfielddropdown.hxx.

Referenced by getValid(), getValue(), ListEntries(), and setValue().

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