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 <bookmark.hxx>

Inheritance diagram for sw::mark::MarkBase:
[legend]
Collaboration diagram for sw::mark::MarkBase:
[legend]

Public Member Functions

SwPositionGetMarkPos () const override
 
const OUString & GetName () const override
 
SwPositionGetOtherMarkPos () const override
 
SwPositionGetMarkStart () const override
 
SwPositionGetMarkEnd () 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 SwPositionGetMarkPos () const =0
 
virtual const SwPositionGetOtherMarkPos () const =0
 
virtual const SwPositionGetMarkStart () const =0
 
virtual const SwPositionGetMarkEnd () 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< SwPositionm_oPos1
 
std::optional< SwPositionm_oPos2
 
OUString m_aName
 
unotools::WeakReference< SwXBookmarkm_wXBookmark
 

Detailed Description

Definition at line 46 of file core/inc/bookmark.hxx.

Constructor & Destructor Documentation

◆ ~MarkBase()

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

Definition at line 333 of file core/crsr/bookmark.cxx.

◆ MarkBase()

sw::mark::MarkBase::MarkBase ( const SwPaM rPaM,
OUString  aName 
)
protected

Member Function Documentation

◆ ClearOtherMarkPos()

virtual void sw::mark::MarkBase::ClearOtherMarkPos ( )
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().

◆ dumpAsXml()

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

◆ GenerateNewName()

OUString sw::mark::MarkBase::GenerateNewName ( std::u16string_view  rPrefix)
staticprotected

◆ GetMarkEnd()

SwPosition & sw::mark::MarkBase::GetMarkEnd ( ) const
inlineoverridevirtual

◆ GetMarkPos()

SwPosition & sw::mark::MarkBase::GetMarkPos ( ) const
inlineoverridevirtual

◆ GetMarkStart()

SwPosition & sw::mark::MarkBase::GetMarkStart ( ) const
inlineoverridevirtual

◆ GetName()

const OUString & sw::mark::MarkBase::GetName ( ) const
inlineoverridevirtual

◆ GetOtherMarkPos()

SwPosition & sw::mark::MarkBase::GetOtherMarkPos ( ) const
inlineoverridevirtual

◆ GetXBookmark()

const unotools::WeakReference< SwXBookmark > & sw::mark::MarkBase::GetXBookmark ( ) const
inline

Definition at line 105 of file core/inc/bookmark.hxx.

References m_wXBookmark.

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

◆ InitDoc()

virtual void sw::mark::MarkBase::InitDoc ( SwDoc ,
sw::mark::InsertMode  ,
SwPosition const *   
)
inlinevirtual

◆ InvalidateFrames()

auto sw::mark::MarkBase::InvalidateFrames ( ) -> void
virtual

Reimplemented in sw::mark::Bookmark.

Definition at line 373 of file core/crsr/bookmark.cxx.

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

◆ IsCoveringPosition()

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

Implements sw::mark::IMark.

Definition at line 293 of file core/crsr/bookmark.cxx.

References GetMarkEnd(), and GetMarkStart().

◆ IsExpanded()

bool sw::mark::MarkBase::IsExpanded ( ) const
inlineoverridevirtual

◆ SetMarkPos()

void sw::mark::MarkBase::SetMarkPos ( const SwPosition rNewPos)
virtual

◆ SetName()

void sw::mark::MarkBase::SetName ( const OUString &  rName)
inline

◆ SetOtherMarkPos()

void sw::mark::MarkBase::SetOtherMarkPos ( const SwPosition rNewPos)
virtual

◆ SetXBookmark()

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().

◆ Swap()

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

Definition at line 93 of file core/inc/bookmark.hxx.

References m_oPos1, and m_oPos2.

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

◆ SwClientNotify()

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

Definition at line 361 of file core/crsr/bookmark.cxx.

References SfxHint::GetId(), RES_REMOVE_UNO_OBJECT(), and SetXBookmark().

◆ ToString()

OUString sw::mark::MarkBase::ToString ( ) const
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.

Member Data Documentation

◆ m_aName

OUString sw::mark::MarkBase::m_aName
protected

◆ m_oPos1

std::optional<SwPosition> sw::mark::MarkBase::m_oPos1
protected

Definition at line 114 of file core/inc/bookmark.hxx.

Referenced by MarkBase(), SetMarkPos(), and Swap().

◆ m_oPos2

std::optional<SwPosition> sw::mark::MarkBase::m_oPos2
protected

◆ m_wXBookmark

unotools::WeakReference<SwXBookmark> sw::mark::MarkBase::m_wXBookmark
protected

Definition at line 119 of file core/inc/bookmark.hxx.

Referenced by GetXBookmark(), and SetXBookmark().


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