LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwXFieldmark Class Referencefinal

UNO wrapper around an sw::mark::IFieldmark. More...

#include <unobookmark.hxx>

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

Public Member Functions

virtual void attachToRange (const css::uno::Reference< css::text::XTextRange > &xTextRange) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL setPropertyValue (const OUString &rPropertyName, const css::uno::Any &rValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &rPropertyName) override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
virtual void SAL_CALL attach (const css::uno::Reference< css::text::XTextRange > &xTextRange) override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getAnchor () override
 
virtual OUString SAL_CALL getPresentation (sal_Bool bShowCommand) override
 
virtual OUString SAL_CALL getFieldType () override
 
virtual void SAL_CALL setFieldType (const OUString &description) override
 
virtual css::uno::Reference< css::container::XNameContainer > SAL_CALL getParameters () override
 

Static Public Member Functions

static rtl::Reference< SwXBookmarkCreateXFieldmark (SwDoc &rDoc, ::sw::mark::IMark *pMark, bool isReplacementObject=false)
 

Private Member Functions

::sw::mark::ICheckboxFieldmarkgetCheckboxFieldmark ()
 
rtl::Reference< SwXTextRangeGetCommand (::sw::mark::IFieldmark const &rMark)
 
rtl::Reference< SwXTextRangeGetResult (::sw::mark::IFieldmark const &rMark)
 
 SwXFieldmark (bool isReplacementObject, SwDoc *pDoc)
 

Private Attributes

bool const m_bReplacementObject
 
bool m_isFieldmarkSeparatorAtStart = false
 

Detailed Description

UNO wrapper around an sw::mark::IFieldmark.

Definition at line 182 of file unobookmark.hxx.

Constructor & Destructor Documentation

◆ SwXFieldmark()

SwXFieldmark::SwXFieldmark ( bool  isReplacementObject,
SwDoc pDoc 
)
private

Definition at line 582 of file unobkm.cxx.

Referenced by CreateXFieldmark().

Member Function Documentation

◆ addEventListener()

void SAL_CALL SwXFieldmark::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual

Definition at line 782 of file unobkm.cxx.

References SwXBookmark::addEventListener().

◆ attach()

void SAL_CALL SwXFieldmark::attach ( const css::uno::Reference< css::text::XTextRange > &  xTextRange)
overridevirtual

Definition at line 794 of file unobkm.cxx.

References SwXBookmark::attach().

◆ attachToRange()

void SwXFieldmark::attachToRange ( const css::uno::Reference< css::text::XTextRange > &  xTextRange)
overridevirtual

◆ CreateXFieldmark()

rtl::Reference< SwXBookmark > SwXFieldmark::CreateXFieldmark ( SwDoc rDoc,
::sw::mark::IMark pMark,
bool  isReplacementObject = false 
)
static

◆ dispose()

void SAL_CALL SwXFieldmark::dispose ( void  )
overridevirtual

Definition at line 778 of file unobkm.cxx.

References SwXBookmark::dispose().

◆ getAnchor()

uno::Reference< text::XTextRange > SAL_CALL SwXFieldmark::getAnchor ( )
overridevirtual

Definition at line 800 of file unobkm.cxx.

References SwXBookmark::getAnchor().

◆ getCheckboxFieldmark()

sw::mark::ICheckboxFieldmark * SwXFieldmark::getCheckboxFieldmark ( )
private

Definition at line 708 of file unobkm.cxx.

References getFieldType(), and ODF_FORMCHECKBOX.

Referenced by getPropertyValue(), and setPropertyValue().

◆ GetCommand()

rtl::Reference< SwXTextRange > SwXFieldmark::GetCommand ( ::sw::mark::IFieldmark const &  rMark)
private

Definition at line 806 of file unobkm.cxx.

References SwXTextRange::CreateXTextRange(), sw::mark::FindFieldSep(), and start.

Referenced by getPresentation().

◆ getFieldType()

OUString SwXFieldmark::getFieldType ( )
overridevirtual

Definition at line 620 of file unobkm.cxx.

Referenced by getCheckboxFieldmark(), getPresentation(), and setFieldType().

◆ getImplementationName()

OUString SAL_CALL SwXFieldmark::getImplementationName ( )
overridevirtual

Definition at line 589 of file unobkm.cxx.

◆ getParameters()

uno::Reference< container::XNameContainer > SwXFieldmark::getParameters ( )
overridevirtual

Definition at line 664 of file unobkm.cxx.

◆ getPresentation()

OUString SAL_CALL SwXFieldmark::getPresentation ( sal_Bool  bShowCommand)
overridevirtual

◆ getPropertySetInfo()

uno::Reference< beans::XPropertySetInfo > SAL_CALL SwXFieldmark::getPropertySetInfo ( )
overridevirtual

◆ getPropertyValue()

uno::Any SAL_CALL SwXFieldmark::getPropertyValue ( const OUString &  rPropertyName)
overridevirtual

◆ GetResult()

rtl::Reference< SwXTextRange > SwXFieldmark::GetResult ( ::sw::mark::IFieldmark const &  rMark)
private

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL SwXFieldmark::getSupportedServiceNames ( )
overridevirtual

Definition at line 595 of file unobkm.cxx.

References m_bReplacementObject.

◆ removeEventListener()

void SAL_CALL SwXFieldmark::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual

Definition at line 787 of file unobkm.cxx.

References SwXBookmark::removeEventListener().

◆ setFieldType()

void SwXFieldmark::setFieldType ( const OUString &  description)
overridevirtual

◆ setPropertyValue()

void SAL_CALL SwXFieldmark::setPropertyValue ( const OUString &  rPropertyName,
const css::uno::Any &  rValue 
)
overridevirtual

Member Data Documentation

◆ m_bReplacementObject

bool const SwXFieldmark::m_bReplacementObject
private

◆ m_isFieldmarkSeparatorAtStart

bool SwXFieldmark::m_isFieldmarkSeparatorAtStart = false
private

Definition at line 187 of file unobookmark.hxx.

Referenced by attachToRange(), and setPropertyValue().


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