Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / view / PrinterDescriptor.idl
blobd684d0ce4df8ffaee573be3ce1ceb6d9d5505f68
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: PrinterDescriptor.idl,v $
10 * $Revision: 1.12 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_view_PrinterDescriptor_idl__
31 #define __com_sun_star_view_PrinterDescriptor_idl__
33 #ifndef __com_sun_star_view_PaperOrientation_idl__
34 #include <com/sun/star/view/PaperOrientation.idl>
35 #endif
37 #ifndef __com_sun_star_view_PaperFormat_idl__
38 #include <com/sun/star/view/PaperFormat.idl>
39 #endif
41 #ifndef __com_sun_star_awt_Size_idl__
42 #include <com/sun/star/awt/Size.idl>
43 #endif
46 //=============================================================================
48 module com { module sun { module star { module view {
50 //=============================================================================
52 /** describes a printer by specifying the queue name and some settings.
54 <p>This service may be represented by a <type scope="com::sun::star::beans" dim="[]">PropertyValue</type>.
56 @see com::sun::star::beans::PropertyValue
58 published service PrinterDescriptor
60 //-------------------------------------------------------------------------
61 /** specifies the name of the printer queue to be used.
63 <p>Which printer queues are available, can be figured out with the
64 system library of the used programming language/environment.
66 [property] string Name;
68 //-------------------------------------------------------------------------
69 /** specifies the orientation of the paper.
71 [property] com::sun::star::view::PaperOrientation PaperOrientation;
73 //-------------------------------------------------------------------------
74 /** specifies a predefined paper size or if the paper size
75 is a user-defined size.
77 <p>Setting this property may change the value of
78 <member>PrinterDescriptor</member>PaperSize</member.</p>
80 [property] com::sun::star::view::PaperFormat PaperFormat;
82 //-------------------------------------------------------------------------
83 /** specifies the size of the paper in 100th mm.
85 <p>Setting this property may change the value of
86 <member>PrinterDescriptor</member>PaperFormat</member.</p>
88 [property] com::sun::star::awt::Size PaperSize;
90 //-------------------------------------------------------------------------
91 /** indicates, whether the printer is busy or not.
93 [readonly, property] boolean IsBusy;
95 //-------------------------------------------------------------------------
96 /** indicates, whether the printer allows changes to
97 <member>PrinterDescriptor::PaperOrientation</member>.
99 [readonly, property] boolean CanSetPaperOrientation;
101 //-------------------------------------------------------------------------
102 /** indicates, whether the printer allows changes to
103 <member>PrinterDescriptor::PaperFormat</member>.
105 [readonly, property] boolean CanSetPaperFormat;
107 //-------------------------------------------------------------------------
109 /** indicates if the printer allows changes to
110 <member>PrinterDescriptor::PaperSize</member>.
112 [readonly, property] boolean CanSetPaperSize;
116 //=============================================================================
118 }; }; }; };
120 #endif