|
From: <doc...@us...> - 2007-07-23 23:07:08
|
Revision: 111
http://openpcl.svn.sourceforge.net/openpcl/?rev=111&view=rev
Author: documentsystems
Date: 2007-07-23 16:07:10 -0700 (Mon, 23 Jul 2007)
Log Message:
-----------
Howard Hoagland. Changed PrintFormatIsGdiDriver to PrintFormatIsWindowsPrint and it's setter/getter
Modified Paths:
--------------
openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialogChoices.java
Modified: openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialogChoices.java
===================================================================
--- openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialogChoices.java 2007-07-20 23:53:33 UTC (rev 110)
+++ openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialogChoices.java 2007-07-23 23:07:10 UTC (rev 111)
@@ -8,8 +8,8 @@
*/
public class PosPrintSetupDialogChoices {
- public static final int sPrintFormatIsPclDirect = 1;
- public static final int sPrintFormatIsGdiDriver = 2;
+ public static final int sPrintFormatIsWindowsPrint = 1;
+ public static final int sPrintFormatIsPclDirect = 2;
public static final int sPaperSizeAsDisplayedSelected = 1;
public static final int sPaperSizeLegalFirstThenLetter = 2;
@@ -20,11 +20,12 @@
// TODO Add code to take the defaults from the user options in the Preferences, instead of the below initializations
private PrintService mSelectedPrintService = null;
private int mNumAdditionalCopies = 0;
- private int mPrintFormat = sPrintFormatIsGdiDriver;
+ private int mPrintFormat = sPrintFormatIsWindowsPrint;
private int mPaperSize = sPaperSizeAsDisplayedSelected;
private boolean mShouldPrintFormNames = false;
private boolean mShouldDuplex = false;
-
+
+ // These are run time items that don't need to be saved to persistent settings
private boolean mUserHitOk = false;
public PosPrintSetupDialogChoices() {
@@ -38,12 +39,12 @@
public int getNumAdditionalCopies() {
return mNumAdditionalCopies;
}
+ public boolean isPrintFormatWindowsPrint() {
+ return (mPrintFormat == sPrintFormatIsWindowsPrint);
+ }
public boolean isPrintFormatPclDirect() {
return (mPrintFormat == sPrintFormatIsPclDirect);
}
- public boolean isPrintFormatGdiDriver() {
- return (mPrintFormat == sPrintFormatIsGdiDriver);
- }
public boolean isPaperSizeAsDisplayedOrSelected() {
return (mPaperSize == sPaperSizeAsDisplayedSelected);
}
@@ -76,12 +77,12 @@
public void setNumAdditionalCopies(int numCopies) {
mNumAdditionalCopies = numCopies;
}
+ public void setPrintFormatIsWindowsPrint() {
+ mPrintFormat = sPrintFormatIsWindowsPrint;
+ }
public void setPrintFormatIsPclDirect() {
mPrintFormat = sPrintFormatIsPclDirect;
}
- public void setPrintFormatIsGdiDriver() {
- mPrintFormat = sPrintFormatIsGdiDriver;
- }
public void setPaperSizeAsDisplayedSelected() {
mPaperSize = sPaperSizeAsDisplayedSelected;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|