LibreOffice Module test (master) 1
|
Accessibility-specialized helper to send events to a window. More...
#include <eventposter.hxx>
Public Member Functions | |
AccessibleEventPosterHelper (void) | |
AccessibleEventPosterHelper (const css::uno::Reference< css::accessibility::XAccessible > xAcc) | |
void | setWindow (css::uno::Reference< css::accessibility::XAccessible > xAcc) |
Sets the window on which post events based on an accessible object inside it. More... | |
Public Member Functions inherited from test::EventPosterHelper | |
EventPosterHelper (void) | |
EventPosterHelper (VclPtr< vcl::Window > xWindow) | |
EventPosterHelper (vcl::Window *pWindow) | |
vcl::Window * | getWindow () 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... | |
Additional Inherited Members | |
Protected Attributes inherited from test::EventPosterHelper | |
VclPtr< vcl::Window > | mxWindow |
Accessibility-specialized helper to send events to a window.
This augments test::EventPosterHelper
to simplify usage in accessibility tests.
Definition at line 107 of file eventposter.hxx.
|
inline |
Definition at line 110 of file eventposter.hxx.
|
inline |
Definition at line 114 of file eventposter.hxx.
void test::AccessibleEventPosterHelper::setWindow | ( | css::uno::Reference< css::accessibility::XAccessible > | xAcc | ) |
Sets the window on which post events based on an accessible object inside it.
xAcc | An accessible object inside a toplevel. |
This method tries and find the top level window containing xAcc
to use it to post events.
This currently relies on a toplevel accessible being a VCLXWindow
, and requires that window's output device to be set (
Definition at line 30 of file eventposter.cxx.
References AccessibilityTools::debugString().
Referenced by test::AccessibleTestBase::Dialog::Dialog().