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_XPrinterPropertySet_idl__ 28#define __com_sun_star_awt_XPrinterPropertySet_idl__ 29 30#ifndef __com_sun_star_beans_XPropertySet_idl__ 31#include <com/sun/star/beans/XPropertySet.idl> 32#endif 33 34#ifndef __com_sun_star_beans_PropertyVetoException_idl__ 35#include <com/sun/star/beans/PropertyVetoException.idl> 36#endif 37 38#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ 39#include <com/sun/star/lang/IllegalArgumentException.idl> 40#endif 41 42 43//============================================================================= 44 45 module com { module sun { module star { module awt { 46 47//============================================================================= 48 49/** represents an extended property set for printer properties. 50 51 <p>All properties are vetoable properties. If you change the properties 52 between <member scope="com::sun::star::awt">XPrinter::startPage</member> 53 and <member scope="com::sun::star::awt">XPrinter::endPage</member>, a 54 <type scope="com::sun::star::beans">PropertyVetoException</type> 55 is thrown.</p> 56 57 @see XPrinter 58 @see XInfoPrinter 59 */ 60published interface XPrinterPropertySet: com::sun::star::beans::XPropertySet 61{ 62 //------------------------------------------------------------------------- 63 64 /** sets the orientation. 65 */ 66 void setHorizontal( [in] boolean bHorizontal ) 67 raises( com::sun::star::beans::PropertyVetoException, 68 com::sun::star::lang::IllegalArgumentException ); 69 70 //------------------------------------------------------------------------- 71 72 /** returns descriptions of all available printer forms. 73 */ 74 sequence<string> getFormDescriptions(); 75 76 //------------------------------------------------------------------------- 77 78 /** sets the form that should be used. 79 80 <p>Indirectly a printer is selected.</p> 81 */ 82 void selectForm( [in] string aFormDescription ) 83 raises( com::sun::star::beans::PropertyVetoException, 84 com::sun::star::lang::IllegalArgumentException ); 85 86 //------------------------------------------------------------------------- 87 88 /** returns a binary encoded version of the printer setup. 89 */ 90 sequence<byte> getBinarySetup(); 91 92 //------------------------------------------------------------------------- 93 94 /** sets the data specific to the printer driver. 95 96 <p>Get this data from the info printer and set the data to the 97 printer.</p> 98 */ 99 void setBinarySetup( [in] sequence<byte> data ) 100 raises( com::sun::star::beans::PropertyVetoException, 101 com::sun::star::lang::IllegalArgumentException ); 102 103}; 104 105//============================================================================= 106 107}; }; }; }; 108 109#endif 110