47 CROSSREF_HEADING_BOOKMARK,
48 CROSSREF_NUMITEM_BOOKMARK,
63 std::optional<std::vector<::sw::mark::MarkBase*>::const_iterator>
m_pIter;
67 std::vector<::sw::mark::MarkBase*>::const_iterator
const&
get()
const;
76 iterator(std::vector<::sw::mark::MarkBase*>::const_iterator
const& rIter);
133 const OUString& rProposedName,
138 const OUString& rName,
139 const OUString& rType,
142 const OUString& rName,
143 const OUString& rType) = 0;
147 const OUString& rName ) = 0;
173 const SwPaM& rPaM) =0;
185 const OUString& rNewName) =0;
201 const sal_Int32 nOffset) =0;
219 const sal_Int32 nOffset) =0;
229 std::vector< ::sw::mark::SaveBookmark>* pSaveBkmk,
230 std::optional<sal_Int32> oStartContentIdx,
231 std::optional<sal_Int32> oEndContentIdx) =0;
241 virtual std::unique_ptr<ILazyDeleter>
249 virtual void deleteMark(const ::sw::mark::IMark*
const pMark) =0;
354 const OUString& rProposedName,
bool operator<=(const BigInt &rVal1, const BigInt &rVal2)
bool operator>=(const BigInt &rVal1, const BigInt &rVal2)
wrapper iterator: wraps iterator of implementation while hiding MarkBase class; only IMark instances ...
std::random_access_iterator_tag iterator_category
::sw::mark::IMark * value_type
::sw::mark::IMark *const * pointer
std::ptrdiff_t difference_type
::sw::mark::IMark *const & reference
std::optional< std::vector<::sw::mark::MarkBase * >::const_iterator > m_pIter
Provides access to the marks of a document.
virtual sw::mark::IFieldmark * getFieldmarkBefore(const SwPosition &pos, bool bLoop) const =0
virtual ~IDocumentMarkAccess()
virtual const_iterator_t getAnnotationMarksEnd() const =0
virtual const_iterator_t getFieldmarksBegin() const =0
returns a STL-like random access iterator to the begin of the sequence of fieldmarks.
iterator const_iterator_t
virtual ::sw::mark::IMark * makeAnnotationBookmark(const SwPaM &rPaM, const OUString &rProposedName, MarkType eMark, ::sw::mark::InsertMode eMode, SwPosition const *pSepPos=nullptr)=0
virtual sw::mark::IFieldmark * makeNoTextFieldBookmark(const SwPaM &rPaM, const OUString &rName, const OUString &rType)=0
virtual sw::mark::IFieldmark * makeFieldBookmark(const SwPaM &rPaM, const OUString &rName, const OUString &rType, SwPosition const *pSepPos=nullptr)=0
virtual std::vector<::sw::mark::IFieldmark * > getNoTextFieldmarksIn(const SwPaM &rPaM) const =0
virtual sw::mark::IMark * getAnnotationMarkFor(const SwPosition &rPosition) const =0
virtual void clearAllMarks()=0
Clear (deletes) all marks.
virtual const_iterator_t findFirstBookmarkStartsAfter(const SwPosition &rPos) const =0
Finds the first mark that is starting after.
virtual bool renameMark(::sw::mark::IMark *io_pMark, const OUString &rNewName)=0
Renames an existing Mark, if possible.
virtual const_iterator_t getAnnotationMarksBegin() const =0
virtual ::sw::mark::IFieldmark * getFieldmarkAt(const SwPosition &rPos) const =0
get Fieldmark for CH_TXT_ATR_FIELDSTART/CH_TXT_ATR_FIELDEND at rPos
virtual const_iterator_t getBookmarksBegin() const =0
returns a STL-like random access iterator to the begin of the sequence the IBookmarks.
virtual const_iterator_t getFieldmarksEnd() const =0
returns a STL-like random access iterator to the end of the sequence of fieldmarks.
virtual const_iterator_t getAllMarksEnd() const =0
returns a STL-like random access iterator to the end of the sequence of marks.
virtual sal_Int32 getAnnotationMarksCount() const =0
virtual void repositionMark(::sw::mark::IMark *io_pMark, const SwPaM &rPaM)=0
Moves an existing mark to a new selection and performs needed updates.
virtual const_iterator_t findAnnotationBookmark(const OUString &rName) const =0
virtual const_iterator_t findAnnotationMark(const OUString &rName) const =0
virtual ::sw::mark::IFieldmark * getDropDownFor(const SwPosition &pos) const =0
virtual sw::mark::IFieldmark * getInnerFieldmarkFor(const SwPosition &pos) const =0
virtual const_iterator_t findMark(const OUString &rMark) const =0
Finds a mark by name.
virtual sw::mark::IFieldmark * getFieldmarkAfter(const SwPosition &pos, bool bLoop) const =0
virtual void correctMarksRelative(const SwNode &rOldNode, const SwPosition &rNewPos, const sal_Int32 nOffset)=0
Corrects marks (relative) This method uses the previous position of the mark in the paragraph as offs...
virtual sal_Int32 getAllMarksCount() const =0
returns the number of marks.
virtual void NotifyCursorUpdate(const SwCursorShell &rCursorShell)=0
virtual void assureSortedMarkContainers() const =0
virtual void deleteMark(const ::sw::mark::IMark *const pMark)=0
Deletes a mark.
virtual sal_Int32 getFieldmarksCount() const =0
returns the number of IFieldmarks.
static SW_DLLPUBLIC OUString GetCrossRefHeadingBookmarkNamePrefix()
virtual void restoreAnnotationMarks(bool bDelete=true)=0
virtual bool isBookmarkDeleted(SwPaM const &rPaM, bool isReplace) const =0
check if the selection would delete a BOOKMARK
virtual const_iterator_t findFirstAnnotationStartsAfter(const SwPosition &rPos) const =0
Finds the first mark that is starting after.
virtual void ClearFieldActivation()=0
virtual ::sw::mark::IMark * makeMark(const SwPaM &rPaM, const OUString &rProposedName, MarkType eMark, ::sw::mark::InsertMode eMode, SwPosition const *pSepPos=nullptr)=0
Generates a new mark in the document for a certain selection.
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)=0
Deletes marks in a range.
static void DeleteFieldmarkCommand(::sw::mark::IFieldmark const &rMark)
virtual std::unique_ptr< ILazyDeleter > deleteMark(const IDocumentMarkAccess::const_iterator_t &ppMark, bool isMoveNodes)=0
Deletes a mark.
virtual const_iterator_t findBookmark(const OUString &rMark) const =0
Finds a bookmark by name.
virtual ::sw::mark::IFieldmark * changeFormFieldmarkType(::sw::mark::IFieldmark *pFieldmark, const OUString &rNewType)=0
virtual void deleteFieldmarkAt(const SwPosition &rPos)=0
virtual const_iterator_t getAllMarksBegin() const =0
returns a STL-like random access iterator to the begin of the sequence of marks.
virtual ::sw::mark::IMark * getMarkForTextNode(const SwTextNode &rTextNode, MarkType eMark)=0
Returns a mark in the document for a paragraph.
static SW_DLLPUBLIC bool IsLegalPaMForCrossRefHeadingBookmark(const SwPaM &rPaM)
static SW_DLLPUBLIC MarkType GetType(const ::sw::mark::IMark &rMark)
Returns the MarkType used to create the mark.
virtual void correctMarksAbsolute(const SwNode &rOldNode, const SwPosition &rNewPos, const sal_Int32 nOffset)=0
Corrects marks (absolute) This method ignores the previous position of the mark in the paragraph.
virtual const_iterator_t getBookmarksEnd() const =0
returns a STL-like random access iterator to the end of the sequence of IBookmarks.
virtual sal_Int32 getBookmarksCount() const =0
returns the number of IBookmarks.
virtual sw::mark::IMark * makeAnnotationMark(const SwPaM &rPaM, const OUString &rName)=0
virtual sw::mark::IMark * getOneInnermostBookmarkFor(const SwPosition &rPos) const =0
Get the innermost bookmark that contains rPos.
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.
HSLColor operator*(double nFactor, const HSLColor &rRHS)
bool operator>(const Style &rL, const Style &rR)
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
std::enable_if< std::is_signed< T >::value, SwNodeOffset >::type operator-(SwNodeOffset a, T n)
std::enable_if< std::is_signed< T >::value, SwNodeOffset >::type operator+(SwNodeOffset a, T n)
timeval & operator-=(timeval &t1, const timeval &t2)
To avoid recursive calls of deleteMark, the removal of dummy characters of fieldmarks has to be delay...
Marks a position in the document model.
TOOLS_DLLPUBLIC tools::Rectangle & operator+=(tools::Rectangle &rRect, const SvBorder &rBorder)
bool operator<(const wwFont &r1, const wwFont &r2)
bool operator!=(const XclExpString &rLeft, const XclExpString &rRight)
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)