diff options
author | Philipp Lohmann <pl@openoffice.org> | 2009-09-08 13:44:16 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2009-09-08 13:44:16 +0000 |
commit | eb7e3a297515f8f603c8372b4276d6a14c09ef40 (patch) | |
tree | c4c472274c8bfea73c683fb9afe946e01589d1f7 /vcl/source/gdi/print3.cxx | |
parent | 29572d6eebbd0a72cc7f244b613ed029e2b1ac54 (diff) |
#i104763# inform app about need to reformat
Diffstat (limited to 'vcl/source/gdi/print3.cxx')
-rw-r--r-- | vcl/source/gdi/print3.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx index 7a85091c052f..88006a845936 100644 --- a/vcl/source/gdi/print3.cxx +++ b/vcl/source/gdi/print3.cxx @@ -585,6 +585,11 @@ bool PrinterController::setupPrinter( Window* i_pParent ) { mpImplData->maFixedPageSize = aNewPaperSize; mpImplData->maPageCache.invalidate(); + awt::Size aOverrideSize; + aOverrideSize.Width = aNewPaperSize.Width(); + aOverrideSize.Height = aNewPaperSize.Height(); + setValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "OverridePageSize" ) ), + makeAny( aOverrideSize ) ); } } } |