LibreOffice Module sw (master) 1
|
#include <MarkManager.hxx>
Public Types | |
typedef std::vector< sw::mark::MarkBase * > | container_t |
Public Types inherited from IDocumentMarkAccess | |
enum class | MarkType { UNO_BOOKMARK , DDE_BOOKMARK , BOOKMARK , CROSSREF_HEADING_BOOKMARK , CROSSREF_NUMITEM_BOOKMARK , ANNOTATIONMARK , TEXT_FIELDMARK , CHECKBOX_FIELDMARK , DROPDOWN_FIELDMARK , DATE_FIELDMARK , NAVIGATOR_REMINDER } |
typedef iterator | const_iterator_t |
Public Member Functions | |
MarkManager (SwDoc &rDoc) | |
virtual ::sw::mark::IMark * | makeMark (const SwPaM &rPaM, const OUString &rName, IDocumentMarkAccess::MarkType eMark, sw::mark::InsertMode eMode, SwPosition const *pSepPos=nullptr) override |
virtual sw::mark::IFieldmark * | makeFieldBookmark (const SwPaM &rPaM, const OUString &rName, const OUString &rType, SwPosition const *pSepPos=nullptr) override |
virtual sw::mark::IFieldmark * | makeNoTextFieldBookmark (const SwPaM &rPaM, const OUString &rName, const OUString &rType) override |
virtual ::sw::mark::IMark * | getMarkForTextNode (const SwTextNode &rTextNode, IDocumentMarkAccess::MarkType eMark) override |
Returns a mark in the document for a paragraph. More... | |
virtual sw::mark::IMark * | makeAnnotationMark (const SwPaM &rPaM, const OUString &rName) override |
virtual void | repositionMark (::sw::mark::IMark *io_pMark, const SwPaM &rPaM) override |
Moves an existing mark to a new selection and performs needed updates. More... | |
virtual bool | renameMark (::sw::mark::IMark *io_pMark, const OUString &rNewName) override |
Renames an existing Mark, if possible. More... | |
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. More... | |
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 offset. More... | |
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. More... | |
virtual std::unique_ptr< ILazyDeleter > | deleteMark (const const_iterator_t &ppMark, bool isMoveNodes) override |
Deletes a mark. More... | |
virtual void | deleteMark (const ::sw::mark::IMark *const pMark) override |
Deletes a mark. More... | |
virtual void | clearAllMarks () override |
Clear (deletes) all marks. More... | |
virtual const_iterator_t | getAllMarksBegin () const override |
returns a STL-like random access iterator to the begin of the sequence of marks. More... | |
virtual const_iterator_t | getAllMarksEnd () const override |
returns a STL-like random access iterator to the end of the sequence of marks. More... | |
virtual sal_Int32 | getAllMarksCount () const override |
returns the number of marks. More... | |
virtual const_iterator_t | findMark (const OUString &rName) const override |
Finds a mark by name. More... | |
virtual bool | isBookmarkDeleted (SwPaM const &rPaM, bool isReplace) const override |
check if the selection would delete a BOOKMARK More... | |
virtual const_iterator_t | getBookmarksBegin () const override |
returns a STL-like random access iterator to the begin of the sequence the IBookmarks. More... | |
virtual const_iterator_t | getBookmarksEnd () const override |
returns a STL-like random access iterator to the end of the sequence of IBookmarks. More... | |
virtual sal_Int32 | getBookmarksCount () const override |
returns the number of IBookmarks. More... | |
virtual const_iterator_t | findBookmark (const OUString &rName) const override |
Finds a bookmark by name. More... | |
virtual const_iterator_t | findFirstBookmarkStartsAfter (const SwPosition &rPos) const override |
Finds the first mark that is starting after. More... | |
virtual ::sw::mark::IMark * | getOneInnermostBookmarkFor (const SwPosition &rPos) const override |
Get the innermost bookmark that contains rPos. More... | |
virtual const_iterator_t | getFieldmarksBegin () const override |
returns a STL-like random access iterator to the begin of the sequence of fieldmarks. More... | |
virtual const_iterator_t | getFieldmarksEnd () const override |
returns a STL-like random access iterator to the end of the sequence of fieldmarks. More... | |
virtual sal_Int32 | getFieldmarksCount () const override |
returns the number of IFieldmarks. More... | |
virtual ::sw::mark::IFieldmark * | getFieldmarkAt (const SwPosition &rPos) const override |
get Fieldmark for CH_TXT_ATR_FIELDSTART/CH_TXT_ATR_FIELDEND at rPos More... | |
virtual sw::mark::IFieldmark * | getInnerFieldmarkFor (const SwPosition &rPos) const override |
virtual sw::mark::IFieldmark * | getFieldmarkBefore (const SwPosition &rPos, bool bLoop) const override |
virtual sw::mark::IFieldmark * | getFieldmarkAfter (const SwPosition &rPos, bool bLoop) const override |
virtual ::sw::mark::IFieldmark * | getDropDownFor (const SwPosition &rPos) const override |
virtual std::vector<::sw::mark::IFieldmark * > | getNoTextFieldmarksIn (const SwPaM &rPaM) const override |
virtual void | deleteFieldmarkAt (const SwPosition &rPos) override |
virtual ::sw::mark::IFieldmark * | changeFormFieldmarkType (::sw::mark::IFieldmark *pFieldmark, const OUString &rNewType) override |
virtual void | NotifyCursorUpdate (const SwCursorShell &rCursorShell) override |
virtual void | ClearFieldActivation () override |
void | LOKUpdateActiveField (const SfxViewShell *pViewShell) |
void | dumpAsXml (xmlTextWriterPtr pWriter) const |
virtual const_iterator_t | getAnnotationMarksBegin () const override |
virtual const_iterator_t | getAnnotationMarksEnd () const override |
virtual sal_Int32 | getAnnotationMarksCount () const override |
virtual const_iterator_t | findAnnotationMark (const OUString &rName) const override |
virtual sw::mark::IMark * | getAnnotationMarkFor (const SwPosition &rPos) const override |
virtual const_iterator_t | findFirstAnnotationStartsAfter (const SwPosition &rPos) const override |
Finds the first mark that is starting after. More... | |
virtual void | assureSortedMarkContainers () const override |
virtual ::sw::mark::IMark * | makeAnnotationBookmark (const SwPaM &rPaM, const OUString &rName, IDocumentMarkAccess::MarkType eMark, sw::mark::InsertMode eMode, SwPosition const *pSepPos=nullptr) override |
virtual const_iterator_t | findAnnotationBookmark (const OUString &rName) const override |
virtual void | restoreAnnotationMarks (bool bDelete=true) override |
Public Member Functions inherited from IDocumentMarkAccess | |
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. More... | |
virtual sw::mark::IFieldmark * | makeFieldBookmark (const SwPaM &rPaM, const OUString &rName, const OUString &rType, SwPosition const *pSepPos=nullptr)=0 |
virtual sw::mark::IFieldmark * | makeNoTextFieldBookmark (const SwPaM &rPaM, const OUString &rName, const OUString &rType)=0 |
virtual sw::mark::IMark * | makeAnnotationMark (const SwPaM &rPaM, const OUString &rName)=0 |
virtual ::sw::mark::IMark * | getMarkForTextNode (const SwTextNode &rTextNode, MarkType eMark)=0 |
Returns a mark in the document for a paragraph. More... | |
virtual void | repositionMark (::sw::mark::IMark *io_pMark, const SwPaM &rPaM)=0 |
Moves an existing mark to a new selection and performs needed updates. More... | |
virtual bool | renameMark (::sw::mark::IMark *io_pMark, const OUString &rNewName)=0 |
Renames an existing Mark, if possible. More... | |
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. More... | |
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 offset. More... | |
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. More... | |
virtual std::unique_ptr< ILazyDeleter > | deleteMark (const IDocumentMarkAccess::const_iterator_t &ppMark, bool isMoveNodes)=0 |
Deletes a mark. More... | |
virtual void | deleteMark (const ::sw::mark::IMark *const pMark)=0 |
Deletes a mark. More... | |
virtual void | clearAllMarks ()=0 |
Clear (deletes) all marks. More... | |
virtual void | assureSortedMarkContainers () const =0 |
virtual const_iterator_t | getAllMarksBegin () const =0 |
returns a STL-like random access iterator to the begin of the sequence of marks. More... | |
virtual const_iterator_t | getAllMarksEnd () const =0 |
returns a STL-like random access iterator to the end of the sequence of marks. More... | |
virtual sal_Int32 | getAllMarksCount () const =0 |
returns the number of marks. More... | |
virtual const_iterator_t | findMark (const OUString &rMark) const =0 |
Finds a mark by name. More... | |
virtual bool | isBookmarkDeleted (SwPaM const &rPaM, bool isReplace) const =0 |
check if the selection would delete a BOOKMARK More... | |
virtual const_iterator_t | getBookmarksBegin () const =0 |
returns a STL-like random access iterator to the begin of the sequence the IBookmarks. More... | |
virtual const_iterator_t | getBookmarksEnd () const =0 |
returns a STL-like random access iterator to the end of the sequence of IBookmarks. More... | |
virtual sal_Int32 | getBookmarksCount () const =0 |
returns the number of IBookmarks. More... | |
virtual const_iterator_t | findBookmark (const OUString &rMark) const =0 |
Finds a bookmark by name. More... | |
virtual const_iterator_t | findFirstBookmarkStartsAfter (const SwPosition &rPos) const =0 |
Finds the first mark that is starting after. More... | |
virtual sw::mark::IMark * | getOneInnermostBookmarkFor (const SwPosition &rPos) const =0 |
Get the innermost bookmark that contains rPos. More... | |
virtual const_iterator_t | getFieldmarksBegin () const =0 |
returns a STL-like random access iterator to the begin of the sequence of fieldmarks. More... | |
virtual const_iterator_t | getFieldmarksEnd () const =0 |
returns a STL-like random access iterator to the end of the sequence of fieldmarks. More... | |
virtual sal_Int32 | getFieldmarksCount () const =0 |
returns the number of IFieldmarks. More... | |
virtual ::sw::mark::IFieldmark * | getFieldmarkAt (const SwPosition &rPos) const =0 |
get Fieldmark for CH_TXT_ATR_FIELDSTART/CH_TXT_ATR_FIELDEND at rPos More... | |
virtual sw::mark::IFieldmark * | getInnerFieldmarkFor (const SwPosition &pos) const =0 |
virtual sw::mark::IFieldmark * | getFieldmarkBefore (const SwPosition &pos, bool bLoop) const =0 |
virtual sw::mark::IFieldmark * | getFieldmarkAfter (const SwPosition &pos, bool bLoop) const =0 |
virtual ::sw::mark::IFieldmark * | getDropDownFor (const SwPosition &pos) const =0 |
virtual std::vector<::sw::mark::IFieldmark * > | getNoTextFieldmarksIn (const SwPaM &rPaM) const =0 |
virtual void | deleteFieldmarkAt (const SwPosition &rPos)=0 |
virtual ::sw::mark::IFieldmark * | changeFormFieldmarkType (::sw::mark::IFieldmark *pFieldmark, const OUString &rNewType)=0 |
virtual void | NotifyCursorUpdate (const SwCursorShell &rCursorShell)=0 |
virtual void | ClearFieldActivation ()=0 |
virtual const_iterator_t | getAnnotationMarksBegin () const =0 |
virtual const_iterator_t | getAnnotationMarksEnd () const =0 |
virtual sal_Int32 | getAnnotationMarksCount () const =0 |
virtual const_iterator_t | findAnnotationMark (const OUString &rName) const =0 |
virtual sw::mark::IMark * | getAnnotationMarkFor (const SwPosition &rPosition) const =0 |
virtual ::sw::mark::IMark * | makeAnnotationBookmark (const SwPaM &rPaM, const OUString &rProposedName, MarkType eMark, ::sw::mark::InsertMode eMode, SwPosition const *pSepPos=nullptr)=0 |
virtual const_iterator_t | findAnnotationBookmark (const OUString &rName) const =0 |
virtual void | restoreAnnotationMarks (bool bDelete=true)=0 |
virtual const_iterator_t | findFirstAnnotationStartsAfter (const SwPosition &rPos) const =0 |
Finds the first mark that is starting after. More... | |
Private Member Functions | |
MarkManager (MarkManager const &)=delete | |
MarkManager & | operator= (MarkManager const &)=delete |
OUString | getUniqueMarkName (const OUString &rName) const |
void | sortSubsetMarks () |
void | sortMarks () |
Additional Inherited Members | |
Static Public Member Functions inherited from IDocumentMarkAccess | |
static SW_DLLPUBLIC MarkType | GetType (const ::sw::mark::IMark &rMark) |
Returns the MarkType used to create the mark. More... | |
static SW_DLLPUBLIC OUString | GetCrossRefHeadingBookmarkNamePrefix () |
static SW_DLLPUBLIC bool | IsLegalPaMForCrossRefHeadingBookmark (const SwPaM &rPaM) |
static void | DeleteFieldmarkCommand (::sw::mark::IFieldmark const &rMark) |
Protected Member Functions inherited from IDocumentMarkAccess | |
virtual | ~IDocumentMarkAccess () |
Definition at line 36 of file MarkManager.hxx.
typedef std::vector<sw::mark::MarkBase*> sw::mark::MarkManager::container_t |
Definition at line 124 of file MarkManager.hxx.
|
privatedelete |
|
overridevirtual |
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 1524 of file docbm.cxx.
References deleteFieldmarkAt(), SwPaM::GetPoint(), makeFieldBookmark(), makeNoTextFieldBookmark(), ODF_FORMCHECKBOX, ODF_FORMDATE, ODF_FORMDROPDOWN, sName, and SwPaM::Start().
|
overridevirtual |
Clear (deletes) all marks.
Implements IDocumentMarkAccess.
Definition at line 1388 of file docbm.cxx.
References ClearFieldActivation(), m_vAllMarks, m_vAnnotationMarks, m_vBookmarks, m_vFieldmarks, and p.
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 1618 of file docbm.cxx.
References m_pLastActiveFieldmark, and sw::mark::FieldmarkWithDropDownButton::RemoveButton().
Referenced by clearAllMarks(), deleteMark(), and NotifyCursorUpdate().
|
overridevirtual |
Corrects marks (absolute) This method ignores the previous position of the mark in the paragraph.
rOldNode | [in] the node from which nodes should be moved |
rNewPos | [in] new position to which marks will be moved, if nOffset == 0 |
nOffset | [in] the offset by which the mark gets positioned of rNewPos |
Implements IDocumentMarkAccess.
Definition at line 905 of file docbm.cxx.
References SwPosition::AdjustContent(), sw::mark::MarkBase::GetMarkPos(), SwPosition::GetNode(), sw::mark::MarkBase::GetOtherMarkPos(), sw::mark::MarkBase::IsExpanded(), m_vAllMarks, SAL_INFO, sw::mark::MarkBase::SetMarkPos(), sw::mark::MarkBase::SetOtherMarkPos(), and sortMarks().
|
overridevirtual |
Corrects marks (relative) This method uses the previous position of the mark in the paragraph as offset.
rOldNode | [in] the node from which nodes should be moved |
rNewPos | [in] new position to which marks from the start of the paragraph will be moved, if nOffset == 0 |
nOffset | [in] the offset by which the mark gets positioned of rNewPos in addition to its old position in the paragraph |
Implements IDocumentMarkAccess.
Definition at line 951 of file docbm.cxx.
References SwPosition::AdjustContent(), SwPosition::GetContentIndex(), sw::mark::MarkBase::GetMarkPos(), SwPosition::GetNode(), sw::mark::MarkBase::GetOtherMarkPos(), sw::mark::MarkBase::IsExpanded(), m_vAllMarks, SAL_INFO, SwPosition::SetContent(), sw::mark::MarkBase::SetMarkPos(), sw::mark::MarkBase::SetOtherMarkPos(), and sortMarks().
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 1516 of file docbm.cxx.
References deleteMark(), getFieldmarkAt(), and m_vAllMarks.
Referenced by changeFormFieldmarkType().
|
overridevirtual |
Deletes a mark.
ppMark | [in] the name of the mark to be deleted. |
Implements IDocumentMarkAccess.
|
overridevirtual |
Deletes a mark.
ppMark | [in] an iterator pointing to the Mark to be deleted. |
isMoveNodes | [in] the mark is deleted only temporarily for a node move, do not remove fieldmark chars. |
Implements IDocumentMarkAccess.
Definition at line 1268 of file docbm.cxx.
References IDocumentMarkAccess::ANNOTATIONMARK, IDocumentMarkAccess::BOOKMARK, IDocumentMarkAccess::CHECKBOX_FIELDMARK, ClearFieldActivation(), IDocumentMarkAccess::CROSSREF_HEADING_BOOKMARK, IDocumentMarkAccess::CROSSREF_NUMITEM_BOOKMARK, IDocumentMarkAccess::DATE_FIELDMARK, IDocumentMarkAccess::DDE_BOOKMARK, IDocumentMarkAccess::DROPDOWN_FIELDMARK, IDocumentMarkAccess::iterator::get(), IDocumentMarkAccess::GetType(), m_pLastActiveFieldmark, m_rDoc, m_vAllMarks, m_vAnnotationMarks, m_vBookmarks, m_vFieldmarks, IDocumentMarkAccess::NAVIGATOR_REMINDER, sw::mark::Bookmark::sendLOKDeleteCallback(), IDocumentMarkAccess::TEXT_FIELDMARK, and IDocumentMarkAccess::UNO_BOOKMARK.
Referenced by deleteFieldmarkAt(), deleteMarks(), and restoreAnnotationMarks().
|
overridevirtual |
Deletes marks in a range.
Note: navigator reminders are excluded
Implements IDocumentMarkAccess.
Definition at line 1095 of file docbm.cxx.
References IDocumentMarkAccess::ANNOTATIONMARK, IDocumentMarkAccess::CROSSREF_HEADING_BOOKMARK, IDocumentMarkAccess::CROSSREF_NUMITEM_BOOKMARK, deleteMark(), SwNode::GetContentNode(), sw::mark::MarkBase::GetMarkPos(), SwPosition::GetNode(), sw::mark::MarkBase::GetOtherMarkPos(), IDocumentMarkAccess::GetType(), sw::mark::isDeleteMark(), sw::mark::MarkBase::IsExpanded(), m_vAllMarks, SAL_INFO, sw::mark::MarkBase::SetMarkPos(), sw::mark::MarkBase::SetOtherMarkPos(), sortMarks(), and sortSubsetMarks().
void sw::mark::MarkManager::dumpAsXml | ( | xmlTextWriterPtr | pWriter | ) | const |
Definition at line 1849 of file docbm.cxx.
References m_vAllMarks, m_vAnnotationMarks, m_vBookmarks, m_vFieldmarks, and pName.
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 1752 of file docbm.cxx.
References findBookmark(), and S_ANNOTATION_BOOKMARK.
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 1713 of file docbm.cxx.
References m_vAnnotationMarks.
Referenced by restoreAnnotationMarks().
|
overridevirtual |
Finds a bookmark by name.
rName | [in] the name of the bookmark to find. |
Implements IDocumentMarkAccess.
Definition at line 1405 of file docbm.cxx.
References m_vBookmarks.
Referenced by findAnnotationBookmark().
|
overridevirtual |
Finds the first mark that is starting after.
Implements IDocumentMarkAccess.
Definition at line 1731 of file docbm.cxx.
References m_vAnnotationMarks.
|
overridevirtual |
Finds the first mark that is starting after.
Implements IDocumentMarkAccess.
Definition at line 1439 of file docbm.cxx.
References m_vBookmarks.
|
overridevirtual |
Finds a mark by name.
rName | [in] the name of the mark to find. |
Implements IDocumentMarkAccess.
Definition at line 1399 of file docbm.cxx.
References m_vAllMarks.
|
overridevirtual |
returns a STL-like random access iterator to the begin of the sequence of marks.
Implements IDocumentMarkAccess.
Definition at line 1411 of file docbm.cxx.
References m_vAllMarks.
|
overridevirtual |
returns the number of marks.
Note: annotation marks are excluded
Implements IDocumentMarkAccess.
Definition at line 1417 of file docbm.cxx.
References m_vAllMarks.
|
overridevirtual |
returns a STL-like random access iterator to the end of the sequence of marks.
Implements IDocumentMarkAccess.
Definition at line 1414 of file docbm.cxx.
References m_vAllMarks.
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 1719 of file docbm.cxx.
References m_vAnnotationMarks.
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 1698 of file docbm.cxx.
References m_vAnnotationMarks.
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 1708 of file docbm.cxx.
References m_vAnnotationMarks.
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 1703 of file docbm.cxx.
References m_vAnnotationMarks.
Referenced by restoreAnnotationMarks().
|
overridevirtual |
returns a STL-like random access iterator to the begin of the sequence the IBookmarks.
Implements IDocumentMarkAccess.
Definition at line 1420 of file docbm.cxx.
References m_vBookmarks.
Referenced by restoreAnnotationMarks().
|
overridevirtual |
returns the number of IBookmarks.
Implements IDocumentMarkAccess.
Definition at line 1426 of file docbm.cxx.
References m_vBookmarks.
|
overridevirtual |
returns a STL-like random access iterator to the end of the sequence of IBookmarks.
Implements IDocumentMarkAccess.
Definition at line 1423 of file docbm.cxx.
References m_vBookmarks.
Referenced by restoreAnnotationMarks().
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 1659 of file docbm.cxx.
References getFieldmarkAt(), and ODF_FORMDROPDOWN.
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 1692 of file docbm.cxx.
References m_vFieldmarks.
|
overridevirtual |
get Fieldmark for CH_TXT_ATR_FIELDSTART/CH_TXT_ATR_FIELDEND at rPos
Implements IDocumentMarkAccess.
Definition at line 1448 of file docbm.cxx.
References m_vFieldmarks.
Referenced by deleteFieldmarkAt(), and getDropDownFor().
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 1695 of file docbm.cxx.
References m_vFieldmarks.
|
overridevirtual |
returns a STL-like random access iterator to the begin of the sequence of fieldmarks.
Implements IDocumentMarkAccess.
Definition at line 1429 of file docbm.cxx.
References m_vFieldmarks.
|
overridevirtual |
returns the number of IFieldmarks.
Implements IDocumentMarkAccess.
Definition at line 1435 of file docbm.cxx.
References m_vFieldmarks.
|
overridevirtual |
returns a STL-like random access iterator to the end of the sequence of fieldmarks.
Implements IDocumentMarkAccess.
Definition at line 1432 of file docbm.cxx.
References m_vFieldmarks.
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 1464 of file docbm.cxx.
References m_vFieldmarks.
Referenced by NotifyCursorUpdate().
|
overridevirtual |
Returns a mark in the document for a paragraph.
If there is none, a mark will be created.
rTextNode | [in] the paragraph being marked (a selection over the paragraph is marked) |
eMark | [in] the type of the new mark. |
Implements IDocumentMarkAccess.
Definition at line 829 of file docbm.cxx.
References eType, m_vBookmarks, makeMark(), and sw::mark::New.
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 1667 of file docbm.cxx.
References SwPaM::ContainsPosition(), sw::mark::IMark::GetMarkPos(), m_vFieldmarks, ODF_FORMCHECKBOX, and ODF_FORMDROPDOWN.
|
overridevirtual |
Get the innermost bookmark that contains rPos.
Implements IDocumentMarkAccess.
Definition at line 1489 of file docbm.cxx.
References sw::mark::IMark::GetMarkEnd(), sw::mark::IMark::GetMarkStart(), and m_vBookmarks.
|
private |
Definition at line 1791 of file docbm.cxx.
References DateTimeToOString(), SwDoc::IsInMailMerge(), m_aMarkBasenameMapUniqueOffset, m_rDoc, m_vAllMarks, newName(), SAL_MAX_INT32, SwResId(), and DateTime::SYSTEM.
Referenced by makeMark().
|
overridevirtual |
check if the selection would delete a BOOKMARK
Implements IDocumentMarkAccess.
Definition at line 1073 of file docbm.cxx.
References IDocumentMarkAccess::BOOKMARK, SwPaM::End(), SwPosition::GetContentIndex(), SwPosition::GetNode(), IDocumentMarkAccess::GetType(), sw::mark::isDeleteMark(), m_vBookmarks, and SwPaM::Start().
void sw::mark::MarkManager::LOKUpdateActiveField | ( | const SfxViewShell * | pViewShell | ) |
Definition at line 1626 of file docbm.cxx.
References sw::mark::Fieldmark::GetFieldname(), comphelper::LibreOfficeKit::isActive(), m_pLastActiveFieldmark, m_vFieldmarks, ODF_FORMDROPDOWN, and sw::mark::DropDownFieldmark::SendLOKHideMessage().
Referenced by NotifyCursorUpdate().
|
override |
Definition at line 1741 of file docbm.cxx.
References eMode, eType, makeMark(), and S_ANNOTATION_BOOKMARK.
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 841 of file docbm.cxx.
References IDocumentMarkAccess::ANNOTATIONMARK, makeMark(), and sw::mark::New.
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 740 of file docbm.cxx.
References IDocumentMarkAccess::DATE_FIELDMARK, SwDoc::GetIDocumentUndoRedo(), m_rDoc, makeMark(), sw::mark::New, ODF_FORMDATE, and IDocumentMarkAccess::TEXT_FIELDMARK.
Referenced by changeFormFieldmarkType().
|
override |
Definition at line 568 of file docbm.cxx.
References IDocumentMarkAccess::ANNOTATIONMARK, IDocumentMarkAccess::BOOKMARK, IDocumentMarkAccess::CHECKBOX_FIELDMARK, IDocumentMarkAccess::CROSSREF_HEADING_BOOKMARK, IDocumentMarkAccess::CROSSREF_NUMITEM_BOOKMARK, IDocumentMarkAccess::DATE_FIELDMARK, IDocumentMarkAccess::DDE_BOOKMARK, IDocumentMarkAccess::DROPDOWN_FIELDMARK, eMode, SwPaM::End(), eType, SwPosition::GetContentIndex(), SwPaM::GetMark(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwPaM::GetPoint(), getUniqueMarkName(), SwPaM::HasMark(), sw::mark::IsFieldmarkOverlap(), SwNode::IsStartNode(), SwNode::IsTextNode(), m_rDoc, m_vAllMarks, m_vAnnotationMarks, m_vBookmarks, m_vFieldmarks, IDocumentMarkAccess::NAVIGATOR_REMINDER, sw::mark::New, SAL_INFO, SAL_WARN, SwPaM::Start(), SwNode::StartOfSectionNode(), IDocumentMarkAccess::TEXT_FIELDMARK, IDocumentMarkAccess::UNO_BOOKMARK, and sw::UpdateFramesForAddDeleteRedline().
Referenced by getMarkForTextNode(), makeAnnotationBookmark(), makeAnnotationMark(), makeFieldBookmark(), and makeNoTextFieldBookmark().
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 780 of file docbm.cxx.
References IDocumentMarkAccess::CHECKBOX_FIELDMARK, IDocumentMarkAccess::DATE_FIELDMARK, IDocumentMarkAccess::DROPDOWN_FIELDMARK, SwDoc::getIDocumentState(), SwDoc::GetIDocumentUndoRedo(), IDocumentState::IsEnableSetModified(), m_rDoc, makeMark(), sw::mark::New, ODF_FORMCHECKBOX, ODF_FORMDATE, ODF_FORMDROPDOWN, IDocumentState::SetEnableSetModified(), and IDocumentState::SetModified().
Referenced by changeFormFieldmarkType().
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 1576 of file docbm.cxx.
References SwPosition::AdjustContent(), ClearFieldActivation(), SwPosition::GetContentIndex(), SwCursorShell::GetCursor(), SwView::GetEditWin(), getInnerFieldmarkFor(), SwPaM::GetPoint(), SwViewShell::GetSfxViewShell(), LOKUpdateActiveField(), m_pLastActiveFieldmark, ODF_FORMDATE, ODF_FORMDROPDOWN, and sw::mark::FieldmarkWithDropDownButton::ShowButton().
|
privatedelete |
|
overridevirtual |
Renames an existing Mark, if possible.
io_pMark | [in/out] the mark to be renamed |
rNewName | [in] new name for the mark |
Implements IDocumentMarkAccess.
Definition at line 876 of file docbm.cxx.
References SwPosition::GetDoc(), SwDoc::getIDocumentState(), SwDoc::GetIDocumentUndoRedo(), sw::mark::IMark::GetMarkPos(), sw::mark::IMark::GetName(), m_rDoc, m_vAllMarks, and IDocumentState::SetModified().
|
overridevirtual |
Moves an existing mark to a new selection and performs needed updates.
io_pMark | [in/out] the mark to be moved |
rPaM | [in] new selection to be marked |
Implements IDocumentMarkAccess.
Definition at line 849 of file docbm.cxx.
References sw::mark::MarkBase::ClearOtherMarkPos(), SwPosition::GetDoc(), SwPaM::GetMark(), sw::mark::IMark::GetMarkPos(), sw::mark::MarkBase::GetMarkPos(), sw::mark::MarkBase::GetMarkStart(), SwPaM::GetPoint(), SwPaM::HasMark(), sw::mark::MarkBase::InvalidateFrames(), m_rDoc, sw::mark::MarkBase::SetMarkPos(), sw::mark::MarkBase::SetOtherMarkPos(), sortMarks(), and sw::mark::MarkBase::Swap().
Referenced by restoreAnnotationMarks().
|
overridevirtual |
Implements IDocumentMarkAccess.
Definition at line 1760 of file docbm.cxx.
References deleteMark(), findAnnotationMark(), getAnnotationMarksEnd(), getBookmarksBegin(), getBookmarksEnd(), SwDoc::GetIDocumentUndoRedo(), m_rDoc, nPos, repositionMark(), and S_ANNOTATION_BOOKMARK.
|
private |
Definition at line 1843 of file docbm.cxx.
References m_vAllMarks, and sortSubsetMarks().
Referenced by assureSortedMarkContainers(), correctMarksAbsolute(), correctMarksRelative(), deleteMarks(), and repositionMark().
|
private |
Definition at line 1836 of file docbm.cxx.
References m_vAnnotationMarks, m_vBookmarks, and m_vFieldmarks.
Referenced by deleteMarks(), and sortMarks().
|
mutableprivate |
Definition at line 153 of file MarkManager.hxx.
Referenced by getUniqueMarkName().
|
private |
Definition at line 160 of file MarkManager.hxx.
Referenced by ClearFieldActivation(), deleteMark(), LOKUpdateActiveField(), and NotifyCursorUpdate().
|
private |
Definition at line 158 of file MarkManager.hxx.
Referenced by deleteMark(), getUniqueMarkName(), makeFieldBookmark(), makeMark(), makeNoTextFieldBookmark(), renameMark(), repositionMark(), and restoreAnnotationMarks().
|
private |
Definition at line 146 of file MarkManager.hxx.
Referenced by clearAllMarks(), correctMarksAbsolute(), correctMarksRelative(), deleteFieldmarkAt(), deleteMark(), deleteMarks(), dumpAsXml(), findMark(), getAllMarksBegin(), getAllMarksCount(), getAllMarksEnd(), getUniqueMarkName(), makeMark(), renameMark(), and sortMarks().
|
private |
Definition at line 156 of file MarkManager.hxx.
Referenced by clearAllMarks(), deleteMark(), dumpAsXml(), findAnnotationMark(), findFirstAnnotationStartsAfter(), getAnnotationMarkFor(), getAnnotationMarksBegin(), getAnnotationMarksCount(), getAnnotationMarksEnd(), makeMark(), and sortSubsetMarks().
|
private |
Definition at line 149 of file MarkManager.hxx.
Referenced by clearAllMarks(), deleteMark(), dumpAsXml(), findBookmark(), findFirstBookmarkStartsAfter(), getBookmarksBegin(), getBookmarksCount(), getBookmarksEnd(), getMarkForTextNode(), getOneInnermostBookmarkFor(), isBookmarkDeleted(), makeMark(), and sortSubsetMarks().
|
private |
Definition at line 151 of file MarkManager.hxx.
Referenced by clearAllMarks(), deleteMark(), dumpAsXml(), getFieldmarkAfter(), getFieldmarkAt(), getFieldmarkBefore(), getFieldmarksBegin(), getFieldmarksCount(), getFieldmarksEnd(), getInnerFieldmarkFor(), getNoTextFieldmarksIn(), LOKUpdateActiveField(), makeMark(), and sortSubsetMarks().