summaryrefslogtreecommitdiff
path: root/include/vcl/print.hxx
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2014-03-12 23:36:17 +1100
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-03-21 19:10:30 +0000
commit143c059ff7f69a363b3cf736a9f0197a9f25cf9c (patch)
tree4042b695c3ea9676dad869ca9220c31b4e47fb62 /include/vcl/print.hxx
parent9dc4377c91b00585519abfd4fc1528393fe84e4a (diff)
fdo#74702 Moved ImplReleaseGraphics into correct classes
Made OutputDevice::ImplReleaseGraphics a pure virtual function, then implemented function in Printer, Window and VirtualDevice. The reason was that OutputDevice was checking to see if it was a Printer, Window or VirtualDevice that was calling on it in an if statement, very uncool :-) Now I let the classes themselves do the work. There is some common functionality, which is to release the fonts. I have put this into a protected OutputDevice function, ImplReleaseFonts. Change-Id: Id41db2119d4022ea2fc7855158ca9f610af3c85c Reviewed-on: https://gerrit.libreoffice.org/8548 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'include/vcl/print.hxx')
-rw-r--r--include/vcl/print.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx
index 2e8098d38376..0f5897d241c3 100644
--- a/include/vcl/print.hxx
+++ b/include/vcl/print.hxx
@@ -248,6 +248,8 @@ private:
Link maErrorHdl;
bool ImplInitGraphics() const;
+ void ImplReleaseGraphics( bool bRelease = true );
+ void ImplReleaseFonts();
SAL_DLLPRIVATE void ImplInitData();
SAL_DLLPRIVATE void ImplInit( SalPrinterQueueInfo* pInfo );
SAL_DLLPRIVATE void ImplInitDisplay( const Window* pWindow );