summaryrefslogtreecommitdiffstats
path: root/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-05-21 13:08:34 +0200
committerNoel Grandin <noel@peralex.com>2013-05-21 13:53:20 +0200
commita986eddb9b9d1de71ae1c6f73246e493cc449c21 (patch)
treead9221c84bcc6d1c49b2cb8328b42d7c20226522 /oox
parentfdo#46808, Remove unnecessary XMultiServiceFactory member (diff)
downloadcore-a986eddb9b9d1de71ae1c6f73246e493cc449c21.tar.gz
core-a986eddb9b9d1de71ae1c6f73246e493cc449c21.zip
fdo#46808, Convert oox.ExcelFilterExport service to new style
Service already existed, just needed an IDL file Change-Id: I397296e5ad7b32febb63e74f8ee9a0db53ba5a81
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/shapes.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx
index 2fc1133d7033..75a5b596ea91 100644
--- a/oox/source/export/shapes.cxx
+++ b/oox/source/export/shapes.cxx
@@ -46,6 +46,7 @@
#include <com/sun/star/graphic/XGraphic.hpp>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/io/XOutputStream.hpp>
+#include <com/sun/star/oox/ExcelFilterExport.hpp>
#include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
#include <com/sun/star/style/ParagraphAdjust.hpp>
#include <com/sun/star/text/XSimpleText.hpp>
@@ -1312,8 +1313,8 @@ ShapeExport& ShapeExport::WriteOLE2Shape( Reference< XShape > xShape )
if( xSheetDoc.is() && mpFB)
{
Reference< XComponent > xDocument( mAny, UNO_QUERY );
- Reference< XExporter > xExporter( Reference<css::lang::XMultiServiceFactory>(mpFB->getComponentContext()->getServiceManager(), UNO_QUERY_THROW)->createInstance( "com.sun.star.comp.oox.ExcelFilterExport" ), UNO_QUERY );;
- if( xDocument.is() && xExporter.is())
+ Reference< XExporter > xExporter = css::oox::ExcelFilterExport::create( mpFB->getComponentContext() );
+ if( xDocument.is() )
{
Reference< XOutputStream > xOutStream = mpFB->openFragmentStream( OUStringBuffer()
.appendAscii( GetComponentDir() )