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

#include <unocrsr.hxx>

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

Public Member Functions

 UnoCursorPointer ()
 
 UnoCursorPointer (std::shared_ptr< SwUnoCursor > pCursor)
 
 UnoCursorPointer (const UnoCursorPointer &rOther)
 
virtual ~UnoCursorPointer () override
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
SwUnoCursorget () const
 
SwUnoCursoroperator-> () const
 
SwUnoCursoroperator* () const
 
UnoCursorPointeroperator= (UnoCursorPointer aOther)
 
 operator bool () const
 
void reset (std::shared_ptr< SwUnoCursor > pNew)
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

Private Attributes

std::shared_ptr< SwUnoCursorm_pCursor
 

Detailed Description

Definition at line 107 of file unocrsr.hxx.

Constructor & Destructor Documentation

◆ UnoCursorPointer() [1/3]

sw::UnoCursorPointer::UnoCursorPointer ( )
inline

Definition at line 110 of file unocrsr.hxx.

◆ UnoCursorPointer() [2/3]

sw::UnoCursorPointer::UnoCursorPointer ( std::shared_ptr< SwUnoCursor pCursor)
inline

Definition at line 112 of file unocrsr.hxx.

References m_pCursor, and SfxListener::StartListening().

◆ UnoCursorPointer() [3/3]

sw::UnoCursorPointer::UnoCursorPointer ( const UnoCursorPointer rOther)
inline

Definition at line 117 of file unocrsr.hxx.

References m_pCursor, and SfxListener::StartListening().

◆ ~UnoCursorPointer()

virtual sw::UnoCursorPointer::~UnoCursorPointer ( )
inlineoverridevirtual

Definition at line 124 of file unocrsr.hxx.

References SfxListener::EndListening(), and m_pCursor.

Member Function Documentation

◆ get()

SwUnoCursor * sw::UnoCursorPointer::get ( ) const
inline

Definition at line 139 of file unocrsr.hxx.

References m_pCursor.

Referenced by SwXTextCursor::DeleteAndInsert(), SwXTextCursor::GetPaM(), operator*(), and operator->().

◆ Notify()

virtual void sw::UnoCursorPointer::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
inlineoverridevirtual

Reimplemented from SfxListener.

Definition at line 129 of file unocrsr.hxx.

References SfxListener::EndListening(), SfxListener::GetBroadcasterCount(), and m_pCursor.

◆ operator bool()

sw::UnoCursorPointer::operator bool ( ) const
inlineexplicit

Definition at line 156 of file unocrsr.hxx.

References m_pCursor.

◆ operator*()

SwUnoCursor & sw::UnoCursorPointer::operator* ( void  ) const
inline

Definition at line 143 of file unocrsr.hxx.

References get().

◆ operator->()

SwUnoCursor * sw::UnoCursorPointer::operator-> ( ) const
inline

Definition at line 141 of file unocrsr.hxx.

References get().

◆ operator=()

UnoCursorPointer & sw::UnoCursorPointer::operator= ( UnoCursorPointer  aOther)
inline

◆ reset()

void sw::UnoCursorPointer::reset ( std::shared_ptr< SwUnoCursor pNew)
inline

Member Data Documentation

◆ m_pCursor

std::shared_ptr<SwUnoCursor> sw::UnoCursorPointer::m_pCursor
private

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