You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(19) |
Jul
(39) |
Aug
(30) |
Sep
(14) |
Oct
(4) |
Nov
(12) |
Dec
(20) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
|
Feb
(1) |
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(2) |
2009 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <doc...@us...> - 2007-12-05 19:04:36
|
Revision: 205 http://openpcl.svn.sourceforge.net/openpcl/?rev=205&view=rev Author: documentsystems Date: 2007-12-05 11:04:39 -0800 (Wed, 05 Dec 2007) Log Message: ----------- Changed to added the date 12/5/07 with the version 0.08 Modified Paths: -------------- openpcl/src/com/openpcl/install/website/index.html Modified: openpcl/src/com/openpcl/install/website/index.html =================================================================== --- openpcl/src/com/openpcl/install/website/index.html 2007-12-05 18:42:41 UTC (rev 204) +++ openpcl/src/com/openpcl/install/website/index.html 2007-12-05 19:04:39 UTC (rev 205) @@ -226,12 +226,12 @@ <div id="downloadWin32Div"> <a href="openpclviewer-setup.exe" class="downloadLink"> Download OpenPCL Viewer Now!</a><br/> - v0.08 (Alpha) for Windows<br/> + v0.08 12/5/07 for Windows<br/> </div> <div id="downloadOtherDiv" style="display:none"> <a href="openpclviewer-installer.jar" class="downloadLink"> Download OpenPCL Viewer Now!</a><br/> - v0.08 (Alpha) for Mac/Linux<br/> + v0.08 12/5/07 for Mac/Linux<br/> <span class="downloadReq"> Requires Java JRE 1.5<br/> </span> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-12-05 18:42:36
|
Revision: 204 http://openpcl.svn.sourceforge.net/openpcl/?rev=204&view=rev Author: documentsystems Date: 2007-12-05 10:42:41 -0800 (Wed, 05 Dec 2007) Log Message: ----------- Howard Hoagland. Remove jdom.jar from command line app startup classpath Modified Paths: -------------- openpcl/src/com/openpcl/install/localinstaller/openpclviewer.sh openpcl/src/com/openpcl/install/localinstaller/openpclviewerembeddeddemo.bat Modified: openpcl/src/com/openpcl/install/localinstaller/openpclviewer.sh =================================================================== --- openpcl/src/com/openpcl/install/localinstaller/openpclviewer.sh 2007-12-05 18:42:16 UTC (rev 203) +++ openpcl/src/com/openpcl/install/localinstaller/openpclviewer.sh 2007-12-05 18:42:41 UTC (rev 204) @@ -1 +1 @@ -javaw -Xms64m -Xmx512m -classpath ".:openpcl.jar:jdom.jar:TableLayout.jar" com.openpcl.viewer.OpenPCLViewer "%1" +javaw -Xms64m -Xmx512m -classpath ".:openpcl.jar:TableLayout.jar" com.openpcl.viewer.OpenPCLViewer "%1" Modified: openpcl/src/com/openpcl/install/localinstaller/openpclviewerembeddeddemo.bat =================================================================== --- openpcl/src/com/openpcl/install/localinstaller/openpclviewerembeddeddemo.bat 2007-12-05 18:42:16 UTC (rev 203) +++ openpcl/src/com/openpcl/install/localinstaller/openpclviewerembeddeddemo.bat 2007-12-05 18:42:41 UTC (rev 204) @@ -1 +1 @@ -javaw -Xms64m -Xmx512m -classpath ".;openpcl.jar;jdom.jar;TableLayout.jar" com.openpcl.viewer.OpenPCLViewer -EmbeddedDemo "%1" +javaw -Xms64m -Xmx512m -classpath ".;openpcl.jar;TableLayout.jar" com.openpcl.viewer.OpenPCLViewer -EmbeddedDemo "%1" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-12-05 18:42:11
|
Revision: 203 http://openpcl.svn.sourceforge.net/openpcl/?rev=203&view=rev Author: documentsystems Date: 2007-12-05 10:42:16 -0800 (Wed, 05 Dec 2007) Log Message: ----------- Howard Hoagland. Remove jdom.jar from command line app startup classpath Modified Paths: -------------- openpcl/src/com/openpcl/install/localinstaller/openpclviewer.bat Modified: openpcl/src/com/openpcl/install/localinstaller/openpclviewer.bat =================================================================== --- openpcl/src/com/openpcl/install/localinstaller/openpclviewer.bat 2007-12-05 18:41:29 UTC (rev 202) +++ openpcl/src/com/openpcl/install/localinstaller/openpclviewer.bat 2007-12-05 18:42:16 UTC (rev 203) @@ -1 +1 @@ -javaw -Xms64m -Xmx512m -classpath ".;openpcl.jar;jdom.jar;TableLayout.jar" com.openpcl.viewer.OpenPCLViewer "%1" +javaw -Xms64m -Xmx512m -classpath ".;openpcl.jar;TableLayout.jar" com.openpcl.viewer.OpenPCLViewer "%1" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-12-05 18:41:32
|
Revision: 202 http://openpcl.svn.sourceforge.net/openpcl/?rev=202&view=rev Author: documentsystems Date: 2007-12-05 10:41:29 -0800 (Wed, 05 Dec 2007) Log Message: ----------- 1. Removed the jdom.jar from IZPack copy files, and 2. Updated HelpAbout and License to app version 0.08 December 5, 2007 Modified Paths: -------------- openpcl/src/com/openpcl/install/localinstaller/HelpAbout.html openpcl/src/com/openpcl/install/localinstaller/LicenseInfo.html openpcl/src/com/openpcl/install/localinstaller/openpclviewer-izpack-shortcut-win.xml openpcl/src/com/openpcl/install/localinstaller/openpclviewer-izpack.xml openpcl/src/com/openpcl/install/localinstaller/openpclviewerembeddeddemo.sh openpcl/src/com/openpcl/viewer/htmlfiles/HelpAbout.html openpcl/src/com/openpcl/viewer/htmlfiles/LicenseInfo.html Modified: openpcl/src/com/openpcl/install/localinstaller/HelpAbout.html =================================================================== --- openpcl/src/com/openpcl/install/localinstaller/HelpAbout.html 2007-12-05 05:32:17 UTC (rev 201) +++ openpcl/src/com/openpcl/install/localinstaller/HelpAbout.html 2007-12-05 18:41:29 UTC (rev 202) @@ -2,7 +2,7 @@ <html><head><title>OpenPCL Viewer Help About</title></head> <body><font size=4 face="arial"> <b>OpenPCL Viewer - Free Open Source PCL Viewer for the World.</b><br> -Version 0.08 September 7, 2007<br> +Version 0.08 December 5, 2007<br> OpenPCL is made up of OpenPCLViewer and PclRenderImage.<br> <br> <b>Features:</b> Modified: openpcl/src/com/openpcl/install/localinstaller/LicenseInfo.html =================================================================== --- openpcl/src/com/openpcl/install/localinstaller/LicenseInfo.html 2007-12-05 05:32:17 UTC (rev 201) +++ openpcl/src/com/openpcl/install/localinstaller/LicenseInfo.html 2007-12-05 18:41:29 UTC (rev 202) @@ -2,7 +2,7 @@ <html><head><title>OpenPCL Viewer License</title></head> <body><font size=4 face="arial"> <b>OpenPCL Viewer - Free Open Source PCL Viewer for the World.</b> -<br>Version 0.08 September 7, 2007 +<br>Version 0.08 December 5, 2007 <br>OpenPCL is made up of OpenPCLViewer and PclRenderImage. <br> <p>The OpenPCL license is the GNU Lesser General Public License (LGPL) which you can view at Modified: openpcl/src/com/openpcl/install/localinstaller/openpclviewer-izpack-shortcut-win.xml =================================================================== --- openpcl/src/com/openpcl/install/localinstaller/openpclviewer-izpack-shortcut-win.xml 2007-12-05 05:32:17 UTC (rev 201) +++ openpcl/src/com/openpcl/install/localinstaller/openpclviewer-izpack-shortcut-win.xml 2007-12-05 18:41:29 UTC (rev 202) @@ -12,7 +12,7 @@ workingDirectory="$INSTALL_PATH\" commandLine="" iconFile="$INSTALL_PATH\openpclviewer.ico" - description="OpenPCL Viewer - Free Open Source PCL Viewer for the World. Version 0.06 March 28, 2007"> + description="OpenPCL Viewer - Free Open Source PCL Viewer for the World. Version 0.08 December 5, 2007"> <createForPack name="Core"/> </shortcut> <shortcut name="Uninstall OpenPCLViewer (local install)" Modified: openpcl/src/com/openpcl/install/localinstaller/openpclviewer-izpack.xml =================================================================== --- openpcl/src/com/openpcl/install/localinstaller/openpclviewer-izpack.xml 2007-12-05 05:32:17 UTC (rev 201) +++ openpcl/src/com/openpcl/install/localinstaller/openpclviewer-izpack.xml 2007-12-05 18:41:29 UTC (rev 202) @@ -2,7 +2,7 @@ <installation version="1.0"> <info> <appname>OpenPCLViewer</appname> - <appversion>OpenPCL Viewer - Free Open Source PCL Viewer for the World. Version 0.06 March 28, 2007</appversion> + <appversion>OpenPCL Viewer - Free Open Source PCL Viewer for the World. Version 0.08 December 5, 2007</appversion> <appsubpath>OpenPCLViewer</appsubpath> <url>http://www.openpcl.com</url> <authors> @@ -37,9 +37,7 @@ <file src="openpcl.zip" targetdir="$INSTALL_PATH"/> <!-- <file src="pclrenderimage.jar" targetdir="$INSTALL_PATH"/> - <file src="pclrenderimage.zip" targetdir="$INSTALL_PATH"/> --> - <file src="jdom.jar" targetdir="$INSTALL_PATH"/> <file src="TableLayout.jar" targetdir="$INSTALL_PATH"/> <!-- install dir --> <file src="../src/com/openpcl/install/localinstaller/installopenpclviewer.bat" targetdir="$INSTALL_PATH"/> Modified: openpcl/src/com/openpcl/install/localinstaller/openpclviewerembeddeddemo.sh =================================================================== --- openpcl/src/com/openpcl/install/localinstaller/openpclviewerembeddeddemo.sh 2007-12-05 05:32:17 UTC (rev 201) +++ openpcl/src/com/openpcl/install/localinstaller/openpclviewerembeddeddemo.sh 2007-12-05 18:41:29 UTC (rev 202) @@ -1 +1 @@ -javaw -Xms64m -Xmx512m -classpath ".:openpcl.jar:jdom.jar:TableLayout.jar" com.openpcl.viewer.OpenPCLViewer -EmbeddedDemo "%1" +javaw -Xms64m -Xmx512m -classpath ".:openpcl.jar:TableLayout.jar" com.openpcl.viewer.OpenPCLViewer -EmbeddedDemo "%1" Modified: openpcl/src/com/openpcl/viewer/htmlfiles/HelpAbout.html =================================================================== --- openpcl/src/com/openpcl/viewer/htmlfiles/HelpAbout.html 2007-12-05 05:32:17 UTC (rev 201) +++ openpcl/src/com/openpcl/viewer/htmlfiles/HelpAbout.html 2007-12-05 18:41:29 UTC (rev 202) @@ -2,7 +2,7 @@ <html><head><title>OpenPCL Viewer Help About</title></head> <body><font size=4 face="arial"> <b>OpenPCL Viewer - Free Open Source PCL Viewer for the World.</b><br> -Version 0.08 September 7, 2007<br> +Version 0.08 December 5, 2007<br> OpenPCL is made up of OpenPCLViewer and PclRenderImage.<br> <br> <b>Features:</b> Modified: openpcl/src/com/openpcl/viewer/htmlfiles/LicenseInfo.html =================================================================== --- openpcl/src/com/openpcl/viewer/htmlfiles/LicenseInfo.html 2007-12-05 05:32:17 UTC (rev 201) +++ openpcl/src/com/openpcl/viewer/htmlfiles/LicenseInfo.html 2007-12-05 18:41:29 UTC (rev 202) @@ -2,7 +2,7 @@ <html><head><title>OpenPCL Viewer License</title></head> <body><font size=4 face="arial"> <b>OpenPCL Viewer - Free Open Source PCL Viewer for the World.</b> -<br>Version 0.08 September 7, 2007 +<br>Version 0.08 December 5, 2007 <br>OpenPCL is made up of OpenPCLViewer and PclRenderImage. <br> <p>The OpenPCL license is the GNU Lesser General Public License (LGPL) which you can view at This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-12-05 05:32:12
|
Revision: 201 http://openpcl.svn.sourceforge.net/openpcl/?rev=201&view=rev Author: documentsystems Date: 2007-12-04 21:32:17 -0800 (Tue, 04 Dec 2007) Log Message: ----------- Howard Hoagland. Changed the executeAfterUiIsShowing() method to do an additional force to redraw the PCL page at very end of the startup sequence if run from an applet. Modified Paths: -------------- openpcl/src/com/openpcl/viewer/OpenPCLViewer.java Modified: openpcl/src/com/openpcl/viewer/OpenPCLViewer.java =================================================================== --- openpcl/src/com/openpcl/viewer/OpenPCLViewer.java 2007-12-05 05:30:13 UTC (rev 200) +++ openpcl/src/com/openpcl/viewer/OpenPCLViewer.java 2007-12-05 05:32:17 UTC (rev 201) @@ -89,7 +89,7 @@ * 1. As a PCL viewer. This is the normal user mode.<br> *<br> * or<br> - * 2. As a JPanel imbedded in your Java app's layout anywhere you wish. Your app can call the methods shown + * 2. As a JPanel embedded in your Java app's layout anywhere you wish. Your app can call the methods shown * in the Interface IOpenPCL to control how the OpenPCLViewer JPanel looks on screen and to control * its behavior. OpenPCLViewer's own toolbar buttons and events call these same Interface methods to control * it that and external app can call. You can hide the toolbar and/or JTree of PCL page nodes and call all the @@ -103,7 +103,7 @@ *<br> * More details about it:<br> * For (1), when OpenPCLViewer is run as the main app, its main() method runs which calls it's constructor. - * In this case, it will instantiate and show the JFrame PosSimpleJFrame, then imbed itself as a JPanel into + * In this case, it will instantiate and show the JFrame PosSimpleJFrame, then embed itself as a JPanel into * PosSimpleJFrame's layout. This requires no user programming and it does this as the ready to run PCL viewer.<br> *<br> * For (2), if you've written a Java app already and you want to put a JPanel in your app that is a PCL viewer, @@ -112,7 +112,7 @@ * and pass your app's JFrame in the constructor. Doing it this way, the OpenPCLViewer main() is never run * because your app's main() is the main(). Since OpenPCLViewer is a subclass of JPanel, it needs a reference to * the JFrame where this JPanel will be contained so that JDialogs and JOptionPanes can be modal on the - * passed in JFrame as the parent frame. For the 2nd paramater which is the "String pArgs[]" you can pass + * passed in JFrame as the parent frame. For the 2nd parameter which is the "String pArgs[]" you can pass * null if you don't want to specify any command line options or the name of a PCL file to open and view * at program startup time. Then you would add the OpenPCLViewer panel into your app's layout in any place you wish. * If you don't want the JTree or toolbar or status bar, you can turn those off independently by calling public @@ -120,7 +120,7 @@ * you have in your app that you want to control the PCL Viewer JPanel with, then hide OpenPCLViewer's toolbar * and make your event listener code call the OpenPCLViewer's public api interface methods that are in IOpenPCL.<br> * <br> - * For (3), If you want to *not* imbed the OpenPCLViewer JPanel in your app, and instead the only thing you want + * For (3), If you want to *not* embed the OpenPCLViewer JPanel in your app, and instead the only thing you want * is the BufferedImage bitmap that PclRenderImage draws from the PCL bytes, then you can use the classed in the * pclrenderimage.jar file directly and not have the openpcl.jar file there at run time. In this case, your app * needs to have all the UI code since you're going the bare bones route and not using any classes in the @@ -133,7 +133,9 @@ * 3c. Put the java.awt.image.BufferedImage (that is returned from the renderImage...() methods) on the screen, * or pass it along to a client who is in charge of putting it on the client's screen.<br> * - * @author DocMagic, Document Systems Inc, Howard H 9/20/06 + * @author DocMagic, Document Systems Inc, Howard Hoagland.<br> + * The major viewing and printing functionality written 5/13/06 to 9/20/06.<br> + * Added more printing variations and more features and command line options after that. */ public class OpenPCLViewer extends JPanel implements IOpenPCL, IPluginHooksOpenPCL { private static final long serialVersionUID = 1L; @@ -141,7 +143,7 @@ // Instance variables protected String mAppName = "OpenPCL Viewer"; protected String mAppDescription = " - Free Open Source PCL Viewer for the World"; - protected String mAppVersion = "Version 0.08 September 7, 2007"; + protected String mAppVersion = "Version 0.08 December 7, 2007"; private Frame mParentFrame = null; private JApplet mJApplet = null; @@ -510,7 +512,11 @@ // After the JFrame is visible, if the user had put a file to open on the command line, then open the file now, // and any other code that must be executed after the UI is showing on the screen - executeAfterUiIsShowing(); + if (mPosStartupOptions.getModeToRun() != PosStartupOptions.sModeToRunApplet) { + // Don't call the below if this JPanel is in an applet because the applet will call the below method + // after the applet puts this JPanel in the applet on the screen + executeAfterUiIsShowing(); + } } // Find the Frame of the Browser that the applet is running in, or else make a new not visible Frame @@ -591,12 +597,23 @@ * Code that needs to execute after the UI is showing on the screen upon app startup. * @author howard 9/20/06 */ - protected void executeAfterUiIsShowing() { + public void executeAfterUiIsShowing() { String tOpenFile = mPosStartupOptions.getCommandLineFileToOpen(); // If there is a file name on the command line then open the file to view if (tOpenFile != null && tOpenFile.length() > 0) { actionOpenLocalFileSpecified(tOpenFile); - if (mPosViewSelected != null) { mPosViewSelected.getPosTree().selectPage1(); } + if (mPosViewSelected != null) { + mPosViewSelected.getPosTree().selectPage1(); + + if (mPosStartupOptions.getModeToRun() == PosStartupOptions.sModeToRunApplet) { + // When this app is put in an applet, the initial file to automatically open and show doesn't show unless the below is done + // so that the automatic drawing of the PCL page is kicked off again doing the "force zoom to width" + int tParentFrameWidth = mParentFrame.getWidth(); + int tParentFrameHeight = mParentFrame.getHeight(); + mParentFrame.setSize(tParentFrameWidth - 2, tParentFrameHeight); + mParentFrame.setSize(tParentFrameWidth, tParentFrameHeight); + } + } } } @@ -1996,9 +2013,16 @@ String tLoadFileErrorString = loadFromFileSplitIntoSeparatePclPages(pFilePathAndFileName); if (tLoadFileErrorString != null) { + mPosViewSelected.freeUpMemory(); + mPosViewSelected = null; // Success on creating the new Mdi view but error on splitting the Pcl bytes into separate pages. // Could be file not found or no bytes in the file when opened - JOptionPane.showMessageDialog(mParentFrame, tLoadFileErrorString, "Error", JOptionPane.ERROR_MESSAGE); + JOptionPane.showMessageDialog(mParentFrame, tLoadFileErrorString + + "\nA full absolute directory path is required. No default directory is assumed.\n" + + "Example if the file is to be read from c:/temp\n" + + " 1. Copy the file to c:/temp\n" + + " 2. For the file to open at startup time, specify c:/temp/filename.ext instead of filename.ext", + "Error", JOptionPane.ERROR_MESSAGE); return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-12-05 05:30:08
|
Revision: 200 http://openpcl.svn.sourceforge.net/openpcl/?rev=200&view=rev Author: documentsystems Date: 2007-12-04 21:30:13 -0800 (Tue, 04 Dec 2007) Log Message: ----------- Howard Hoagland. Made the app startup in Windows XP mode when running from an applet, but if running on a Macintosh then let it default to the Macintosh look and feel. Modified Paths: -------------- openpcl/src/com/openpcl/viewer/util/PosPickAppLook.java Modified: openpcl/src/com/openpcl/viewer/util/PosPickAppLook.java =================================================================== --- openpcl/src/com/openpcl/viewer/util/PosPickAppLook.java 2007-12-05 05:29:14 UTC (rev 199) +++ openpcl/src/com/openpcl/viewer/util/PosPickAppLook.java 2007-12-05 05:30:13 UTC (rev 200) @@ -14,7 +14,7 @@ /** * Choices for the user to change the LookAndFeel at run time while using the UI - * @author howard 9/14/06 + * @author DocMagic, Document Systems Inc, Howard Hoagland 9/14/06 */ public class PosPickAppLook { OpenPCLViewer mOpenPCLViewer = null; @@ -63,8 +63,11 @@ if (mOpenPCLViewer.getPosStartupOptions().getChangeLook()) { try { if ( !(OpenPCLViewer.sIsRunningOnMacintosh) /* If Macintosh then let it default to its native Look and Feel */) { - UIManager.setLookAndFeel(new MetalLookAndFeel()); - MetalLookAndFeel.setCurrentTheme(mOceanTheme); + // Set to the Windows XP look and feel + UIManager.setLookAndFeel(new com.sun.java.swing.plaf.windows.WindowsLookAndFeel()); + // Uncomment the below two lines to get the Metal Ocean Theme look and feel + // UIManager.setLookAndFeel(new MetalLookAndFeel()); + // MetalLookAndFeel.setCurrentTheme(mOceanTheme); // Commented out. UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } } catch (UnsupportedLookAndFeelException e) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-12-05 05:29:09
|
Revision: 199 http://openpcl.svn.sourceforge.net/openpcl/?rev=199&view=rev Author: documentsystems Date: 2007-12-04 21:29:14 -0800 (Tue, 04 Dec 2007) Log Message: ----------- Howard Hoagland. If an initial PCL file name is specified from an Applet's html file or from the command line, changed to not upper case and not lower case (just leave the same case) the filename so it tries to open the file in the same exact case (could be camel case too). Modified Paths: -------------- openpcl/src/com/openpcl/viewer/options/PosStartupOptions.java Modified: openpcl/src/com/openpcl/viewer/options/PosStartupOptions.java =================================================================== --- openpcl/src/com/openpcl/viewer/options/PosStartupOptions.java 2007-12-05 05:27:26 UTC (rev 198) +++ openpcl/src/com/openpcl/viewer/options/PosStartupOptions.java 2007-12-05 05:29:14 UTC (rev 199) @@ -73,7 +73,7 @@ * Then as the constructors of the various classes are being executed at program startup time, these values are checked * to alter which features are to be shown on the screen or not.<br> * - * @author DocMagic, Document Systems Inc, Howard 1/4/07 + * @author DocMagic, Document Systems Inc, Howard Hoagland 1/4/07 * */ public class PosStartupOptions { @@ -181,25 +181,33 @@ public void parseCommandLineOptions(String[] pArgs) { if (pArgs == null || pArgs.length < 1) { return; } String commandLineArg; + String optionString; String argValueString; boolean argTrueFalse; int locOfEquals; for (int i = 0; i < pArgs.length; i++) { - // Get each command line arg and trim and convert to lower case - commandLineArg = pArgs[i].trim().toLowerCase(); + // Get each command line arg. + // Don't convert to lower case or upper case here, keep the original case in "commandLineArg" + commandLineArg = pArgs[i].trim(); // if resulting string is empty string then continue to the next command line arg if (commandLineArg.length() < 1) {continue;} + // Make the optionString be the lower case of the complete string for the "startsWith()" checks below + optionString = commandLineArg.toLowerCase(); // find out the index location of the "=" in the command line arg locOfEquals = commandLineArg.indexOf('='); + // Set "argValueString" null here for each arg because some may have the "=X" and some will be just the option without a "=X" argValueString = null; argTrueFalse = true; // Default to true because some users might omit the =true/false if (locOfEquals >= 0) { // The "=" was found so assign the remaining chars if (locOfEquals <= commandLineArg.length() - 2) { - argValueString = commandLineArg.substring(locOfEquals + 1).toUpperCase(); - if (argValueString.charAt(0) == 'F' || argValueString.charAt(0) == 'N') { - // If F or N then make it false, otherwise, leave it true + // Don't make "argValueString" upper or lower case here, leave it the same case + // so that -OpenFile=c:/dir/dir/FileName.ext below will have the same case file name instead of made lower or upper case + argValueString = commandLineArg.substring(locOfEquals + 1); + char trueFalseYesNoChar = argValueString.charAt(0); + if (trueFalseYesNoChar == 'F' || trueFalseYesNoChar == 'N' || trueFalseYesNoChar == 'f' || trueFalseYesNoChar == 'n') { + // If F or N or f or n then make it false, otherwise, leave it true argTrueFalse = false; } } @@ -207,9 +215,9 @@ // Booleans about the Toolbar only - if (commandLineArg.startsWith("-showtoolbar")) { + if (optionString.startsWith("-showtoolbar")) { mShowToolbar = argTrueFalse; - } else if (commandLineArg.startsWith("-hidealltoolbarbuttons")) { + } else if (optionString.startsWith("-hidealltoolbarbuttons")) { mHideAllToolbarButtons = argTrueFalse; if (argTrueFalse == true) { mShowFileOpenToolbarButton = false; @@ -232,70 +240,70 @@ // Booleans to show/hide individual toolbar buttons - } else if (commandLineArg.startsWith("-showfileopentoolbarbutton")) { + } else if (optionString.startsWith("-showfileopentoolbarbutton")) { mShowFileOpenToolbarButton = argTrueFalse; - } else if (commandLineArg.startsWith("-showclosefiletoolbarbutton")) { + } else if (optionString.startsWith("-showclosefiletoolbarbutton")) { mShowCloseFileToolbarButton = argTrueFalse; - } else if (commandLineArg.startsWith("-showcloseallfilestoolbarbutton")) { + } else if (optionString.startsWith("-showcloseallfilestoolbarbutton")) { mShowCloseAllFilesToolbarButton = argTrueFalse; - } else if (commandLineArg.startsWith("-showprinttoolbarbutton")) { + } else if (optionString.startsWith("-showprinttoolbarbutton")) { mShowPrintToolbarButton = argTrueFalse; - } else if (commandLineArg.startsWith("-showpreviouspagetoolbarbutton")) { + } else if (optionString.startsWith("-showpreviouspagetoolbarbutton")) { mShowPreviousPageToolbarButton = argTrueFalse; - } else if (commandLineArg.startsWith("-shownextpagetoolbarbutton")) { + } else if (optionString.startsWith("-shownextpagetoolbarbutton")) { mShowNextPageToolbarButton = argTrueFalse; - } else if (commandLineArg.startsWith("-showtreecontroltoolbarbutton")) { + } else if (optionString.startsWith("-showtreecontroltoolbarbutton")) { mShowTreeControlToolbarButton = argTrueFalse; - } else if (commandLineArg.startsWith("-showzoomouttoolbarbutton")) { + } else if (optionString.startsWith("-showzoomouttoolbarbutton")) { mShowZoomOutToolbarButton = argTrueFalse; - } else if (commandLineArg.startsWith("-showzoomintoolbarbutton")) { + } else if (optionString.startsWith("-showzoomintoolbarbutton")) { mShowZoomInToolbarButton = argTrueFalse; - } else if (commandLineArg.startsWith("-showzoomslidertoolbarbutton")) { + } else if (optionString.startsWith("-showzoomslidertoolbarbutton")) { mShowZoomSliderToolbarButton = argTrueFalse; - } else if (commandLineArg.startsWith("-showzoomwidthtoolbarbutton")) { + } else if (optionString.startsWith("-showzoomwidthtoolbarbutton")) { mShowZoomWidthToolbarButton = argTrueFalse; - } else if (commandLineArg.startsWith("-showsavetopcltoolbarbutton")) { + } else if (optionString.startsWith("-showsavetopcltoolbarbutton")) { mShowSaveToPclToolbarButton = argTrueFalse; - } else if (commandLineArg.startsWith("-showchangelooktoolbarbutton")) { + } else if (optionString.startsWith("-showchangelooktoolbarbutton")) { mShowChangeLookToolbarButton = argTrueFalse; - } else if (commandLineArg.startsWith("-showwindowcontroltoolbarbutton")) { + } else if (optionString.startsWith("-showwindowcontroltoolbarbutton")) { mShowWindowControlToolbarButton = argTrueFalse; - } else if (commandLineArg.startsWith("-showoptionstoolbarbutton")) { + } else if (optionString.startsWith("-showoptionstoolbarbutton")) { mShowOptionsToolbarButton = argTrueFalse; - } else if (commandLineArg.startsWith("-showhelpchoicestoolbarbutton")) { + } else if (optionString.startsWith("-showhelpchoicestoolbarbutton")) { mShowHelpChoicesToolbarButton = argTrueFalse; // Booleans other than toolbar related - } else if (commandLineArg.startsWith("-showpagestree")) { + } else if (optionString.startsWith("-showpagestree")) { mShowPagesTree = argTrueFalse; - } else if (commandLineArg.startsWith("-showstatusbar")) { + } else if (optionString.startsWith("-showstatusbar")) { mShowStatusbar = argTrueFalse; - } else if (commandLineArg.startsWith("-changelook")) { + } else if (optionString.startsWith("-changelook")) { mChangeLook = argTrueFalse; - } else if (commandLineArg.startsWith("-showdsmlprintdialogbuttons")) { + } else if (optionString.startsWith("-showdsmlprintdialogbuttons")) { mShowDSMLPrintDialogButtons = argTrueFalse; - } else if (commandLineArg.startsWith("-showfilenameonviewtitlebar")) { + } else if (optionString.startsWith("-showfilenameonviewtitlebar")) { mShowFileNameOnViewTitleBar = argTrueFalse; - } else if (commandLineArg.equalsIgnoreCase("-help") || - commandLineArg.equalsIgnoreCase("-h") || commandLineArg.equalsIgnoreCase("-?")) { + } else if (optionString.equalsIgnoreCase("-help") || + optionString.equalsIgnoreCase("-h") || optionString.equalsIgnoreCase("-?")) { mShowCommandLineOptionsHelpText = true; // Booleans about debug or demo mode - } else if (commandLineArg.startsWith("-showembeddeddemo")) { + } else if (optionString.startsWith("-showembeddeddemo")) { mShowEmbeddedDemo = argTrueFalse; mModeToRun = sModeToRunEmbedded; - } else if (commandLineArg.startsWith("-showdebugrastercolors")) { + } else if (optionString.startsWith("-showdebugrastercolors")) { mShowDebugRasterColors = argTrueFalse; PriDebug.setBlueAndGreenRaster(mShowDebugRasterColors); - } else if (commandLineArg.startsWith("-writedebuglog")) { + } else if (optionString.startsWith("-writedebuglog")) { mWriteDebugLog = argTrueFalse; if (mWriteDebugLog) { PriDebug.setDebugVersion(); } // Strings - } else if (commandLineArg.startsWith("-openfile")) { - mOpenFile = argValueString.toLowerCase(); + } else if (optionString.startsWith("-openfile")) { + mOpenFile = argValueString; } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-12-05 05:27:23
|
Revision: 198 http://openpcl.svn.sourceforge.net/openpcl/?rev=198&view=rev Author: documentsystems Date: 2007-12-04 21:27:26 -0800 (Tue, 04 Dec 2007) Log Message: ----------- Howard Hoagland. Added new feature to get the optional initial PCL file name to open at applet startup time from the HTML file that runs the applet, and automatically show that PCL file on the screen without the user needing to click anything when the applet starts up. Modified Paths: -------------- openpcl/src/com/openpcl/viewer/applet/OpenPCLApplet.java Modified: openpcl/src/com/openpcl/viewer/applet/OpenPCLApplet.java =================================================================== --- openpcl/src/com/openpcl/viewer/applet/OpenPCLApplet.java 2007-12-05 05:11:57 UTC (rev 197) +++ openpcl/src/com/openpcl/viewer/applet/OpenPCLApplet.java 2007-12-05 05:27:26 UTC (rev 198) @@ -6,6 +6,10 @@ import com.openpcl.viewer.OpenPCLViewer; +/** + * Run OpenPCLViewer in an applet in your browser (IE, Firefox) instead of from WebStart JNLP. + * @author DocMagic, Document Systems Inc, Howard Hoagland 11/16/06 + */ public class OpenPCLApplet extends JApplet { private static final long serialVersionUID = 1L; protected OpenPCLViewer mOpenPCLViewer = null; @@ -13,6 +17,7 @@ public OpenPCLApplet() { } + @Override public void init() { System.out.println("OpenPCLViewer applet init"); @@ -22,21 +27,47 @@ // If running on Macintosh. MUST be done before the OpenPCLViewer constructor is called. OpenPCLViewer.sIsRunningOnMacintosh = OpenPCLViewer.detectIfMacintosh(OpenPCLViewer.sOsNameString); - mOpenPCLViewer = new OpenPCLViewer(this, null); + String tSourceFileString = getParameter("SourceFile"); + String tOpenFileString = getParameter("OpenFile"); + String tFileToOpen = null; + + // If there is a file to open in the HTML file that launched the applet, then auto open the PCL at applet startup time + if (tSourceFileString != null && tSourceFileString.length() > 1) { + tFileToOpen = tSourceFileString; + } else if (tOpenFileString != null && tOpenFileString.length() > 1) { + tFileToOpen = tOpenFileString; + } + + String[] tCommandLineOptions = null; + if (tFileToOpen != null) { + // Create a command line parameter String array that will be passed in the constructor below + tCommandLineOptions = new String[] { "-OpenFile=" + tFileToOpen }; + } + + // Instantiate the OpenPCLViewer which is a subclass of JPanel, then put it in this Applet taking up the full height and width on screen + mOpenPCLViewer = new OpenPCLViewer(this, tCommandLineOptions); + setLayout(new BorderLayout()); add(mOpenPCLViewer, BorderLayout.CENTER); + + if (tFileToOpen != null) { + // Needed to automatically show the startup file in the applet after the above "add(mOpenPCLViewer, BorderLayout.CENTER)" + mOpenPCLViewer.executeAfterUiIsShowing(); + } } - public void start() { + @Override +public void start() { System.out.println("OpenPCLViewer applet start"); } + @Override public void stop() { System.out.println("OpenPCLViewer applet stop"); } + @Override public void destroy() { - System.out.println("OpenPCLViewer applet destroy"); - } - + System.out.println("OpenPCLViewer applet destroy"); + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-12-05 05:11:53
|
Revision: 197 http://openpcl.svn.sourceforge.net/openpcl/?rev=197&view=rev Author: documentsystems Date: 2007-12-04 21:11:57 -0800 (Tue, 04 Dec 2007) Log Message: ----------- Howard Hoagland. This is how to automatically open a PCL file to view at startup time when the applet is initially shown. Compare this file to applet.html in this same directory and you'll see that there's only 2 added lines, one line to auto load the specified PCL file when this applet is run in Internet Explorer, and the other added line is for when this applet is run in Firefox. Modified Paths: -------------- openpcl/src/com/openpcl/install/website/appletHowToAutoOpenAFile.html Modified: openpcl/src/com/openpcl/install/website/appletHowToAutoOpenAFile.html =================================================================== --- openpcl/src/com/openpcl/install/website/appletHowToAutoOpenAFile.html 2007-12-05 05:08:16 UTC (rev 196) +++ openpcl/src/com/openpcl/install/website/appletHowToAutoOpenAFile.html 2007-12-05 05:11:57 UTC (rev 197) @@ -15,7 +15,7 @@ <param name="type" value="application/x-java-applet;jpi-version=1.5.0"/> <param name="archive" value="openpcl.jar,ableLayout.jar"/> <param name="scriptable" value="false"/> - <param name="openfile" value="LoanApp1003.pcl"/> + <param name="openfile" value="c:/temp/LoanApp1003.pcl"/> <comment Internet Explorer runs the above because IE understands the object tag and doesn't understand the embed tag. Firefox runs the below because Firefox doesn't understand the object tag but does understand the embed tag. > This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-12-05 05:08:11
|
Revision: 196 http://openpcl.svn.sourceforge.net/openpcl/?rev=196&view=rev Author: documentsystems Date: 2007-12-04 21:08:16 -0800 (Tue, 04 Dec 2007) Log Message: ----------- Howard Hoagland. This is how to automatically open a PCL file to view at startup time when the applet is initially shown. Compare this file to applet.html in this same directory and you'll see that there's only 2 added lines, one line to auto load the specified PCL file when this applet is run in Internet Explorer, and the other added line is for when this applet is run in Firefox. Added Paths: ----------- openpcl/src/com/openpcl/install/website/appletHowToAutoOpenAFile.html Added: openpcl/src/com/openpcl/install/website/appletHowToAutoOpenAFile.html =================================================================== --- openpcl/src/com/openpcl/install/website/appletHowToAutoOpenAFile.html (rev 0) +++ openpcl/src/com/openpcl/install/website/appletHowToAutoOpenAFile.html 2007-12-05 05:08:16 UTC (rev 196) @@ -0,0 +1,38 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html> +<head> + <title>OpenPCL Viewer Applet</title> +</head> +<body> +<object + classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" + codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_5_0-windows-i586.cab#Version=1,5,0,0" + width="100%" + height="100%" + name="OpenPCL Viewer Applet"> + <param name="code" value="com.openpcl.viewer.applet.OpenPCLApplet.class"/> + <param name="codebase" value="http://openpcl.sourceforge.net/"/> + <param name="type" value="application/x-java-applet;jpi-version=1.5.0"/> + <param name="archive" value="openpcl.jar,ableLayout.jar"/> + <param name="scriptable" value="false"/> + <param name="openfile" value="LoanApp1003.pcl"/> + <comment Internet Explorer runs the above because IE understands the object tag and doesn't understand the embed tag. + Firefox runs the below because Firefox doesn't understand the object tag but does understand the embed tag. + > + <embed type="application/x-java-applet" + width="100%" + height="100%" + align="baseline" + code="com.openpcl.viewer.applet.OpenPCLApplet.class" + codebase="./" + archive="openpcl.jar,TableLayout.jar" + pluginspage="http://java.sun.com/javase/downloads/index.jsp" + openfile="c:/temp/LoanApp1003.pcl"> + <noembed> + Missing Java v 1.5 to run the OpenPCLViewer applet. + </noembed> + </embed> + </comment> +</object> +</body> +</html> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-12-05 05:02:43
|
Revision: 195 http://openpcl.svn.sourceforge.net/openpcl/?rev=195&view=rev Author: documentsystems Date: 2007-12-04 21:02:48 -0800 (Tue, 04 Dec 2007) Log Message: ----------- Howard Hoagland. In the object tag, made name=OpenPCL Viewer Applet. Changed Firefox height to 100%. Added long comment about IE runs the above because... , Firefox runs the below because... Modified Paths: -------------- openpcl/src/com/openpcl/install/website/applet.html Modified: openpcl/src/com/openpcl/install/website/applet.html =================================================================== --- openpcl/src/com/openpcl/install/website/applet.html 2007-11-10 00:41:24 UTC (rev 194) +++ openpcl/src/com/openpcl/install/website/applet.html 2007-12-05 05:02:48 UTC (rev 195) @@ -9,20 +9,22 @@ codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_5_0-windows-i586.cab#Version=1,5,0,0" width="100%" height="100%" - name="openpclviewer"> + name="OpenPCL Viewer Applet"> <param name="code" value="com.openpcl.viewer.applet.OpenPCLApplet.class"/> <param name="codebase" value="http://openpcl.sourceforge.net/"/> <param name="type" value="application/x-java-applet;jpi-version=1.5.0"/> - <param name="archive" value="openpcl.jar,jdom.jar,TableLayout.jar"/> + <param name="archive" value="openpcl.jar,ableLayout.jar"/> <param name="scriptable" value="false"/> - <comment> + <comment Internet Explorer runs the above because IE understands the object tag and doesn't understand the embed tag. + Firefox runs the below because Firefox doesn't understand the object tag but does understand the embed tag. + > <embed type="application/x-java-applet" width="100%" - height="96%" + height="100%" align="baseline" code="com.openpcl.viewer.applet.OpenPCLApplet.class" codebase="./" - archive="openpcl.jar,jdom.jar,TableLayout.jar" + archive="openpcl.jar,TableLayout.jar" pluginspage="http://java.sun.com/javase/downloads/index.jsp"> <noembed> Missing Java v 1.5 to run the OpenPCLViewer applet. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-11-10 00:41:21
|
Revision: 194 http://openpcl.svn.sourceforge.net/openpcl/?rev=194&view=rev Author: documentsystems Date: 2007-11-09 16:41:24 -0800 (Fri, 09 Nov 2007) Log Message: ----------- Howard Hoagland, added: <!-- Need to copy all the files in the src/.../images dir to the build/classes/.../images dir so that the app can run under Eclipse when the .class files were build using the build.xml file compile target --> <copy todir="${classes.dir}/${images.dir}"> <fileset dir="${src.dir}/${images.dir}"/> </copy> Modified Paths: -------------- openpcl/build.xml Modified: openpcl/build.xml =================================================================== --- openpcl/build.xml 2007-11-09 22:56:09 UTC (rev 193) +++ openpcl/build.xml 2007-11-10 00:41:24 UTC (rev 194) @@ -19,7 +19,7 @@ <property name="src.localinstaller.dir" value="${src.dir}/com/openpcl/install/localinstaller"/> <property name="src.webstart.dir" value="${src.dir}/com/openpcl/install/webstart"/> <property name="src.data.dir" value="${src.dir}/com/openpcl/data"/> - <property name="src.images.dir" value="${src.dir}/com/openpcl/viewer/images"/> + <property name="images.dir" value="com/openpcl/viewer/images"/> <property name="pclrenderimage.dir" value="com/openpcl/pclrenderimage"/> <!-- @@ -61,7 +61,7 @@ <target name="clean" description="Clean build created directories and generated .jar files"> <delete dir="${build.dir}"/> <!-- Don't delete TableLayout.jar in the lib dir. --> - <delete file="${src.images.dir}/thumbs.db"/> + <delete file="${src.dir}/${images.dir}/thumbs.db"/> <echo>Finished OpenPCL Ant build.xml "clean" target.</echo> </target> @@ -70,7 +70,12 @@ <mkdir dir="${classes.dir}"/> <javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="project.class.path" debug="true" verbose="false" followsymlinks="true" target="1.5" optimize="true"/> - <echo>Finished OpenPCL Ant build.xml "compile" target.</echo> + <!-- Need to copy all the files in the src/.../images dir to the build/classes/.../images dir so that the + app can run under Eclipse when the .class files were build using the build.xml file compile target --> + <copy todir="${classes.dir}/${images.dir}"> + <fileset dir="${src.dir}/${images.dir}"/> + </copy> + <echo>Finished OpenPCL Ant build.xml "compile" target.</echo> </target> <!-- jar.pclrenderimage --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-11-09 22:56:06
|
Revision: 193 http://openpcl.svn.sourceforge.net/openpcl/?rev=193&view=rev Author: documentsystems Date: 2007-11-09 14:56:09 -0800 (Fri, 09 Nov 2007) Log Message: ----------- Howard Hoagland. In the makezipfile target, added the "build" before the "rel" to be: <zipfileset dir="${rel.dir}" prefix="${project.name}/build/rel" includes="*.jar"/> Modified Paths: -------------- openpcl/build.xml Modified: openpcl/build.xml =================================================================== --- openpcl/build.xml 2007-11-09 22:32:44 UTC (rev 192) +++ openpcl/build.xml 2007-11-09 22:56:09 UTC (rev 193) @@ -165,7 +165,7 @@ <zipfileset file="${build.dir}/pclrenderimage.jar" prefix="${project.name}/build"/> <zipfileset dir="${doc.dir}" prefix="${project.name}/build/docs"/> <zipfileset dir="${lib.dir}" prefix="${project.name}/lib" includes="*.jar"/> - <zipfileset dir="${rel.dir}" prefix="${project.name}/rel" includes="*.jar"/> + <zipfileset dir="${rel.dir}" prefix="${project.name}/build/rel" includes="*.jar"/> <zipfileset dir="${src.dir}" prefix="${project.name}/src" excludes="**/izpackdoc/**,**/jsmoothdoc/**"/> </zip> <echo>To create the installer, download IzPack from (http://www.izforge.com/izpack)</echo> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-11-09 22:33:28
|
Revision: 192 http://openpcl.svn.sourceforge.net/openpcl/?rev=192&view=rev Author: documentsystems Date: 2007-11-09 14:32:44 -0800 (Fri, 09 Nov 2007) Log Message: ----------- Howard Hoagland. Changed build.xml file the line after <jar jarfile="${build.dir}/pclrenderimage.jar"> from: <fileset dir="${classes.dir}/${pclrenderimage.dir}" includes="**/*.class" /> to: <fileset dir="${classes.dir}" includes="${pclrenderimage.dir}/**/*.class" /> because it matters so that the dir structure of where the .class files are will be in the .jar file. Modified Paths: -------------- openpcl/build.xml Modified: openpcl/build.xml =================================================================== --- openpcl/build.xml 2007-11-09 03:13:47 UTC (rev 191) +++ openpcl/build.xml 2007-11-09 22:32:44 UTC (rev 192) @@ -78,7 +78,7 @@ description="Build pclrenderimage.jar for server side only (no OpenPCLViewer UI class files)"> <!-- The pclrenderimage.jar file is built unsigned in the lib dir --> <jar jarfile="${build.dir}/pclrenderimage.jar"> - <fileset dir="${classes.dir}/${pclrenderimage.dir}" includes="**/*.class"/> + <fileset dir="${classes.dir}" includes="${pclrenderimage.dir}/**/*.class" /> <manifest> <attribute name="Built-By" value="${user.name}"/> <attribute name="Specification-Title" value="Draws PCL bytes on a java.awt.image.BufferedImage"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-11-09 03:13:45
|
Revision: 191 http://openpcl.svn.sourceforge.net/openpcl/?rev=191&view=rev Author: documentsystems Date: 2007-11-08 19:13:47 -0800 (Thu, 08 Nov 2007) Log Message: ----------- Howard Hoagland. More "a lot of" changes to the build.xml file. Modified Paths: -------------- openpcl/build.xml Modified: openpcl/build.xml =================================================================== --- openpcl/build.xml 2007-11-09 01:14:32 UTC (rev 190) +++ openpcl/build.xml 2007-11-09 03:13:47 UTC (rev 191) @@ -20,7 +20,7 @@ <property name="src.webstart.dir" value="${src.dir}/com/openpcl/install/webstart"/> <property name="src.data.dir" value="${src.dir}/com/openpcl/data"/> <property name="src.images.dir" value="${src.dir}/com/openpcl/viewer/images"/> - <property name="pclrenderimage.dir" value="${basedir}/com/openpcl/pclrenderimage"/> + <property name="pclrenderimage.dir" value="com/openpcl/pclrenderimage"/> <!-- <property name="openpclviewer.dir" value="com/openpcl/viewer"/> @@ -69,7 +69,7 @@ <target name="compile" depends="clean" description="Compile source to class files"> <mkdir dir="${classes.dir}"/> <javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="project.class.path" debug="true" - verbose="true" followsymlinks="true" target="1.5" optimize="true"/> + verbose="false" followsymlinks="true" target="1.5" optimize="true"/> <echo>Finished OpenPCL Ant build.xml "compile" target.</echo> </target> @@ -78,7 +78,16 @@ description="Build pclrenderimage.jar for server side only (no OpenPCLViewer UI class files)"> <!-- The pclrenderimage.jar file is built unsigned in the lib dir --> <jar jarfile="${build.dir}/pclrenderimage.jar"> - <fileset dir="${classes.dir}" includes="${pclrenderimage.dir}/**/*.class"/> + <fileset dir="${classes.dir}/${pclrenderimage.dir}" includes="**/*.class"/> + <manifest> + <attribute name="Built-By" value="${user.name}"/> + <attribute name="Specification-Title" value="Draws PCL bytes on a java.awt.image.BufferedImage"/> + <attribute name="Specification-Version" value="1.0"/> + <attribute name="Specification-Vendor" value="Document Systems, Inc."/> + <attribute name="Specification-Website" value="www.docmagic.com"/> + <attribute name="Main-class" value="No main class. Call from openpcl.jar or pcl2imageconverter.jar"/> + <attribute name="Sealed" value="false"/> + </manifest> </jar> <echo>Finished OpenPCL Ant build.xml "jar.pclrenderimage" target.</echo> </target> @@ -91,6 +100,15 @@ <fileset dir="${classes.dir}" includes="**/*.class"/> <fileset dir="${src.dir}" includes="**/viewer/images/**"/> <fileset dir="${src.dir}" includes="**/htmlfiles/**"/> + <manifest> + <attribute name="Built-By" value="${user.name}"/> + <attribute name="Specification-Title" value="A UI app that shows PCL files drawn on the screen"/> + <attribute name="Specification-Version" value="1.0"/> + <attribute name="Specification-Vendor" value="Document Systems, Inc."/> + <attribute name="Specification-Website" value="www.docmagic.com"/> + <attribute name="Main-class" value="com/openpcl/viewer/OpenPCLViewer"/> + <attribute name="Sealed" value="false"/> + </manifest> </jar> <echo>Finished OpenPCL Ant build.xml "jar.openpcl" target.</echo> </target> @@ -104,7 +122,7 @@ <!-- Copy the 3 unsigned .jar files from lib to rel --> <copy todir="${rel.dir}"> <fileset dir="${build.dir}" includes="${project.name}.jar"/> - <fileset dir="${lib.dir}" includes="pclrenderimage.jar"/> + <fileset dir="${build.dir}" includes="pclrenderimage.jar"/> <fileset dir="${lib.dir}" includes="TableLayout.jar"/> </copy> <!-- Sign the jars --> @@ -137,16 +155,18 @@ </target> <!-- makezipfile --> - <target name="makezipfile" depends="javadoc" + <target name="makezipfile" depends="javadoc" description="Creates the zip file of the source code and JavaDoc"> - <zip destfile="${build.dir}/${project.name}.zip" update="true"> + <zip destfile="${build.dir}/${project.name}.zip" update="false"> <zipfileset file=".classpath" prefix="${project.name}"/> <zipfileset file="build.xml" prefix="${project.name}"/> <zipfileset file="${keystore.alias}.keystore" prefix="${project.name}"/> - <zipfileset dir="${doc.dir}" prefix="${project.name}/${doc.dir}"/> - <zipfileset dir="${lib.dir}" prefix="${project.name}/${lib.dir}" includes="*.jar"/> - <zipfileset dir="${rel.dir}" prefix="${project.name}/${rel.dir}" includes="*.jar"/> - <zipfileset dir="${src.dir}" prefix="${project.name}/${src.dir}" excludes="**/izpackdoc/**,**/jsmoothdoc/**"/> + <zipfileset file="${build.dir}/${project.name}.jar" prefix="${project.name}/build"/> + <zipfileset file="${build.dir}/pclrenderimage.jar" prefix="${project.name}/build"/> + <zipfileset dir="${doc.dir}" prefix="${project.name}/build/docs"/> + <zipfileset dir="${lib.dir}" prefix="${project.name}/lib" includes="*.jar"/> + <zipfileset dir="${rel.dir}" prefix="${project.name}/rel" includes="*.jar"/> + <zipfileset dir="${src.dir}" prefix="${project.name}/src" excludes="**/izpackdoc/**,**/jsmoothdoc/**"/> </zip> <echo>To create the installer, download IzPack from (http://www.izforge.com/izpack)</echo> <echo>Installed? ${izpack.installed}</echo> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-11-09 01:14:33
|
Revision: 190 http://openpcl.svn.sourceforge.net/openpcl/?rev=190&view=rev Author: documentsystems Date: 2007-11-08 17:14:32 -0800 (Thu, 08 Nov 2007) Log Message: ----------- Howard Hoagland. OpenPCL build.xml file a lot of changes. Modified Paths: -------------- openpcl/build.xml Modified: openpcl/build.xml =================================================================== --- openpcl/build.xml 2007-11-09 01:13:57 UTC (rev 189) +++ openpcl/build.xml 2007-11-09 01:14:32 UTC (rev 190) @@ -1,22 +1,26 @@ <?xml version="1.0" encoding="ISO-8859-1"?> -<project name="OpenPCL" default="all"> +<project name="OpenPCL" default="all" basedir="."> - <property name="lowercase.project.name" value="openpcl"/> - <property name="lib.dir" value="lib"/> - <property name="src.dir" value="src"/> - <property name="build.dir" value="build"/> + <description>OpenPCL Build</description> - <property name="doc.dir" value="docs"/> + <property environment="env"/> + <property name="project.name" value="openpcl"/> + <property name="lib.dir" value="${basedir}/lib"/> + <property name="src.dir" value="${basedir}/src"/> + <property name="build.dir" value="${basedir}/build"/> + + <property name="classes.dir" value="${build.dir}/classes"/> + <property name="doc.dir" value="${build.dir}/docs"/> <property name="api.dir" value="${doc.dir}/api"/> - - <property name="rel.dir" value="rel"/> + <property name="rel.dir" value="${build.dir}/rel"/> + <property name="rel.website.dir" value="${rel.dir}/website"/> <property name="src.website.dir" value="${src.dir}/com/openpcl/install/website"/> <property name="src.localinstaller.dir" value="${src.dir}/com/openpcl/install/localinstaller"/> <property name="src.webstart.dir" value="${src.dir}/com/openpcl/install/webstart"/> <property name="src.data.dir" value="${src.dir}/com/openpcl/data"/> <property name="src.images.dir" value="${src.dir}/com/openpcl/viewer/images"/> - <property name="pclrenderimage.dir" value="com/openpcl/pclrenderimage"/> + <property name="pclrenderimage.dir" value="${basedir}/com/openpcl/pclrenderimage"/> <!-- <property name="openpclviewer.dir" value="com/openpcl/viewer"/> @@ -34,7 +38,7 @@ > ** password is also ${keystore.alias} ** > keytool -export -alias project -rfc -file sig.x509 --> - <property name="keystore.alias" value="${lowercase.project.name}"/> + <property name="keystore.alias" value="${project.name}"/> <property name="keystore.file" value="${keystore.alias}.keystore"/> <property name="keystore.password" value="${keystore.alias}"/> @@ -49,28 +53,23 @@ <available property="jsmooth.installed" file="${jsmooth.dir}/lib/jsmoothgen-ant.jar" value="true"/> <!-- Classpath --> - <path id="classpath"> - <fileset dir="${lib.dir}"> - <include name="*.jar" /> - </fileset> + <path id="project.class.path"> + <fileset dir="${lib.dir}" includes="*.jar"/> </path> <!-- clean --> - <target name="clean" description="Clean build created directories"> + <target name="clean" description="Clean build created directories and generated .jar files"> <delete dir="${build.dir}"/> - <delete dir="${doc.dir}"/> - <delete dir="${rel.dir}"/> - <delete file="${lib.dir}/openpcl.jar"/> - <delete file="${lib.dir}/pclrenderimage.jar"/> + <!-- Don't delete TableLayout.jar in the lib dir. --> <delete file="${src.images.dir}/thumbs.db"/> <echo>Finished OpenPCL Ant build.xml "clean" target.</echo> </target> <!-- compile --> <target name="compile" depends="clean" description="Compile source to class files"> - <mkdir dir="${build.dir}"/> - <javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="classpath" debug="false" - verbose="false" followsymlinks="true" target="1.5" optimize="true"/> + <mkdir dir="${classes.dir}"/> + <javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="project.class.path" debug="true" + verbose="true" followsymlinks="true" target="1.5" optimize="true"/> <echo>Finished OpenPCL Ant build.xml "compile" target.</echo> </target> @@ -78,8 +77,8 @@ <target name="jar.pclrenderimage" depends="compile" description="Build pclrenderimage.jar for server side only (no OpenPCLViewer UI class files)"> <!-- The pclrenderimage.jar file is built unsigned in the lib dir --> - <jar jarfile="${lib.dir}/pclrenderimage.jar"> - <fileset dir="${build.dir}" includes="${pclrenderimage.dir}/**/*.class"/> + <jar jarfile="${build.dir}/pclrenderimage.jar"> + <fileset dir="${classes.dir}" includes="${pclrenderimage.dir}/**/*.class"/> </jar> <echo>Finished OpenPCL Ant build.xml "jar.pclrenderimage" target.</echo> </target> @@ -88,8 +87,8 @@ <target name="jar.openpcl" depends="jar.pclrenderimage" description="Build openpcl.jar has all the UI class files and all the pclrenderimage class files"> <!-- The openpcl.jar file is built unsigned in the lib dir --> - <jar jarfile="${lib.dir}/${lowercase.project.name}.jar"> - <fileset dir="${build.dir}" includes="**/*.class"/> + <jar jarfile="${build.dir}/${project.name}.jar"> + <fileset dir="${classes.dir}" includes="**/*.class"/> <fileset dir="${src.dir}" includes="**/viewer/images/**"/> <fileset dir="${src.dir}" includes="**/htmlfiles/**"/> </jar> @@ -104,7 +103,7 @@ <mkdir dir="${rel.dir}"/> <!-- Copy the 3 unsigned .jar files from lib to rel --> <copy todir="${rel.dir}"> - <fileset dir="${lib.dir}" includes="openpcl.jar"/> + <fileset dir="${build.dir}" includes="${project.name}.jar"/> <fileset dir="${lib.dir}" includes="pclrenderimage.jar"/> <fileset dir="${lib.dir}" includes="TableLayout.jar"/> </copy> @@ -120,14 +119,14 @@ <!-- javadoc --> <target name="javadoc" depends="applet" description="Builds JavaDoc API files"> <mkdir dir="${api.dir}"/> - <javadoc packagenames="com.${lowercase.project.name}.*" + <javadoc packagenames="com.${project.name}.*" sourcepath="${src.dir}" defaultexcludes="yes" destdir="${api.dir}" author="true" version="true" use="true" - classpathref="classpath" + classpathref="project.class.path" windowtitle="${ant.project.name} API"> <doctitle><![CDATA[<h1>${ant.project.name}</h1>]]></doctitle> <bottom><![CDATA[<i>OpenPCL <a href="http://www.openpcl.com">http://www.openpcl.com</a></i>]]></bottom> @@ -140,14 +139,14 @@ <!-- makezipfile --> <target name="makezipfile" depends="javadoc" description="Creates the zip file of the source code and JavaDoc"> - <zip destfile="${rel.dir}/${lowercase.project.name}.zip" update="true"> - <zipfileset file="build.xml" prefix="${lowercase.project.name}"/> - <zipfileset file=".classpath" prefix="${lowercase.project.name}"/> - <zipfileset file="${keystore.alias}.keystore" prefix="${lowercase.project.name}"/> - <zipfileset dir="${doc.dir}" prefix="${lowercase.project.name}/${doc.dir}"/> - <zipfileset dir="${lib.dir}" prefix="${lowercase.project.name}/${lib.dir}" includes="*.jar"/> - <zipfileset dir="${rel.dir}" prefix="${lowercase.project.name}/${rel.dir}" includes="*.jar"/> - <zipfileset dir="${src.dir}" prefix="${lowercase.project.name}/${src.dir}" excludes="**/izpackdoc/**,**/jsmoothdoc/**"/> + <zip destfile="${build.dir}/${project.name}.zip" update="true"> + <zipfileset file=".classpath" prefix="${project.name}"/> + <zipfileset file="build.xml" prefix="${project.name}"/> + <zipfileset file="${keystore.alias}.keystore" prefix="${project.name}"/> + <zipfileset dir="${doc.dir}" prefix="${project.name}/${doc.dir}"/> + <zipfileset dir="${lib.dir}" prefix="${project.name}/${lib.dir}" includes="*.jar"/> + <zipfileset dir="${rel.dir}" prefix="${project.name}/${rel.dir}" includes="*.jar"/> + <zipfileset dir="${src.dir}" prefix="${project.name}/${src.dir}" excludes="**/izpackdoc/**,**/jsmoothdoc/**"/> </zip> <echo>To create the installer, download IzPack from (http://www.izforge.com/izpack)</echo> <echo>Installed? ${izpack.installed}</echo> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-11-09 01:13:52
|
Revision: 189 http://openpcl.svn.sourceforge.net/openpcl/?rev=189&view=rev Author: documentsystems Date: 2007-11-08 17:13:57 -0800 (Thu, 08 Nov 2007) Log Message: ----------- Howard Hoagland. Changed class file location from ./classes to ./build/classes Modified Paths: -------------- openpcl/.classpath Modified: openpcl/.classpath =================================================================== --- openpcl/.classpath 2007-11-08 02:01:46 UTC (rev 188) +++ openpcl/.classpath 2007-11-09 01:13:57 UTC (rev 189) @@ -3,5 +3,5 @@ <classpathentry kind="src" path="src"/> <classpathentry kind="lib" path="lib/TableLayout.jar"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> - <classpathentry kind="output" path="classes"/> + <classpathentry kind="output" path="build/classes"/> </classpath> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-11-08 02:01:44
|
Revision: 188 http://openpcl.svn.sourceforge.net/openpcl/?rev=188&view=rev Author: documentsystems Date: 2007-11-07 18:01:46 -0800 (Wed, 07 Nov 2007) Log Message: ----------- Took off the app description and app version from the title bar, because those are in the Help About. Now the only thing on the title bar is "ViewMagic" Modified Paths: -------------- openpcl/src/com/openpcl/viewer/jframe/PosSimpleJFrame.java Modified: openpcl/src/com/openpcl/viewer/jframe/PosSimpleJFrame.java =================================================================== --- openpcl/src/com/openpcl/viewer/jframe/PosSimpleJFrame.java 2007-11-05 20:10:30 UTC (rev 187) +++ openpcl/src/com/openpcl/viewer/jframe/PosSimpleJFrame.java 2007-11-08 02:01:46 UTC (rev 188) @@ -322,7 +322,7 @@ mAppName = mOpenPCLViewer.getAppName(); mAppDescription = mOpenPCLViewer.getAppDescription(); mAppVersion = mOpenPCLViewer.getAppVersion(); - setTitle(mAppName + mAppDescription + ". " + mAppVersion); + setTitle(mAppName); // The below add to the outer JPanel in its BorderLayout will update the JFrame's screen area mPclViewerOuterJPanel.add(mOpenPCLViewer, BorderLayout.CENTER); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-11-05 20:10:26
|
Revision: 187 http://openpcl.svn.sourceforge.net/openpcl/?rev=187&view=rev Author: documentsystems Date: 2007-11-05 12:10:30 -0800 (Mon, 05 Nov 2007) Log Message: ----------- Howard Hoagland. Renamed method to setSaveAsButton() due to subclass plugins can specify output format. Modified Paths: -------------- openpcl/src/com/openpcl/viewer/toolbar/PosToolBar.java Modified: openpcl/src/com/openpcl/viewer/toolbar/PosToolBar.java =================================================================== --- openpcl/src/com/openpcl/viewer/toolbar/PosToolBar.java 2007-11-05 20:04:44 UTC (rev 186) +++ openpcl/src/com/openpcl/viewer/toolbar/PosToolBar.java 2007-11-05 20:10:30 UTC (rev 187) @@ -69,9 +69,9 @@ if (mPosStartupOptions.getShowCloseAllFilesToolbarButton()) { mJToolBar.add(tJButton); } mPosManageToolBar.setCloseAllFilesButton(tJButton); - tJButton = createSaveOnePageToPclFileButton(); + tJButton = createSaveAsButton(); if (mPosStartupOptions.getShowSaveToPclToolbarButton()) { mJToolBar.add(tJButton); } - mPosManageToolBar.setSaveOnePageToPclFileButton(tJButton); + mPosManageToolBar.setSaveAsButton(tJButton); tJButton = createPrintButton(); if (mPosStartupOptions.getShowPrintToolbarButton()) { mJToolBar.add(tJButton); } @@ -165,7 +165,7 @@ } /** Save as PCL file toolbar button */ - protected JButton createSaveOnePageToPclFileButton() { + protected JButton createSaveAsButton() { JButton tJButton = createToolBarButton("V221Save.png", "Save As"); tJButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) {mOpenPCLViewer.actionSaveAs();} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-11-05 20:04:39
|
Revision: 186 http://openpcl.svn.sourceforge.net/openpcl/?rev=186&view=rev Author: documentsystems Date: 2007-11-05 12:04:44 -0800 (Mon, 05 Nov 2007) Log Message: ----------- Howard Hoagland. Renamed mSaveOnePageToPclFileButton to mSaveAsButton and renamed the setter and getter method names, because the Save As button funtionality has recently been extended so that subclass plugins can let the user pick which file format to write. Modified Paths: -------------- openpcl/src/com/openpcl/viewer/toolbar/PosManageToolBar.java Modified: openpcl/src/com/openpcl/viewer/toolbar/PosManageToolBar.java =================================================================== --- openpcl/src/com/openpcl/viewer/toolbar/PosManageToolBar.java 2007-11-05 19:44:28 UTC (rev 185) +++ openpcl/src/com/openpcl/viewer/toolbar/PosManageToolBar.java 2007-11-05 20:04:44 UTC (rev 186) @@ -31,7 +31,7 @@ private JToggleButton mShowHideZoomSliderButton = null; private PosZoomSlider mPosZoomSlider = null; - private JButton mSaveOnePageToPclFileButton = null; + private JButton mSaveAsButton = null; private JButton mChangeTheLookButton = null; private JButton mCascadeWindowsButton = null; @@ -61,7 +61,7 @@ mZoomWidthButton.setEnabled(false); mShowHideZoomSliderButton.setEnabled(false); - mSaveOnePageToPclFileButton.setEnabled(false); + mSaveAsButton.setEnabled(false); // mChangeTheLookButton is not grayed out mCascadeWindowsButton.setEnabled(false); //mOptionsButton is not grayed out @@ -97,7 +97,7 @@ mZoomWidthButton.setEnabled(true); mShowHideZoomSliderButton.setEnabled(true); - mSaveOnePageToPclFileButton.setEnabled(true); + mSaveAsButton.setEnabled(true); // mChangeTheLookButton is not grayed out mCascadeWindowsButton.setEnabled(true); // mOptionsButton is not grayed out @@ -127,7 +127,7 @@ public JToggleButton getShowHideZoomSliderButton() {return mShowHideZoomSliderButton;} public PosZoomSlider getPosZoomSlider() {return mPosZoomSlider;} - public JButton getSaveOnePageToPclFileButton() {return mSaveOnePageToPclFileButton;} + public JButton getSaveAsButton() {return mSaveAsButton;} public JButton getChangeTheLookButton() {return mChangeTheLookButton;} @@ -154,8 +154,7 @@ mShowHideZoomSliderButton = pShowHideZoomSliderButton;} public void setPosZoomSlider(PosZoomSlider pPosZoomSlider) {mPosZoomSlider = pPosZoomSlider;} - public void setSaveOnePageToPclFileButton(JButton pSaveOnePageToPclFileButton) { - mSaveOnePageToPclFileButton = pSaveOnePageToPclFileButton;} + public void setSaveAsButton(JButton pSaveAsButton) {mSaveAsButton = pSaveAsButton;} public void setChangeTheLookButton(JButton pChangeTheLookButton) { mChangeTheLookButton = pChangeTheLookButton;} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-11-05 19:44:45
|
Revision: 185 http://openpcl.svn.sourceforge.net/openpcl/?rev=185&view=rev Author: documentsystems Date: 2007-11-05 11:44:28 -0800 (Mon, 05 Nov 2007) Log Message: ----------- Howard Hoagland. Changed the Save icon in the toolbar to call actionSaveAs() instead of actionSaveOnePageToPclFile(). Modified Paths: -------------- openpcl/src/com/openpcl/viewer/toolbar/PosToolBar.java Modified: openpcl/src/com/openpcl/viewer/toolbar/PosToolBar.java =================================================================== --- openpcl/src/com/openpcl/viewer/toolbar/PosToolBar.java 2007-11-05 19:43:59 UTC (rev 184) +++ openpcl/src/com/openpcl/viewer/toolbar/PosToolBar.java 2007-11-05 19:44:28 UTC (rev 185) @@ -166,9 +166,9 @@ /** Save as PCL file toolbar button */ protected JButton createSaveOnePageToPclFileButton() { - JButton tJButton = createToolBarButton("V221Save.png", "Save one page to PCL file"); + JButton tJButton = createToolBarButton("V221Save.png", "Save As"); tJButton.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) {mOpenPCLViewer.actionSaveOnePageToPclFile();} + public void actionPerformed(ActionEvent e) {mOpenPCLViewer.actionSaveAs();} }); return tJButton; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-11-05 19:43:55
|
Revision: 184 http://openpcl.svn.sourceforge.net/openpcl/?rev=184&view=rev Author: documentsystems Date: 2007-11-05 11:43:59 -0800 (Mon, 05 Nov 2007) Log Message: ----------- Howard Hoagland. Added the actionSaveAs() method that now gets called when the user clicks the Save icon in the toolbar, then made it call the actionSaveOnePageToPclFile() so that subclass plugins can override actionSaveAs() to allow the user to pick which of many output file formats to save to (example: Save all pages to a .ZIP file) and not be limited to saving only the current page's PCL bytes to a file. Modified Paths: -------------- openpcl/src/com/openpcl/viewer/OpenPCLViewer.java Modified: openpcl/src/com/openpcl/viewer/OpenPCLViewer.java =================================================================== --- openpcl/src/com/openpcl/viewer/OpenPCLViewer.java 2007-11-05 19:39:46 UTC (rev 183) +++ openpcl/src/com/openpcl/viewer/OpenPCLViewer.java 2007-11-05 19:43:59 UTC (rev 184) @@ -2311,6 +2311,12 @@ PriDebug.infoln("Zoom To " + pZoomFactor); } + /** This gets executed when the user clicks the Save As icon on the toolbar.<br> + * Subclass plugins override this method so do not delete or rename this method. */ + public void actionSaveAs() { + actionSaveOnePageToPclFile(); + } + /** Save one page only as PCL file */ public void actionSaveOnePageToPclFile() { byte[] tCurrentPageBytes = null; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-11-05 19:39:43
|
Revision: 183 http://openpcl.svn.sourceforge.net/openpcl/?rev=183&view=rev Author: documentsystems Date: 2007-11-05 11:39:46 -0800 (Mon, 05 Nov 2007) Log Message: ----------- Howard Hoagland. Added the actionSaveAs() to the two Interface files IOpenPCL and IPluginHooksOpenPCL. Modified Paths: -------------- openpcl/src/com/openpcl/viewer/api/IOpenPCL.java openpcl/src/com/openpcl/viewer/api/IPluginHooksOpenPCL.java Modified: openpcl/src/com/openpcl/viewer/api/IOpenPCL.java =================================================================== --- openpcl/src/com/openpcl/viewer/api/IOpenPCL.java 2007-10-30 22:47:39 UTC (rev 182) +++ openpcl/src/com/openpcl/viewer/api/IOpenPCL.java 2007-11-05 19:39:46 UTC (rev 183) @@ -228,6 +228,9 @@ /** Zoom to passed in zoom factor */ public void actionZoomTo(double pZoomFactor); + /** This gets executed when the user clicks the Save As icon on the toolbar. */ + public void actionSaveAs(); + /** Save one page only as PCL file */ public void actionSaveOnePageToPclFile(); Modified: openpcl/src/com/openpcl/viewer/api/IPluginHooksOpenPCL.java =================================================================== --- openpcl/src/com/openpcl/viewer/api/IPluginHooksOpenPCL.java 2007-10-30 22:47:39 UTC (rev 182) +++ openpcl/src/com/openpcl/viewer/api/IPluginHooksOpenPCL.java 2007-11-05 19:39:46 UTC (rev 183) @@ -11,18 +11,21 @@ /** * The methods in this interface are designed to be overridden by a subclass of OpenPCLViewer - * that is a plugin that adds additional features. Examples of additional features that can be added are: + * that is a plugin that adds additional features. Examples of additional features that can be added are:<br> * * 1. To specify a different name, description, version number for the app that shows in the title bar, status bar, - * help about, license text. - * 2. To add icons to the toolbar and to specify the code to execute when the user clicks the new icons. - * 3. To open and view and print compound documents that have several PCL files in one file. - * The binary file format of this compound document is of your own design and is not specified in OpenPCLViewer. + * help about, license text.<br> + * 2. To add icons to the toolbar and to specify the code to execute when the user clicks the new icons.<br> + * 3. To open and view and print compound documents that have several PCL files in one file.<br> + * The binary file format of this compound document is of your own design and is not specified in OpenPCLViewer.<br> * 4. To create and show on the screen a many levels deep tree structure of the compound document in #3 above - * that organizes the several PCL files so the user can select which pages in which PCL file to view and/or print. + * that organizes the several PCL files so the user can select which pages in which PCL file to view and/or print. <br> + * 5. The Save As button in the toolbar in OpenPCLViewer just calls the method to save the current viewed page only + * to a PCL file, but subclass plugins can override the actionSaveAs() method to prompt the user for which of many + * different output formats to Save As, like save all pages to a .ZIP file or other developer designed output format.<br> * * Therefore, it is mandatory to not delete or rename these methods or else you'll break the plugin support - * that adds additional features. + * that adds additional features.<br> * * @author DocMagic, Document Systems Inc, Howard. 11/20/06 */ @@ -93,4 +96,8 @@ /** Get the hidden tag base String */ public String getHiddenTagBaseString(int pTagIndex); + + /** This gets executed when the user clicks the Save As icon on the toolbar. */ + public void actionSaveAs(); + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-10-30 22:47:38
|
Revision: 182 http://openpcl.svn.sourceforge.net/openpcl/?rev=182&view=rev Author: documentsystems Date: 2007-10-30 15:47:39 -0700 (Tue, 30 Oct 2007) Log Message: ----------- Howard Hoagland. Changed to use mixed case for project name in the generated JavaDoc but use lowercase project name for the jar file name. Removed the jdom.jar file. Changed alot of other lines for clarity. Modified Paths: -------------- openpcl/build.xml Modified: openpcl/build.xml =================================================================== --- openpcl/build.xml 2007-10-30 22:42:39 UTC (rev 181) +++ openpcl/build.xml 2007-10-30 22:47:39 UTC (rev 182) @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="ISO-8859-1"?> -<project name="openpcl" default="all"> +<project name="OpenPCL" default="all"> - <property name="project.name" value="openpcl"/> + <property name="lowercase.project.name" value="openpcl"/> <property name="lib.dir" value="lib"/> <property name="src.dir" value="src"/> <property name="build.dir" value="build"/> - <property name="doc.dir" value="doc"/> - <property name="javadoc.dir" value="${doc.dir}/api"/> + <property name="doc.dir" value="docs"/> + <property name="api.dir" value="${doc.dir}/api"/> <property name="rel.dir" value="rel"/> <property name="rel.website.dir" value="${rel.dir}/website"/> @@ -27,19 +27,16 @@ <property name="izpack.dir" value="c:/program files/izpack"/> <property name="jsmooth.dir" value="c:/program files/jsmooth"/> - <!-- - Keystore information for signing applet jar - The keystore file included in this project is a test one and it might need to get - regenerated every six months. The way to do this is to do the following: - > cd ${src.localinstaller.dir} - > keytool -genkey -alias ${project.name} -keystore ${project.name}.keystore - > ** password is also ${project.name} ** - > keytool -export -alias project -rfc -file sig.x509 - --> + <!-- Keystore information for signing applet jar + The keystore file included in this project is a test one and it might need to get + regenerated every six months. The way to do this is to do the following: + > keytool -genkey -alias ${keystore.alias} -keystore ${keystore.file} + > ** password is also ${keystore.alias} ** + > keytool -export -alias project -rfc -file sig.x509 --> - <property name="keystore.alias" value="${project.name}"/> - <property name="keystore.file" value="${project.name}.keystore"/> - <property name="keystore.password" value="${project.name}"/> + <property name="keystore.alias" value="${lowercase.project.name}"/> + <property name="keystore.file" value="${keystore.alias}.keystore"/> + <property name="keystore.password" value="${keystore.alias}"/> <!-- 1) Build an cross-platform installer using IzPack (Windows, Unix) @@ -80,6 +77,7 @@ <!-- jar.pclrenderimage --> <target name="jar.pclrenderimage" depends="compile" description="Build pclrenderimage.jar for server side only (no OpenPCLViewer UI class files)"> + <!-- The pclrenderimage.jar file is built unsigned in the lib dir --> <jar jarfile="${lib.dir}/pclrenderimage.jar"> <fileset dir="${build.dir}" includes="${pclrenderimage.dir}/**/*.class"/> </jar> @@ -87,9 +85,10 @@ </target> <!-- jar.openpcl --> - <target name="jar.openpcl" depends="jar.pclrenderimage" description="Build openpcl.jar"> - <!-- openpcl.jar is built unsigned in the lib dir --> - <jar jarfile="${lib.dir}/${project.name}.jar"> + <target name="jar.openpcl" depends="jar.pclrenderimage" + description="Build openpcl.jar has all the UI class files and all the pclrenderimage class files"> + <!-- The openpcl.jar file is built unsigned in the lib dir --> + <jar jarfile="${lib.dir}/${lowercase.project.name}.jar"> <fileset dir="${build.dir}" includes="**/*.class"/> <fileset dir="${src.dir}" includes="**/viewer/images/**"/> <fileset dir="${src.dir}" includes="**/htmlfiles/**"/> @@ -103,11 +102,10 @@ description="Copies .jar files from lib to rel and signs the jar files in rel"> <!-- Make the release directory --> <mkdir dir="${rel.dir}"/> - <!-- Copy the 4 unsigned .jar files from lib to rel --> + <!-- Copy the 3 unsigned .jar files from lib to rel --> <copy todir="${rel.dir}"> <fileset dir="${lib.dir}" includes="openpcl.jar"/> <fileset dir="${lib.dir}" includes="pclrenderimage.jar"/> - <fileset dir="${lib.dir}" includes="jdom.jar"/> <fileset dir="${lib.dir}" includes="TableLayout.jar"/> </copy> <!-- Sign the jars --> @@ -121,11 +119,17 @@ <!-- javadoc --> <target name="javadoc" depends="applet" description="Builds JavaDoc API files"> - <mkdir dir="${javadoc.dir}"/> - <javadoc packagenames="com.${project.name}.*" sourcepath="${src.dir}" - defaultexcludes="yes" destdir="${javadoc.dir}" author="true" - version="true" use="true" classpathref="classpath" windowtitle="${project.name}"> - <doctitle><![CDATA[<h1>${project.name}</h1>]]></doctitle> + <mkdir dir="${api.dir}"/> + <javadoc packagenames="com.${lowercase.project.name}.*" + sourcepath="${src.dir}" + defaultexcludes="yes" + destdir="${api.dir}" + author="true" + version="true" + use="true" + classpathref="classpath" + windowtitle="${ant.project.name} API"> + <doctitle><![CDATA[<h1>${ant.project.name}</h1>]]></doctitle> <bottom><![CDATA[<i>OpenPCL <a href="http://www.openpcl.com">http://www.openpcl.com</a></i>]]></bottom> <tag name="todo" scope="all" description="To do:"/> <link href="http://java.sun.com/j2se/1.5.0/docs/api/"/> @@ -133,23 +137,25 @@ <echo>Finished OpenPCL Ant build.xml "javadoc" target.</echo> </target> - <!-- release --> - <target name="release" depends="javadoc" description="Creates the zip file that contains everything"> - <!-- Create a zip file with everything --> - <zip destfile="${rel.dir}/${project.name}.zip" update="true"> - <zipfileset file="build.xml" prefix="${project.name}"/> - <zipfileset file="${project.name}.keystore" prefix="${project.name}"/> - <zipfileset dir="${doc.dir}" prefix="${project.name}/${doc.dir}"/> - <zipfileset dir="${lib.dir}" prefix="${project.name}/${lib.dir}" includes="*.jar"/> - <zipfileset dir="${src.dir}" prefix="${project.name}/${src.dir}" excludes="**/izpackdoc/**,**/jsmoothdoc/**"/> + <!-- makezipfile --> + <target name="makezipfile" depends="javadoc" + description="Creates the zip file of the source code and JavaDoc"> + <zip destfile="${rel.dir}/${lowercase.project.name}.zip" update="true"> + <zipfileset file="build.xml" prefix="${lowercase.project.name}"/> + <zipfileset file=".classpath" prefix="${lowercase.project.name}"/> + <zipfileset file="${keystore.alias}.keystore" prefix="${lowercase.project.name}"/> + <zipfileset dir="${doc.dir}" prefix="${lowercase.project.name}/${doc.dir}"/> + <zipfileset dir="${lib.dir}" prefix="${lowercase.project.name}/${lib.dir}" includes="*.jar"/> + <zipfileset dir="${rel.dir}" prefix="${lowercase.project.name}/${rel.dir}" includes="*.jar"/> + <zipfileset dir="${src.dir}" prefix="${lowercase.project.name}/${src.dir}" excludes="**/izpackdoc/**,**/jsmoothdoc/**"/> </zip> <echo>To create the installer, download IzPack from (http://www.izforge.com/izpack)</echo> <echo>Installed? ${izpack.installed}</echo> - <echo>Finished OpenPCL Ant build.xml "release" target.</echo> + <echo>Finished OpenPCL Ant build.xml "makezipfile" target.</echo> </target> <!-- installer --> - <target name="installer" depends="" if="izpack.installed"> + <target name="installer" depends="" description="Make a self install .jar file" if="izpack.installed"> <!-- Task definition for IzPack (creates an installer jar) --> <taskdef name="izpack" classname="com.izforge.izpack.ant.IzPackTask" classpath="${izpack.dir}/lib/compiler.jar"/> <!-- Use IzPack to create an installer jar file (cross-platform), do not bundle JRE here --> @@ -175,10 +181,10 @@ <!-- website --> <target name="website" depends="installer-windows" description="Copies files to put in the project website"> - <!-- Make sure the directory is created --> <delete dir="${rel.website.dir}"/> <mkdir dir="${rel.website.dir}"/> - <!-- Copy the everything in rel --> + + <!-- Copy from rel --> <copy todir="${rel.website.dir}"> <fileset dir="${rel.dir}" excludes="website/**"/> </copy> @@ -189,6 +195,7 @@ <fileset dir="${src.data.dir}"/> </copy> <!-- Copy the everything in doc --> + <mkdir dir="${rel.website.dir}/${doc.dir}"/> <copy todir="${rel.website.dir}/${doc.dir}"> <fileset dir="${doc.dir}"/> </copy> @@ -196,7 +203,7 @@ <echo>Upload the contents of ${rel.website.dir} to the project website</echo> </target> - <target name="all" depends="release" description="clean, compile, jar, applet, javadoc, release"> + <target name="all" depends="makezipfile" description="clean, compile, jar, applet, javadoc, makezipfile"> </target> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <doc...@us...> - 2007-10-30 22:42:41
|
Revision: 181 http://openpcl.svn.sourceforge.net/openpcl/?rev=181&view=rev Author: documentsystems Date: 2007-10-30 15:42:39 -0700 (Tue, 30 Oct 2007) Log Message: ----------- Howard Hoagland. Removed the jdom.jar from the .classpath file because no code references any of those classes now. Modified Paths: -------------- openpcl/.classpath Modified: openpcl/.classpath =================================================================== --- openpcl/.classpath 2007-10-26 03:55:13 UTC (rev 180) +++ openpcl/.classpath 2007-10-30 22:42:39 UTC (rev 181) @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src"/> - <classpathentry kind="lib" path="lib/jdom.jar"/> <classpathentry kind="lib" path="lib/TableLayout.jar"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="output" path="classes"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |