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

Fieldmark representing a date form field. More...

#include <bookmark.hxx>

Inheritance diagram for sw::mark::DateFieldmark:
Collaboration diagram for sw::mark::DateFieldmark:

Public Member Functions

 DateFieldmark (const SwPaM &rPaM)
 ~DateFieldmark () override
void InitDoc (SwDoc &io_rDoc, sw::mark::InsertMode eMode, SwPosition const *pSepPos) override
void ReleaseDoc (SwDoc &rDoc) override
void ShowButton (SwEditWin *pEditWin) override
void SetPortionPaintAreaStart (const SwRect &rPortionPaintArea)
void SetPortionPaintAreaEnd (const SwRect &rPortionPaintArea)
OUString GetContent () const override
void ReplaceContent (const OUString &sNewContent) override
std::pair< bool, double > GetCurrentDate () const override
void SetCurrentDate (double fDate) override
OUString GetDateInStandardDateFormat (double fDate) const override
virtual OUString GetContent () const override=0
virtual void ReplaceContent (const OUString &sNewContent) override=0
virtual std::pair< bool, double > GetCurrentDate () const =0
virtual void SetCurrentDate (double fDate)=0
virtual OUString GetDateInStandardDateFormat (double fDate) const =0
- Public Member Functions inherited from sw::mark::FieldmarkWithDropDownButton
 FieldmarkWithDropDownButton (const SwPaM &rPaM)
 ~FieldmarkWithDropDownButton () override
virtual void ShowButton (SwEditWin *pEditWin)=0
virtual void RemoveButton ()
void LaunchPopup ()
- 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

Private Member Functions

OUString GetDateInCurrentDateFormat (double fDate) const
std::pair< bool, double > ParseCurrentDateParam () const
void InvalidateCurrentDateParam ()

Private Attributes

SwRect m_aPaintAreaStart
SwRect m_aPaintAreaEnd

Additional Inherited Members

- Protected Member Functions inherited from sw::mark::IDateFieldmark
 IDateFieldmark ()=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::FieldmarkWithDropDownButton
VclPtr< FormFieldButtonm_pButton
- 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 date form field.

TODO: this was an SDT in DOCX, which is modelled suboptimally here as a fieldmark; as it cannot contain paragraph breaks, must be well-formed XML element, and does not have field separator, it should be a nesting text attribute similar to SwTextMeta.

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

Constructor & Destructor Documentation

◆ DateFieldmark()

sw::mark::DateFieldmark::DateFieldmark ( const SwPaM rPaM)

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

◆ ~DateFieldmark()

sw::mark::DateFieldmark::~DateFieldmark ( )

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

Member Function Documentation

◆ GetContent()

OUString sw::mark::DateFieldmark::GetContent ( ) const

◆ GetCurrentDate()

std::pair< bool, double > sw::mark::DateFieldmark::GetCurrentDate ( ) const

◆ GetDateInCurrentDateFormat()

OUString sw::mark::DateFieldmark::GetDateInCurrentDateFormat ( double  fDate) const

◆ GetDateInStandardDateFormat()

OUString sw::mark::DateFieldmark::GetDateInStandardDateFormat ( double  fDate) const

◆ InitDoc()

void sw::mark::DateFieldmark::InitDoc ( SwDoc io_rDoc,
sw::mark::InsertMode  eMode,
SwPosition const *  pSepPos 

◆ InvalidateCurrentDateParam()

void sw::mark::DateFieldmark::InvalidateCurrentDateParam ( )

◆ ParseCurrentDateParam()

std::pair< bool, double > sw::mark::DateFieldmark::ParseCurrentDateParam ( ) const

◆ ReleaseDoc()

void sw::mark::DateFieldmark::ReleaseDoc ( SwDoc rDoc)

◆ ReplaceContent()

void sw::mark::DateFieldmark::ReplaceContent ( const OUString &  sNewContent)

◆ SetCurrentDate()

void sw::mark::DateFieldmark::SetCurrentDate ( double  fDate)

◆ SetPortionPaintAreaEnd()

void sw::mark::DateFieldmark::SetPortionPaintAreaEnd ( const SwRect rPortionPaintArea)

◆ SetPortionPaintAreaStart()

void sw::mark::DateFieldmark::SetPortionPaintAreaStart ( const SwRect rPortionPaintArea)

◆ ShowButton()

void sw::mark::DateFieldmark::ShowButton ( SwEditWin pEditWin)

Member Data Documentation

◆ m_aPaintAreaEnd

SwRect sw::mark::DateFieldmark::m_aPaintAreaEnd

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

Referenced by SetPortionPaintAreaEnd(), and ShowButton().

◆ m_aPaintAreaStart

SwRect sw::mark::DateFieldmark::m_aPaintAreaStart

◆ m_pDocumentContentOperationsManager

sw::DocumentContentOperationsManager* sw::mark::DateFieldmark::m_pDocumentContentOperationsManager

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

Referenced by InitDoc(), and ReplaceContent().

◆ m_pNumberFormatter

SvNumberFormatter* sw::mark::DateFieldmark::m_pNumberFormatter

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