summaryrefslogtreecommitdiff
path: root/vcl/inc/printdlg.hxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2013-03-03 20:49:18 +0100
committerTomaž Vajngerl <quikee@gmail.com>2013-03-03 20:57:02 +0100
commit9058681a8d4f52db18f094994b231e719e9bb6eb (patch)
treeb89be90c3fd4899915d23b1ceb6429fbda51d2c0 /vcl/inc/printdlg.hxx
parentdca9978fdbd96f0b23b3e52431bf074d259ceec1 (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/printdlg.hxx')
-rw-r--r--vcl/inc/printdlg.hxx5
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();