LibreOffice Module svx (master)  1
svx/inc/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_SVX_INC_UIOBJECT_HXX
11 #define INCLUDED_SVX_INC_UIOBJECT_HXX
12 
13 #include <memory>
14 #include <vcl/uitest/uiobject.hxx>
15 #include <svx/numvset.hxx>
16 
17 class SvxShowCharSet;
18 class SvxNumValueSet;
19 
21 {
23 
24 public:
25  SvxShowCharSetUIObject(const VclPtr<vcl::Window>& rCharSetWin);
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 private:
33 
34  OUString get_name() const override;
35 };
36 
37 
39 {
41 
42 public:
43 
44  SvxNumValueSetUIObject(vcl::Window* pNumValueSetWin);
45 
46  virtual void execute(const OUString& rAction,
47  const StringMap& rParameters) override;
48 
49  static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
50 
51  virtual StringMap get_state() override;
52 
53 private:
54 
55  OUString get_name() const override;
56 
57 };
58 
59 #endif // INCLUDED_SVX_INC_UIOBJECT_HXX
60 
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Definition: uiobject.cxx:68
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
Definition: uiobject.cxx:51
SvxNumValueSet * mpNumValueSet
SvxNumValueSetUIObject(vcl::Window *pNumValueSetWin)
Definition: uiobject.cxx:62
SvxShowCharSetUIObject(const VclPtr< vcl::Window > &rCharSetWin)
Definition: uiobject.cxx:16
OUString get_name() const override
Definition: uiobject.cxx:56
virtual StringMap get_state() override
Definition: uiobject.cxx:95
SvxShowCharSet * mpCharSet
OUString get_name() const override
Definition: uiobject.cxx:90
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
Definition: uiobject.cxx:22
std::map< const OUString, OUString > StringMap
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
Definition: uiobject.cxx:85