xref: /trunk/main/offapi/com/sun/star/awt/XToolkit.idl (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#ifndef __com_sun_star_awt_XToolkit_idl__
28#define __com_sun_star_awt_XToolkit_idl__
29
30#ifndef __com_sun_star_uno_XInterface_idl__
31#include <com/sun/star/uno/XInterface.idl>
32#endif
33
34#ifndef __com_sun_star_awt_XWindowPeer_idl__
35#include <com/sun/star/awt/XWindowPeer.idl>
36#endif
37
38#ifndef __com_sun_star_awt_Rectangle_idl__
39#include <com/sun/star/awt/Rectangle.idl>
40#endif
41
42#ifndef __com_sun_star_awt_WindowDescriptor_idl__
43#include <com/sun/star/awt/WindowDescriptor.idl>
44#endif
45
46#ifndef __com_sun_star_lang_IllegalArgumentException_idl__
47#include <com/sun/star/lang/IllegalArgumentException.idl>
48#endif
49
50#ifndef __com_sun_star_awt_XDevice_idl__
51#include <com/sun/star/awt/XDevice.idl>
52#endif
53
54#ifndef __com_sun_star_awt_XRegion_idl__
55#include <com/sun/star/awt/XRegion.idl>
56#endif
57
58
59//=============================================================================
60
61 module com {  module sun {  module star {  module awt {
62
63//=============================================================================
64
65/** specifies a factory interface for the window toolkit.
66
67    <p>This is similar to the abstract window toolkit (AWT) in Java.</p>
68 */
69published interface XToolkit: com::sun::star::uno::XInterface
70{
71    //-------------------------------------------------------------------------
72
73    /** returns the desktop window.
74     */
75    com::sun::star::awt::XWindowPeer getDesktopWindow();
76
77    //-------------------------------------------------------------------------
78
79    /** returns the complete work area for this toolkit.
80     */
81    com::sun::star::awt::Rectangle getWorkArea();
82
83    //-------------------------------------------------------------------------
84
85    /** creates a new window using the given descriptor.
86     */
87    com::sun::star::awt::XWindowPeer createWindow( [in] com::sun::star::awt::WindowDescriptor Descriptor )
88            raises( com::sun::star::lang::IllegalArgumentException );
89
90    //-------------------------------------------------------------------------
91
92    /** returns a sequence of windows which are newly created using the
93        given descriptors.
94     */
95    sequence<com::sun::star::awt::XWindowPeer> createWindows(
96            [in] sequence<com::sun::star::awt::WindowDescriptor> Descriptors )
97        raises( com::sun::star::lang::IllegalArgumentException );
98
99    //-------------------------------------------------------------------------
100
101    /** creates a virtual device that is compatible with the screen.
102     */
103    com::sun::star::awt::XDevice createScreenCompatibleDevice( [in] long Width,
104             [in] long Height );
105
106    //-------------------------------------------------------------------------
107
108    /** creates a region.
109     */
110    com::sun::star::awt::XRegion createRegion();
111
112};
113
114//=============================================================================
115
116}; }; }; };
117
118#endif
119