]> source.dussan.org Git - poi.git/commitdiff
Add a HSSF print paper size constant for "printer default" for bug #56509
authorNick Burch <nick@apache.org>
Thu, 15 May 2014 10:15:04 +0000 (10:15 +0000)
committerNick Burch <nick@apache.org>
Thu, 15 May 2014 10:15:04 +0000 (10:15 +0000)
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
src/java/org/apache/poi/ss/usermodel/PrintSetup.java

index aa16b2038af620737462ce6caa641d6fd5dff2d1..6399b883afeecfde85692fcad6b95b0434bb15f9 100644 (file)
@@ -26,6 +26,7 @@ import org.apache.poi.ss.usermodel.PrintSetup;
  * <P>
  * Paper size constants have been added for the ones I have access
  * to.  They follow as:<br>
+ *  public static final short PRINTER_DEFAULT_PAPERSIZE   = 0;<br>
  *  public static final short LETTER_PAPERSIZE                   = 1;<br>
  *  public static final short LEGAL_PAPERSIZE            = 5;<br>
  *  public static final short EXECUTIVE_PAPERSIZE        = 7;<br>
index 4857df4d809c0b77432e25fd778779afbdd87c57..bba72c39518c6251d4c87d78e041fa486d410539 100644 (file)
@@ -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 */