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)
virtual ~DateFieldmark () override
virtual void InitDoc (SwDoc &io_rDoc, sw::mark::InsertMode eMode, SwPosition const *pSepPos) override
virtual void ReleaseDoc (SwDoc &rDoc) override
virtual void ShowButton (SwEditWin *pEditWin) override
void SetPortionPaintAreaStart (const SwRect &rPortionPaintArea)
void SetPortionPaintAreaEnd (const SwRect &rPortionPaintArea)
virtual OUString GetContent () const override
virtual void ReplaceContent (const OUString &sNewContent) override
virtual std::pair< bool, double > GetCurrentDate () const override
virtual void SetCurrentDate (double fDate) override
virtual OUString GetDateInStandardDateFormat (double fDate) const override
- Public Member Functions inherited from sw::BroadcastingModify
virtual void CallSwClientNotify (const SfxHint &rHint) const override
- Public Member Functions inherited from SwModify
 SwModify ()
virtual ~SwModify () override
void Add (SwClient *pDepend)
SwClientRemove (SwClient *pDepend)
bool HasWriterListeners () const
bool HasOnlyOneListener () const
virtual bool GetInfo (SfxPoolItem &) const override
void LockModify ()
void UnlockModify ()
bool IsModifyLocked () const
- Public Member Functions inherited from SwClient
 SwClient ()
 SwClient (SwClient &&) noexcept
virtual ~SwClient () override
std::optional< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
void CheckRegistrationFormat (SwFormat &rOld)
const SwModifyGetRegisteredIn () const
SwModifyGetRegisteredIn ()
void EndListeningAll ()
void StartListeningToSameModifyAs (const SwClient &)
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
virtual const SwCellFrameDynCastCellFrame () const
virtual const SwTabFrameDynCastTabFrame () const
virtual const SwRowFrameDynCastRowFrame () const
- Public Member Functions inherited from sw::BroadcasterMixin
 BroadcasterMixin ()=default
 BroadcasterMixin (BroadcasterMixin const &)=default
BroadcasterMixinoperator= (const BroadcasterMixin &)
SvtBroadcasterGetNotifier ()
- Public Member Functions inherited from sw::mark::FieldmarkWithDropDownButton
 FieldmarkWithDropDownButton (const SwPaM &rPaM)
virtual ~FieldmarkWithDropDownButton () override
virtual void RemoveButton ()
- Public Member Functions inherited from sw::mark::NonTextFieldmark
 NonTextFieldmark (const SwPaM &rPaM)
- Public Member Functions inherited from sw::mark::Fieldmark
 Fieldmark (const SwPaM &rPaM)
virtual OUString GetFieldname () const override
virtual OUString GetFieldHelptext () const override
virtual IFieldmark::parameter_map_tGetParameters () override
virtual const IFieldmark::parameter_map_tGetParameters () const override
virtual void SetFieldname (const OUString &aFieldname) override
virtual void SetFieldHelptext (const OUString &aFieldHelptext) override
void SetMarkStartPos (const SwPosition &rNewStartPos)
virtual void Invalidate () override
virtual OUString ToString () const override
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const override
- Public Member Functions inherited from sw::mark::MarkBase
virtual SwPositionGetMarkPos () const override
virtual const OUString & GetName () const override
virtual SwPositionGetOtherMarkPos () const override
virtual SwPositionGetMarkStart () const override
virtual SwPositionGetMarkEnd () const override
virtual bool IsCoveringPosition (const SwPosition &rPos) const override
virtual 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
void Swap ()
virtual ~MarkBase () override
const css::uno::WeakReference< css::text::XTextContent > & GetXBookmark () const
void SetXBookmark (css::uno::Reference< css::text::XTextContent > const &xBkmk)

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

- Public Types inherited from sw::mark::IFieldmark
typedef std::map< OUString, css::uno::Any > parameter_map_t
- Protected Member Functions inherited from sw::mark::IDateFieldmark
 IDateFieldmark ()=default
- Protected Member Functions inherited from sw::mark::IFieldmark
 IFieldmark ()=default
- Protected Member Functions inherited from sw::mark::IMark
 IMark ()=default
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
SwModifyGetRegisteredInNonConst () const
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
- Protected Member Functions inherited from sw::mark::MarkBase
virtual void SwClientNotify (const SwModify &, const SfxHint &) override
 MarkBase (const SwPaM &rPaM, const OUString &rName)
- 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::unique_ptr< SwPositionm_pPos1
std::unique_ptr< SwPositionm_pPos2
OUString m_aName
css::uno::WeakReference< css::text::XTextContent > m_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 306 of file core/inc/bookmark.hxx.

Constructor & Destructor Documentation

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

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

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

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

Member Function Documentation

OUString sw::mark::DateFieldmark::GetContent ( ) const
std::pair< bool, double > sw::mark::DateFieldmark::GetCurrentDate ( ) const
OUString sw::mark::DateFieldmark::GetDateInCurrentDateFormat ( double  fDate) const
OUString sw::mark::DateFieldmark::GetDateInStandardDateFormat ( double  fDate) const
void sw::mark::DateFieldmark::InitDoc ( SwDoc io_rDoc,
sw::mark::InsertMode  eMode,
SwPosition const *  pSepPos 
void sw::mark::DateFieldmark::InvalidateCurrentDateParam ( )
std::pair< bool, double > sw::mark::DateFieldmark::ParseCurrentDateParam ( ) const
void sw::mark::DateFieldmark::ReleaseDoc ( SwDoc rDoc)
void sw::mark::DateFieldmark::ReplaceContent ( const OUString &  sNewContent)
void sw::mark::DateFieldmark::SetCurrentDate ( double  fDate)
void sw::mark::DateFieldmark::SetPortionPaintAreaEnd ( const SwRect rPortionPaintArea)
void sw::mark::DateFieldmark::SetPortionPaintAreaStart ( const SwRect rPortionPaintArea)
void sw::mark::DateFieldmark::ShowButton ( SwEditWin pEditWin)

Member Data Documentation

SwRect sw::mark::DateFieldmark::m_aPaintAreaEnd

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

Referenced by SetPortionPaintAreaEnd(), and ShowButton().

SwRect sw::mark::DateFieldmark::m_aPaintAreaStart
sw::DocumentContentOperationsManager* sw::mark::DateFieldmark::m_pDocumentContentOperationsManager

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

Referenced by InitDoc(), and ReplaceContent().

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

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