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 "navipi.hxx"
18 
20 {
21 public:
22 
23  SwEditWinUIObject(const VclPtr<SwEditWin>& xEditWin);
24 
25  virtual StringMap get_state() override;
26 
27  virtual void execute(const OUString& rAction,
28  const StringMap& rParameters) override;
29 
30  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
31 
32 protected:
33 
34  virtual OUString get_name() const override;
35 
36 private:
37 
39 
40 };
41 
43 {
45 
46 public:
47 
48  SwNavigationPIUIObject(const VclPtr<SwNavigationPI>& xSwNavigationPI);
49 
50  virtual StringMap get_state() override;
51 
52  virtual void execute(const OUString& rAction,
53  const StringMap& rParameters) override;
54 
55  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
56 
57 protected:
58 
59  OUString get_name() const override;
60 };
61 
62 
63 #endif
64 
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual OUString get_name() const override
Definition: uiobject.cxx:119
VclPtr< SwEditWin > mxEditWin
Definition: uiobject.hxx:38
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
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:44
OUString get_name() const override
Definition: uiobject.cxx:164