summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-09-22 15:04:36 +0200
committerEike Rathke <erack@redhat.com>2017-09-22 21:55:07 +0200
commitfa60e32412575e90c8f978721c029d8b82c6b8ee (patch)
tree2ec64364ef95fab3bf9656177522d31cea41d57b /filter
parentfe76af877a481d2b6a41f9a2ed837757d6fa0f25 (diff)
Remember XComponentContext
Change-Id: I52847249b3e17a31f6c6bf76af7bfe91a414d072 Reviewed-on: https://gerrit.libreoffice.org/42657 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/graphic/GraphicExportFilter.cxx5
-rw-r--r--filter/source/graphic/GraphicExportFilter.hxx1
2 files changed, 4 insertions, 2 deletions
diff --git a/filter/source/graphic/GraphicExportFilter.cxx b/filter/source/graphic/GraphicExportFilter.cxx
index 9df878abfe96..d5b64927c5f1 100644
--- a/filter/source/graphic/GraphicExportFilter.cxx
+++ b/filter/source/graphic/GraphicExportFilter.cxx
@@ -23,8 +23,9 @@
#include <svl/outstrm.hxx>
#include <svtools/DocumentToGraphicRenderer.hxx>
-GraphicExportFilter::GraphicExportFilter( const Reference<XComponentContext>& )
- : mTargetWidth(0)
+GraphicExportFilter::GraphicExportFilter( const Reference<XComponentContext>& rxContext )
+ : mxContext(rxContext)
+ , mTargetWidth(0)
, mTargetHeight(0)
, mbSelectionOnly(false)
{}
diff --git a/filter/source/graphic/GraphicExportFilter.hxx b/filter/source/graphic/GraphicExportFilter.hxx
index 6249b4e81582..a7b3760a5e8d 100644
--- a/filter/source/graphic/GraphicExportFilter.hxx
+++ b/filter/source/graphic/GraphicExportFilter.hxx
@@ -37,6 +37,7 @@ using namespace css::document;
class GraphicExportFilter :
public cppu::WeakImplHelper < XFilter, XExporter, XInitialization >
{
+ Reference<XComponentContext> mxContext;
Reference<XComponent> mxDocument;
Reference<io::XOutputStream> mxOutputStream;