summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2020-05-23 23:15:51 +1000
committerMike Kaganski <mike.kaganski@collabora.com>2020-05-24 08:45:18 +0200
commit7637547123b00a9b07ef8659bc077be85cba0a89 (patch)
tree2f9840e414c1263adf53b6b1324f82efcab5ebbd /include/vcl
parentccbcaac09f5e0e6c103d57f83aee629b3092c4a0 (diff)
tdf#74702 vcl: extract IsScreenComp()
Change-Id: Ie35ae8c10eaa66b48c9c79a0356a71ad82ca66e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94720 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/outdev.hxx2
-rw-r--r--include/vcl/print.hxx2
-rw-r--r--include/vcl/virdev.hxx2
3 files changed, 6 insertions, 0 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index 64936a956cd0..81724f297917 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -436,6 +436,8 @@ public:
const Point& GetRefPoint() const { return maRefPoint; }
bool IsRefPoint() const { return mbRefPoint; }
+ virtual bool IsScreenComp() const { return true; }
+
virtual sal_uInt16 GetBitCount() const;
Size GetOutputSizePixel() const
diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx
index c5167d7bd608..edc55728e5f0 100644
--- a/include/vcl/print.hxx
+++ b/include/vcl/print.hxx
@@ -241,6 +241,8 @@ public:
const Gradient& rGradient );
virtual Bitmap GetBitmap( const Point& rSrcPt, const Size& rSize ) const override;
+ bool IsScreenComp() const override { return false; }
+
protected:
virtual void DrawDeviceMask( const Bitmap& rMask, const Color& rMaskColor,
const Point& rDestPt, const Size& rDestSize,
diff --git a/include/vcl/virdev.hxx b/include/vcl/virdev.hxx
index 51053ad37e8c..0268e49a1b1e 100644
--- a/include/vcl/virdev.hxx
+++ b/include/vcl/virdev.hxx
@@ -177,6 +177,8 @@ public:
bool IsVirtual() const override;
+ bool IsScreenComp() const override { return mbScreenComp; }
+
private:
SAL_DLLPRIVATE void ImplSetReferenceDevice( RefDevMode, sal_Int32 i_nDPIX, sal_Int32 i_nDPIY );