From 4d2a90d3ec830d8d7e776fe40f8917368a941e84 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Thu, 15 May 2014 10:15:04 +0000 Subject: [PATCH] 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 --- src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java | 1 + src/java/org/apache/poi/ss/usermodel/PrintSetup.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java b/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java index aa16b2038..6399b883a 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 4857df4d8..bba72c395 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 */