LibreOffice Module sw (master) 1
|
Public Member Functions | |
Impl (SwDoc *const pDoc, SwFormatRefMark *const pRefMark) | |
bool | IsValid () const |
void | InsertRefMark (SwPaM &rPam, SwXTextCursor const *const pCursor) |
void | Invalidate () |
Public Member Functions inherited from SvtListener | |
SvtListener ()=default | |
SvtListener (const SvtListener &r)=default | |
virtual | ~SvtListener () COVERITY_NOEXCEPT_FALSE |
bool | StartListening (SvtBroadcaster &rBroadcaster) |
void | EndListening (SvtBroadcaster &rBroadcaster) |
void | EndListeningAll () |
void | CopyAllBroadcasters (const SvtListener &r) |
bool | HasBroadcaster () const |
virtual void | Notify (const SfxHint &rHint) |
virtual void | Query (QueryBase &rQuery) const |
Public Attributes | |
unotools::WeakReference< SwXReferenceMark > | m_wThis |
std::mutex | m_Mutex |
::comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > | m_EventListeners |
bool | m_bIsDescriptor |
SwDoc * | m_pDoc |
const SwFormatRefMark * | m_pMarkFormat |
OUString | m_sMarkName |
Protected Member Functions | |
virtual void | Notify (const SfxHint &) override |
Definition at line 62 of file unorefmk.cxx.
|
inline |
Definition at line 74 of file unorefmk.cxx.
References SwFormatRefMark::GetRefName(), m_sMarkName, and SvtListener::StartListening().
void SwXReferenceMark::Impl::InsertRefMark | ( | SwPaM & | rPam, |
SwXTextCursor const *const | pCursor | ||
) |
in some cases when this function is called the pDoc pointer member may have become invalid/deleted thus we obtain the document pointer from rPaM where it should always be valid.
Definition at line 183 of file unorefmk.cxx.
References DONTEXPAND, SvtListener::EndListeningAll(), SwPaM::Exchange(), FORCEHINTEXPAND, SwPosition::GetContentIndex(), SwPaM::GetDoc(), SwDoc::getIDocumentContentOperations(), SwPaM::GetMark(), SwPaM::GetPoint(), SwPaM::GetPointNode(), SwTextAttr::GetRefMark(), SwTextNode::GetTextAttrForCharAt(), SwTextNode::GetTextAttrsAt(), SwNode::GetTextNode(), IDocumentContentOperations::InsertPoolItem(), SwXTextCursor::IsAtEndOfMeta(), m_pMarkFormat, m_sMarkName, RES_TXTATR_REFMARK(), and SvtListener::StartListening().
void SwXReferenceMark::Impl::Invalidate | ( | ) |
Definition at line 94 of file unorefmk.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::disposeAndClear(), SvtListener::EndListeningAll(), m_EventListeners, m_Mutex, m_pDoc, m_pMarkFormat, and m_wThis.
|
inline |
Definition at line 86 of file unorefmk.cxx.
References m_pMarkFormat.
|
overrideprotectedvirtual |
Reimplemented from SvtListener.
Definition at line 109 of file unorefmk.cxx.
References SfxHint::GetId().
bool SwXReferenceMark::Impl::m_bIsDescriptor |
Definition at line 69 of file unorefmk.cxx.
::comphelper::OInterfaceContainerHelper4<css::lang::XEventListener> SwXReferenceMark::Impl::m_EventListeners |
Definition at line 68 of file unorefmk.cxx.
Referenced by Invalidate().
std::mutex SwXReferenceMark::Impl::m_Mutex |
Definition at line 67 of file unorefmk.cxx.
Referenced by Invalidate().
SwDoc* SwXReferenceMark::Impl::m_pDoc |
Definition at line 70 of file unorefmk.cxx.
Referenced by Invalidate().
const SwFormatRefMark* SwXReferenceMark::Impl::m_pMarkFormat |
Definition at line 71 of file unorefmk.cxx.
Referenced by InsertRefMark(), Invalidate(), and IsValid().
OUString SwXReferenceMark::Impl::m_sMarkName |
Definition at line 72 of file unorefmk.cxx.
Referenced by Impl(), and InsertRefMark().
unotools::WeakReference<SwXReferenceMark> SwXReferenceMark::Impl::m_wThis |
Definition at line 66 of file unorefmk.cxx.
Referenced by Invalidate().