Version 6.4.0.3, tag libreoffice-6.4.0.3
[LibreOffice.git] / starmath / source / uiobject.hxx
blob1e8ea9826687f4b59e19a7c47c1ca6c907e81692
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 #include <ElementsDockingWindow.hxx>
18 class ElementUIObject : public UIObject
20 private:
21 VclPtr<SmElementsControl> mxElementsSelector;
22 OUString const maID;
24 public:
26 ElementUIObject(const VclPtr<SmElementsControl>& xElementSelector,
27 const OUString& rID);
29 virtual StringMap get_state() override;
31 virtual void execute(const OUString& rAction,
32 const StringMap& rParameters) override;
34 private:
35 SmElement* get_element();
38 class ElementSelectorUIObject : public WindowUIObject
40 private:
41 VclPtr<SmElementsControl> mxElementsSelector;
43 public:
45 explicit ElementSelectorUIObject(const VclPtr<SmElementsControl>& xElementSelector);
47 virtual StringMap get_state() override;
49 static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
51 virtual std::unique_ptr<UIObject> get_child(const OUString& rID) override;
53 virtual std::set<OUString> get_children() const override;
55 protected:
57 virtual OUString get_name() const override;
60 #endif
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */