summaryrefslogtreecommitdiff
path: root/vcl/inc/salvd.hxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-11-29 22:14:36 +0000
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-12-02 08:34:52 +0100
commitc31ed7004dfb3e8e37ddeb9fddf0f015b661dd12 (patch)
tree48d3069604bc35122347b6d346649c84f84ef67c /vcl/inc/salvd.hxx
parentc22d5338fad383800b35efa458561bb89b604922 (diff)
vcl: create a GeometryProvider interface.
Implemented by both SalFrame and SalVirtualDevice, to help us to un-tangle code that needs to operate on resources associated with both of these without special cases. Change-Id: If681a002647e20c57186577fe039d4ac85bba872
Diffstat (limited to 'vcl/inc/salvd.hxx')
-rw-r--r--vcl/inc/salvd.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/inc/salvd.hxx b/vcl/inc/salvd.hxx
index 13979359919d..c07722f887a4 100644
--- a/vcl/inc/salvd.hxx
+++ b/vcl/inc/salvd.hxx
@@ -22,15 +22,20 @@
#include <basebmp/bitmapdevice.hxx>
#include <vcl/dllapi.h>
+#include <salgeom.hxx>
class SalGraphics;
class VCL_PLUGIN_PUBLIC SalVirtualDevice
+ : public SalGeometryProvider
{
public:
SalVirtualDevice() {}
virtual ~SalVirtualDevice();
+ // SalGeometryProvider
+ virtual bool IsOffScreen() const SAL_OVERRIDE { return true; }
+
// SalGraphics or NULL, but two Graphics for all SalVirtualDevices
// must be returned
virtual SalGraphics* AcquireGraphics() = 0;