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
This commit is contained in:
Nick Burch 2014-05-15 10:15:04 +00:00
parent d0320ad77d
commit 4d2a90d3ec
2 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,7 @@ import org.apache.poi.ss.usermodel.PrintSetup;
* <P> * <P>
* Paper size constants have been added for the ones I have access * Paper size constants have been added for the ones I have access
* to. They follow as:<br> * 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 LETTER_PAPERSIZE = 1;<br>
* public static final short LEGAL_PAPERSIZE = 5;<br> * public static final short LEGAL_PAPERSIZE = 5;<br>
* public static final short EXECUTIVE_PAPERSIZE = 7;<br> * public static final short EXECUTIVE_PAPERSIZE = 7;<br>

View File

@ -18,6 +18,8 @@
package org.apache.poi.ss.usermodel; package org.apache.poi.ss.usermodel;
public interface PrintSetup { 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 */ /** US Letter 8 1/2 x 11 in */
public static final short LETTER_PAPERSIZE = 1; public static final short LETTER_PAPERSIZE = 1;
/** US Letter Small 8 1/2 x 11 in */ /** US Letter Small 8 1/2 x 11 in */