LibreOffice Module sfx2 (master) 1
|
[Description] More...
#include <hintpost.hxx>
Public Member Functions | |
SfxHintPoster (std::function< void(std::unique_ptr< SfxRequest >)> aLink) | |
void | Post (std::unique_ptr< SfxRequest > pHint) |
void | SetEventHdl (const std::function< void(std::unique_ptr< SfxRequest >)> &rLink) |
Public Member Functions inherited from SvRefBase | |
SvRefBase () | |
SvRefBase (const SvRefBase &) | |
SvRefBase & | operator= (const SvRefBase &) |
void | RestoreNoDelete () |
void | AddNextRef () |
void | AddFirstRef () |
void | ReleaseRef () |
unsigned int | GetRefCount () const |
Private Member Functions | |
DECL_LINK (DoEvent_Impl, void *, void) | |
virtual | ~SfxHintPoster () override |
Private Attributes | |
std::function< void(std::unique_ptr< SfxRequest >)> | m_Link |
Additional Inherited Members | |
Protected Member Functions inherited from SvRefBase | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
[Description]
This class allows sending unique events via VCL's Application::PostUserEvent(). When the User-Event is dispatched, the handler <Event()> is called, which calls the Link provided with SetEventHdl().
The instances are held via Ref-Count until a possibly sent event has arrived. If the target dies before delivery, the connection must be severed with SetEventHdl(Link()).
Definition at line 41 of file hintpost.hxx.
|
overrideprivatevirtual |
Definition at line 31 of file hintpost.cxx.
SfxHintPoster::SfxHintPoster | ( | std::function< void(std::unique_ptr< SfxRequest >)> | aLink | ) |
Definition at line 26 of file hintpost.cxx.
|
private |
void SfxHintPoster::Post | ( | std::unique_ptr< SfxRequest > | pHint | ) |
Definition at line 33 of file hintpost.cxx.
References SvRefBase::AddFirstRef(), LINK, and Application::PostUserEvent().
void SfxHintPoster::SetEventHdl | ( | const std::function< void(std::unique_ptr< SfxRequest >)> & | rLink | ) |
Definition at line 49 of file hintpost.cxx.
References m_Link.
|
private |
Definition at line 44 of file hintpost.hxx.
Referenced by SetEventHdl().