diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2020-05-23 23:41:50 +1000 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-06-19 21:20:34 +0200 |
commit | f4b4b27af975504fd9b85451eaa333e75b580305 (patch) | |
tree | 3630ea07ef93791f2381d75c02f207610dd2a850 /include | |
parent | 327153471ae38abe90463f6272e00aaa996c5ba3 (diff) |
tdf#74702 vcl: extract DrawBorder()
Change-Id: Iba9cc10daa1b6b0ab7097145a3f40832d2165435
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94721
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/outdev.hxx | 3 | ||||
-rw-r--r-- | include/vcl/print.hxx | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index 86c18f06782e..8c258a48f790 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -699,6 +699,9 @@ private: SAL_DLLPRIVATE void SetDeviceClipRegion( const vcl::Region* pRegion ); ///@} +public: + virtual void DrawBorder(tools::Rectangle aBorderRect); + /** @name Pixel functions */ diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx index e17e5e1dcc6d..8c91df7d8ec8 100644 --- a/include/vcl/print.hxx +++ b/include/vcl/print.hxx @@ -237,6 +237,12 @@ public: bool IsScreenComp() const override { return false; } + void DrawBorder(tools::Rectangle aBorderRect) override + { + SetLineColor(COL_BLACK); + DrawRect(aBorderRect); + } + protected: virtual void DrawDeviceMask( const Bitmap& rMask, const Color& rMaskColor, const Point& rDestPt, const Size& rDestSize, |