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 ()
void NotifyClients (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
virtual ~SwModify () override
void Add (SwClient *pDepend)
SwClientRemove (SwClient *pDepend)
bool HasWriterListeners () const
virtual bool GetInfo (SfxPoolItem &) const override
void LockModify ()
void UnlockModify ()
void SetInCache (bool bNew)
void SetInSwFntCache (bool bNew)
void SetInDocDTOR ()
bool IsModifyLocked () const
bool IsInCache () const
bool IsInSwFntCache () const
void CheckCaching (const sal_uInt16 nWhich)
bool HasOnlyOneListener () const
- Public Member Functions inherited from SwClient
 SwClient ()
 SwClient (SwClient &&) noexcept
virtual ~SwClient () override
std::unique_ptr< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
void SwClientNotifyCall (const SwModify &rModify, const SfxHint &rHint)
const SwModifyGetRegisteredIn () const
SwModifyGetRegisteredIn ()
void EndListeningAll ()
void StartListeningToSameModifyAs (const SwClient &)
- Public Member Functions inherited from sw::WriterListener
bool IsLast () 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 (const OUString &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 42 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 81 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(), and m_aName.

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

OUString sw::mark::MarkBase::GenerateNewName ( const OUString &  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 56 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 101 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 353 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 77 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 103 of file bookmrk.hxx.

References m_wXBookmark.

Referenced by SwClientNotify().

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

Definition at line 89 of file bookmrk.hxx.

References m_pPos1, and m_pPos2.

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

Reimplemented from SwClient.

Definition at line 343 of file bookmrk.cxx.

References sw::BroadcastingModify::CallSwClientNotify(), RES_REMOVE_UNO_OBJECT(), and SetXBookmark().

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 116 of file bookmrk.hxx.

Referenced by GetXBookmark(), and SetXBookmark().

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