summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-09-22 14:02:20 +0200
committerEike Rathke <erack@redhat.com>2017-09-22 21:52:30 +0200
commit3b06d9df29dc2aef568bad5bbe10c57e78bbb81a (patch)
treeeaede36ba4366729bd35d68cde580985171e4fe5 /include/svtools
parentd4b6e524398d83a500647d6a721b703dee767f06 (diff)
Introduce DocumentToGraphicRenderer::isShapeSelected()
Change-Id: I66fc0e39a7a35969b937253c88326516949ea7e7 Reviewed-on: https://gerrit.libreoffice.org/42653 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/DocumentToGraphicRenderer.hxx21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/svtools/DocumentToGraphicRenderer.hxx b/include/svtools/DocumentToGraphicRenderer.hxx
index 80f37df3c56e..5ed6f2ce4434 100644
--- a/include/svtools/DocumentToGraphicRenderer.hxx
+++ b/include/svtools/DocumentToGraphicRenderer.hxx
@@ -30,6 +30,16 @@
#include <svtools/svtdllapi.h>
+namespace com { namespace sun { namespace star {
+ namespace drawing {
+ class XShapes;
+ class XShape;
+ }
+ namespace frame {
+ class XController;
+ }
+}}}
+
class SVT_DLLPUBLIC DocumentToGraphicRenderer
{
const css::uno::Reference<css::lang::XComponent>& mxDocument;
@@ -63,6 +73,17 @@ public:
Graphic renderToGraphic( sal_Int32 nCurrentPage, Size aDocumentSizePixel,
Size aTargetSizePixel, Color aPageColor);
+
+ /** Determine whether rxController has a css::view::XSelectionSupplier at
+ which either a css::drawing::XShapes or css::drawing::XShape is
+ selected. XShapes has precedence over XShape.
+
+ Call only if the SelectionOnly property was set.
+ */
+ static bool isShapeSelected(
+ css::uno::Reference< css::drawing::XShapes > & rxShapes,
+ css::uno::Reference< css::drawing::XShape > & rxShape,
+ const css::uno::Reference< css::frame::XController > & rxController );
};
#endif