Version 5 (modified by kyli, 16 years ago) (diff) |
---|
Analysis
Overview
We should provide print functionality, which gives the user possibility to print on paper the state of the book at desired moment. The product of the printing action will be very similar to the exported pdf, but on paper. When the user clicks on print, after he chooses the desired print options, the state of the book at this moment must be printed. We're going to drop "print to file" option, we have export to html and pdf.
Task requirements
- Make print works again.
- Remove the "print to file" related functionality.
- Use as much as possible of the "export to PDF" logic, so that the visible result will be the same.
Task result
The result of this task must be code.
Implementation idea
See pdf export tasks. The exported pdf is very similar to the contents that must be printed.
Related
BOOK_PRINTING_R1
BOOK_STATIC_PDF_EXPORT_R0
How to demo
- Open book
- Choose print from the file menu or press Ctrl+P
Design
The main idea is to make the printing draw the scene on the printer. The needed logic for this is already written for the needs of the PDF export. So, most of the current classes are useless. Remove:
- DefaultSophiePrintable
- AbstractPrintItem
- PrintExtensionPoint
- PageSophiePrintable
- PrintToFileItem
- SophiePrintable
- HotTextSophiePrintable
- PrintToFileDialog
- PrintToFileDialogInput
Implementation
(Describe and link the implementation results here (from the wiki or the repository).)
Testing
(Place the testing results here.)
Comments
(Write comments for this or later revisions here.)