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

Accessibility-specialized helper to send events to a window. More...

#include <eventposter.hxx>

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

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::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...
 

Additional Inherited Members

- Protected Attributes inherited from test::EventPosterHelper
VclPtr< vcl::WindowmxWindow
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AccessibleEventPosterHelper() [1/2]

test::AccessibleEventPosterHelper::AccessibleEventPosterHelper ( void  )
inline

Definition at line 110 of file eventposter.hxx.

◆ AccessibleEventPosterHelper() [2/2]

test::AccessibleEventPosterHelper::AccessibleEventPosterHelper ( const css::uno::Reference< css::accessibility::XAccessible >  xAcc)
inline

Definition at line 114 of file eventposter.hxx.

Member Function Documentation

◆ setWindow()

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.

Parameters
xAccAn 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 (

See also
VCLXWindow::GetWindow()).

Definition at line 30 of file eventposter.cxx.

References AccessibilityTools::debugString().

Referenced by test::AccessibleTestBase::Dialog::Dialog().


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