summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-09-22 14:44:38 +0200
committerEike Rathke <erack@redhat.com>2017-09-22 21:55:34 +0200
commit5f5458ee5959e563bb5c1fbe78a94429017d83f0 (patch)
treebfc116d4310c638432ff4b250d0221023c1b1ed3
parentfa60e32412575e90c8f978721c029d8b82c6b8ee (diff)
Move implementation to filterRenderDocument()
Change-Id: I632a26c5f149fabbe3a4a1186bfbe822fff0ea24 Reviewed-on: https://gerrit.libreoffice.org/42656 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r--filter/source/graphic/GraphicExportFilter.cxx5
-rw-r--r--filter/source/graphic/GraphicExportFilter.hxx2
2 files changed, 7 insertions, 0 deletions
diff --git a/filter/source/graphic/GraphicExportFilter.cxx b/filter/source/graphic/GraphicExportFilter.cxx
index d5b64927c5f1..ba99893c6e7f 100644
--- a/filter/source/graphic/GraphicExportFilter.cxx
+++ b/filter/source/graphic/GraphicExportFilter.cxx
@@ -115,6 +115,11 @@ sal_Bool SAL_CALL GraphicExportFilter::filter( const Sequence<PropertyValue>& rD
{
gatherProperties(rDescriptor);
+ return filterRenderDocument();
+}
+
+bool GraphicExportFilter::filterRenderDocument() const
+{
DocumentToGraphicRenderer aRenderer( mxDocument, mbSelectionOnly );
sal_Int32 nCurrentPage = aRenderer.getCurrentPage();
Size aDocumentSizePixel = aRenderer.getDocumentSizeInPixels(nCurrentPage);
diff --git a/filter/source/graphic/GraphicExportFilter.hxx b/filter/source/graphic/GraphicExportFilter.hxx
index a7b3760a5e8d..9d213352c770 100644
--- a/filter/source/graphic/GraphicExportFilter.hxx
+++ b/filter/source/graphic/GraphicExportFilter.hxx
@@ -56,6 +56,8 @@ class GraphicExportFilter :
css::uno::Any maTranslucent;
css::uno::Any maQuality;
+ bool filterRenderDocument() const;
+
public:
explicit GraphicExportFilter( const Reference<XComponentContext>& rxContext );
virtual ~GraphicExportFilter() override;