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:
[legend]
Collaboration diagram for sw::mark::MarkBase:
[legend]

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

Definition at line 315 of file bookmrk.cxx.

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

Member Function Documentation

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

Reimplemented in sw::mark::CrossRefBookmark.

Definition at line 81 of file bookmrk.hxx.

References m_pPos2.

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

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)
staticprotected
virtual SwPosition& sw::mark::MarkBase::GetMarkEnd ( ) const
inlineoverridevirtual
virtual SwPosition& sw::mark::MarkBase::GetMarkPos ( ) const
inlineoverridevirtual
virtual SwPosition& sw::mark::MarkBase::GetMarkStart ( ) const
inlineoverridevirtual

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
inlineoverridevirtual
virtual SwPosition& sw::mark::MarkBase::GetOtherMarkPos ( ) const
inlineoverridevirtual
const css::uno::WeakReference< css::text::XTextContent>& sw::mark::MarkBase::GetXBookmark ( ) const
inline

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 *   
)
inlinevirtual
auto sw::mark::MarkBase::InvalidateFrames ( ) -> void
virtual

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
overridevirtual

Implements sw::mark::IMark.

Definition at line 275 of file bookmrk.cxx.

References GetMarkEnd(), and GetMarkStart().

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

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)
virtual
void sw::mark::MarkBase::SetXBookmark ( css::uno::Reference< css::text::XTextContent > const &  xBkmk)
inline

Definition at line 103 of file bookmrk.hxx.

References m_wXBookmark.

Referenced by SwClientNotify().

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

Definition at line 89 of file bookmrk.hxx.

References m_pPos1, and m_pPos2.

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

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
overridevirtual

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
protected
std::unique_ptr<SwPosition> sw::mark::MarkBase::m_pPos1
protected
std::unique_ptr<SwPosition> sw::mark::MarkBase::m_pPos2
protected
css::uno::WeakReference< css::text::XTextContent> sw::mark::MarkBase::m_wXBookmark
protected

Definition at line 116 of file bookmrk.hxx.

Referenced by GetXBookmark(), and SetXBookmark().


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