Version 6.1.4.1, tag libreoffice-6.1.4.1
[LibreOffice.git] / starmath / source / uiobject.hxx
blobecfef8abe627ced94881b20b08aca0b2f6545243
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_STARMATH_SOURCE_UIOBJECT_HXX
11 #define INCLUDED_STARMATH_SOURCE_UIOBJECT_HXX
13 #include <memory>
14 #include <vcl/uitest/uiobject.hxx>
16 class SmElementsControl;
17 class SmElement;
19 class ElementUIObject : public UIObject
21 private:
22 VclPtr<SmElementsControl> mxElementsSelector;
23 OUString maID;
25 public:
27 ElementUIObject(const VclPtr<SmElementsControl>& xElementSelector,
28 const OUString& rID);
30 virtual StringMap get_state() override;
32 virtual void execute(const OUString& rAction,
33 const StringMap& rParameters) override;
35 private:
36 SmElement* get_element();
39 class ElementSelectorUIObject : public WindowUIObject
41 private:
42 VclPtr<SmElementsControl> mxElementsSelector;
44 public:
46 explicit ElementSelectorUIObject(const VclPtr<SmElementsControl>& xElementSelector);
48 virtual StringMap get_state() override;
50 static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
52 virtual std::unique_ptr<UIObject> get_child(const OUString& rID) override;
54 virtual std::set<OUString> get_children() const override;
56 protected:
58 virtual OUString get_name() const override;
61 #endif
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */