summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorParis Oplopoios <paris.oplopoios@collabora.com>2023-07-26 17:20:59 +0300
committerParis Oplopoios <parisoplop@gmail.com>2023-08-01 13:49:06 +0200
commit0004de149269ed2ab5423947b9930653f3da6038 (patch)
tree96532c04c136023b81d0572c37fab6c4c8b78414 /include/vcl
parentf9631765c9dfd805ae486a94eacb69d307c9eef1 (diff)
Allow getViewRenderState to get from a specific view
getViewRenderState would get its output from the current view, make it so that it's possible to specify a specific view Change-Id: I279b215f8311b079c220c79b8b41c76bc0210154 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154943 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com> (cherry picked from commit eff5643dbc5bb9dfede530e8e07261bb9bdc98f0) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155046 Tested-by: Jenkins Reviewed-by: Paris Oplopoios <parisoplop@gmail.com>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/ITiledRenderable.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/vcl/ITiledRenderable.hxx b/include/vcl/ITiledRenderable.hxx
index 9fa61258fc7a..9b76eb11200e 100644
--- a/include/vcl/ITiledRenderable.hxx
+++ b/include/vcl/ITiledRenderable.hxx
@@ -10,6 +10,7 @@
#pragma once
+#include <sfx2/viewsh.hxx>
#include <tools/gen.hxx>
#include <rtl/ustring.hxx>
#include <vcl/dllapi.h>
@@ -380,8 +381,9 @@ public:
/**
* Returns an opaque string reflecting the render state of a component
* eg. 'PD' - P for non-printing-characters, D for dark-mode.
+ * @param pViewShell the view to get the options from, if nullptr the current view shell is used
*/
- virtual OString getViewRenderState() { return rtl::OString(); }
+ virtual OString getViewRenderState(SfxViewShell* = nullptr) { return rtl::OString(); }
};
} // namespace vcl