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

#include <vbacontentcontrol.hxx>

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

Public Member Functions

 SwVbaContentControl (const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, const css::uno::Reference< css::text::XTextDocument > &xTextDocument, std::shared_ptr< SwContentControl > pContentControl)
 Content controls are the modern version of FormFields, providing inline functionality similar to that of ActiveX form controls. More...
 
 ~SwVbaContentControl () override
 
sal_Bool SAL_CALL getAllowInsertDeleteSection () override
 
void SAL_CALL setAllowInsertDeleteSection (sal_Bool bSet) override
 
sal_Int32 SAL_CALL getAppearance () override
 
void SAL_CALL setAppearance (sal_Int32 nSet) override
 
OUString SAL_CALL getBuildingBlockCategory () override
 
void SAL_CALL setBuildingBlockCategory (const OUString &sSet) override
 
sal_Int32 SAL_CALL getBuildingBlockType () override
 
void SAL_CALL setBuildingBlockType (sal_Int32 nSet) override
 
sal_Bool SAL_CALL getChecked () override
 
void SAL_CALL setChecked (sal_Bool bSet) override
 
sal_Int32 SAL_CALL getColor () override
 
void SAL_CALL setColor (sal_Int32 nSet) override
 
sal_Int32 SAL_CALL getDateCalendarType () override
 
void SAL_CALL setDateCalendarType (sal_Int32 nSet) override
 
OUString SAL_CALL getDateDisplayFormat () override
 
void SAL_CALL setDateDisplayFormat (const OUString &sSet) override
 
sal_Int32 SAL_CALL getDateDisplayLocale () override
 
sal_Int32 SAL_CALL getDateStorageFormat () override
 
void SAL_CALL setDateStorageFormat (sal_Int32 nSet) override
 
css::uno::Any SAL_CALL getDropdownListEntries () override
 
OUString SAL_CALL getID () override
 
sal_Int32 SAL_CALL getLevel () override
 
sal_Bool SAL_CALL getLockContentControl () override
 
void SAL_CALL setLockContentControl (sal_Bool bSet) override
 
sal_Bool SAL_CALL getLockContents () override
 
void SAL_CALL setLockContents (sal_Bool bSet) override
 
sal_Bool SAL_CALL getMultiLine () override
 
void SAL_CALL setMultiLine (sal_Bool bSet) override
 
OUString SAL_CALL getPlaceholderText () override
 
sal_Bool SAL_CALL getShowingPlaceholderText () override
 
OUString SAL_CALL getRepeatingSectionItemTitle () override
 
void SAL_CALL setRepeatingSectionItemTitle (const OUString &rSet) override
 
css::uno::Reference< ooo::vba::word::XRange > SAL_CALL getRange () override
 
OUString SAL_CALL getTag () override
 
void SAL_CALL setTag (const OUString &rSet) override
 
sal_Bool SAL_CALL getTemporary () override
 
void SAL_CALL setTemporary (sal_Bool bSet) override
 
OUString SAL_CALL getTitle () override
 
void SAL_CALL setTitle (const OUString &rSet) override
 
sal_Int32 SAL_CALL getType () override
 
void SAL_CALL setType (sal_Int32 nSet) override
 
void SAL_CALL Copy () override
 
void SAL_CALL Cut () override
 
void SAL_CALL Delete (const css::uno::Any &bDeleteContents) override
 
void SAL_CALL SetCheckedSymbol (sal_Int32 Character, const css::uno::Any &sFont) override
 
void SAL_CALL SetUnCheckedSymbol (sal_Int32 Character, const css::uno::Any &sFont) override
 
void SAL_CALL SetPlaceholderText (const css::uno::Any &BuildingBlock, const css::uno::Any &Range, const css::uno::Any &sText) override
 
void SAL_CALL Ungroup () 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 > mxTextDocument
 
std::shared_ptr< SwContentControlm_pCC
 

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

Constructor & Destructor Documentation

◆ SwVbaContentControl()

SwVbaContentControl::SwVbaContentControl ( const css::uno::Reference< ooo::vba::XHelperInterface > &  rParent,
const css::uno::Reference< css::uno::XComponentContext > &  rContext,
const css::uno::Reference< css::text::XTextDocument > &  xTextDocument,
std::shared_ptr< SwContentControl pContentControl 
)

Content controls are the modern version of FormFields, providing inline functionality similar to that of ActiveX form controls.

Exceptions
css::uno::RuntimeException

Individual content controls may contain contents such as dates, lists, or paragraphs of formatted text.

Not all functions are applicable to each type of control, so use getType verification liberally.

Definition at line 34 of file vbacontentcontrol.cxx.

References m_pCC.

◆ ~SwVbaContentControl()

SwVbaContentControl::~SwVbaContentControl ( )
override

Definition at line 45 of file vbacontentcontrol.cxx.

Member Function Documentation

◆ Copy()

void SwVbaContentControl::Copy ( )
override

Definition at line 659 of file vbacontentcontrol.cxx.

References getID(), and SAL_INFO.

◆ Cut()

void SwVbaContentControl::Cut ( )
override

Definition at line 664 of file vbacontentcontrol.cxx.

References getID(), getLockContentControl(), getLockContents(), m_pCC, and SAL_INFO.

◆ Delete()

void SwVbaContentControl::Delete ( const css::uno::Any &  bDeleteContents)
override

Definition at line 675 of file vbacontentcontrol.cxx.

References getLockContentControl(), getLockContents(), and m_pCC.

◆ getAllowInsertDeleteSection()

sal_Bool SwVbaContentControl::getAllowInsertDeleteSection ( )
override

Definition at line 47 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ getAppearance()

sal_Int32 SwVbaContentControl::getAppearance ( )
override

Definition at line 58 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ getBuildingBlockCategory()

OUString SwVbaContentControl::getBuildingBlockCategory ( )
override

Definition at line 70 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ getBuildingBlockType()

sal_Int32 SwVbaContentControl::getBuildingBlockType ( )
override

Definition at line 81 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ getChecked()

sal_Bool SwVbaContentControl::getChecked ( )
override

Definition at line 93 of file vbacontentcontrol.cxx.

References m_pCC.

◆ getColor()

sal_Int32 SwVbaContentControl::getColor ( )
override

Definition at line 113 of file vbacontentcontrol.cxx.

References m_pCC, and sColor.

◆ getDateCalendarType()

sal_Int32 SwVbaContentControl::getDateCalendarType ( )
override

Definition at line 424 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ getDateDisplayFormat()

OUString SwVbaContentControl::getDateDisplayFormat ( )
override

Definition at line 436 of file vbacontentcontrol.cxx.

References m_pCC.

◆ getDateDisplayLocale()

sal_Int32 SwVbaContentControl::getDateDisplayLocale ( )
override

Definition at line 452 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ getDateStorageFormat()

sal_Int32 SwVbaContentControl::getDateStorageFormat ( )
override

Definition at line 440 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ getDropdownListEntries()

uno::Any SwVbaContentControl::getDropdownListEntries ( )
override

◆ getID()

OUString SwVbaContentControl::getID ( )
override

Definition at line 468 of file vbacontentcontrol.cxx.

References m_pCC.

Referenced by Copy(), and Cut().

◆ getLevel()

sal_Int32 SwVbaContentControl::getLevel ( )
override

Definition at line 474 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ getLockContentControl()

sal_Bool SwVbaContentControl::getLockContentControl ( )
override

Definition at line 481 of file vbacontentcontrol.cxx.

References m_pCC.

Referenced by Cut(), and Delete().

◆ getLockContents()

sal_Bool SwVbaContentControl::getLockContents ( )
override

Definition at line 493 of file vbacontentcontrol.cxx.

References CHECKBOX, DROP_DOWN_LIST, m_pCC, and PICTURE.

Referenced by Cut(), Delete(), setChecked(), and SetPlaceholderText().

◆ getMultiLine()

sal_Bool SwVbaContentControl::getMultiLine ( )
override

Definition at line 528 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ getPlaceholderText()

OUString SwVbaContentControl::getPlaceholderText ( )
override

Definition at line 539 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ getRange()

uno::Reference< word::XRange > SwVbaContentControl::getRange ( )
override

◆ getRepeatingSectionItemTitle()

OUString SwVbaContentControl::getRepeatingSectionItemTitle ( )
override

Definition at line 567 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ getServiceImplName()

OUString SwVbaContentControl::getServiceImplName ( )
overridevirtual

◆ getServiceNames()

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

◆ getShowingPlaceholderText()

sal_Bool SwVbaContentControl::getShowingPlaceholderText ( )
override

Definition at line 546 of file vbacontentcontrol.cxx.

References m_pCC.

◆ getTag()

OUString SwVbaContentControl::getTag ( )
override

Definition at line 578 of file vbacontentcontrol.cxx.

References m_pCC.

◆ getTemporary()

sal_Bool SwVbaContentControl::getTemporary ( )
override

Definition at line 582 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ getTitle()

OUString SwVbaContentControl::getTitle ( )
override

Definition at line 594 of file vbacontentcontrol.cxx.

References m_pCC.

◆ getType()

sal_Int32 SwVbaContentControl::getType ( )
override

Definition at line 598 of file vbacontentcontrol.cxx.

References CHECKBOX, COMBO_BOX, DATE, DROP_DOWN_LIST, eType, m_pCC, PICTURE, PLAIN_TEXT, and RICH_TEXT.

◆ setAllowInsertDeleteSection()

void SwVbaContentControl::setAllowInsertDeleteSection ( sal_Bool  bSet)
override

Definition at line 53 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ setAppearance()

void SwVbaContentControl::setAppearance ( sal_Int32  nSet)
override

Definition at line 65 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ setBuildingBlockCategory()

void SwVbaContentControl::setBuildingBlockCategory ( const OUString &  sSet)
override

Definition at line 76 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ setBuildingBlockType()

void SwVbaContentControl::setBuildingBlockType ( sal_Int32  nSet)
override

Definition at line 88 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ setChecked()

void SwVbaContentControl::setChecked ( sal_Bool  bSet)
override

Definition at line 95 of file vbacontentcontrol.cxx.

References getLockContents(), and m_pCC.

◆ SetCheckedSymbol()

void SwVbaContentControl::SetCheckedSymbol ( sal_Int32  Character,
const css::uno::Any &  sFont 
)
override

Definition at line 686 of file vbacontentcontrol.cxx.

References Character, Font, m_pCC, SAL_INFO_IF, and SAL_MAX_UINT16.

◆ setColor()

void SwVbaContentControl::setColor ( sal_Int32  nSet)
override

Definition at line 239 of file vbacontentcontrol.cxx.

References m_pCC.

◆ setDateCalendarType()

void SwVbaContentControl::setDateCalendarType ( sal_Int32  nSet)
override

Definition at line 431 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ setDateDisplayFormat()

void SwVbaContentControl::setDateDisplayFormat ( const OUString &  sSet)
override

Definition at line 438 of file vbacontentcontrol.cxx.

References m_pCC.

◆ setDateStorageFormat()

void SwVbaContentControl::setDateStorageFormat ( sal_Int32  nSet)
override

Definition at line 447 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ setLockContentControl()

void SwVbaContentControl::setLockContentControl ( sal_Bool  bSet)
override

Definition at line 487 of file vbacontentcontrol.cxx.

References m_pCC.

◆ setLockContents()

void SwVbaContentControl::setLockContents ( sal_Bool  bSet)
override

Definition at line 512 of file vbacontentcontrol.cxx.

References CHECKBOX, DROP_DOWN_LIST, m_pCC, and PICTURE.

◆ setMultiLine()

void SwVbaContentControl::setMultiLine ( sal_Bool  bSet)
override

Definition at line 534 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ SetPlaceholderText()

void SwVbaContentControl::SetPlaceholderText ( const css::uno::Any &  BuildingBlock,
const css::uno::Any &  Range,
const css::uno::Any &  sText 
)
override

Definition at line 716 of file vbacontentcontrol.cxx.

References getLockContents(), uno::Any::hasValue(), m_pCC, SAL_INFO, and Text.

◆ setRepeatingSectionItemTitle()

void SwVbaContentControl::setRepeatingSectionItemTitle ( const OUString &  rSet)
override

Definition at line 573 of file vbacontentcontrol.cxx.

References rSet, and SAL_INFO.

◆ setTag()

void SwVbaContentControl::setTag ( const OUString &  rSet)
override

Definition at line 580 of file vbacontentcontrol.cxx.

References m_pCC, and rSet.

◆ setTemporary()

void SwVbaContentControl::setTemporary ( sal_Bool  bSet)
override

Definition at line 589 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ setTitle()

void SwVbaContentControl::setTitle ( const OUString &  rSet)
override

Definition at line 596 of file vbacontentcontrol.cxx.

References m_pCC, and rSet.

◆ setType()

void SwVbaContentControl::setType ( sal_Int32  nSet)
override

Definition at line 629 of file vbacontentcontrol.cxx.

References SAL_INFO.

◆ SetUnCheckedSymbol()

void SwVbaContentControl::SetUnCheckedSymbol ( sal_Int32  Character,
const css::uno::Any &  sFont 
)
override

Definition at line 701 of file vbacontentcontrol.cxx.

References Character, Font, m_pCC, SAL_INFO_IF, and SAL_MAX_UINT16.

◆ Ungroup()

void SwVbaContentControl::Ungroup ( )
override

Definition at line 743 of file vbacontentcontrol.cxx.

References SAL_INFO.

Member Data Documentation

◆ m_pCC

std::shared_ptr<SwContentControl> SwVbaContentControl::m_pCC
private

◆ mxTextDocument

css::uno::Reference<css::text::XTextDocument> SwVbaContentControl::mxTextDocument
private

Definition at line 23 of file vbacontentcontrol.hxx.

Referenced by getRange().


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