[Libreoffice-commits] core.git: filter/source
Eike Rathke
erack at redhat.com
Fri Sep 22 19:56:11 UTC 2017
filter/source/graphic/GraphicExportFilter.cxx | 5 +++++
filter/source/graphic/GraphicExportFilter.hxx | 2 ++
2 files changed, 7 insertions(+)
New commits:
commit 5f5458ee5959e563bb5c1fbe78a94429017d83f0
Author: Eike Rathke <erack at redhat.com>
Date: Fri Sep 22 14:44:38 2017 +0200
Move implementation to filterRenderDocument()
Change-Id: I632a26c5f149fabbe3a4a1186bfbe822fff0ea24
Reviewed-on: https://gerrit.libreoffice.org/42656
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Eike Rathke <erack at redhat.com>
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;
More information about the Libreoffice-commits
mailing list