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

#include <vbaformfieldcheckbox.hxx>

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

Public Member Functions

 SwVbaFormFieldCheckBox (const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, sw::mark::IFieldmark &rFormField)
 CheckBoxes are inline text objects that are only found in MS Word. More...
 
 ~SwVbaFormFieldCheckBox () override
 
OUString SAL_CALL getDefaultPropertyName () override
 
sal_Bool SAL_CALL getValid () override
 
sal_Bool SAL_CALL getAutoSize () override
 
void SAL_CALL setAutoSize (sal_Bool bSet) override
 
sal_Bool SAL_CALL getDefault () override
 
void SAL_CALL setDefault (sal_Bool bSet) override
 
sal_Int32 SAL_CALL getSize () override
 
void SAL_CALL setSize (sal_Int32 nSet) override
 
sal_Bool SAL_CALL getValue () override
 
void SAL_CALL setValue (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

sw::mark::ICheckboxFieldmarkm_pCheckBox
 

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

Constructor & Destructor Documentation

◆ SwVbaFormFieldCheckBox()

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

CheckBoxes 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 Checkbox, but it might not actually be one, so make good use of getValid()

Definition at line 24 of file vbaformfieldcheckbox.cxx.

◆ ~SwVbaFormFieldCheckBox()

SwVbaFormFieldCheckBox::~SwVbaFormFieldCheckBox ( )
override

Definition at line 32 of file vbaformfieldcheckbox.cxx.

Member Function Documentation

◆ getAutoSize()

sal_Bool SwVbaFormFieldCheckBox::getAutoSize ( )
override

Definition at line 43 of file vbaformfieldcheckbox.cxx.

References getValid(), and SAL_INFO.

◆ getDefault()

sal_Bool SwVbaFormFieldCheckBox::getDefault ( )
override

Definition at line 60 of file vbaformfieldcheckbox.cxx.

References getValid(), and getValue().

◆ getDefaultPropertyName()

OUString SwVbaFormFieldCheckBox::getDefaultPropertyName ( )
override

Definition at line 34 of file vbaformfieldcheckbox.cxx.

◆ getServiceImplName()

OUString SwVbaFormFieldCheckBox::getServiceImplName ( )
overridevirtual

◆ getServiceNames()

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

◆ getSize()

sal_Int32 SwVbaFormFieldCheckBox::getSize ( )
override

Definition at line 82 of file vbaformfieldcheckbox.cxx.

References getValid(), and SAL_INFO.

◆ getValid()

sal_Bool SwVbaFormFieldCheckBox::getValid ( )
override

◆ getValue()

sal_Bool SwVbaFormFieldCheckBox::getValue ( )
override

Definition at line 99 of file vbaformfieldcheckbox.cxx.

References getValid(), sw::mark::ICheckboxFieldmark::IsChecked(), and m_pCheckBox.

Referenced by getDefault(), and setValue().

◆ setAutoSize()

void SwVbaFormFieldCheckBox::setAutoSize ( sal_Bool  bSet)
override

Definition at line 52 of file vbaformfieldcheckbox.cxx.

References getValid(), and SAL_INFO.

◆ setDefault()

void SwVbaFormFieldCheckBox::setDefault ( sal_Bool  bSet)
override

Definition at line 68 of file vbaformfieldcheckbox.cxx.

References getValid(), and setValue().

◆ setSize()

void SwVbaFormFieldCheckBox::setSize ( sal_Int32  nSet)
override

Definition at line 91 of file vbaformfieldcheckbox.cxx.

References getValid(), and SAL_INFO.

◆ setValue()

void SwVbaFormFieldCheckBox::setValue ( sal_Bool  bSet)
override

Member Data Documentation

◆ m_pCheckBox

sw::mark::ICheckboxFieldmark* SwVbaFormFieldCheckBox::m_pCheckBox
private

Definition at line 22 of file vbaformfieldcheckbox.hxx.

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


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