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

#include <vbaformfieldtextinput.hxx>

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

Public Member Functions

 SwVbaFormFieldTextInput (const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, sw::mark::IFieldmark &rFormField)
 TextInput formfields are inline text objects that are only found in MS Word. More...
 
 ~SwVbaFormFieldTextInput () override
 
OUString SAL_CALL getDefaultPropertyName () override
 
sal_Bool SAL_CALL getValid () override
 
OUString SAL_CALL getDefault () override
 
void SAL_CALL setDefault (const OUString &bSet) override
 
OUString SAL_CALL getFormat () override
 
sal_Int32 SAL_CALL getType () override
 
sal_Int32 SAL_CALL getWidth () override
 
void SAL_CALL setWidth (sal_Int32 nSet) override
 
void SAL_CALL Clear () override
 
void SAL_CALL EditType (sal_Int32 nType, const css::uno::Any &rDefault, const css::uno::Any &rFormat, const css::uno::Any &rEnabled) 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

sw::mark::IFieldmark & m_rTextInput
 

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 vbaformfieldtextinput.hxx.

Constructor & Destructor Documentation

◆ SwVbaFormFieldTextInput()

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

TextInput 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.

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

Definition at line 26 of file vbaformfieldtextinput.cxx.

◆ ~SwVbaFormFieldTextInput()

SwVbaFormFieldTextInput::~SwVbaFormFieldTextInput ( )
override

Definition at line 34 of file vbaformfieldtextinput.cxx.

Member Function Documentation

◆ Clear()

void SwVbaFormFieldTextInput::Clear ( )
override

Definition at line 100 of file vbaformfieldtextinput.cxx.

References getValid(), and m_rTextInput.

◆ EditType()

void SwVbaFormFieldTextInput::EditType ( sal_Int32  nType,
const css::uno::Any &  rDefault,
const css::uno::Any &  rFormat,
const css::uno::Any &  rEnabled 
)
override

Definition at line 108 of file vbaformfieldtextinput.cxx.

References nType, and SAL_INFO.

◆ getDefault()

OUString SwVbaFormFieldTextInput::getDefault ( )
override

Definition at line 44 of file vbaformfieldtextinput.cxx.

References getValid(), and m_rTextInput.

Referenced by setDefault().

◆ getDefaultPropertyName()

OUString SwVbaFormFieldTextInput::getDefaultPropertyName ( )
override

Definition at line 36 of file vbaformfieldtextinput.cxx.

◆ getFormat()

OUString SwVbaFormFieldTextInput::getFormat ( )
override

Definition at line 65 of file vbaformfieldtextinput.cxx.

References getValid(), and SAL_INFO.

◆ getServiceImplName()

OUString SwVbaFormFieldTextInput::getServiceImplName ( )
overridevirtual

◆ getServiceNames()

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

◆ getType()

sal_Int32 SwVbaFormFieldTextInput::getType ( )
override

Definition at line 74 of file vbaformfieldtextinput.cxx.

References getValid(), and SAL_INFO.

◆ getValid()

sal_Bool SwVbaFormFieldTextInput::getValid ( )
override

◆ getWidth()

sal_Int32 SwVbaFormFieldTextInput::getWidth ( )
override

Definition at line 83 of file vbaformfieldtextinput.cxx.

References getValid(), and SAL_INFO.

◆ setDefault()

void SwVbaFormFieldTextInput::setDefault ( const OUString &  bSet)
override

Definition at line 52 of file vbaformfieldtextinput.cxx.

References getDefault(), getValid(), and m_rTextInput.

◆ setWidth()

void SwVbaFormFieldTextInput::setWidth ( sal_Int32  nSet)
override

Definition at line 92 of file vbaformfieldtextinput.cxx.

References getValid(), and SAL_INFO.

Member Data Documentation

◆ m_rTextInput

sw::mark::IFieldmark& SwVbaFormFieldTextInput::m_rTextInput
private

Definition at line 22 of file vbaformfieldtextinput.hxx.

Referenced by Clear(), getDefault(), getValid(), and setDefault().


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