LibreOffice Module toolkit (master) 1
unowrapper.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 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#ifndef INCLUDED_TOOLKIT_INC_HELPER_UNOWRAPPER_HXX
21#define INCLUDED_TOOLKIT_INC_HELPER_UNOWRAPPER_HXX
22
23#include <com/sun/star/awt/XToolkit.hpp>
24#include <com/sun/star/awt/XGraphics.hpp>
25#include <com/sun/star/awt/XVclWindowPeer.hpp>
26#include <com/sun/star/accessibility/XAccessible.hpp>
27
29#include <vcl/window.hxx>
30
32
33
34
35class UnoWrapper final : public UnoWrapperBase
36{
37private:
38 css::uno::Reference< css::awt::XToolkit> mxToolkit;
40
41public:
42 UnoWrapper( const css::uno::Reference< css::awt::XToolkit>& rxToolkit );
43
44 virtual void Destroy() override;
45
46 // Toolkit
47 virtual css::uno::Reference< css::awt::XToolkit> GetVCLToolkit() override;
48
49 // Graphics
50 virtual css::uno::Reference< css::awt::XGraphics> CreateGraphics( OutputDevice* pOutDev ) override;
51 virtual void ReleaseAllGraphics( OutputDevice* pOutDev ) override;
52
53 // Window
54 virtual css::uno::Reference< css::awt::XVclWindowPeer> GetWindowInterface( vcl::Window* pWindow ) override;
55 virtual void SetWindowInterface( vcl::Window* pWindow, const css::uno::Reference< css::awt::XVclWindowPeer> & xIFace ) override;
56 virtual VclPtr<vcl::Window> GetWindow(const css::uno::Reference<css::awt::XWindow>& rxWindow) override;
57
58 // Menu
59 virtual css::uno::Reference<css::awt::XPopupMenu> CreateMenuInterface( PopupMenu* pPopupMenu ) override;
60
61 void WindowDestroyed( vcl::Window* pWindow ) override;
62
63 // Accessibility
64 virtual css::uno::Reference< css::accessibility::XAccessible >
65 CreateAccessible( Menu* pMenu, bool bIsMenuBar ) override;
66
67private:
68 virtual ~UnoWrapper();
69};
70
71#endif // INCLUDED_TOOLKIT_INC_HELPER_UNOWRAPPER_HXX
72
73/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void WindowDestroyed(vcl::Window *pWindow) override
Definition: unowrapper.cxx:226
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible(Menu *pMenu, bool bIsMenuBar) override
Definition: unowrapper.cxx:309
css::uno::Reference< css::awt::XToolkit > mxToolkit
Definition: unowrapper.hxx:38
virtual void SetWindowInterface(vcl::Window *pWindow, const css::uno::Reference< css::awt::XVclWindowPeer > &xIFace) override
Definition: unowrapper.cxx:164
UnoWrapper(const css::uno::Reference< css::awt::XToolkit > &rxToolkit)
Definition: unowrapper.cxx:126
virtual VclPtr< vcl::Window > GetWindow(const css::uno::Reference< css::awt::XWindow > &rxWindow) override
Definition: unowrapper.cxx:159
virtual css::uno::Reference< css::awt::XGraphics > CreateGraphics(OutputDevice *pOutDev) override
Definition: unowrapper.cxx:197
virtual css::uno::Reference< css::awt::XVclWindowPeer > GetWindowInterface(vcl::Window *pWindow) override
Definition: unowrapper.cxx:147
virtual void Destroy() override
Definition: unowrapper.cxx:131
virtual css::uno::Reference< css::awt::XToolkit > GetVCLToolkit() override
Definition: unowrapper.cxx:140
virtual ~UnoWrapper()
Definition: unowrapper.cxx:136
::toolkit::AccessibilityClient maAccessibleFactoryAccess
Definition: unowrapper.hxx:39
virtual void ReleaseAllGraphics(OutputDevice *pOutDev) override
Definition: unowrapper.cxx:204
virtual css::uno::Reference< css::awt::XPopupMenu > CreateMenuInterface(PopupMenu *pPopupMenu) override
Definition: unowrapper.cxx:192
a client for the accessibility implementations which have been outsourced from the main toolkit libra...