diff options
author | Tomaž Vajngerl <quikee@gmail.com> | 2013-03-03 20:49:18 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2013-03-03 20:57:02 +0100 |
commit | 9058681a8d4f52db18f094994b231e719e9bb6eb (patch) | |
tree | b89be90c3fd4899915d23b1ceb6429fbda51d2c0 /vcl/inc | |
parent | dca9978fdbd96f0b23b3e52431bf074d259ceec1 (diff) |
Better quality previews in print dialog.
Make a fixed size bitmap of the current document for preview in
print dialog. The bitmap is scaled when the dialog is resized, which
is faster and better quality as it uses "BEST" scaling method for
resizing the bitmap.
Change-Id: I3be0bec30a7f2cd594c56d23fe2b39221aff807c
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/printdlg.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/inc/printdlg.hxx b/vcl/inc/printdlg.hxx index d57218ebd2bb..296d5b89edea 100644 --- a/vcl/inc/printdlg.hxx +++ b/vcl/inc/printdlg.hxx @@ -45,16 +45,21 @@ namespace vcl public: class PrintPreviewWindow : public Window { + static const sal_Int32 PREVIEW_BITMAP_WIDTH; + GDIMetaFile maMtf; Size maOrigSize; Size maPreviewSize; VirtualDevice maPageVDev; + Bitmap maPreviewBitmap; rtl::OUString maReplacementString; rtl::OUString maToolTipString; bool mbGreyscale; FixedLine maHorzDim; FixedLine maVertDim; + void preparePreviewBitmap(); + public: PrintPreviewWindow( Window* pParent ); virtual ~PrintPreviewWindow(); |