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. |