Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #ifndef _VCL_UNOWRAP_HXX
30 : : #define _VCL_UNOWRAP_HXX
31 : :
32 : : #include <tools/solar.h>
33 : : #include <vcl/dllapi.h>
34 : : #include <com/sun/star/uno/Reference.h>
35 : :
36 : : class XWindowPeer;
37 : : class XToolkit;
38 : : class EventList;
39 : : class Window;
40 : : class OutputDevice;
41 : : class MouseEvent;
42 : : class CommandEvent;
43 : : class KeyEvent;
44 : : class Rectangle;
45 : : class Menu;
46 : :
47 : : namespace com {
48 : : namespace sun {
49 : : namespace star {
50 : : namespace awt {
51 : : class XGraphics;
52 : : class XToolkit;
53 : : class XWindowPeer;
54 : : }
55 : : namespace lang {
56 : : class XMultiServiceFactory;
57 : : }
58 : : } } }
59 : :
60 : : namespace com {
61 : : namespace sun {
62 : : namespace star {
63 : : namespace accessibility {
64 : : class XAccessible;
65 : : }}}}
66 : :
67 : 124 : class VCL_DLLPUBLIC UnoWrapperBase
68 : : {
69 : : public:
70 : : virtual void Destroy() = 0;
71 : :
72 : : // Toolkit
73 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit > GetVCLToolkit() = 0;
74 : :
75 : : // Graphics
76 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics > CreateGraphics( OutputDevice* pOutDev ) = 0;
77 : : virtual void ReleaseAllGraphics( OutputDevice* pOutDev ) = 0;
78 : :
79 : : // Window
80 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer> GetWindowInterface( Window* pWindow, sal_Bool bCreate ) = 0;
81 : : virtual void SetWindowInterface( Window* pWindow, ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xIFace ) = 0;
82 : :
83 : : virtual void WindowDestroyed( Window* pWindow ) = 0;
84 : :
85 : : // Accessibility
86 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
87 : : CreateAccessible( Menu* pMenu, sal_Bool bIsMenuBar ) = 0;
88 : :
89 : : protected:
90 : 64 : ~UnoWrapperBase() {}
91 : : };
92 : :
93 : : #endif // _VCL_UNOWRAP_HXX
94 : :
95 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|