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 class SwEditWin;
17 
19 {
20 public:
21 
22  SwEditWinUIObject(const VclPtr<SwEditWin>& xEditWin);
23 
24  virtual StringMap get_state() override;
25 
26  virtual void execute(const OUString& rAction,
27  const StringMap& rParameters) override;
28 
29  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
30 
31 protected:
32 
33  virtual OUString get_name() const override;
34 
35 private:
36 
38 
39 };
40 
41 class SwNavigationPI;
42 
44 {
46 
47 public:
48 
49  SwNavigationPIUIObject(const VclPtr<SwNavigationPI>& xSwNavigationPI);
50 
51  virtual StringMap get_state() override;
52 
53  virtual void execute(const OUString& rAction,
54  const StringMap& rParameters) override;
55 
56  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
57 
58 protected:
59 
60  OUString get_name() const override;
61 };
62 
63 
64 #endif
65 
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual OUString get_name() const override
Definition: uiobject.cxx:119
VclPtr< SwEditWin > mxEditWin
Definition: uiobject.hxx:37
SwEditWinUIObject(const VclPtr< SwEditWin > &xEditWin)
Definition: uiobject.cxx:19
virtual StringMap get_state() override
Definition: uiobject.cxx:137
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
Definition: uiobject.cxx:157
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
Definition: edtwin.hxx:58
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
Definition: uiobject.cxx:124
virtual StringMap get_state() override
Definition: uiobject.cxx:34
std::map< const OUString, OUString > StringMap
SwNavigationPIUIObject(const VclPtr< SwNavigationPI > &xSwNavigationPI)
Definition: uiobject.cxx:131
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Definition: uiobject.cxx:146
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Definition: uiobject.cxx:63
VclPtr< SwNavigationPI > mxSwNavigationPI
Definition: uiobject.hxx:45
OUString get_name() const override
Definition: uiobject.cxx:164