1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #ifndef INCLUDED_STARMATH_SOURCE_UIOBJECT_HXX
11 #define INCLUDED_STARMATH_SOURCE_UIOBJECT_HXX
14 #include <vcl/uitest/uiobject.hxx>
16 #include <ElementsDockingWindow.hxx>
18 class ElementUIObject
: public UIObject
21 VclPtr
<SmElementsControl
> mxElementsSelector
;
26 ElementUIObject(const VclPtr
<SmElementsControl
>& xElementSelector
,
29 virtual StringMap
get_state() override
;
31 virtual void execute(const OUString
& rAction
,
32 const StringMap
& rParameters
) override
;
35 SmElement
* get_element();
38 class ElementSelectorUIObject
: public WindowUIObject
41 VclPtr
<SmElementsControl
> mxElementsSelector
;
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
;
57 virtual OUString
get_name() const override
;
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */