summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-07-24 22:31:34 +0200
committerEike Rathke <erack@redhat.com>2017-07-24 23:32:49 +0200
commita7a99a574660fc62a9514b2ed3f8ddfe8ad8540c (patch)
treed88f51f469c5623e96c0bb93dfa1868a7f619a48 /include/svtools
parentd30ae9c17ba51a55dd491f4c91712860b495f424 (diff)
Export to PNG: use selection if Selection is selected
The SelectionOnly property from the export file dialog was not passed down from GraphicExportFilter::filter() to DocumentToGraphicRenderer so that always passed a component model instead of a selection object to the implementation of XRenderable (getRendererCount(), getRenderer(), render()) Also have GraphicExportDialog consider the selection so the DocumentToGraphicRenderer at its GraphicExportOptionsDialog calls XRenderable the same. Change-Id: I976bf16cf87cf5ca2678bdba7adfaf61c2063168 Reviewed-on: https://gerrit.libreoffice.org/40380 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/DocumentToGraphicRenderer.hxx5
-rw-r--r--include/svtools/GraphicExportOptionsDialog.hxx3
2 files changed, 6 insertions, 2 deletions
diff --git a/include/svtools/DocumentToGraphicRenderer.hxx b/include/svtools/DocumentToGraphicRenderer.hxx
index e43e47208198..2e6ee141773a 100644
--- a/include/svtools/DocumentToGraphicRenderer.hxx
+++ b/include/svtools/DocumentToGraphicRenderer.hxx
@@ -38,9 +38,12 @@ class SVT_DLLPUBLIC DocumentToGraphicRenderer
css::uno::Reference<css::frame::XController> mxController;
css::uno::Reference<css::view::XRenderable> mxRenderable;
css::uno::Reference<css::awt::XToolkit> mxToolkit;
+ bool mbSelectionOnly;
+
+ css::uno::Any getSelection() const;
public:
- DocumentToGraphicRenderer(const css::uno::Reference<css::lang::XComponent>& xDocument);
+ DocumentToGraphicRenderer(const css::uno::Reference<css::lang::XComponent>& xDocument, bool bSelectionOnly);
~DocumentToGraphicRenderer();
sal_Int32 getCurrentPageWriter( );
diff --git a/include/svtools/GraphicExportOptionsDialog.hxx b/include/svtools/GraphicExportOptionsDialog.hxx
index 5524b96d4db3..2ed5dfdd7749 100644
--- a/include/svtools/GraphicExportOptionsDialog.hxx
+++ b/include/svtools/GraphicExportOptionsDialog.hxx
@@ -61,7 +61,8 @@ private:
DECL_LINK( resolutionModifiedHandle, Edit&, void );
public:
- GraphicExportOptionsDialog( vcl::Window* pWindow, const css::uno::Reference<css::lang::XComponent>& rxSourceDocument );
+ GraphicExportOptionsDialog( vcl::Window* pWindow,
+ const css::uno::Reference<css::lang::XComponent>& rxSourceDocument, bool bSelectionOnly );
virtual ~GraphicExportOptionsDialog() override;
virtual void dispose() override;
css::uno::Sequence<css::beans::PropertyValue> getFilterData();