bump product version to 6.3.0.0.beta1
[LibreOffice.git] / toolkit / inc / helper / unowrapper.hxx
blob1c6c2a5e8a67bb03fd7fbab1e1215b547c9a687d
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_TOOLKIT_INC_HELPER_UNOWRAPPER_HXX
21 #define INCLUDED_TOOLKIT_INC_HELPER_UNOWRAPPER_HXX
23 #include <com/sun/star/awt/XToolkit.hpp>
24 #include <com/sun/star/awt/XGraphics.hpp>
25 #include <com/sun/star/awt/XWindowPeer.hpp>
26 #include <com/sun/star/accessibility/XAccessible.hpp>
28 #include <vcl/toolkit/unowrap.hxx>
29 #include <vcl/window.hxx>
31 #include <helper/accessibilityclient.hxx>
33 // class UnoWrapper
36 class UnoWrapper : public UnoWrapperBase
38 private:
39 css::uno::Reference< css::awt::XToolkit> mxToolkit;
40 ::toolkit::AccessibilityClient maAccessibleFactoryAccess;
42 public:
43 UnoWrapper( const css::uno::Reference< css::awt::XToolkit>& rxToolkit );
45 virtual void Destroy() override;
47 // Toolkit
48 virtual css::uno::Reference< css::awt::XToolkit> GetVCLToolkit() override;
50 // Graphics
51 virtual css::uno::Reference< css::awt::XGraphics> CreateGraphics( OutputDevice* pOutDev ) override;
52 virtual void ReleaseAllGraphics( OutputDevice* pOutDev ) override;
54 // Window
55 virtual css::uno::Reference< css::awt::XWindowPeer> GetWindowInterface( vcl::Window* pWindow ) override;
56 virtual void SetWindowInterface( vcl::Window* pWindow, css::uno::Reference< css::awt::XWindowPeer> xIFace ) override;
57 virtual VclPtr<vcl::Window> GetWindow(const css::uno::Reference<css::awt::XWindow>& rxWindow) override;
59 void WindowDestroyed( vcl::Window* pWindow ) override;
61 // Accessibility
62 virtual css::uno::Reference< css::accessibility::XAccessible >
63 CreateAccessible( Menu* pMenu, bool bIsMenuBar ) override;
65 private:
66 virtual ~UnoWrapper();
69 #endif // INCLUDED_TOOLKIT_INC_HELPER_UNOWRAPPER_HXX
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */