Changes between Version 14 and Version 15 of BOOK_STATIC_PDF_EXPORT_R0
- Timestamp:
- 05/14/09 15:44:22 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BOOK_STATIC_PDF_EXPORT_R0
v14 v15 43 43 44 44 = Design = 45 ^(Describe your design here.)^ 45 * Create new package org.sophie2.extra.func.print.pdf_export in the org.sophie2.extra.func.print. For now, it is a better idea the code for the pdf export to be in the existed module rather than to be put in a new module. 46 * In the File Menu of the application add "Export To PDF" menu item. Create ExportToPDFItem class in the newly created package. 47 * Create ExportToPDFLogic class that will handle clicks perform over ExportToPDFItem menu item. 48 * Export the paint method from the !SimpleSceneVisual class to !SceneHelper class as static method. The idea is to provide the same logic for drawing a part of a scene over given graphics. Use the newly created method to draw over a PDF document. 46 49 47 50 = Implementation = … … 52 55 53 56 = Comments = 54 * It will be better if the menu item is named "To PDF" and is part of a sub emenu called "Export" since we will have HTML, Sophie 1, etc57 * It will be better if the menu item is named "To PDF" and is part of a submenu called "Export" since we will have HTML, Sophie 1, etc 55 58 * The button should invoke File Dialog with extension PDF selected. 56 59 * It is important which part of the book will be printed - will it be the page, will it include border?