LibreOffice Module test (master) 1
Public Member Functions | List of all members
test::EventPosterHelperBase Class Referenceabstract

Base helper class to send events to a window. More...

#include <eventposter.hxx>

Inheritance diagram for test::EventPosterHelperBase:
[legend]

Public Member Functions

virtual ~EventPosterHelperBase ()
 
virtual void postKeyEventAsync (int nType, int nCharCode, int nKeyCode) const =0
 
void postKeyEventAsync (int nCharCode, int nKeyCode) const
 Posts a full key down/up cycle. More...
 
virtual void postExtTextEventAsync (int nType, const OUString &rText) const =0
 
void postExtTextEventAsync (const OUString &rText) const
 Posts a full text input + commit sequence. More...
 

Detailed Description

Base helper class to send events to a window.

Implementations of this helper will usually just wrap an implementation of post*Event*() calls. This class is mostly useful to encapsulate the calls when getting the target window is not trivial or is only relevant to sending events, and to have a generic event poster interface.

Additionally, this class provides simplified helpers to send event pairs, like key down/up, or text+commit, to make it easier on the common case for callers.

Definition at line 34 of file eventposter.hxx.

Constructor & Destructor Documentation

◆ ~EventPosterHelperBase()

virtual test::EventPosterHelperBase::~EventPosterHelperBase ( )
inlinevirtual

Definition at line 37 of file eventposter.hxx.

Member Function Documentation

◆ postExtTextEventAsync() [1/2]

void test::EventPosterHelperBase::postExtTextEventAsync ( const OUString &  rText) const
inline

Posts a full text input + commit sequence.

Definition at line 53 of file eventposter.hxx.

◆ postExtTextEventAsync() [2/2]

virtual void test::EventPosterHelperBase::postExtTextEventAsync ( int  nType,
const OUString &  rText 
) const
pure virtual

◆ postKeyEventAsync() [1/2]

void test::EventPosterHelperBase::postKeyEventAsync ( int  nCharCode,
int  nKeyCode 
) const
inline

Posts a full key down/up cycle.

Definition at line 43 of file eventposter.hxx.

◆ postKeyEventAsync() [2/2]

virtual void test::EventPosterHelperBase::postKeyEventAsync ( int  nType,
int  nCharCode,
int  nKeyCode 
) const
pure virtual

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