LibreOffice Module sw (master) 1
|
#include <bookmark.hxx>
Public Member Functions | |
TextFieldmark (const SwPaM &rPaM, const OUString &rName) | |
~TextFieldmark () | |
void | InitDoc (SwDoc &io_rDoc, sw::mark::InsertMode eMode, SwPosition const *pSepPos) override |
void | ReleaseDoc (SwDoc &rDoc) override |
OUString | GetContent () const override |
void | ReplaceContent (const OUString &sNewContent) 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 | |
SwPosition & | GetMarkPos () const override |
const OUString & | GetName () const override |
SwPosition & | GetOtherMarkPos () const override |
SwPosition & | GetMarkStart () const override |
SwPosition & | GetMarkEnd () 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 SwPosition & | GetMarkPos () const =0 |
virtual const SwPosition & | GetOtherMarkPos () const =0 |
virtual const SwPosition & | GetMarkStart () const =0 |
virtual const SwPosition & | GetMarkEnd () 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 Attributes | |
sw::DocumentContentOperationsManager * | m_pDocumentContentOperationsManager |
Additional Inherited Members | |
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< SwPosition > | m_oPos1 |
std::optional< SwPosition > | m_oPos2 |
OUString | m_aName |
unotools::WeakReference< SwXBookmark > | m_wXBookmark |
Definition at line 238 of file core/inc/bookmark.hxx.
sw::mark::TextFieldmark::TextFieldmark | ( | const SwPaM & | rPaM, |
const OUString & | rName | ||
) |
Definition at line 579 of file core/crsr/bookmark.cxx.
References sw::mark::MarkBase::m_aName.
sw::mark::TextFieldmark::~TextFieldmark | ( | ) |
Definition at line 587 of file core/crsr/bookmark.cxx.
References SfxViewShell::Current(), tools::JsonWriter::finishAndGetAsOString(), sw::mark::MarkBase::GetMarkPos(), sw::mark::Fieldmark::GetParameters(), comphelper::LibreOfficeKit::isActive(), SfxViewShell::libreOfficeKitViewCallback(), ODF_CODE_PARAM, tools::JsonWriter::put(), result, and tools::JsonWriter::startNode().
|
override |
Definition at line 637 of file core/crsr/bookmark.cxx.
References sw::mark::FindFieldSep(), SwPosition::GetContentIndex(), sw::mark::MarkBase::GetMarkEnd(), SwPosition::GetNode(), SwTextNode::GetText(), and SwNode::GetTextNode().
|
overridevirtual |
Reimplemented from sw::mark::MarkBase.
Definition at line 609 of file core/crsr/bookmark.cxx.
References CH_TXT_ATR_FIELDEND, CH_TXT_ATR_FIELDSTART, eMode, SwDoc::GetDocumentContentOperationsManager(), m_pDocumentContentOperationsManager, and sw::mark::New.
|
overridevirtual |
Implements sw::mark::Fieldmark.
Definition at line 623 of file core/crsr/bookmark.cxx.
References CH_TXT_ATR_FIELDEND, CH_TXT_ATR_FIELDSTART, SwDoc::GetIDocumentUndoRedo(), sw::mark::MarkBase::GetMarkPos(), sw::mark::MarkBase::GetOtherMarkPos(), and sw::UpdateFramesForRemoveDeleteRedline().
|
override |
Definition at line 652 of file core/crsr/bookmark.cxx.
References sw::mark::FindFieldSep(), SwPosition::GetContentIndex(), sw::mark::MarkBase::GetMarkEnd(), sw::mark::MarkBase::GetMarkStart(), SwPosition::GetNode(), GetNode(), SwTextNode::GetText(), SwNode::GetTextNode(), sw::DocumentContentOperationsManager::InsertString(), sw::mark::Fieldmark::Invalidate(), m_pDocumentContentOperationsManager, and sw::DocumentContentOperationsManager::ReplaceRange().
|
private |
Definition at line 251 of file core/inc/bookmark.hxx.
Referenced by InitDoc(), and ReplaceContent().