LibreOffice Module sw (master) 1
|
#include <bookmark.hxx>
Public Member Functions | |
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 |
Protected Member Functions | |
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 | |
static OUString | GenerateNewName (std::u16string_view rPrefix) |
Protected Attributes | |
std::optional< SwPosition > | m_oPos1 |
std::optional< SwPosition > | m_oPos2 |
OUString | m_aName |
unotools::WeakReference< SwXBookmark > | m_wXBookmark |
Definition at line 46 of file core/inc/bookmark.hxx.
|
override |
Definition at line 333 of file core/crsr/bookmark.cxx.
|
protected |
Definition at line 273 of file core/crsr/bookmark.cxx.
References aName, SwPaM::GetMark(), SwPaM::GetPoint(), SwPaM::HasMark(), m_aName, m_oPos1, m_oPos2, and SetOtherMarkPos().
|
inlinevirtual |
Reimplemented in sw::mark::CrossRefBookmark.
Definition at line 85 of file core/inc/bookmark.hxx.
References m_oPos2.
Referenced by sw::mark::MarkManager::repositionMark().
|
overridevirtual |
Implements sw::mark::IMark.
Reimplemented in sw::mark::Fieldmark.
Definition at line 317 of file core/crsr/bookmark.cxx.
References SwPosition::dumpAsXml(), GetMarkPos(), GetOtherMarkPos(), IsExpanded(), and m_aName.
Referenced by sw::mark::Fieldmark::dumpAsXml().
|
staticprotected |
Definition at line 336 of file core/crsr/bookmark.cxx.
References n, nCount, SAL_MAX_INT32, and comphelper::rng::uniform_uint_distribution().
Referenced by sw::mark::AnnotationMark::AnnotationMark(), and sw::mark::CrossRefBookmark::CrossRefBookmark().
|
inlineoverridevirtual |
Implements sw::mark::IMark.
Reimplemented in sw::mark::CrossRefBookmark.
Definition at line 68 of file core/inc/bookmark.hxx.
References GetMarkPos(), GetOtherMarkPos(), and IsExpanded().
Referenced by sw::mark::TextFieldmark::GetContent(), sw::mark::DateFieldmark::GetContent(), sw::mark::AnnotationMark::InitDoc(), IsCoveringPosition(), sw::mark::TextFieldmark::ReplaceContent(), and sw::mark::DateFieldmark::ReplaceContent().
|
inlineoverridevirtual |
Implements sw::mark::IMark.
Definition at line 51 of file core/inc/bookmark.hxx.
Referenced by sw::mark::MarkManager::correctMarksAbsolute(), sw::mark::MarkManager::correctMarksRelative(), sw::mark::MarkManager::deleteMarks(), dumpAsXml(), sw::mark::Fieldmark::Fieldmark(), sw::mark::AnnotationMark::GetAnnotationFormatField(), GetMarkEnd(), GetMarkStart(), sw::mark::Bookmark::GetRegistry(), sw::mark::Fieldmark::Invalidate(), sw::mark::isDeleteMark(), sw::mark::Bookmark::IsInClipboard(), sw::mark::Bookmark::IsInContent(), sw::mark::Bookmark::MakeUnoObject(), sw::mark::TextFieldmark::ReleaseDoc(), sw::mark::DateFieldmark::ReleaseDoc(), sw::mark::MarkManager::repositionMark(), sw::DocumentLinksAdministrationManager::SelectServerObj(), sw::mark::Bookmark::sendLOKDeleteCallback(), sw::mark::CheckboxFieldmark::SetChecked(), sw::mark::Fieldmark::SetMarkStartPos(), ToString(), sw::mark::Fieldmark::ToString(), and sw::mark::TextFieldmark::~TextFieldmark().
|
inlineoverridevirtual |
Implements sw::mark::IMark.
Reimplemented in sw::mark::CrossRefBookmark.
Definition at line 60 of file core/inc/bookmark.hxx.
References GetMarkPos(), GetOtherMarkPos(), and IsExpanded().
Referenced by IsCoveringPosition(), sw::mark::TextFieldmark::ReplaceContent(), sw::mark::DateFieldmark::ReplaceContent(), and sw::mark::MarkManager::repositionMark().
|
inlineoverridevirtual |
Implements sw::mark::IMark.
Definition at line 53 of file core/inc/bookmark.hxx.
References m_aName.
Referenced by sw::mark::AnnotationMark::GetAnnotationFormatField(), sw::mark::AnnotationMark::InitDoc(), and sw::mark::Bookmark::sendLOKDeleteCallback().
|
inlineoverridevirtual |
Implements sw::mark::IMark.
Reimplemented in sw::mark::CrossRefBookmark.
Definition at line 55 of file core/inc/bookmark.hxx.
References IsExpanded().
Referenced by sw::mark::MarkManager::correctMarksAbsolute(), sw::mark::MarkManager::correctMarksRelative(), sw::mark::MarkManager::deleteMarks(), dumpAsXml(), GetMarkEnd(), GetMarkStart(), sw::mark::Fieldmark::Invalidate(), sw::mark::isDeleteMark(), sw::mark::TextFieldmark::ReleaseDoc(), sw::mark::DateFieldmark::ReleaseDoc(), sw::DocumentLinksAdministrationManager::SelectServerObj(), sw::mark::Fieldmark::SetMarkStartPos(), and sw::mark::Fieldmark::ToString().
|
inline |
Definition at line 105 of file core/inc/bookmark.hxx.
References m_wXBookmark.
Referenced by SwXBookmark::CreateXBookmark(), and SwXFieldmark::CreateXFieldmark().
|
inlinevirtual |
Reimplemented in sw::mark::AnnotationMark, sw::mark::Bookmark, sw::mark::TextFieldmark, sw::mark::NonTextFieldmark, and sw::mark::DateFieldmark.
Definition at line 99 of file core/inc/bookmark.hxx.
|
virtual |
Reimplemented in sw::mark::Bookmark.
Definition at line 373 of file core/crsr/bookmark.cxx.
Referenced by sw::mark::MarkManager::repositionMark().
|
overridevirtual |
Implements sw::mark::IMark.
Definition at line 293 of file core/crsr/bookmark.cxx.
References GetMarkEnd(), and GetMarkStart().
|
inlineoverridevirtual |
Implements sw::mark::IMark.
Reimplemented in sw::mark::CrossRefBookmark.
Definition at line 78 of file core/inc/bookmark.hxx.
References m_oPos2.
Referenced by sw::mark::MarkManager::correctMarksAbsolute(), sw::mark::MarkManager::correctMarksRelative(), sw::DocumentLinksAdministrationManager::CreateLinkSource(), sw::mark::MarkManager::deleteMarks(), dumpAsXml(), sw::mark::Fieldmark::Fieldmark(), GetMarkEnd(), GetMarkStart(), GetOtherMarkPos(), sw::mark::isDeleteMark(), and sw::DocumentLinksAdministrationManager::SelectServerObj().
|
virtual |
Reimplemented in sw::mark::CrossRefBookmark.
Definition at line 298 of file core/crsr/bookmark.cxx.
References m_oPos1.
Referenced by sw::mark::MarkManager::correctMarksAbsolute(), sw::mark::MarkManager::correctMarksRelative(), sw::mark::MarkManager::deleteMarks(), sw::mark::MarkManager::repositionMark(), sw::mark::CrossRefBookmark::SetMarkPos(), and sw::mark::Fieldmark::SetMarkStartPos().
|
inline |
Definition at line 81 of file core/inc/bookmark.hxx.
References m_aName.
Referenced by sw::mark::AnnotationMark::AnnotationMark(), and sw::mark::AnnotationMark::InitDoc().
|
virtual |
Reimplemented in sw::mark::CrossRefBookmark.
Definition at line 304 of file core/crsr/bookmark.cxx.
References m_oPos2.
Referenced by sw::mark::MarkManager::correctMarksAbsolute(), sw::mark::MarkManager::correctMarksRelative(), sw::mark::MarkManager::deleteMarks(), sw::mark::Fieldmark::Fieldmark(), MarkBase(), sw::mark::MarkManager::repositionMark(), and sw::mark::Fieldmark::SetMarkStartPos().
void sw::mark::MarkBase::SetXBookmark | ( | rtl::Reference< SwXBookmark > const & | xBkmk | ) |
Definition at line 287 of file core/crsr/bookmark.cxx.
References m_wXBookmark.
Referenced by SwXBookmark::Impl::registerInMark(), and SwClientNotify().
|
inline |
Definition at line 93 of file core/inc/bookmark.hxx.
References m_oPos1, and m_oPos2.
Referenced by sw::mark::MarkManager::repositionMark().
|
overrideprotected |
Definition at line 361 of file core/crsr/bookmark.cxx.
References SfxHint::GetId(), RES_REMOVE_UNO_OBJECT(), and SetXBookmark().
|
overridevirtual |
Implements sw::mark::IMark.
Reimplemented in sw::mark::Fieldmark.
Definition at line 310 of file core/crsr/bookmark.cxx.
References GetMarkPos(), and m_aName.
|
protected |
Definition at line 116 of file core/inc/bookmark.hxx.
Referenced by sw::mark::Bookmark::Bookmark(), sw::mark::CheckboxFieldmark::CheckboxFieldmark(), sw::mark::CrossRefBookmark::CrossRefBookmark(), sw::mark::DropDownFieldmark::DropDownFieldmark(), dumpAsXml(), GetName(), SetName(), sw::mark::TextFieldmark::TextFieldmark(), ToString(), and sw::mark::Fieldmark::ToString().
|
protected |
Definition at line 114 of file core/inc/bookmark.hxx.
Referenced by MarkBase(), SetMarkPos(), and Swap().
|
protected |
Definition at line 115 of file core/inc/bookmark.hxx.
Referenced by ClearOtherMarkPos(), sw::mark::CrossRefBookmark::CrossRefBookmark(), IsExpanded(), MarkBase(), SetOtherMarkPos(), and Swap().
|
protected |
Definition at line 119 of file core/inc/bookmark.hxx.
Referenced by GetXBookmark(), and SetXBookmark().