28#if wxUSE_ACCESSIBILITY
34 HtmlWindowAx(wxWindow * window);
36 virtual ~ HtmlWindowAx();
40 wxAccStatus GetChild(
int childId, wxAccessible** child)
override;
43 wxAccStatus GetChildCount(
int* childCount)
override;
51 wxAccStatus GetDefaultAction(
int childId, wxString *actionName)
override;
54 wxAccStatus GetDescription(
int childId, wxString *description)
override;
60 wxAccStatus GetFocus(
int *childId, wxAccessible **child)
override;
63 wxAccStatus GetHelpText(
int childId, wxString *helpText)
override;
67 wxAccStatus GetKeyboardShortcut(
int childId, wxString *shortcut)
override;
71 wxAccStatus GetLocation(wxRect& rect,
int elementId)
override;
74 wxAccStatus GetName(
int childId, wxString *
name)
override;
77 wxAccStatus GetRole(
int childId, wxAccRole *role)
override;
87 wxAccStatus GetSelections(wxVariant *selections)
override;
90 wxAccStatus GetState(
int childId,
long* state)
override;
94 wxAccStatus GetValue(
int childId, wxString* strValue)
override;
112 const wxString&
name)
115#if wxUSE_ACCESSIBILITY
116 SetAccessible(
safenew HtmlWindowAx(
this ) );
127#if wxUSE_ACCESSIBILITY
129HtmlWindowAx::HtmlWindowAx( wxWindow *window ):
134HtmlWindowAx::~HtmlWindowAx()
140wxAccStatus HtmlWindowAx::GetChild(
int childId, wxAccessible** child )
142 if( childId == wxACC_SELF )
155wxAccStatus HtmlWindowAx::GetChildCount(
int* childCount)
169wxAccStatus HtmlWindowAx::GetDefaultAction(
int WXUNUSED(childId), wxString* actionName)
177wxAccStatus HtmlWindowAx::GetDescription(
int WXUNUSED(childId), wxString *description )
179 description->clear();
188wxAccStatus HtmlWindowAx::GetFocus(
int* childId, wxAccessible** child)
197wxAccStatus HtmlWindowAx::GetHelpText(
int WXUNUSED(childId), wxString *helpText )
206wxAccStatus HtmlWindowAx::GetKeyboardShortcut(
int WXUNUSED(childId), wxString *shortcut )
215wxAccStatus HtmlWindowAx::GetLocation( wxRect& rect,
int WXUNUSED(elementId) )
219 rect = hw->GetRect();
220 rect.SetPosition( hw->GetParent()->ClientToScreen( rect.GetPosition() ) );
226wxAccStatus HtmlWindowAx::GetName(
int WXUNUSED(childId), wxString*
name)
230 *
name = hw->GetName();
233 *
name = hw->GetLabel();
240wxAccStatus HtmlWindowAx::GetRole(
int WXUNUSED(childId), wxAccRole* role)
242 *role = wxROLE_SYSTEM_STATICTEXT;
255wxAccStatus HtmlWindowAx::GetSelections( wxVariant * WXUNUSED(selections) )
257 return wxACC_NOT_IMPLEMENTED;
261wxAccStatus HtmlWindowAx::GetState(
int WXUNUSED(childId),
long* state)
265 *state = wxACC_STATE_SYSTEM_FOCUSABLE;
274wxAccStatus HtmlWindowAx::GetValue(
int WXUNUSED(childId), wxString* strValue)
278 *strValue = hw->ToText();
HtmlWindow(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxHW_DEFAULT_STYLE, const wxString &name=wxT("htmlWindow"))
Methods for HtmlWindow.
An alternative to using wxWindowAccessible, which in wxWidgets 3.1.1 contained GetParent() which was ...
std::unique_ptr< WindowPlacement > FindFocus()
Find the window that is accepting keyboard input, if any.