From cb6cbbd5cad2ea0433cf5cc3ced8491f5c400a38 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Tue, 19 Sep 2017 19:08:14 +0200 Subject: Introduce DocumentToGraphicRenderer::hasSelection() and maSelection Change-Id: Ib7a9df04eb1b8646e20f58c3f9af3ee2dbbb13db Reviewed-on: https://gerrit.libreoffice.org/42489 Reviewed-by: Eike Rathke Tested-by: Eike Rathke --- include/svtools/DocumentToGraphicRenderer.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/svtools') diff --git a/include/svtools/DocumentToGraphicRenderer.hxx b/include/svtools/DocumentToGraphicRenderer.hxx index 450672ebe7ad..2240b160d79b 100644 --- a/include/svtools/DocumentToGraphicRenderer.hxx +++ b/include/svtools/DocumentToGraphicRenderer.hxx @@ -38,8 +38,14 @@ class SVT_DLLPUBLIC DocumentToGraphicRenderer css::uno::Reference mxController; css::uno::Reference mxRenderable; css::uno::Reference mxToolkit; + css::uno::Any maSelection; bool mbSelectionOnly; + bool hasSelection() const; + + /** Always something even if hasSelection() is false (in which case the + selection is mxDocument). + */ css::uno::Any getSelection() const; sal_Int32 getCurrentPageWriter(); -- cgit