LibreOffice Module sw (master)  1
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
sw::mark::MarkBase Class Reference

#include <bookmrk.hxx>

Inheritance diagram for sw::mark::MarkBase:
Collaboration diagram for sw::mark::MarkBase:

Public Member Functions

virtual SwPositionGetMarkPos () const override
virtual const OUString & GetName () const override
virtual SwPositionGetOtherMarkPos () const override
virtual SwPositionGetMarkStart () const override
virtual SwPositionGetMarkEnd () const override
virtual bool IsCoveringPosition (const SwPosition &rPos) const override
virtual 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
virtual OUString ToString () const override
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const override
void Swap ()
virtual void InitDoc (SwDoc &, sw::mark::InsertMode, SwPosition const *)
virtual ~MarkBase () override
const css::uno::WeakReference< css::text::XTextContent > & GetXBookmark () const
void SetXBookmark (css::uno::Reference< css::text::XTextContent > const &xBkmk)
- Public Member Functions inherited from sw::BroadcastingModify
virtual void CallSwClientNotify (const SfxHint &rHint) const override
- Public Member Functions inherited from SwModify
 SwModify ()
virtual ~SwModify () override
void Add (SwClient *pDepend)
SwClientRemove (SwClient *pDepend)
bool HasWriterListeners () const
bool HasOnlyOneListener () const
virtual bool GetInfo (SfxPoolItem &) const override
void LockModify ()
void UnlockModify ()
bool IsModifyLocked () const
- Public Member Functions inherited from SwClient
 SwClient ()
 SwClient (SwClient &&) noexcept
virtual ~SwClient () override
std::optional< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
void CheckRegistrationFormat (SwFormat &rOld)
const SwModifyGetRegisteredIn () const
SwModifyGetRegisteredIn ()
void EndListeningAll ()
void StartListeningToSameModifyAs (const SwClient &)
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
virtual const SwCellFrameDynCastCellFrame () const
virtual const SwTabFrameDynCastTabFrame () const
virtual const SwRowFrameDynCastRowFrame () const
- Public Member Functions inherited from sw::BroadcasterMixin
 BroadcasterMixin ()=default
 BroadcasterMixin (BroadcasterMixin const &)=default
BroadcasterMixinoperator= (const BroadcasterMixin &)
SvtBroadcasterGetNotifier ()

Protected Member Functions

virtual void SwClientNotify (const SwModify &, const SfxHint &) override
 MarkBase (const SwPaM &rPaM, const OUString &rName)
- Protected Member Functions inherited from sw::mark::IMark
 IMark ()=default
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
SwModifyGetRegisteredInNonConst () const
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE

Static Protected Member Functions

static OUString GenerateNewName (std::u16string_view rPrefix)

Protected Attributes

std::unique_ptr< SwPositionm_pPos1
std::unique_ptr< SwPositionm_pPos2
OUString m_aName
css::uno::WeakReference< css::text::XTextContent > m_wXBookmark

Detailed Description

Definition at line 45 of file bookmrk.hxx.

Constructor & Destructor Documentation

sw::mark::MarkBase::~MarkBase ( )

Definition at line 315 of file bookmrk.cxx.

sw::mark::MarkBase::MarkBase ( const SwPaM rPaM,
const OUString &  rName 

Member Function Documentation

virtual void sw::mark::MarkBase::ClearOtherMarkPos ( )

Reimplemented in sw::mark::CrossRefBookmark.

Definition at line 84 of file bookmrk.hxx.

References m_pPos2.

void sw::mark::MarkBase::dumpAsXml ( xmlTextWriterPtr  pWriter) const

Implements sw::mark::IMark.

Reimplemented in sw::mark::Fieldmark.

Definition at line 299 of file bookmrk.cxx.

References SwPosition::dumpAsXml(), GetMarkPos(), GetOtherMarkPos(), IsExpanded(), m_aName, and void().

Referenced by sw::mark::Fieldmark::dumpAsXml().

OUString sw::mark::MarkBase::GenerateNewName ( std::u16string_view  rPrefix)
virtual SwPosition& sw::mark::MarkBase::GetMarkEnd ( ) const
virtual SwPosition& sw::mark::MarkBase::GetMarkPos ( ) const
virtual SwPosition& sw::mark::MarkBase::GetMarkStart ( ) const

Implements sw::mark::IMark.

Reimplemented in sw::mark::CrossRefBookmark.

Definition at line 59 of file bookmrk.hxx.

References GetMarkPos(), GetOtherMarkPos(), and IsExpanded().

Referenced by IsCoveringPosition().

virtual const OUString& sw::mark::MarkBase::GetName ( ) const
virtual SwPosition& sw::mark::MarkBase::GetOtherMarkPos ( ) const
const css::uno::WeakReference< css::text::XTextContent>& sw::mark::MarkBase::GetXBookmark ( ) const

Definition at line 104 of file bookmrk.hxx.

References m_wXBookmark.

Referenced by SwXBookmark::CreateXBookmark(), and SwXFieldmark::CreateXFieldmark().

virtual void sw::mark::MarkBase::InitDoc ( SwDoc ,
sw::mark::InsertMode  ,
SwPosition const *   
auto sw::mark::MarkBase::InvalidateFrames ( ) -> void

Reimplemented in sw::mark::Bookmark.

Definition at line 355 of file bookmrk.cxx.

Referenced by sw::mark::MarkManager::repositionMark().

bool sw::mark::MarkBase::IsCoveringPosition ( const SwPosition rPos) const

Implements sw::mark::IMark.

Definition at line 275 of file bookmrk.cxx.

References GetMarkEnd(), and GetMarkStart().

virtual bool sw::mark::MarkBase::IsExpanded ( ) const
void sw::mark::MarkBase::SetMarkPos ( const SwPosition rNewPos)
void sw::mark::MarkBase::SetName ( const OUString &  rName)

Definition at line 80 of file bookmrk.hxx.

References m_aName.

Referenced by sw::mark::AnnotationMark::AnnotationMark(), and sw::mark::AnnotationMark::InitDoc().

void sw::mark::MarkBase::SetOtherMarkPos ( const SwPosition rNewPos)
void sw::mark::MarkBase::SetXBookmark ( css::uno::Reference< css::text::XTextContent > const &  xBkmk)

Definition at line 106 of file bookmrk.hxx.

References m_wXBookmark.

Referenced by SwClientNotify().

void sw::mark::MarkBase::Swap ( )

Definition at line 92 of file bookmrk.hxx.

References m_pPos1, and m_pPos2.

void sw::mark::MarkBase::SwClientNotify ( const SwModify ,
const SfxHint rHint 
OUString sw::mark::MarkBase::ToString ( ) const

Implements sw::mark::IMark.

Reimplemented in sw::mark::Fieldmark.

Definition at line 292 of file bookmrk.cxx.

References SwIndex::GetIndex(), GetMarkPos(), m_aName, and SwPosition::nContent.

Member Data Documentation

OUString sw::mark::MarkBase::m_aName
std::unique_ptr<SwPosition> sw::mark::MarkBase::m_pPos1
std::unique_ptr<SwPosition> sw::mark::MarkBase::m_pPos2
css::uno::WeakReference< css::text::XTextContent> sw::mark::MarkBase::m_wXBookmark

Definition at line 119 of file bookmrk.hxx.

Referenced by GetXBookmark(), and SetXBookmark().

The documentation for this class was generated from the following files: