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. |
From: <doc...@us...> - 2007-08-06 17:37:58
|
Revision: 141 http://openpcl.svn.sourceforge.net/openpcl/?rev=141&view=rev Author: documentsystems Date: 2007-08-06 10:38:00 -0700 (Mon, 06 Aug 2007) Log Message: ----------- Howard Hoagland. In PosPrintSetupDialogChoices, deleted "TO DO" comment "Add code to take the defaults from the user options in the Preferences, instead of the below initializations" because finished implementing write all the print setup dialog options the user clicked on (Use Windows Print or print PCL Direct, Print as displayed, Legal first then Letter, Letter first then Legal, All on Legal, All on Letter (shrinks Legal), Print Form Names, Duplex), to the local persisted storage using the java.util.prefs.Preferences in a platform independent way. For Windows, it will write to the Registry at "HKEY_CURRENT_USER\Software\JavaSoft\Prefs\com\openpcl\viewer". For Macintosh, the Preferences object in the local running JVM writes the settings in a Macintosh specific way. 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-08-06 17:20:55 UTC (rev 140) +++ openpcl/src/com/openpcl/viewer/printing/PosPrintSetupDialogChoices.java 2007-08-06 17:38:00 UTC (rev 141) @@ -17,7 +17,6 @@ public static final int sPaperSizePrintAllOnLegal = 4; public static final int sPaperSizePrintAllOnLetterShrinksLegal = 5; - // 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 = sPrintFormatIsWindowsPrint; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |