From 19c5867f922e9acf0564b6213fa15cc899a77c16 Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Fri, 7 Feb 2014 22:32:58 +1100 Subject: fdo#74424 HasMirroredGraphics changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit HasMirroredGraphics should be called upon by the object using the OutputDevice. As I'm focussing on Window, which will be shortly decoupled from OutputDevice, I have changed HasMirroredGraphics into a virtual function, and introduced a wrapper function of the same name into Window that calls upon Window's OutputDevice object. Due to a bug that never appears to have been fully fixed, mirroring in printing was broken and a workaround ("hotfix" in the code!) was implemented but never fully fixed. Therefore, I have overridden HasMirroredGraphics in Printer and just return false. Change-Id: I9029e2c50cdb339c1e936bed6b92e8b2aac1dcf9 Reviewed-on: https://gerrit.libreoffice.org/7912 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- include/vcl/outdev.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/vcl/outdev.hxx') diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index 7458475a428b..546331be8ea1 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -755,7 +755,7 @@ public: */ ///@{ SAL_DLLPRIVATE sal_Bool ImplIsRecordLayout() const; - SAL_DLLPRIVATE bool HasMirroredGraphics() const; + virtual bool HasMirroredGraphics() const; SAL_DLLPRIVATE void ReMirror( Point &rPoint ) const; SAL_DLLPRIVATE void ReMirror( Rectangle &rRect ) const; SAL_DLLPRIVATE void ReMirror( Region &rRegion ) const; -- cgit