[Libreoffice-commits] .: Branch 'integration/dev300_m98' - oox/source

Thorsten Behrens thorsten at kemper.freedesktop.org
Tue Mar 8 11:32:12 PST 2011


 oox/source/ppt/pptimport.cxx   |    4 +---
 oox/source/xls/excelfilter.cxx |    4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

New commits:
commit 01b6944a3141759b20dc7307f0c4116335eed1c4
Author: Thorsten Behrens <tbehrens at novell.com>
Date:   Tue Mar 8 20:23:21 2011 +0100

    Fix two remaining servicefactory workarounds
    
    Enable code again, replace getGlobalFactory with getServiceFactory

diff --git a/oox/source/ppt/pptimport.cxx b/oox/source/ppt/pptimport.cxx
index 5918fc1..07f23c5 100644
--- a/oox/source/ppt/pptimport.cxx
+++ b/oox/source/ppt/pptimport.cxx
@@ -147,9 +147,8 @@ sal_Bool SAL_CALL PowerPointImport::filter( const Sequence< PropertyValue >& rDe
 {
     if( XmlFilterBase::filter( rDescriptor ) )
         return true;
-#if 0 // FIXME
     if( isExportFilter() ) {
-        Reference< XExporter > xExporter( getGlobalFactory()->createInstance( CREATE_OUSTRING( "com.sun.star.comp.Impress.oox.PowerPointExport" ) ), UNO_QUERY );
+        Reference< XExporter > xExporter( getServiceFactory()->createInstance( CREATE_OUSTRING( "com.sun.star.comp.Impress.oox.PowerPointExport" ) ), UNO_QUERY );
 
         if( xExporter.is() ) {
             Reference< XComponent > xDocument( getModel(), UNO_QUERY );
@@ -162,7 +161,6 @@ sal_Bool SAL_CALL PowerPointImport::filter( const Sequence< PropertyValue >& rDe
             }
         }
     }
-#endif
     return false;
 }
 
diff --git a/oox/source/xls/excelfilter.cxx b/oox/source/xls/excelfilter.cxx
index 6efb795..5ac9b13 100644
--- a/oox/source/xls/excelfilter.cxx
+++ b/oox/source/xls/excelfilter.cxx
@@ -164,10 +164,9 @@ sal_Bool SAL_CALL ExcelFilter::filter( const ::com::sun::star::uno::Sequence< ::
 {
     if ( XmlFilterBase::filter( rDescriptor ) )
         return true;
-#if 0 /* FIXME */
     if ( isExportFilter() )
     {
-        Reference< XExporter > xExporter( getGlobalFactory()->createInstance( CREATE_OUSTRING( "com.sun.star.comp.oox.ExcelFilterExport" ) ), UNO_QUERY );
+        Reference< XExporter > xExporter( getServiceFactory()->createInstance( CREATE_OUSTRING( "com.sun.star.comp.oox.ExcelFilterExport" ) ), UNO_QUERY );
 
         if ( xExporter.is() )
         {
@@ -182,7 +181,6 @@ sal_Bool SAL_CALL ExcelFilter::filter( const ::com::sun::star::uno::Sequence< ::
             }
         }
     }
-#endif /* FIXME */
     return false;
 }
 


More information about the Libreoffice-commits mailing list