LibreOffice Module sw (master)
1
|
Fieldmark representing a date form field. More...
#include <bookmrk.hxx>
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 |
![]() | |
virtual void | CallSwClientNotify (const SfxHint &rHint) const override |
![]() | |
SwModify () | |
virtual | ~SwModify () override |
void | Add (SwClient *pDepend) |
SwClient * | Remove (SwClient *pDepend) |
bool | HasWriterListeners () const |
virtual bool | GetInfo (SfxPoolItem &) const override |
void | LockModify () |
void | UnlockModify () |
void | SetInCache (bool bNew) |
void | SetInDocDTOR () |
bool | IsModifyLocked () const |
bool | IsInCache () const |
void | CheckCaching (const sal_uInt16 nWhich) |
bool | HasOnlyOneListener () const |
![]() | |
SwClient () | |
SwClient (SwClient &&) noexcept | |
virtual | ~SwClient () override |
std::unique_ptr< sw::ModifyChangedHint > | CheckRegistration (const SfxPoolItem *pOldValue) |
void | CheckRegistrationFormat (SwFormat &rOld) |
const SwModify * | GetRegisteredIn () const |
SwModify * | GetRegisteredIn () |
void | EndListeningAll () |
void | StartListeningToSameModifyAs (const SwClient &) |
![]() | |
bool | IsLast () const |
![]() | |
BroadcasterMixin ()=default | |
BroadcasterMixin (BroadcasterMixin const &)=default | |
BroadcasterMixin & | operator= (const BroadcasterMixin &) |
SvtBroadcaster & | GetNotifier () |
![]() | |
FieldmarkWithDropDownButton (const SwPaM &rPaM) | |
virtual | ~FieldmarkWithDropDownButton () override |
virtual void | HideButton () |
virtual void | RemoveButton () |
![]() | |
NonTextFieldmark (const SwPaM &rPaM) | |
![]() | |
Fieldmark (const SwPaM &rPaM) | |
virtual OUString | GetFieldname () const override |
virtual OUString | GetFieldHelptext () const override |
virtual IFieldmark::parameter_map_t * | GetParameters () override |
virtual const IFieldmark::parameter_map_t * | GetParameters () const override |
virtual void | SetFieldname (const OUString &aFieldname) override |
virtual void | SetFieldHelptext (const OUString &aFieldHelptext) override |
void | SetMarkStartPos (const SwPosition &rNewStartPos) |
void | SetMarkEndPos (const SwPosition &rNewEndPos) |
virtual void | Invalidate () override |
virtual OUString | ToString () const override |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
![]() | |
virtual SwPosition & | GetMarkPos () const override |
virtual const OUString & | GetName () const override |
virtual SwPosition & | GetOtherMarkPos () const override |
virtual SwPosition & | GetMarkStart () const override |
virtual SwPosition & | GetMarkEnd () 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 | |
SvNumberFormatter * | m_pNumberFormatter |
sw::DocumentContentOperationsManager * | m_pDocumentContentOperationsManager |
SwRect | m_aPaintAreaStart |
SwRect | m_aPaintAreaEnd |
Additional Inherited Members | |
![]() | |
typedef std::map< OUString, css::uno::Any > | parameter_map_t |
![]() | |
IDateFieldmark ()=default | |
![]() | |
IFieldmark ()=default | |
![]() | |
IMark ()=default | |
![]() | |
SwClient (SwModify *pToRegisterIn) | |
SwModify * | GetRegisteredInNonConst () const |
![]() | |
WriterListener () | |
virtual | ~WriterListener () COVERITY_NOEXCEPT_FALSE |
![]() | |
virtual void | SwClientNotify (const SwModify &, const SfxHint &) override |
MarkBase (const SwPaM &rPaM, const OUString &rName) | |
![]() | |
static OUString | GenerateNewName (std::u16string_view rPrefix) |
![]() | |
VclPtr< FormFieldButton > | m_pButton |
![]() | |
std::unique_ptr< SwPosition > | m_pPos1 |
std::unique_ptr< SwPosition > | m_pPos2 |
OUString | m_aName |
css::uno::WeakReference< css::text::XTextContent > | m_wXBookmark |
Fieldmark representing a date form field.
Definition at line 306 of file bookmrk.hxx.
sw::mark::DateFieldmark::DateFieldmark | ( | const SwPaM & | rPaM | ) |
Definition at line 773 of file bookmrk.cxx.
|
overridevirtual |
Definition at line 780 of file bookmrk.cxx.
|
overridevirtual |
Implements sw::mark::IDateFieldmark.
Definition at line 855 of file bookmrk.cxx.
References sw::mark::FindFieldSep(), SwIndex::GetIndex(), sw::mark::IMark::GetMarkEnd(), SwNodeIndex::GetNode(), SwTextNode::GetText(), SwNode::GetTextNode(), SwPosition::nContent, and SwPosition::nNode.
Referenced by GetCurrentDate(), and InvalidateCurrentDateParam().
|
overridevirtual |
Implements sw::mark::IDateFieldmark.
Definition at line 894 of file bookmrk.cxx.
References GetContent(), SvNumberFormatter::GetEntryKey(), sw::mark::IFieldmark::GetParameters(), SvNumberFormatter::IsNumberFormat(), m_pNumberFormatter, nType, NUMBERFORMAT_ENTRY_NOT_FOUND, ODF_FORMDATE_DATEFORMAT, ODF_FORMDATE_DATEFORMAT_LANGUAGE, ParseCurrentDateParam(), and SvNumberFormatter::PutEntry().
|
private |
Definition at line 1010 of file bookmrk.cxx.
References SvNumberFormatter::GetEntryKey(), SvNumberFormatter::GetOutputString(), sw::mark::IFieldmark::GetParameters(), m_pNumberFormatter, nType, NUMBERFORMAT_ENTRY_NOT_FOUND, ODF_FORMDATE_DATEFORMAT, ODF_FORMDATE_DATEFORMAT_LANGUAGE, and SvNumberFormatter::PutEntry().
Referenced by InvalidateCurrentDateParam(), and SetCurrentDate().
|
overridevirtual |
Implements sw::mark::IDateFieldmark.
Definition at line 950 of file bookmrk.cxx.
References SvNumberFormatter::GetEntryKey(), SvNumberFormatter::GetOutputString(), m_pNumberFormatter, nType, NUMBERFORMAT_ENTRY_NOT_FOUND, ODF_FORMDATE_CURRENTDATE_FORMAT, ODF_FORMDATE_CURRENTDATE_LANGUAGE, and SvNumberFormatter::PutEntry().
Referenced by SetCurrentDate().
|
overridevirtual |
Reimplemented from sw::mark::NonTextFieldmark.
Definition at line 784 of file bookmrk.cxx.
References CH_TXT_ATR_FIELDEND, CH_TXT_ATR_FIELDSTART, SwDoc::GetDocumentContentOperationsManager(), SwDoc::GetNumberFormatter(), m_pDocumentContentOperationsManager, m_pNumberFormatter, and sw::mark::New.
|
private |
Definition at line 1051 of file bookmrk.cxx.
References GetContent(), GetDateInCurrentDateFormat(), sw::mark::IFieldmark::GetParameters(), ODF_FORMDATE_CURRENTDATE, and ParseCurrentDateParam().
Referenced by SetPortionPaintAreaEnd(), and SetPortionPaintAreaStart().
|
private |
Definition at line 974 of file bookmrk.cxx.
References SvNumberFormatter::GetEntryKey(), sw::mark::IFieldmark::GetParameters(), SvNumberFormatter::IsNumberFormat(), m_pNumberFormatter, nType, NUMBERFORMAT_ENTRY_NOT_FOUND, ODF_FORMDATE_CURRENTDATE, ODF_FORMDATE_CURRENTDATE_FORMAT, ODF_FORMDATE_CURRENTDATE_LANGUAGE, and SvNumberFormatter::PutEntry().
Referenced by GetCurrentDate(), and InvalidateCurrentDateParam().
Reimplemented from sw::mark::NonTextFieldmark.
Definition at line 799 of file bookmrk.cxx.
References IDocumentUndoRedo::AppendUndo(), CH_TXT_ATR_FIELDEND, CH_TXT_ATR_FIELDSTART, SwDoc::GetIDocumentUndoRedo(), sw::mark::IMark::GetMarkPos(), sw::mark::IMark::GetOtherMarkPos(), and sw::UpdateFramesForRemoveDeleteRedline().
|
overridevirtual |
Implements sw::mark::IDateFieldmark.
Definition at line 869 of file bookmrk.cxx.
References sw::mark::FindFieldSep(), SwIndex::GetIndex(), sw::mark::IMark::GetMarkEnd(), sw::mark::IMark::GetMarkStart(), SwNodeIndex::GetNode(), SwTextNode::GetText(), SwNode::GetTextNode(), sw::DocumentContentOperationsManager::InsertString(), m_pDocumentContentOperationsManager, SwPosition::nContent, SwPosition::nNode, and sw::DocumentContentOperationsManager::ReplaceRange().
Referenced by SetCurrentDate().
|
overridevirtual |
Implements sw::mark::IDateFieldmark.
Definition at line 940 of file bookmrk.cxx.
References GetDateInCurrentDateFormat(), GetDateInStandardDateFormat(), sw::mark::IFieldmark::GetParameters(), ODF_FORMDATE_CURRENTDATE, and ReplaceContent().
Definition at line 835 of file bookmrk.cxx.
References SwRect::BottomRight(), FormFieldButton::CalcPosAndSize(), vcl::Window::Invalidate(), InvalidateCurrentDateParam(), SwRect::IsEmpty(), vcl::Window::IsVisible(), m_aPaintAreaEnd, m_aPaintAreaStart, sw::mark::FieldmarkWithDropDownButton::m_pButton, vcl::Window::Show(), and SwRect::TopLeft().
Referenced by SwFieldFormDatePortion::Paint().
Definition at line 826 of file bookmrk.cxx.
References InvalidateCurrentDateParam(), SwRect::IsEmpty(), and m_aPaintAreaStart.
Referenced by SwFieldFormDatePortion::Paint().
Implements sw::mark::FieldmarkWithDropDownButton.
Definition at line 814 of file bookmrk.cxx.
References SwRect::BottomRight(), FormFieldButton::CalcPosAndSize(), VclPtr< reference_type >::Create(), m_aPaintAreaEnd, m_aPaintAreaStart, sw::mark::FieldmarkWithDropDownButton::m_pButton, m_pNumberFormatter, vcl::Window::Show(), and SwRect::TopLeft().
|
private |
Definition at line 337 of file bookmrk.hxx.
Referenced by SetPortionPaintAreaEnd(), and ShowButton().
|
private |
Definition at line 336 of file bookmrk.hxx.
Referenced by SetPortionPaintAreaEnd(), SetPortionPaintAreaStart(), and ShowButton().
|
private |
Definition at line 335 of file bookmrk.hxx.
Referenced by InitDoc(), and ReplaceContent().
|
private |
Definition at line 334 of file bookmrk.hxx.
Referenced by GetCurrentDate(), GetDateInCurrentDateFormat(), GetDateInStandardDateFormat(), InitDoc(), ParseCurrentDateParam(), and ShowButton().