Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / vcl / unowrap.hxx
blob090fb8c4242fed4bf8306634c2dc9da6bfa4c312
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_VCL_UNOWRAP_HXX
21 #define INCLUDED_VCL_UNOWRAP_HXX
23 #include <com/sun/star/uno/Reference.h>
24 #include <vcl/dllapi.h>
26 class XWindowPeer;
27 class XToolkit;
28 class EventList;
29 namespace vcl { class Window; }
30 class OutputDevice;
31 class MouseEvent;
32 class CommandEvent;
33 class KeyEvent;
34 namespace tools { class Rectangle; }
35 class Menu;
37 namespace com {
38 namespace sun {
39 namespace star {
40 namespace awt {
41 class XGraphics;
42 class XToolkit;
43 class XWindowPeer;
45 namespace lang {
46 class XMultiServiceFactory;
48 } } }
50 namespace com {
51 namespace sun {
52 namespace star {
53 namespace accessibility {
54 class XAccessible;
55 }}}}
57 class VCL_DLLPUBLIC UnoWrapperBase
59 public:
60 virtual void Destroy() = 0;
62 // Toolkit
63 virtual css::uno::Reference< css::awt::XToolkit > GetVCLToolkit() = 0;
65 // Graphics
66 virtual css::uno::Reference< css::awt::XGraphics > CreateGraphics( OutputDevice* pOutDev ) = 0;
67 virtual void ReleaseAllGraphics( OutputDevice* pOutDev ) = 0;
69 // Window
70 virtual css::uno::Reference< css::awt::XWindowPeer> GetWindowInterface( vcl::Window* pWindow ) = 0;
71 virtual void SetWindowInterface( vcl::Window* pWindow, css::uno::Reference< css::awt::XWindowPeer > xIFace ) = 0;
73 virtual void WindowDestroyed( vcl::Window* pWindow ) = 0;
75 // Accessibility
76 virtual css::uno::Reference< css::accessibility::XAccessible >
77 CreateAccessible( Menu* pMenu, bool bIsMenuBar ) = 0;
79 protected:
80 ~UnoWrapperBase() {}
83 #endif // INCLUDED_VCL_UNOWRAP_HXX
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */