Added the feature to export pages as images
This feature was requested in bug 466491. With the new feature, a user shall be able to:
- Export their document as images in PNG format.
- Select the specific directory where user wishes to export pages.
- Select specific pages to export as images using a Print like dialog window.
Major changes made to the codebase:
- Created a new ExportImage QDialog and a new DocumentObserver that listens to pixmaps being generated for the document.
- Modified part.cpp's slotExportAs slot, to add functionality for opening dialog box and handling UI and sending the exportImage request.
- Added a hasObserver, canExportToImage and ExportToImage methods to document.cpp
- Added a getPixmap method to page.cpp in order to directly get the pixmap associated with the particular page after a Pixmap request.
Edited by Pratham Gandhi