diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2020-12-22 10:54:27 +1100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-01-02 14:59:49 +0100 |
commit | ab2d3462f412d5180e60512df0dfb9c3b13ebf0c (patch) | |
tree | 6c873d8d8f2f6ad3ede20ffb068a5828684b3b11 /include/vcl | |
parent | dd91d3389c26645459d3b80649941d65efa4f63f (diff) |
tdf#74702 - vcl: introduce OutputDevice::GetDeviceInfo()
Change-Id: I02c9cc83fea330ed0ba1539b2682f75d33ba80fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108132
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/outdev.hxx | 8 | ||||
-rw-r--r-- | include/vcl/print.hxx | 2 | ||||
-rw-r--r-- | include/vcl/window.hxx | 2 |
3 files changed, 12 insertions, 0 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index c0e0c8ec12f8..b909875a380f 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -48,6 +48,7 @@ #include <com/sun/star/drawing/LineCap.hpp> #include <com/sun/star/uno/Reference.h> +#include <com/sun/star/awt/DeviceInfo.hpp> #include <memory> #include <vector> @@ -2017,6 +2018,13 @@ public: const Point& rPt, const Size& rSz, const GfxLink& rGfxLink, GDIMetaFile* pSubst = nullptr ); ///@} + +public: + virtual css::awt::DeviceInfo GetDeviceInfo() const; + +protected: + css::awt::DeviceInfo GetCommonDeviceInfo(Size const& aDevSize) const; + }; #endif // INCLUDED_VCL_OUTDEV_HXX diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx index 517a9607f1c2..a74f1c5e6288 100644 --- a/include/vcl/print.hxx +++ b/include/vcl/print.hxx @@ -221,6 +221,8 @@ public: DrawRect(aBorderRect); } + css::awt::DeviceInfo GetDeviceInfo() const override; + protected: virtual void DrawDeviceMask( const Bitmap& rMask, const Color& rMaskColor, const Point& rDestPt, const Size& rDestSize, diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index 650503484bc9..bf4a8790ae25 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -1550,6 +1550,8 @@ public: void SetMnemonicActivateHdl(const Link<vcl::Window&, bool>& rLink); void SetModalHierarchyHdl(const Link<bool, void>& rLink); void SetDumpAsPropertyTreeHdl(const Link<tools::JsonWriter&, void>& rLink); + + css::awt::DeviceInfo GetDeviceInfo() const override; }; } |