LibreOffice Module sw (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 SW_SOURCE_UIBASE_INC_UIOBJECT_HXX
11 #define SW_SOURCE_UIBASE_INC_UIOBJECT_HXX
12 
13 #include <memory>
14 #include <vcl/uitest/uiobject.hxx>
15 
16 #include "edtwin.hxx"
17 #include "PageBreakWin.hxx"
18 #include "navipi.hxx"
19 
20 #include <AnnotationWin.hxx>
21 
23 {
24 public:
25 
26  SwEditWinUIObject(const VclPtr<SwEditWin>& xEditWin);
27 
28  virtual StringMap get_state() override;
29 
30  virtual void execute(const OUString& rAction,
31  const StringMap& rParameters) override;
32 
33  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
34 
35 protected:
36 
37  virtual OUString get_name() const override;
38 
39 private:
40 
42 
43 };
44 
46 {
48 
49 public:
50 
51  SwNavigationPIUIObject(const VclPtr<SwNavigationPI>& xSwNavigationPI);
52 
53  virtual StringMap get_state() override;
54 
55  virtual void execute(const OUString& rAction,
56  const StringMap& rParameters) override;
57 
58  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
59 
60 protected:
61 
62  OUString get_name() const override;
63 };
64 
65 // This class handles the Comments as a UIObject to be used in UITest Framework
67 {
69 
70 public:
71 
73 
74  virtual StringMap get_state() override;
75 
76  virtual void execute(const OUString& rAction,
77  const StringMap& rParameters) override;
78 
79  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
80 
81 protected:
82 
83  OUString get_name() const override;
84 
85 };
86 
88 {
89 public:
90 
92 
93  virtual void execute(const OUString& rAction,
94  const StringMap& rParameters) override;
95 
96  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
97 
98 protected:
99 
100  virtual OUString get_name() const override;
101 
102 private:
103 
105 
106 };
107 
108 #endif
109 
110 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual OUString get_name() const override
Definition: uiobject.cxx:137
PageBreakUIObject(const VclPtr< SwPageBreakWin > &xEditWin)
Definition: uiobject.cxx:258
CommentUIObject(const VclPtr< sw::annotation::SwAnnotationWin > &xCommentUIObject)
Definition: uiobject.cxx:189
OUString get_name() const override
Definition: uiobject.cxx:253
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Definition: uiobject.cxx:264
VclPtr< SwEditWin > mxEditWin
Definition: uiobject.hxx:41
SwEditWinUIObject(const VclPtr< SwEditWin > &xEditWin)
Definition: uiobject.cxx:25
virtual StringMap get_state() override
Definition: uiobject.cxx:155
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
Definition: uiobject.cxx:177
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Definition: uiobject.cxx:208
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
Definition: uiobject.cxx:246
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
Definition: uiobject.cxx:142
virtual StringMap get_state() override
Definition: uiobject.cxx:40
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
Definition: uiobject.cxx:273
VclPtr< SwPageBreakWin > mxPageBreakUIObject
Definition: uiobject.hxx:104
SwNavigationPIUIObject(const VclPtr< SwNavigationPI > &xSwNavigationPI)
Definition: uiobject.cxx:149
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Definition: uiobject.cxx:165
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Definition: uiobject.cxx:70
std::map< OUString, OUString > StringMap
VclPtr< sw::annotation::SwAnnotationWin > mxCommentUIObject
Definition: uiobject.hxx:68
virtual StringMap get_state() override
Definition: uiobject.cxx:195
VclPtr< SwNavigationPI > mxSwNavigationPI
Definition: uiobject.hxx:47
virtual OUString get_name() const override
Definition: uiobject.cxx:280
OUString get_name() const override
Definition: uiobject.cxx:184