LibreOffice Module sw (master) 1
Public Member Functions | Private Attributes | List of all members
sw::WeakNodeContainer Class Referencefinal

Contains the node and tracks if the node gets deleted. More...

#include <OnlineAccessibilityCheck.hxx>

Inheritance diagram for sw::WeakNodeContainer:
[legend]
Collaboration diagram for sw::WeakNodeContainer:
[legend]

Public Member Functions

 WeakNodeContainer (SwNode *pNode)
 
 ~WeakNodeContainer ()
 
bool isAlive ()
 Is the node still alive or it was deleted? More...
 
SwNodegetNode ()
 Returns the pointer of the node or nullptr if the node got deleted. More...
 
- 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
 

Private Attributes

SwNodem_pNode
 

Detailed Description

Contains the node and tracks if the node gets deleted.

Note: the node needs to extend sw::BroadcastingModify.

Definition at line 27 of file OnlineAccessibilityCheck.hxx.

Constructor & Destructor Documentation

◆ WeakNodeContainer()

sw::WeakNodeContainer::WeakNodeContainer ( SwNode pNode)

◆ ~WeakNodeContainer()

sw::WeakNodeContainer::~WeakNodeContainer ( )

Definition at line 51 of file OnlineAccessibilityCheck.cxx.

References SvtListener::EndListeningAll().

Member Function Documentation

◆ getNode()

SwNode * sw::WeakNodeContainer::getNode ( )

Returns the pointer of the node or nullptr if the node got deleted.

Definition at line 62 of file OnlineAccessibilityCheck.cxx.

References isAlive(), and m_pNode.

◆ isAlive()

bool sw::WeakNodeContainer::isAlive ( )

Is the node still alive or it was deleted?

Definition at line 53 of file OnlineAccessibilityCheck.cxx.

References SvtListener::HasBroadcaster(), and m_pNode.

Referenced by getNode().

Member Data Documentation

◆ m_pNode

SwNode* sw::WeakNodeContainer::m_pNode
private

Definition at line 30 of file OnlineAccessibilityCheck.hxx.

Referenced by getNode(), isAlive(), and WeakNodeContainer().


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