20#ifndef INCLUDED_SW_SOURCE_CORE_INC_MARKMANAGER_HXX
21#define INCLUDED_SW_SOURCE_CORE_INC_MARKMANAGER_HXX
25#include <unordered_map>
48 const OUString& rName,
49 const OUString& rType,
52 const OUString& rName,
53 const OUString& rType)
override;
59 const OUString& rName )
override;
68 std::vector< ::sw::mark::SaveBookmark>* pSaveBkmk,
69 std::optional<sal_Int32> oStartContentIdx,
70 std::optional<sal_Int32> oEndContentIdx)
override;
73 virtual std::unique_ptr<ILazyDeleter>
75 virtual void deleteMark(const ::sw::mark::IMark*
const pMark)
override;
106 virtual ::sw::mark::IFieldmark*
changeFormFieldmarkType(::sw::mark::IFieldmark* pFieldmark,
const OUString& rNewType)
override;
130 SwPosition const* pSepPos =
nullptr)
override;
wrapper iterator: wraps iterator of implementation while hiding MarkBase class; only IMark instances ...
Provides access to the marks of a document.
Base class of the Writer document model elements.
PaM is Point and Mark: a selection of the document model.
SwTextNode is a paragraph in the document model.
virtual void deleteMark(const ::sw::mark::IMark *const pMark) override
Deletes a mark.
virtual sw::mark::IMark * getAnnotationMarkFor(const SwPosition &rPos) const override
virtual ::sw::mark::IMark * getOneInnermostBookmarkFor(const SwPosition &rPos) const override
Get the innermost bookmark that contains rPos.
virtual sal_Int32 getAllMarksCount() const override
returns the number of marks.
virtual const_iterator_t getFieldmarksBegin() const override
returns a STL-like random access iterator to the begin of the sequence of fieldmarks.
virtual bool renameMark(::sw::mark::IMark *io_pMark, const OUString &rNewName) override
Renames an existing Mark, if possible.
virtual void restoreAnnotationMarks(bool bDelete=true) override
virtual const_iterator_t findAnnotationBookmark(const OUString &rName) const override
std::vector< sw::mark::MarkBase * > container_t
virtual void ClearFieldActivation() override
virtual ::sw::mark::IFieldmark * getFieldmarkAt(const SwPosition &rPos) const override
get Fieldmark for CH_TXT_ATR_FIELDSTART/CH_TXT_ATR_FIELDEND at rPos
virtual ::sw::mark::IMark * makeAnnotationBookmark(const SwPaM &rPaM, const OUString &rName, IDocumentMarkAccess::MarkType eMark, sw::mark::InsertMode eMode, SwPosition const *pSepPos=nullptr) override
virtual void correctMarksAbsolute(const SwNode &rOldNode, const SwPosition &rNewPos, const sal_Int32 nOffset) override
Corrects marks (absolute) This method ignores the previous position of the mark in the paragraph.
virtual void NotifyCursorUpdate(const SwCursorShell &rCursorShell) override
virtual void clearAllMarks() override
Clear (deletes) all marks.
virtual const_iterator_t getAllMarksBegin() const override
returns a STL-like random access iterator to the begin of the sequence of marks.
OUString getUniqueMarkName(const OUString &rName) const
virtual const_iterator_t getAnnotationMarksBegin() const override
virtual void assureSortedMarkContainers() const override
virtual sw::mark::IFieldmark * makeNoTextFieldBookmark(const SwPaM &rPaM, const OUString &rName, const OUString &rType) override
void LOKUpdateActiveField(const SfxViewShell *pViewShell)
sw::mark::FieldmarkWithDropDownButton * m_pLastActiveFieldmark
virtual std::vector<::sw::mark::IFieldmark * > getNoTextFieldmarksIn(const SwPaM &rPaM) const override
virtual const_iterator_t getFieldmarksEnd() const override
returns a STL-like random access iterator to the end of the sequence of fieldmarks.
MarkManager & operator=(MarkManager const &)=delete
virtual const_iterator_t findFirstAnnotationStartsAfter(const SwPosition &rPos) const override
Finds the first mark that is starting after.
virtual sw::mark::IFieldmark * getFieldmarkAfter(const SwPosition &rPos, bool bLoop) const override
container_t m_vFieldmarks
virtual const_iterator_t getAnnotationMarksEnd() const override
MarkBasenameMapUniqueOffset_t m_aMarkBasenameMapUniqueOffset
virtual ::sw::mark::IFieldmark * changeFormFieldmarkType(::sw::mark::IFieldmark *pFieldmark, const OUString &rNewType) override
virtual void correctMarksRelative(const SwNode &rOldNode, const SwPosition &rNewPos, const sal_Int32 nOffset) override
Corrects marks (relative) This method uses the previous position of the mark in the paragraph as offs...
virtual void repositionMark(::sw::mark::IMark *io_pMark, const SwPaM &rPaM) override
Moves an existing mark to a new selection and performs needed updates.
virtual sw::mark::IFieldmark * getInnerFieldmarkFor(const SwPosition &rPos) const override
virtual void deleteMarks(const SwNode &rStt, const SwNode &rEnd, std::vector< ::sw::mark::SaveBookmark > *pSaveBkmk, std::optional< sal_Int32 > oStartContentIdx, std::optional< sal_Int32 > oEndContentIdx) override
Deletes marks in a range.
virtual sw::mark::IFieldmark * makeFieldBookmark(const SwPaM &rPaM, const OUString &rName, const OUString &rType, SwPosition const *pSepPos=nullptr) override
virtual ::sw::mark::IMark * getMarkForTextNode(const SwTextNode &rTextNode, IDocumentMarkAccess::MarkType eMark) override
Returns a mark in the document for a paragraph.
virtual sal_Int32 getFieldmarksCount() const override
returns the number of IFieldmarks.
void dumpAsXml(xmlTextWriterPtr pWriter) const
virtual sw::mark::IMark * makeAnnotationMark(const SwPaM &rPaM, const OUString &rName) override
virtual const_iterator_t findFirstBookmarkStartsAfter(const SwPosition &rPos) const override
Finds the first mark that is starting after.
virtual ::sw::mark::IMark * makeMark(const SwPaM &rPaM, const OUString &rName, IDocumentMarkAccess::MarkType eMark, sw::mark::InsertMode eMode, SwPosition const *pSepPos=nullptr) override
virtual const_iterator_t findAnnotationMark(const OUString &rName) const override
virtual ::sw::mark::IFieldmark * getDropDownFor(const SwPosition &rPos) const override
virtual sw::mark::IFieldmark * getFieldmarkBefore(const SwPosition &rPos, bool bLoop) const override
MarkManager(MarkManager const &)=delete
virtual void deleteFieldmarkAt(const SwPosition &rPos) override
virtual const_iterator_t findBookmark(const OUString &rName) const override
Finds a bookmark by name.
virtual sal_Int32 getAnnotationMarksCount() const override
virtual bool isBookmarkDeleted(SwPaM const &rPaM, bool isReplace) const override
check if the selection would delete a BOOKMARK
virtual const_iterator_t getBookmarksEnd() const override
returns a STL-like random access iterator to the end of the sequence of IBookmarks.
virtual std::unique_ptr< ILazyDeleter > deleteMark(const const_iterator_t &ppMark, bool isMoveNodes) override
Deletes a mark.
virtual const_iterator_t getAllMarksEnd() const override
returns a STL-like random access iterator to the end of the sequence of marks.
virtual sal_Int32 getBookmarksCount() const override
returns the number of IBookmarks.
container_t m_vAnnotationMarks
virtual const_iterator_t getBookmarksBegin() const override
returns a STL-like random access iterator to the begin of the sequence the IBookmarks.
virtual const_iterator_t findMark(const OUString &rName) const override
Finds a mark by name.
struct _xmlTextWriter * xmlTextWriterPtr
std::unordered_map< OUString, sal_Int32 > MarkBasenameMapUniqueOffset_t
Marks a position in the document model.