From a9912838a6e361e2564f4ef30a5b0f619641dac2 Mon Sep 17 00:00:00 2001 From: Carsten Driesner Date: Mon, 10 Aug 2009 15:10:32 +0000 Subject: #i96402# Added DuplexMode constants --- offapi/com/sun/star/view/DuplexMode.idl | 69 +++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 offapi/com/sun/star/view/DuplexMode.idl (limited to 'offapi/com/sun/star/view') diff --git a/offapi/com/sun/star/view/DuplexMode.idl b/offapi/com/sun/star/view/DuplexMode.idl new file mode 100644 index 000000000000..47877a8ad960 --- /dev/null +++ b/offapi/com/sun/star/view/DuplexMode.idl @@ -0,0 +1,69 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2008 by Sun Microsystems, Inc. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: PaperFormat.idl,v $ + * $Revision: 1.7 $ + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_view_DuplexMode_idl__ +#define __com_sun_star_view_DuplexMode_idl__ + + +//============================================================================= + +module com { module sun { module star { module view { + +//============================================================================= + +/** These constants specify available duplex modes + */ +constants DuplexMode +{ + //------------------------------------------------------------------------- + /** specifies an unknown duplex mode. + */ + const short UNKNOWN = 0; + + //------------------------------------------------------------------------- + /** specifies that there is no duplex mode enabled + */ + const short OFF = 1; + + //------------------------------------------------------------------------- + /** specifies a long edge duplex mode + */ + const short LONGEDGE = 2; + + //------------------------------------------------------------------------- + /** specifies the paper format as A4. + */ + const short SHORTEDGE = 3; +}; + +//============================================================================= + +}; }; }; }; + +#endif -- cgit v1.2.3 From 216a877272828f919996baf828d7669319b70798 Mon Sep 17 00:00:00 2001 From: Carsten Driesner Date: Mon, 10 Aug 2009 15:11:12 +0000 Subject: #i96402# Added DuplexMode constants --- offapi/com/sun/star/view/DuplexMode.idl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'offapi/com/sun/star/view') diff --git a/offapi/com/sun/star/view/DuplexMode.idl b/offapi/com/sun/star/view/DuplexMode.idl index 47877a8ad960..6d5d84ff4abc 100644 --- a/offapi/com/sun/star/view/DuplexMode.idl +++ b/offapi/com/sun/star/view/DuplexMode.idl @@ -57,7 +57,7 @@ constants DuplexMode const short LONGEDGE = 2; //------------------------------------------------------------------------- - /** specifies the paper format as A4. + /** specifies a short edge duplex mode */ const short SHORTEDGE = 3; }; -- cgit v1.2.3 From 227e3afb7518e8844788094e2dd6426be6beaa59 Mon Sep 17 00:00:00 2001 From: Carsten Driesner Date: Mon, 10 Aug 2009 15:13:59 +0000 Subject: #i96402# Added DuplexMode option --- offapi/com/sun/star/view/PrintOptions.idl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'offapi/com/sun/star/view') diff --git a/offapi/com/sun/star/view/PrintOptions.idl b/offapi/com/sun/star/view/PrintOptions.idl index 6bd67e0f52bd..df65229a0854 100644 --- a/offapi/com/sun/star/view/PrintOptions.idl +++ b/offapi/com/sun/star/view/PrintOptions.idl @@ -85,6 +85,13 @@ published service PrintOptions Otherwhise following actions (as e.g. closing the corresponding model) can fail. */ [optional, property] boolean Wait; + + //------------------------------------------------------------------------- + /** determines the duplex mode for the print job. + + @see DuplexMode for more information about supported values + */ + [optional, property] short DuplexMode; }; //============================================================================= -- cgit v1.2.3 From accedbb3caa51b0d9686dbdef56e17c9fcf4bd99 Mon Sep 17 00:00:00 2001 From: Carsten Driesner Date: Mon, 10 Aug 2009 15:14:18 +0000 Subject: #i96402# Added DuplexMode --- offapi/com/sun/star/view/makefile.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'offapi/com/sun/star/view') diff --git a/offapi/com/sun/star/view/makefile.mk b/offapi/com/sun/star/view/makefile.mk index 04dbdc77abac..1db50d0ece89 100644 --- a/offapi/com/sun/star/view/makefile.mk +++ b/offapi/com/sun/star/view/makefile.mk @@ -73,7 +73,8 @@ IDLFILES=\ XPrintJobBroadcaster.idl\ XPrintJobListener.idl\ XMultiSelectionSupplier.idl\ - SelectionType.idl + SelectionType.idl\ + DuplexMode.idl # ------------------------------------------------------------------ -- cgit v1.2.3