tdf#154546 skip dispatch when presenter controller is not set
[LibreOffice.git] / svtools / inc / uiobject.hxx
blobb201555179c45b92a6289e780c8a3d9e8a1350ab
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef INCLUDED_SVTOOLS_INC_UIOBJECT_HXX
11 #define INCLUDED_SVTOOLS_INC_UIOBJECT_HXX
13 #include <memory>
14 #include <vcl/uitest/uiobject.hxx>
15 #include <svtools/valueset.hxx>
17 class ValueSet;
19 class ValueSetUIObject final : public DrawingAreaUIObject
21 ValueSet* mpSet;
23 public:
24 ValueSetUIObject(const VclPtr<vcl::Window>& xSetWin);
26 virtual void execute(const OUString& rAction, const StringMap& rParameters) override;
28 static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
30 virtual StringMap get_state() override;
32 private:
33 OUString get_name() const override;
36 #endif // INCLUDED_SVX_INC_UIOBJECT_HXX
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */