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 class SmElementsControl
;
19 class ElementUIObject
: public UIObject
22 VclPtr
<SmElementsControl
> mxElementsSelector
;
27 ElementUIObject(const VclPtr
<SmElementsControl
>& xElementSelector
,
30 virtual StringMap
get_state() override
;
32 virtual void execute(const OUString
& rAction
,
33 const StringMap
& rParameters
) override
;
36 SmElement
* get_element();
39 class ElementSelectorUIObject
: public WindowUIObject
42 VclPtr
<SmElementsControl
> mxElementsSelector
;
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
;
58 virtual OUString
get_name() const override
;
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */