poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1594848 - in /poi/trunk/src/java/org/apache/poi: hssf/usermodel/HSSFPrintSetup.java ss/usermodel/PrintSetup.java
Date Thu, 15 May 2014 10:15:04 GMT
Author: nick
Date: Thu May 15 10:15:04 2014
New Revision: 1594848

URL: http://svn.apache.org/r1594848
Log:
Add a HSSF print paper size constant for "printer default" for bug #56509

Modified:
    poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java
    poi/trunk/src/java/org/apache/poi/ss/usermodel/PrintSetup.java

Modified: poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java?rev=1594848&r1=1594847&r2=1594848&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java Thu May 15 10:15:04
2014
@@ -26,6 +26,7 @@ import org.apache.poi.ss.usermodel.Print
  * <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>

Modified: poi/trunk/src/java/org/apache/poi/ss/usermodel/PrintSetup.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/usermodel/PrintSetup.java?rev=1594848&r1=1594847&r2=1594848&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/usermodel/PrintSetup.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/usermodel/PrintSetup.java Thu May 15 10:15:04 2014
@@ -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 */



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message