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 () |
![]() | |
SvtListener () | |
SvtListener (const SvtListener &r) | |
virtual | ~SvtListener () COVERITY_NOEXCEPT_FALSE |
bool | StartListening (SvtBroadcaster &rBroadcaster) |
bool | EndListening (SvtBroadcaster &rBroadcaster) |
void | EndListeningAll () |
void | CopyAllBroadcasters (const SvtListener &r) |
bool | HasBroadcaster () const |
virtual void | Query (QueryBase &rQuery) const |
Public Attributes | |
uno::WeakReference< uno::XInterface > | m_wThis |
::comphelper::OInterfaceContainerHelper2 | m_EventListeners |
bool | m_bIsDescriptor |
SwDoc * | m_pDoc |
const SwFormatRefMark * | m_pMarkFormat |
OUString | m_sMarkName |
Protected Member Functions | |
virtual void | Notify (const SfxHint &) override |
Private Attributes | |
::osl::Mutex | m_Mutex |
Definition at line 63 of file unorefmk.cxx.
|
inline |
Definition at line 77 of file unorefmk.cxx.
References sw::BroadcasterMixin::GetNotifier(), SwFormatRefMark::GetRefName(), 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 203 of file unorefmk.cxx.
References assert(), DONTEXPAND, SvtListener::EndListeningAll(), SwPaM::Exchange(), FORCEHINTEXPAND, SwPaM::GetDoc(), SwDoc::getIDocumentContentOperations(), SwIndex::GetIndex(), SwPaM::GetMark(), SwPaM::GetNode(), SwPaM::GetPoint(), SwTextAttr::GetRefMark(), SwTextNode::GetTextAttrForCharAt(), SwTextNode::GetTextAttrsAt(), SwNode::GetTextNode(), IDocumentContentOperations::InsertPoolItem(), SwXTextCursor::IsAtEndOfMeta(), m_pMarkFormat, m_sMarkName, SwPosition::nContent, RES_TXTATR_REFMARK(), and SvtListener::StartListening().
void SwXReferenceMark::Impl::Invalidate | ( | ) |
Definition at line 98 of file unorefmk.cxx.
References comphelper::OInterfaceContainerHelper2::disposeAndClear(), SvtListener::EndListeningAll(), m_EventListeners, m_pDoc, m_pMarkFormat, and m_wThis.
|
inline |
Definition at line 90 of file unorefmk.cxx.
References m_pMarkFormat.
Reimplemented from SvtListener.
Definition at line 112 of file unorefmk.cxx.
References SfxHint::GetId().
bool SwXReferenceMark::Impl::m_bIsDescriptor |
Definition at line 72 of file unorefmk.cxx.
::comphelper::OInterfaceContainerHelper2 SwXReferenceMark::Impl::m_EventListeners |
Definition at line 71 of file unorefmk.cxx.
Referenced by Invalidate().
|
private |
Definition at line 67 of file unorefmk.cxx.
SwDoc* SwXReferenceMark::Impl::m_pDoc |
Definition at line 73 of file unorefmk.cxx.
Referenced by Invalidate().
const SwFormatRefMark* SwXReferenceMark::Impl::m_pMarkFormat |
Definition at line 74 of file unorefmk.cxx.
Referenced by InsertRefMark(), Invalidate(), and IsValid().
OUString SwXReferenceMark::Impl::m_sMarkName |
Definition at line 75 of file unorefmk.cxx.
Referenced by InsertRefMark().
uno::WeakReference<uno::XInterface> SwXReferenceMark::Impl::m_wThis |
Definition at line 70 of file unorefmk.cxx.
Referenced by Invalidate().