Bump for 3.6-28
[LibreOffice.git] / offapi / com / sun / star / awt / XDevice.idl
blobf81d25d193f3c5b51482af36d1b48fc9084f654f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
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.
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).
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.
27 ************************************************************************/
28 #ifndef __com_sun_star_awt_XDevice_idl__
29 #define __com_sun_star_awt_XDevice_idl__
31 #include <com/sun/star/uno/XInterface.idl>
33 #include <com/sun/star/awt/DeviceInfo.idl>
35 #include <com/sun/star/awt/FontDescriptor.idl>
37 //=============================================================================
39 module com { module sun { module star { module awt {
41 published interface XGraphics;
42 published interface XFont;
43 published interface XBitmap;
44 published interface XDisplayBitmap;
46 //=============================================================================
48 /** provides information about a graphical output device and
49 offers a factory for the <em>graphics</em> which provides write
50 operations on the device.
52 published interface XDevice: com::sun::star::uno::XInterface
54 //-------------------------------------------------------------------------
56 /** creates a new graphics whose output operation is directed to this
57 device.
59 XGraphics createGraphics();
61 //-------------------------------------------------------------------------
63 /** creates a new device which is compatible with this one.
65 <p>If the device does not support the GETBITS device capability,
66 this method returns <NULL/>.</p>
68 XDevice createDevice( [in] long nWidth,
69 [in] long nHeight );
71 //-------------------------------------------------------------------------
73 /** returns information about the device.
75 com::sun::star::awt::DeviceInfo getInfo();
77 //-------------------------------------------------------------------------
79 /** returns the list of available font descriptors.
81 sequence<FontDescriptor> getFontDescriptors();
83 //-------------------------------------------------------------------------
85 /** returns information about a font offered by this device.
87 @returns the font of this device.
89 @param aDescriptor
90 specifies the description of a font.
91 The unit of measure is pixel for this device.
93 com::sun::star::awt::XFont getFont( [in] FontDescriptor aDescriptor );
95 //-------------------------------------------------------------------------
97 /** creates a bitmap with the current device depth.
99 <p>If the specified area does not lie entirely in the device, the bits
100 outside are not specified.</p>
102 XBitmap createBitmap( [in] long nX,
103 [in] long nY,
104 [in] long nWidth,
105 [in] long nHeight );
107 //-------------------------------------------------------------------------
109 /** creates a device compatible bitmap.
111 <p>The data of the bitmap is in process memory instead of in the device,
112 so that the output operation is fast.</p>
114 XDisplayBitmap createDisplayBitmap( [in] XBitmap Bitmap );
118 //=============================================================================
120 }; }; }; };
122 #endif
124 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */