LibreOffice Module test (master) 1
Public Member Functions | Protected Attributes | List of all members
test::EventPosterHelper Class Reference

Helper to send events to a window. More...

#include <eventposter.hxx>

Inheritance diagram for test::EventPosterHelper:
[legend]
Collaboration diagram for test::EventPosterHelper:
[legend]

Public Member Functions

 EventPosterHelper (void)
 
 EventPosterHelper (VclPtr< vcl::Window > xWindow)
 
 EventPosterHelper (vcl::Window *pWindow)
 
vcl::WindowgetWindow () const
 
void setWindow (VclPtr< vcl::Window > xWindow)
 
void setWindow (vcl::Window *pWindow)
 
 operator bool () const
 
bool operator! () const
 
virtual void postKeyEventAsync (int nType, int nCharCode, int nKeyCode) const override
 
virtual void postExtTextEventAsync (int nType, const OUString &rText) const override
 
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...
 
- Public Member Functions inherited from test::EventPosterHelperBase
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...
 

Protected Attributes

VclPtr< vcl::WindowmxWindow
 

Detailed Description

Helper to send events to a window.

This helper basically just wraps SfxLokHelper::post*EventAsync() calls to hold the target window reference in the class.

Definition at line 66 of file eventposter.hxx.

Constructor & Destructor Documentation

◆ EventPosterHelper() [1/3]

test::EventPosterHelper::EventPosterHelper ( void  )
inline

Definition at line 72 of file eventposter.hxx.

◆ EventPosterHelper() [2/3]

test::EventPosterHelper::EventPosterHelper ( VclPtr< vcl::Window xWindow)
inline

Definition at line 76 of file eventposter.hxx.

◆ EventPosterHelper() [3/3]

test::EventPosterHelper::EventPosterHelper ( vcl::Window pWindow)
inline

Definition at line 80 of file eventposter.hxx.

Member Function Documentation

◆ getWindow()

vcl::Window * test::EventPosterHelper::getWindow ( ) const
inline

Definition at line 85 of file eventposter.hxx.

◆ operator bool()

test::EventPosterHelper::operator bool ( ) const
inlineexplicit

Definition at line 90 of file eventposter.hxx.

◆ operator!()

bool test::EventPosterHelper::operator! ( ) const
inline

Definition at line 91 of file eventposter.hxx.

◆ postExtTextEventAsync() [1/3]

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/3]

void test::EventPosterHelper::postExtTextEventAsync ( int  nType,
const OUString &  rText 
) const
overridevirtual

◆ postExtTextEventAsync() [3/3]

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

◆ postKeyEventAsync() [1/3]

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/3]

void test::EventPosterHelper::postKeyEventAsync ( int  nType,
int  nCharCode,
int  nKeyCode 
) const
overridevirtual

◆ postKeyEventAsync() [3/3]

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

◆ setWindow() [1/2]

void test::EventPosterHelper::setWindow ( vcl::Window pWindow)
inline

Definition at line 88 of file eventposter.hxx.

◆ setWindow() [2/2]

void test::EventPosterHelper::setWindow ( VclPtr< vcl::Window xWindow)
inline

Definition at line 87 of file eventposter.hxx.

Member Data Documentation

◆ mxWindow

VclPtr<vcl::Window> test::EventPosterHelper::mxWindow
protected

Definition at line 69 of file eventposter.hxx.

Referenced by postKeyEventAsync().


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