cid#1636693 COPY_INSTEAD_OF_MOVE
[LibreOffice.git] / include / svx / uiobject.hxx
blob4fd63c9d0d05f909ec120a185c530c9bdb89d9be
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_SVX_UIOBJECT_HXX
11 #define INCLUDED_SVX_UIOBJECT_HXX
13 #include <svx/svxdllapi.h>
15 #include <svx/SvxColorValueSet.hxx>
17 #include <vcl/uitest/uiobject.hxx>
19 class SdrObject;
20 class SvxColorValueSet;
22 class SVXCORE_DLLPUBLIC SdrUIObject : public UIObject
24 public:
26 virtual ~SdrUIObject() override;
28 virtual StringMap get_state() override;
30 virtual void execute(const OUString& rAction,
31 const StringMap& rParameters) override;
33 virtual OUString get_type() const override;
35 virtual SdrObject* get_object() = 0;
38 class SvxColorValueSetUIObject final : public DrawingAreaUIObject
40 SvxColorValueSet* mpColorSet;
42 public:
44 SvxColorValueSetUIObject(vcl::Window* pColorSetWin);
46 virtual void execute(const OUString& rAction,
47 const StringMap& rParameters) override;
49 static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
51 virtual StringMap get_state() override;
53 private:
55 OUString get_name() const override;
59 #endif
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */