summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorYusuf Keten <ketenyusuf@gmail.com>2020-02-07 19:18:57 +0300
committerMuhammet Kara <muhammet.kara@collabora.com>2020-02-08 16:56:23 +0100
commitec48d37f574924c66dea4f7adb56944bbe636aa1 (patch)
treeb00071b6c8ed27324f455afef42f8ea3bb8cafba /include/vcl
parent85dc497f1556ebc53f482e382f48e98b9560b983 (diff)
tdf#74702 Remove OutDevType from OutputDevice::RemoveTransparenciesFromMetaFile
Extracted SetBackgroundComponentBounds() which removes need for checking OutDevType especially whether it is Printer or not in OutputDevice. Change-Id: Ib8884b861314f595283af9ae3a2cd5645b334d51 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86312 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/outdev.hxx2
-rw-r--r--include/vcl/print.hxx2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index 687b9a1c207a..e4430b2415f3 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -559,6 +559,8 @@ protected:
virtual void CopyDeviceArea( SalTwoRect& aPosAry, bool bWindowInvalidate);
+ virtual tools::Rectangle SetBackgroundComponentBounds();
+
virtual void DrawOutDevDirectCheck( const OutputDevice* pSrcDev, SalGraphics*& pSrcGraphics );
virtual void DrawOutDevDirectProcess( const OutputDevice* pSrcDev, SalTwoRect& rPosAry, SalGraphics* pSrcGraphics );
diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx
index 154ee694bd83..eff9c983ff5c 100644
--- a/include/vcl/print.hxx
+++ b/include/vcl/print.hxx
@@ -365,6 +365,8 @@ public:
virtual void CopyArea( const Point& rDestPt, const Point& rSrcPt,
const Size& rSrcSize, bool bWindowInvalidate = false ) override;
+ virtual tools::Rectangle SetBackgroundComponentBounds() override;
+
// These 3 together are more modular PrintJob(), allowing printing more documents as one print job
// by repeated calls to ExecutePrintJob(). Used by mailmerge.
static bool PreparePrintJob( std::shared_ptr<vcl::PrinterController> i_pController,