From: Nick Burch Date: Thu, 15 May 2014 10:15:04 +0000 (+0000) Subject: Add a HSSF print paper size constant for "printer default" for bug #56509 X-Git-Tag: REL_3_11_BETA1~138 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5eacb4c2f70af22cc76def3b120b106c7dae87e9;p=poi.git Add a HSSF print paper size constant for "printer default" for bug #56509 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1594848 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java b/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java index aa16b2038a..6399b883af 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java @@ -26,6 +26,7 @@ import org.apache.poi.ss.usermodel.PrintSetup; *

* Paper size constants have been added for the ones I have access * to. They follow as:
+ * public static final short PRINTER_DEFAULT_PAPERSIZE = 0;
* public static final short LETTER_PAPERSIZE = 1;
* public static final short LEGAL_PAPERSIZE = 5;
* public static final short EXECUTIVE_PAPERSIZE = 7;
diff --git a/src/java/org/apache/poi/ss/usermodel/PrintSetup.java b/src/java/org/apache/poi/ss/usermodel/PrintSetup.java index 4857df4d80..bba72c3951 100644 --- a/src/java/org/apache/poi/ss/usermodel/PrintSetup.java +++ b/src/java/org/apache/poi/ss/usermodel/PrintSetup.java @@ -18,6 +18,8 @@ package org.apache.poi.ss.usermodel; public interface PrintSetup { + /** Whatever the printer's default paper size is */ + public static final short PRINTER_DEFAULT_PAPERSIZE = 0; /** US Letter 8 1/2 x 11 in */ public static final short LETTER_PAPERSIZE = 1; /** US Letter Small 8 1/2 x 11 in */