LibreOffice Module vcl (master) 1
uiobject_uno.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 */
9
10#pragma once
11
14#include <com/sun/star/lang/XServiceInfo.hpp>
15#include <com/sun/star/ui/test/XUIObject.hpp>
16
17#include <memory>
18
20
21typedef ::cppu::WeakComponentImplHelper <
22 css::ui::test::XUIObject, css::lang::XServiceInfo
24
26 public UIObjectBase
27{
28private:
29 std::unique_ptr<UIObject> mpObj;
30
31public:
32
33 explicit UIObjectUnoObj(std::unique_ptr<UIObject> pObj);
34 virtual ~UIObjectUnoObj() override;
35
36 css::uno::Reference<css::ui::test::XUIObject> SAL_CALL getChild(const OUString& rID) override;
37
38 void SAL_CALL executeAction(const OUString& rAction, const css::uno::Sequence<css::beans::PropertyValue>& xPropValues) override;
39
40 css::uno::Sequence<css::beans::PropertyValue> SAL_CALL getState() override;
41
42 css::uno::Sequence<OUString> SAL_CALL getChildren() override;
43
44 OUString SAL_CALL getType() override;
45
46 OUString SAL_CALL getImplementationName() override;
47
48 sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
49
50 css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
51
52 OUString SAL_CALL getHierarchy() override;
53};
54
55/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::ui::test::XUIObject > SAL_CALL getChild(const OUString &rID) override
OUString SAL_CALL getType() override
OUString SAL_CALL getHierarchy() override
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual ~UIObjectUnoObj() override
sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getState() override
css::uno::Sequence< OUString > SAL_CALL getChildren() override
UIObjectUnoObj(std::unique_ptr< UIObject > pObj)
std::unique_ptr< UIObject > mpObj
void SAL_CALL executeAction(const OUString &rAction, const css::uno::Sequence< css::beans::PropertyValue > &xPropValues) override
OUString SAL_CALL getImplementationName() override
unsigned char sal_Bool
::cppu::WeakComponentImplHelper< css::ui::test::XUIObject, css::lang::XServiceInfo > UIObjectBase