LibreOffice Module sw (master) 1
Public Member Functions | List of all members
sw::mark::CheckboxFieldmark Class Referencefinal

Fieldmark representing a checkbox form field. More...

#include <bookmark.hxx>

Inheritance diagram for sw::mark::CheckboxFieldmark:
[legend]
Collaboration diagram for sw::mark::CheckboxFieldmark:
[legend]

Public Member Functions

 CheckboxFieldmark (const SwPaM &rPaM, const OUString &rName)
 
bool IsChecked () const override
 
void SetChecked (bool checked) override
 
OUString GetContent () const override
 
void ReplaceContent (const OUString &sNewContent) override
 
virtual bool IsChecked () const =0
 
virtual void SetChecked (bool checked)=0
 
- Public Member Functions inherited from sw::mark::NonTextFieldmark
 NonTextFieldmark (const SwPaM &rPaM)
 
void InitDoc (SwDoc &io_rDoc, sw::mark::InsertMode eMode, SwPosition const *pSepPos) override
 
void ReleaseDoc (SwDoc &rDoc) override
 
- Public Member Functions inherited from sw::mark::Fieldmark
 Fieldmark (const SwPaM &rPaM)
 
OUString GetFieldname () const override
 
OUString GetFieldHelptext () const override
 
IFieldmark::parameter_map_t * GetParameters () override
 
const IFieldmark::parameter_map_t * GetParameters () const override
 
void SetFieldname (const OUString &aFieldname) override
 
void SetFieldHelptext (const OUString &aFieldHelptext) override
 
virtual void ReleaseDoc (SwDoc &)=0
 
void SetMarkStartPos (const SwPosition &rNewStartPos)
 
void Invalidate () override
 
OUString ToString () const override
 
void dumpAsXml (xmlTextWriterPtr pWriter) const override
 
- Public Member Functions inherited from sw::mark::MarkBase
SwPositionGetMarkPos () const override
 
const OUString & GetName () const override
 
SwPositionGetOtherMarkPos () const override
 
SwPositionGetMarkStart () const override
 
SwPositionGetMarkEnd () const override
 
bool IsCoveringPosition (const SwPosition &rPos) const override
 
bool IsExpanded () const override
 
void SetName (const OUString &rName)
 
virtual void SetMarkPos (const SwPosition &rNewPos)
 
virtual void SetOtherMarkPos (const SwPosition &rNewPos)
 
virtual void ClearOtherMarkPos ()
 
virtual auto InvalidateFrames () -> void
 
OUString ToString () const override
 
void dumpAsXml (xmlTextWriterPtr pWriter) const override
 
void Swap ()
 
virtual void InitDoc (SwDoc &, sw::mark::InsertMode, SwPosition const *)
 
 ~MarkBase () override
 
const unotools::WeakReference< SwXBookmark > & GetXBookmark () const
 
void SetXBookmark (rtl::Reference< SwXBookmark > const &xBkmk)
 
virtual const SwPositionGetMarkPos () const =0
 
virtual const SwPositionGetOtherMarkPos () const =0
 
virtual const SwPositionGetMarkStart () const =0
 
virtual const SwPositionGetMarkEnd () const =0
 
virtual const OUString & GetName () const =0
 
virtual bool IsExpanded () const =0
 
virtual bool IsCoveringPosition (const SwPosition &rPos) const =0
 
virtual OUString ToString () const =0
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const =0
 

Additional Inherited Members

- Protected Member Functions inherited from sw::mark::ICheckboxFieldmark
 ICheckboxFieldmark ()=default
 
- Protected Member Functions inherited from sw::mark::MarkBase
void SwClientNotify (const SwModify &, const SfxHint &) override
 
 MarkBase (const SwPaM &rPaM, OUString aName)
 
- Protected Member Functions inherited from sw::mark::IMark
 IMark ()=default
 
- Static Protected Member Functions inherited from sw::mark::MarkBase
static OUString GenerateNewName (std::u16string_view rPrefix)
 
- Protected Attributes inherited from sw::mark::MarkBase
std::optional< SwPositionm_oPos1
 
std::optional< SwPositionm_oPos2
 
OUString m_aName
 
unotools::WeakReference< SwXBookmarkm_wXBookmark
 

Detailed Description

Fieldmark representing a checkbox form field.

Definition at line 265 of file core/inc/bookmark.hxx.

Constructor & Destructor Documentation

◆ CheckboxFieldmark()

sw::mark::CheckboxFieldmark::CheckboxFieldmark ( const SwPaM rPaM,
const OUString &  rName 
)

Definition at line 707 of file core/crsr/bookmark.cxx.

References sw::mark::MarkBase::m_aName.

Member Function Documentation

◆ GetContent()

OUString sw::mark::CheckboxFieldmark::GetContent ( ) const
override

Definition at line 734 of file core/crsr/bookmark.cxx.

References IsChecked().

◆ IsChecked()

bool sw::mark::CheckboxFieldmark::IsChecked ( ) const
overridevirtual

◆ ReplaceContent()

void sw::mark::CheckboxFieldmark::ReplaceContent ( const OUString &  sNewContent)
override

Definition at line 739 of file core/crsr/bookmark.cxx.

References sw::mark::Fieldmark::Invalidate(), and SetChecked().

◆ SetChecked()

void sw::mark::CheckboxFieldmark::SetChecked ( bool  checked)
overridevirtual

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