summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-21 12:48:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-05-22 20:39:36 +0200
commit208d931861be4d5cf571c404f517fb5c26499aa0 (patch)
tree0a351b0f0cb9e45b1ce66ca2f591ca32a69fae26 /include/vcl
parenta12b8566e835badeae449c52dbace21efc5e623e (diff)
support rendering a widget snapshot to an OutputDevice
Change-Id: I7beecd8f9579d5ae4b60a839f4a71c3238e0666d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94645 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/weld.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index fd734309d6a9..a57f7f4321c3 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -272,6 +272,9 @@ public:
virtual void connect_get_property_tree(const Link<boost::property_tree::ptree&, void>& rLink)
= 0;
+ // render the widget to an output device
+ virtual void draw(VirtualDevice& rOutput) = 0;
+
virtual ~Widget() {}
};
@@ -461,8 +464,6 @@ public:
virtual void resize_to_request() = 0;
- // render the dialog for a screenshot
- virtual void draw(VirtualDevice& rOutput) = 0;
// collect positions of widgets and their help ids for screenshot purposes
virtual ScreenShotCollection collect_screenshot_data() = 0;
};