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

#include <vbaformfield.hxx>

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

Public Member Functions

 SwVbaFormField (const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, const uno::Reference< text::XTextDocument > &xTextDocument, sw::mark::IFieldmark &rFormField)
 FormFields are inline text objects that are only found in MS Word. More...
 
 ~SwVbaFormField () override
 
OUString SAL_CALL getDefaultPropertyName () override
 
css::uno::Any SAL_CALL CheckBox () override
 
css::uno::Any SAL_CALL DropDown () override
 
css::uno::Any SAL_CALL TextInput () override
 
css::uno::Any SAL_CALL Previous () override
 
css::uno::Any SAL_CALL Next () override
 
css::uno::Reference< ooo::vba::word::XRange > SAL_CALL Range () override
 
sal_Int32 SAL_CALL getType () override
 
sal_Bool SAL_CALL getCalculateOnExit () override
 
void SAL_CALL setCalculateOnExit (sal_Bool bSet) override
 
sal_Bool SAL_CALL getEnabled () override
 
void SAL_CALL setEnabled (sal_Bool bSet) override
 
OUString SAL_CALL getEntryMacro () override
 
void SAL_CALL setEntryMacro (const OUString &rSet) override
 
OUString SAL_CALL getExitMacro () override
 
void SAL_CALL setExitMacro (const OUString &rSet) override
 
OUString SAL_CALL getHelpText () override
 
void SAL_CALL setHelpText (const OUString &rSet) override
 
sal_Bool SAL_CALL getOwnHelp () override
 
void SAL_CALL setOwnHelp (sal_Bool bSet) override
 
OUString SAL_CALL getName () override
 
void SAL_CALL setName (const OUString &rSet) override
 
OUString SAL_CALL getResult () override
 
void SAL_CALL setResult (const OUString &rSet) override
 
OUString SAL_CALL getStatusText () override
 
void SAL_CALL setStatusText (const OUString &rSet) override
 
sal_Bool SAL_CALL getOwnStatus () override
 
void SAL_CALL setOwnStatus (sal_Bool bSet) 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

css::uno::Reference< css::text::XTextDocument > m_xTextDocument
 
sw::mark::IFieldmark & m_rFormField
 

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 20 of file vbaformfield.hxx.

Constructor & Destructor Documentation

◆ SwVbaFormField()

SwVbaFormField::SwVbaFormField ( const css::uno::Reference< ooo::vba::XHelperInterface > &  rParent,
const css::uno::Reference< css::uno::XComponentContext > &  rContext,
const uno::Reference< text::XTextDocument > &  xTextDocument,
sw::mark::IFieldmark &  rFormField 
)

FormFields are inline text objects that are only found in MS Word.

Exceptions
css::uno::RuntimeException

They cannot be created in Excel or in Calc.

There are three specific kinds of FormFields: CheckBox, DropDown, and TextInput.

Definition at line 34 of file vbaformfield.cxx.

Referenced by Next(), and Previous().

◆ ~SwVbaFormField()

SwVbaFormField::~SwVbaFormField ( )
override

Definition at line 44 of file vbaformfield.cxx.

Member Function Documentation

◆ CheckBox()

uno::Any SwVbaFormField::CheckBox ( )
override

◆ DropDown()

uno::Any SwVbaFormField::DropDown ( )
override

◆ getCalculateOnExit()

sal_Bool SwVbaFormField::getCalculateOnExit ( )
override

Definition at line 147 of file vbaformfield.cxx.

References SAL_INFO.

◆ getDefaultPropertyName()

OUString SwVbaFormField::getDefaultPropertyName ( )
override

Definition at line 135 of file vbaformfield.cxx.

◆ getEnabled()

sal_Bool SwVbaFormField::getEnabled ( )
override

Definition at line 158 of file vbaformfield.cxx.

References SAL_INFO.

◆ getEntryMacro()

OUString SwVbaFormField::getEntryMacro ( )
override

Definition at line 169 of file vbaformfield.cxx.

References m_rFormField.

◆ getExitMacro()

OUString SwVbaFormField::getExitMacro ( )
override

Definition at line 181 of file vbaformfield.cxx.

References m_rFormField.

◆ getHelpText()

OUString SwVbaFormField::getHelpText ( )
override

Definition at line 193 of file vbaformfield.cxx.

References m_rFormField.

◆ getName()

OUString SwVbaFormField::getName ( )
override

Definition at line 208 of file vbaformfield.cxx.

References m_rFormField.

◆ getOwnHelp()

sal_Bool SwVbaFormField::getOwnHelp ( )
override

Definition at line 197 of file vbaformfield.cxx.

References SAL_INFO.

◆ getOwnStatus()

sal_Bool SwVbaFormField::getOwnStatus ( )
override

Definition at line 236 of file vbaformfield.cxx.

References SAL_INFO.

◆ getResult()

OUString SwVbaFormField::getResult ( )
override

Definition at line 215 of file vbaformfield.cxx.

References m_rFormField.

◆ getServiceImplName()

OUString SwVbaFormField::getServiceImplName ( )
overridevirtual

◆ getServiceNames()

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

◆ getStatusText()

OUString SwVbaFormField::getStatusText ( )
override

Definition at line 225 of file vbaformfield.cxx.

References SAL_INFO.

◆ getType()

sal_Int32 SwVbaFormField::getType ( )
override

◆ Next()

uno::Any SwVbaFormField::Next ( void  )
override

◆ Previous()

uno::Any SwVbaFormField::Previous ( )
override

◆ Range()

uno::Reference< word::XRange > SwVbaFormField::Range ( )
override

◆ setCalculateOnExit()

void SwVbaFormField::setCalculateOnExit ( sal_Bool  bSet)
override

Definition at line 153 of file vbaformfield.cxx.

References SAL_INFO.

◆ setEnabled()

void SwVbaFormField::setEnabled ( sal_Bool  bSet)
override

Definition at line 164 of file vbaformfield.cxx.

References SAL_INFO.

◆ setEntryMacro()

void SwVbaFormField::setEntryMacro ( const OUString &  rSet)
override

Definition at line 176 of file vbaformfield.cxx.

References m_rFormField, and rSet.

◆ setExitMacro()

void SwVbaFormField::setExitMacro ( const OUString &  rSet)
override

Definition at line 188 of file vbaformfield.cxx.

References m_rFormField, and rSet.

◆ setHelpText()

void SwVbaFormField::setHelpText ( const OUString &  rSet)
override

Definition at line 195 of file vbaformfield.cxx.

References m_rFormField, and rSet.

◆ setName()

void SwVbaFormField::setName ( const OUString &  rSet)
override

Definition at line 210 of file vbaformfield.cxx.

References rSet, and SAL_INFO.

◆ setOwnHelp()

void SwVbaFormField::setOwnHelp ( sal_Bool  bSet)
override

Definition at line 203 of file vbaformfield.cxx.

References SAL_INFO.

◆ setOwnStatus()

void SwVbaFormField::setOwnStatus ( sal_Bool  bSet)
override

Definition at line 242 of file vbaformfield.cxx.

References SAL_INFO.

◆ setResult()

void SwVbaFormField::setResult ( const OUString &  rSet)
override

Definition at line 217 of file vbaformfield.cxx.

References m_rFormField, and rSet.

◆ setStatusText()

void SwVbaFormField::setStatusText ( const OUString &  rSet)
override

Definition at line 231 of file vbaformfield.cxx.

References rSet, and SAL_INFO.

◆ TextInput()

uno::Any SwVbaFormField::TextInput ( )
override

Member Data Documentation

◆ m_rFormField

sw::mark::IFieldmark& SwVbaFormField::m_rFormField
private

◆ m_xTextDocument

css::uno::Reference<css::text::XTextDocument> SwVbaFormField::m_xTextDocument
private

Definition at line 23 of file vbaformfield.hxx.

Referenced by Next(), Previous(), and Range().


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