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/vclevent.hxx>
18 #include <vcl/vclptr.hxx>
19 #include <vcl/dllapi.h>
20 
21 #include <set>
22 
23 class Button;
24 class CheckBox;
25 class ComboBox;
26 class Dialog;
27 class Edit;
28 class IconView;
29 class ListBox;
30 class RadioButton;
31 class TabControl;
32 class TabPage;
33 class SvTreeListBox;
34 class SvTreeListEntry;
35 class SpinButton;
36 class SpinField;
37 class VerticalTabControl;
38 class VclDrawingArea;
39 class VclMultiLineEdit;
40 class MenuButton;
41 class ToolBox;
42 namespace vcl { class Window; }
43 namespace weld { class CustomWidgetController; }
44 
45 typedef std::map<OUString, OUString> StringMap;
46 
54 {
55  UIObject(UIObject const &) = delete;
56  UIObject& operator =(UIObject const &) = delete;
57 
58 public:
59  UIObject() = default;
60 
61  virtual ~UIObject();
62 
67  virtual StringMap get_state();
68 
73  virtual void execute(const OUString& rAction,
74  const StringMap& rParameters);
75 
80  virtual OUString get_type() const;
81 
87  virtual std::unique_ptr<UIObject> get_child(const OUString& rID);
88 
92  virtual std::set<OUString> get_children() const;
93 
100  virtual OUString dumpState() const;
101 
108  virtual OUString dumpHierarchy() const;
109 
113  virtual OUString get_action(VclEventId nEvent) const;
114 };
115 
117 {
119 
120 public:
121 
122  WindowUIObject(const VclPtr<vcl::Window>& xWindow);
123 
124  virtual StringMap get_state() override;
125 
126  virtual void execute(const OUString& rAction,
127  const StringMap& rParameters) override;
128 
129  virtual OUString get_type() const override;
130 
131  virtual std::unique_ptr<UIObject> get_child(const OUString& rID) override;
132 
133  std::unique_ptr<UIObject> get_visible_child(const OUString& rID);
134 
135  virtual std::set<OUString> get_children() const override;
136 
137  virtual OUString dumpState() const override;
138 
139  virtual OUString dumpHierarchy() const override;
140 
141  virtual OUString get_action(VclEventId nEvent) const override;
142 
143  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
144 
145 protected:
146 
147  virtual OUString get_name() const;
148 
149 };
150 
151 // TODO: moggi: what about push buttons?
152 class ButtonUIObject final : public WindowUIObject
153 {
155 public:
156 
157  ButtonUIObject(const VclPtr<Button>& xButton);
158  virtual ~ButtonUIObject() override;
159 
160  virtual StringMap get_state() override;
161 
162  virtual void execute(const OUString& rAction,
163  const StringMap& rParameters) override;
164 
165  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
166 
167  virtual OUString get_action(VclEventId nEvent) const override;
168 
169 private:
170 
171  virtual OUString get_name() const override;
172 };
173 
174 class DialogUIObject final : public WindowUIObject
175 {
177 
178 public:
179 
180  DialogUIObject(const VclPtr<Dialog>& xDialog);
181  virtual ~DialogUIObject() override;
182 
183  virtual StringMap get_state() override;
184 
185  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
186 
187 private:
188 
189  virtual OUString get_name() const override;
190 };
191 
193 {
195 
196 public:
197 
198  EditUIObject(const VclPtr<Edit>& xEdit);
199  virtual ~EditUIObject() override;
200 
201  virtual void execute(const OUString& rAction,
202  const StringMap& rParameters) override;
203 
204  virtual StringMap get_state() override;
205 
206  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
207 
208  virtual OUString get_action(VclEventId nEvent) const override;
209 
210 protected:
211 
212  virtual OUString get_name() const override;
213 };
214 
216 {
218 
219 public:
220 
222  virtual ~MultiLineEditUIObject() override;
223 
224  virtual void execute(const OUString& rAction,
225  const StringMap& rParameters) override;
226 
227  virtual StringMap get_state() override;
228 
229  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
230 
231 private:
232 
233  virtual OUString get_name() const override;
234 };
235 
236 // TODO: moggi: maybe let it inherit from the button case
237 class CheckBoxUIObject final : public WindowUIObject
238 {
239 private:
241 
242 public:
243  CheckBoxUIObject(const VclPtr<CheckBox>& xCheckbox);
244  virtual ~CheckBoxUIObject() override;
245 
246  virtual void execute(const OUString& rAction,
247  const StringMap& rParameters) override;
248 
249  virtual StringMap get_state() override;
250 
251  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
252 
253  virtual OUString get_action(VclEventId nEvent) const override;
254 
255 private:
256 
257  virtual OUString get_name() const override;
258 };
259 
261 {
262 private:
264 
265 public:
266  RadioButtonUIObject(const VclPtr<RadioButton>& xCheckbox);
267  virtual ~RadioButtonUIObject() override;
268 
269  virtual void execute(const OUString& rAction,
270  const StringMap& rParameters) override;
271 
272  virtual StringMap get_state() override;
273 
274  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
275 
276  virtual OUString get_action(VclEventId nEvent) const override;
277 
278 private:
279 
280  virtual OUString get_name() const override;
281 };
282 
283 class TabPageUIObject final : public WindowUIObject
284 {
285 private:
287 public:
288  TabPageUIObject(const VclPtr<TabPage>& xTabPage);
289  virtual ~TabPageUIObject() override;
290 
291  virtual void execute(const OUString& rAction,
292  const StringMap& rParameters) override;
293 
294  virtual StringMap get_state() override;
295 
296  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
297 
298 private:
299 
300  virtual OUString get_name() const override;
301 };
302 
303 class ListBoxUIObject final : public WindowUIObject
304 {
305 private:
307 
308 public:
309 
310  ListBoxUIObject(const VclPtr<ListBox>& xListBox);
311  virtual ~ListBoxUIObject() override;
312 
313  virtual void execute(const OUString& rAction,
314  const StringMap& rParameters) override;
315 
316  virtual StringMap get_state() override;
317 
318  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
319 
320  virtual OUString get_action(VclEventId nEvent) const override;
321 
322 private:
323 
324  virtual OUString get_name() const override;
325 };
326 
327 // TODO: moggi: should it inherit from EditUIObject?
328 class ComboBoxUIObject final : public WindowUIObject
329 {
330 private:
332 
333 public:
334 
335  ComboBoxUIObject(const VclPtr<ComboBox>& xListBox);
336  virtual ~ComboBoxUIObject() override;
337 
338  virtual void execute(const OUString& rAction,
339  const StringMap& rParameters) override;
340 
341  virtual StringMap get_state() override;
342 
343  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
344 
345  virtual OUString get_action(VclEventId nEvent) const override;
346 
347 private:
348 
349  virtual OUString get_name() const override;
350 };
351 
352 class SpinUIObject final : public WindowUIObject
353 {
354 private:
356 
357 public:
358 
359  SpinUIObject(const VclPtr<SpinButton>& xSpinButton);
360  virtual ~SpinUIObject() override;
361 
362  virtual void execute(const OUString& rAction,
363  const StringMap& rParameters) override;
364 
365  virtual StringMap get_state() override;
366 
367  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
368 
369  virtual OUString get_action(VclEventId nEvent) const override;
370 
371 private:
372 
373  virtual OUString get_name() const override;
374 };
375 
377 {
379 
380 public:
381 
382  SpinFieldUIObject(const VclPtr<SpinField>& xEdit);
383  virtual ~SpinFieldUIObject() override;
384 
385  virtual void execute(const OUString& rAction,
386  const StringMap& rParameters) override;
387 
388  virtual StringMap get_state() override;
389 
390  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
391 
392  virtual OUString get_action(VclEventId nEvent) const override;
393 
394 private:
395 
396  virtual OUString get_name() const override;
397 };
398 
399 class TabControlUIObject final : public WindowUIObject
400 {
401 private:
403 
404 public:
405 
406  TabControlUIObject(const VclPtr<TabControl>& mxTabControl);
407  virtual ~TabControlUIObject() override;
408 
409  virtual void execute(const OUString& rAction,
410  const StringMap& rParameters) override;
411 
412  virtual StringMap get_state() override;
413 
414  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
415 
416  virtual OUString get_action(VclEventId nEvent) const override;
417 
418 private:
419 
420  virtual OUString get_name() const override;
421 };
422 
424 {
425 private:
427 
428 public:
429 
431  virtual ~VerticalTabControlUIObject() override;
432 
433  virtual void execute(const OUString& rAction,
434  const StringMap& rParameters) override;
435 
436  virtual StringMap get_state() override;
437 
438  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
439 
440 private:
441 
442  virtual OUString get_name() const override;
443 };
444 
446 {
447 public:
448  TreeListUIObject(const VclPtr<SvTreeListBox>& xTreeList);
449 
450  virtual StringMap get_state() override;
451 
452  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
453 
454  virtual void execute(const OUString& rAction,
455  const StringMap& rParameters) override;
456 
457  virtual std::unique_ptr<UIObject> get_child(const OUString& rID) override;
458 
459  virtual std::set<OUString> get_children() const override;
460 
461 protected:
462 
463  virtual OUString get_name() const override;
464 
466 };
467 
468 class TreeListEntryUIObject final : public UIObject
469 {
470 public:
471 
473 
474  virtual StringMap get_state() override;
475 
476  virtual void execute(const OUString& rAction,
477  const StringMap& rParameters) override;
478 
479  virtual std::unique_ptr<UIObject> get_child(const OUString& rID) override;
480 
481  virtual std::set<OUString> get_children() const override;
482 
483  virtual OUString get_type() const override;
484 
485 private:
486 
488 
490 };
491 
492 class IconViewUIObject final : public TreeListUIObject
493 {
494 public:
495  IconViewUIObject(const VclPtr<SvTreeListBox>& xIconView);
496 
497  virtual StringMap get_state() override;
498 
499  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
500 
501 private:
502 
503  virtual OUString get_name() const override;
504 };
505 
506 class ToolBoxUIObject final : public WindowUIObject
507 {
508 private:
510 
511 public:
512 
513  ToolBoxUIObject(const VclPtr<ToolBox>& mxToolBox);
514  virtual ~ToolBoxUIObject() override;
515 
516  virtual void execute(const OUString& rAction,
517  const StringMap& rParameters) override;
518 
519  virtual StringMap get_state() override;
520 
521  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
522 
523  virtual OUString get_action(VclEventId nEvent) const override;
524 
525 private:
526 
527  virtual OUString get_name() const override;
528 };
529 
530 class MenuButtonUIObject final : public WindowUIObject
531 {
533 
534 public:
535 
536  MenuButtonUIObject(const VclPtr<MenuButton>& xMenuButton);
537  virtual ~MenuButtonUIObject() override;
538 
539  virtual StringMap get_state() override;
540 
541  virtual void execute(const OUString& rAction,
542  const StringMap& rParameters) override;
543 
544  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
545 
546 private:
547 
548  virtual OUString get_name() const override;
549 };
550 
552 {
553 private:
555 protected:
557 public:
558  DrawingAreaUIObject(const VclPtr<vcl::Window>& rDrawingArea);
559  virtual ~DrawingAreaUIObject() override;
560  virtual void execute(const OUString& rAction, const StringMap& rParameters) override;
561  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
562 };
563 
564 #endif
565 
566 /* 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:217
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:509
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
VclPtr< SpinButton > mxSpinButton
Definition: uiobject.hxx:355
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:556
A widget used to choose from a list of items and which has no entry.
Definition: lstbox.hxx:82
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:53
VclPtr< VclDrawingArea > mxDrawingArea
Definition: uiobject.hxx:554
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:286
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.
std::map< OUString, OUString > StringMap
Definition: uiobject.hxx:45
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:194
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:154
ToolBoxUIObject(const VclPtr< ToolBox > &mxToolBox)
CheckBoxUIObject(const VclPtr< CheckBox > &xCheckbox)
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:465
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:487
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:489
VclPtr< ComboBox > mxComboBox
Definition: uiobject.hxx:331
virtual OUString get_name() const override
VclPtr< VerticalTabControl > mxTabControl
Definition: uiobject.hxx:426
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:176
VclPtr< CheckBox > mxCheckBox
Definition: uiobject.hxx:240
VclPtr< TabControl > mxTabControl
Definition: uiobject.hxx:402
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
VclPtr< RadioButton > mxRadioButton
Definition: uiobject.hxx:263
MenuButtonUIObject(const VclPtr< MenuButton > &xMenuButton)
ComboBoxUIObject(const VclPtr< ComboBox > &xListBox)
std::map< OUString, OUString > StringMap
virtual ~VerticalTabControlUIObject() override
VclPtr< ListBox > mxListBox
Definition: uiobject.hxx:306
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:532
VclPtr< vcl::Window > mxWindow
Definition: uiobject.hxx:118
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:378
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