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 OUString ToString () const override
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const override
 
void Swap ()
 
virtual void InitDoc (SwDoc *const, sw::mark::InsertMode)
 
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 ()
 
 SwModify (SwModify *pToRegisterIn)
 
void NotifyClients (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
void ModifyBroadcast (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 ()
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
std::unique_ptr< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
virtual void ModifyNotification (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
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 Modify (const SfxPoolItem *pOld, const SfxPoolItem *pNew) 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 51 of file bookmrk.hxx.

Constructor & Destructor Documentation

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

Definition at line 210 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 90 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 194 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 65 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 108 of file bookmrk.hxx.

References m_wXBookmark.

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

virtual void sw::mark::MarkBase::InitDoc ( SwDoc const,
sw::mark::InsertMode   
)
inlinevirtual
bool sw::mark::MarkBase::IsCoveringPosition ( const SwPosition rPos) const
overridevirtual

Implements sw::mark::IMark.

Definition at line 170 of file bookmrk.cxx.

References GetMarkEnd(), and GetMarkStart().

virtual bool sw::mark::MarkBase::IsExpanded ( ) const
inlineoverridevirtual
void sw::mark::MarkBase::Modify ( const SfxPoolItem pOld,
const SfxPoolItem pNew 
)
overrideprotectedvirtual

Reimplemented from SwModify.

Definition at line 239 of file bookmrk.cxx.

References SwModify::NotifyClients(), RES_REMOVE_UNO_OBJECT, SetXBookmark(), and SfxPoolItem::Which().

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

Definition at line 86 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 110 of file bookmrk.hxx.

References m_wXBookmark.

Referenced by Modify().

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

Definition at line 96 of file bookmrk.hxx.

References m_pPos1, and m_pPos2.

OUString sw::mark::MarkBase::ToString ( ) const
overridevirtual

Implements sw::mark::IMark.

Reimplemented in sw::mark::Fieldmark.

Definition at line 187 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 123 of file bookmrk.hxx.

Referenced by GetXBookmark(), and SetXBookmark().


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