LibreOffice Module vcl (master)  1
uiobject.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef INCLUDED_VCL_UITEST_UIOBJECT_HXX
11 #define INCLUDED_VCL_UITEST_UIOBJECT_HXX
12 
13 #include <rtl/ustring.hxx>
14 #include <map>
15 #include <memory>
16 
17 #include <vcl/window.hxx>
18 #include <vcl/dllapi.h>
19 
20 #include <set>
21 
22 class Button;
23 class CheckBox;
24 class ComboBox;
25 class Dialog;
26 class Edit;
27 class IconView;
28 class ListBox;
29 class RadioButton;
30 class TabControl;
31 class TabPage;
32 class SvTreeListBox;
33 class SvTreeListEntry;
34 class SpinButton;
35 class SpinField;
36 class VerticalTabControl;
37 class VclDrawingArea;
38 class VclMultiLineEdit;
39 class MenuButton;
40 class ToolBox;
41 namespace weld { class CustomWidgetController; }
42 
43 typedef std::map<const OUString, OUString> StringMap;
44 
52 {
53  UIObject(UIObject const &) = delete;
54  UIObject& operator =(UIObject const &) = delete;
55 
56 public:
57  UIObject() = default;
58 
59  virtual ~UIObject();
60 
65  virtual StringMap get_state();
66 
71  virtual void execute(const OUString& rAction,
72  const StringMap& rParameters);
73 
78  virtual OUString get_type() const;
79 
85  virtual std::unique_ptr<UIObject> get_child(const OUString& rID);
86 
90  virtual std::set<OUString> get_children() const;
91 
98  virtual OUString dumpState() const;
99 
106  virtual OUString dumpHierarchy() const;
107 
111  virtual OUString get_action(VclEventId nEvent) const;
112 };
113 
115 {
117 
118 public:
119 
120  WindowUIObject(const VclPtr<vcl::Window>& xWindow);
121 
122  virtual StringMap get_state() override;
123 
124  virtual void execute(const OUString& rAction,
125  const StringMap& rParameters) override;
126 
127  virtual OUString get_type() const override;
128 
129  virtual std::unique_ptr<UIObject> get_child(const OUString& rID) override;
130 
131  std::unique_ptr<UIObject> get_visible_child(const OUString& rID);
132 
133  virtual std::set<OUString> get_children() const override;
134 
135  virtual OUString dumpState() const override;
136 
137  virtual OUString dumpHierarchy() const override;
138 
139  virtual OUString get_action(VclEventId nEvent) const override;
140 
141  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
142 
143 protected:
144 
145  virtual OUString get_name() const;
146 
147 };
148 
149 // TODO: moggi: what about push buttons?
150 class ButtonUIObject final : public WindowUIObject
151 {
153 public:
154 
155  ButtonUIObject(const VclPtr<Button>& xButton);
156  virtual ~ButtonUIObject() override;
157 
158  virtual StringMap get_state() override;
159 
160  virtual void execute(const OUString& rAction,
161  const StringMap& rParameters) override;
162 
163  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
164 
165  virtual OUString get_action(VclEventId nEvent) const override;
166 
167 private:
168 
169  virtual OUString get_name() const override;
170 };
171 
172 class DialogUIObject final : public WindowUIObject
173 {
175 
176 public:
177 
178  DialogUIObject(const VclPtr<Dialog>& xDialog);
179  virtual ~DialogUIObject() override;
180 
181  virtual StringMap get_state() override;
182 
183  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
184 
185 private:
186 
187  virtual OUString get_name() const override;
188 };
189 
191 {
193 
194 public:
195 
196  EditUIObject(const VclPtr<Edit>& xEdit);
197  virtual ~EditUIObject() override;
198 
199  virtual void execute(const OUString& rAction,
200  const StringMap& rParameters) override;
201 
202  virtual StringMap get_state() override;
203 
204  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
205 
206  virtual OUString get_action(VclEventId nEvent) const override;
207 
208 protected:
209 
210  virtual OUString get_name() const override;
211 };
212 
214 {
216 
217 public:
218 
220  virtual ~MultiLineEditUIObject() override;
221 
222  virtual void execute(const OUString& rAction,
223  const StringMap& rParameters) override;
224 
225  virtual StringMap get_state() override;
226 
227  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
228 
229 private:
230 
231  virtual OUString get_name() const override;
232 };
233 
234 // TODO: moggi: maybe let it inherit from the button case
235 class CheckBoxUIObject final : public WindowUIObject
236 {
237 private:
239 
240 public:
241  CheckBoxUIObject(const VclPtr<CheckBox>& xCheckbox);
242  virtual ~CheckBoxUIObject() override;
243 
244  virtual void execute(const OUString& rAction,
245  const StringMap& rParameters) override;
246 
247  virtual StringMap get_state() override;
248 
249  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
250 
251  virtual OUString get_action(VclEventId nEvent) const override;
252 
253 private:
254 
255  virtual OUString get_name() const override;
256 };
257 
259 {
260 private:
262 
263 public:
264  RadioButtonUIObject(const VclPtr<RadioButton>& xCheckbox);
265  virtual ~RadioButtonUIObject() override;
266 
267  virtual void execute(const OUString& rAction,
268  const StringMap& rParameters) override;
269 
270  virtual StringMap get_state() override;
271 
272  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
273 
274  virtual OUString get_action(VclEventId nEvent) const override;
275 
276 private:
277 
278  virtual OUString get_name() const override;
279 };
280 
281 class TabPageUIObject final : public WindowUIObject
282 {
283 private:
285 public:
286  TabPageUIObject(const VclPtr<TabPage>& xTabPage);
287  virtual ~TabPageUIObject() override;
288 
289  virtual void execute(const OUString& rAction,
290  const StringMap& rParameters) override;
291 
292  virtual StringMap get_state() override;
293 
294  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
295 
296 private:
297 
298  virtual OUString get_name() const override;
299 };
300 
301 class ListBoxUIObject final : public WindowUIObject
302 {
303 private:
305 
306 public:
307 
308  ListBoxUIObject(const VclPtr<ListBox>& xListBox);
309  virtual ~ListBoxUIObject() override;
310 
311  virtual void execute(const OUString& rAction,
312  const StringMap& rParameters) override;
313 
314  virtual StringMap get_state() override;
315 
316  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
317 
318  virtual OUString get_action(VclEventId nEvent) const override;
319 
320 private:
321 
322  virtual OUString get_name() const override;
323 };
324 
325 // TODO: moggi: should it inherit from EditUIObject?
326 class ComboBoxUIObject final : public WindowUIObject
327 {
328 private:
330 
331 public:
332 
333  ComboBoxUIObject(const VclPtr<ComboBox>& xListBox);
334  virtual ~ComboBoxUIObject() override;
335 
336  virtual void execute(const OUString& rAction,
337  const StringMap& rParameters) override;
338 
339  virtual StringMap get_state() override;
340 
341  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
342 
343  virtual OUString get_action(VclEventId nEvent) const override;
344 
345 private:
346 
347  virtual OUString get_name() const override;
348 };
349 
350 class SpinUIObject final : public WindowUIObject
351 {
352 private:
354 
355 public:
356 
357  SpinUIObject(const VclPtr<SpinButton>& xSpinButton);
358  virtual ~SpinUIObject() override;
359 
360  virtual void execute(const OUString& rAction,
361  const StringMap& rParameters) override;
362 
363  virtual StringMap get_state() override;
364 
365  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
366 
367  virtual OUString get_action(VclEventId nEvent) const override;
368 
369 private:
370 
371  virtual OUString get_name() const override;
372 };
373 
375 {
377 
378 public:
379 
380  SpinFieldUIObject(const VclPtr<SpinField>& xEdit);
381  virtual ~SpinFieldUIObject() override;
382 
383  virtual void execute(const OUString& rAction,
384  const StringMap& rParameters) override;
385 
386  virtual StringMap get_state() override;
387 
388  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
389 
390  virtual OUString get_action(VclEventId nEvent) const override;
391 
392 private:
393 
394  virtual OUString get_name() const override;
395 };
396 
397 class TabControlUIObject final : public WindowUIObject
398 {
399 private:
401 
402 public:
403 
404  TabControlUIObject(const VclPtr<TabControl>& mxTabControl);
405  virtual ~TabControlUIObject() override;
406 
407  virtual void execute(const OUString& rAction,
408  const StringMap& rParameters) override;
409 
410  virtual StringMap get_state() override;
411 
412  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
413 
414  virtual OUString get_action(VclEventId nEvent) const override;
415 
416 private:
417 
418  virtual OUString get_name() const override;
419 };
420 
422 {
423 private:
425 
426 public:
427 
429  virtual ~VerticalTabControlUIObject() override;
430 
431  virtual void execute(const OUString& rAction,
432  const StringMap& rParameters) override;
433 
434  virtual StringMap get_state() override;
435 
436  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
437 
438 private:
439 
440  virtual OUString get_name() const override;
441 };
442 
444 {
445 public:
446  TreeListUIObject(const VclPtr<SvTreeListBox>& xTreeList);
447 
448  virtual StringMap get_state() override;
449 
450  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
451 
452  virtual void execute(const OUString& rAction,
453  const StringMap& rParameters) override;
454 
455  virtual std::unique_ptr<UIObject> get_child(const OUString& rID) override;
456 
457  virtual std::set<OUString> get_children() const override;
458 
459 protected:
460 
461  virtual OUString get_name() const override;
462 
464 };
465 
466 class TreeListEntryUIObject final : public UIObject
467 {
468 public:
469 
471 
472  virtual StringMap get_state() override;
473 
474  virtual void execute(const OUString& rAction,
475  const StringMap& rParameters) override;
476 
477  virtual std::unique_ptr<UIObject> get_child(const OUString& rID) override;
478 
479  virtual std::set<OUString> get_children() const override;
480 
481  virtual OUString get_type() const override;
482 
483 private:
484 
486 
488 };
489 
490 class IconViewUIObject final : public TreeListUIObject
491 {
492 public:
493  IconViewUIObject(const VclPtr<SvTreeListBox>& xIconView);
494 
495  virtual StringMap get_state() override;
496 
497  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
498 
499 private:
500 
501  virtual OUString get_name() const override;
502 };
503 
504 class ToolBoxUIObject final : public WindowUIObject
505 {
506 private:
508 
509 public:
510 
511  ToolBoxUIObject(const VclPtr<ToolBox>& mxToolBox);
512  virtual ~ToolBoxUIObject() override;
513 
514  virtual void execute(const OUString& rAction,
515  const StringMap& rParameters) override;
516 
517  virtual StringMap get_state() override;
518 
519  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
520 
521  virtual OUString get_action(VclEventId nEvent) const override;
522 
523 private:
524 
525  virtual OUString get_name() const override;
526 };
527 
528 class MenuButtonUIObject final : public WindowUIObject
529 {
531 
532 public:
533 
534  MenuButtonUIObject(const VclPtr<MenuButton>& xMenuButton);
535  virtual ~MenuButtonUIObject() override;
536 
537  virtual StringMap get_state() override;
538 
539  virtual void execute(const OUString& rAction,
540  const StringMap& rParameters) override;
541 
542  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
543 
544 private:
545 
546  virtual OUString get_name() const override;
547 };
548 
550 {
551 private:
553 protected:
555 public:
556  DrawingAreaUIObject(const VclPtr<vcl::Window>& rDrawingArea);
557  virtual ~DrawingAreaUIObject() override;
558 };
559 
560 #endif
561 
562 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual ~MultiLineEditUIObject() override
VclPtr< VclMultiLineEdit > mxEdit
Definition: uiobject.hxx:215
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
RadioButtonUIObject(const VclPtr< RadioButton > &xCheckbox)
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual ~ToolBoxUIObject() override
virtual std::set< OUString > get_children() const override
Returns a set containing all descendants of the object.
virtual OUString get_name() const override
TreeListUIObject(const VclPtr< SvTreeListBox > &xTreeList)
ButtonUIObject(const VclPtr< Button > &xButton)
virtual std::unique_ptr< UIObject > get_child(const OUString &rID)
Returns the child of the current UIObject with the corresponding id.
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual OUString get_name() const override
VclPtr< ToolBox > mxToolBox
Definition: uiobject.hxx:507
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
VclPtr< SpinButton > mxSpinButton
Definition: uiobject.hxx:353
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
weld::CustomWidgetController * mpController
Definition: uiobject.hxx:554
A widget used to choose from a list of items and which has no entry.
Definition: lstbox.hxx:83
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual OUString get_action(VclEventId nEvent) const
Gets the corresponding Action string for the event.
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual OUString get_name() const override
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
This class wraps a UI object like vcl::Window and provides an interface for the UI testing...
Definition: uiobject.hxx:51
VclPtr< VclDrawingArea > mxDrawingArea
Definition: uiobject.hxx:552
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual OUString get_type() const override
Returns the type of the UIObject.
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
VclPtr< TabPage > mxTabPage
Definition: uiobject.hxx:284
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual ~DialogUIObject() override
virtual OUString get_name() const override
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
virtual OUString get_name() const override
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual ~RadioButtonUIObject() override
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual ~TabControlUIObject() override
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
virtual OUString get_name() const override
VclEventId
Definition: vclevent.hxx:37
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual OUString get_name() const override
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual OUString get_name() const override
virtual OUString get_name() const override
virtual OUString get_name() const override
virtual std::set< OUString > get_children() const
Returns a set containing all descendants of the object.
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual OUString get_name() const override
Definition: edit.hxx:55
virtual OUString get_name() const override
Reference< deployment::XPackageRegistry > create(Reference< deployment::XPackageRegistry > const &xRootRegistry, OUString const &context, OUString const &cachePath, Reference< XComponentContext > const &xComponentContext)
SpinFieldUIObject(const VclPtr< SpinField > &xEdit)
virtual std::unique_ptr< UIObject > get_child(const OUString &rID) override
Returns the child of the current UIObject with the corresponding id.
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
TreeListEntryUIObject(const VclPtr< SvTreeListBox > &xTreeList, SvTreeListEntry *pEntry)
VclPtr< Edit > mxEdit
Definition: uiobject.hxx:192
MultiLineEditUIObject(const VclPtr< VclMultiLineEdit > &xEdit)
DialogUIObject(const VclPtr< Dialog > &xDialog)
virtual OUString dumpHierarchy() const
Currently an internal method to dump the parent-child relationship starting from the current top focu...
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual ~ButtonUIObject() override
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual OUString get_type() const
Returns the type of the UIObject.
ListBoxUIObject(const VclPtr< ListBox > &xListBox)
TabPageUIObject(const VclPtr< TabPage > &xTabPage)
VclPtr< Button > mxButton
Definition: uiobject.hxx:152
ToolBoxUIObject(const VclPtr< ToolBox > &mxToolBox)
CheckBoxUIObject(const VclPtr< CheckBox > &xCheckbox)
std::map< const OUString, OUString > StringMap
Definition: uiobject.hxx:43
virtual OUString get_name() const override
virtual void execute(const OUString &rAction, const StringMap &rParameters)
Executes an action on the wrapped UI object, possibly with some additional parameters.
virtual ~ComboBoxUIObject() override
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
#define UITEST_DLLPUBLIC
Definition: dllapi.h:36
virtual OUString get_name() const override
VclPtr< SvTreeListBox > mxTreeList
Definition: uiobject.hxx:463
IconViewUIObject(const VclPtr< SvTreeListBox > &xIconView)
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
VclPtr< SvTreeListBox > mxTreeList
Definition: uiobject.hxx:485
virtual ~SpinUIObject() override
virtual OUString dumpState() const
Currently an internal method to dump the state of the current UIObject as represented by get_state()...
virtual ~SpinFieldUIObject() override
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
VerticalTabControlUIObject(const VclPtr< VerticalTabControl > &mxTabControl)
SvTreeListEntry *const mpEntry
Definition: uiobject.hxx:487
VclPtr< ComboBox > mxComboBox
Definition: uiobject.hxx:329
virtual OUString get_name() const override
VclPtr< VerticalTabControl > mxTabControl
Definition: uiobject.hxx:424
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
virtual OUString get_name() const override
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
VclPtr< Dialog > mxDialog
Definition: uiobject.hxx:174
VclPtr< CheckBox > mxCheckBox
Definition: uiobject.hxx:238
VclPtr< TabControl > mxTabControl
Definition: uiobject.hxx:400
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
VclPtr< RadioButton > mxRadioButton
Definition: uiobject.hxx:261
MenuButtonUIObject(const VclPtr< MenuButton > &xMenuButton)
ComboBoxUIObject(const VclPtr< ComboBox > &xListBox)
std::map< OUString, OUString > StringMap
virtual ~VerticalTabControlUIObject() override
VclPtr< ListBox > mxListBox
Definition: uiobject.hxx:304
virtual ~CheckBoxUIObject() override
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual std::unique_ptr< UIObject > get_child(const OUString &rID) override
Returns the child of the current UIObject with the corresponding id.
SpinUIObject(const VclPtr< SpinButton > &xSpinButton)
VclPtr< MenuButton > mxMenuButton
Definition: uiobject.hxx:530
VclPtr< vcl::Window > mxWindow
Definition: uiobject.hxx:116
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
TabControlUIObject(const VclPtr< TabControl > &mxTabControl)
VclPtr< SpinField > mxSpinField
Definition: uiobject.hxx:376
virtual ~MenuButtonUIObject() override
A widget used to choose from a list of items and which has an entry.
Definition: combobox.hxx:38
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual ~TabPageUIObject() override
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Executes an action on the wrapped UI object, possibly with some additional parameters.
EditUIObject(const VclPtr< Edit > &xEdit)
virtual OUString get_name() const override
virtual StringMap get_state()
Returns the state of the wrapped UI object as a string key value map.
virtual ~EditUIObject() override
virtual OUString get_action(VclEventId nEvent) const override
Gets the corresponding Action string for the event.
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual std::set< OUString > get_children() const override
Returns a set containing all descendants of the object.
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual StringMap get_state() override
Returns the state of the wrapped UI object as a string key value map.
virtual ~ListBoxUIObject() override