[Libreoffice-commits] core.git: writerperfect/source

Fridrich Å trba fridrich.strba at bluewin.ch
Fri Jul 12 08:09:51 PDT 2013


 writerperfect/source/draw/CDRImportFilter.cxx   |   48 ++++++------------------
 writerperfect/source/draw/CMXImportFilter.cxx   |   48 ++++++------------------
 writerperfect/source/draw/MSPUBImportFilter.cxx |   48 ++++++------------------
 writerperfect/source/draw/VisioImportFilter.cxx |   48 ++++++------------------
 writerperfect/source/draw/WPGImportFilter.cxx   |   48 ++++++------------------
 5 files changed, 60 insertions(+), 180 deletions(-)

New commits:
commit 49bf747c8fc65d66421fa3a074e19534ddb52c61
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date:   Fri Jul 12 17:08:43 2013 +0200

    More SAL_INFO in writerperfect
    
    Change-Id: Ifeef0fab105bec8c42c7f3844dde5d7f81e264b5

diff --git a/writerperfect/source/draw/CDRImportFilter.cxx b/writerperfect/source/draw/CDRImportFilter.cxx
index 7f5287c..110e922 100644
--- a/writerperfect/source/draw/CDRImportFilter.cxx
+++ b/writerperfect/source/draw/CDRImportFilter.cxx
@@ -57,9 +57,7 @@ using com::sun::star::xml::sax::XParser;
 sal_Bool SAL_CALL CDRImportFilter::filter( const Sequence< ::com::sun::star::beans::PropertyValue >& aDescriptor )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CDRImportFilter::filter" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CDRImportFilter::filter");
     sal_Int32 nLength = aDescriptor.getLength();
     const PropertyValue *pValue = aDescriptor.getConstArray();
     Reference < XInputStream > xInputStream;
@@ -96,18 +94,14 @@ throw (RuntimeException)
 void SAL_CALL CDRImportFilter::cancel(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CDRImportFilter::cancel" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CDRImportFilter::cancel");
 }
 
 // XImporter
 void SAL_CALL CDRImportFilter::setTargetDocument( const Reference< ::com::sun::star::lang::XComponent >& xDoc )
 throw (::com::sun::star::lang::IllegalArgumentException, RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CDRImportFilter::setTargetDocument" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CDRImportFilter::setTargetDocument");
     mxDoc = xDoc;
 }
 
@@ -115,9 +109,7 @@ throw (::com::sun::star::lang::IllegalArgumentException, RuntimeException)
 OUString SAL_CALL CDRImportFilter::detect( com::sun::star::uno::Sequence< PropertyValue >& Descriptor )
 throw( com::sun::star::uno::RuntimeException )
 {
-#ifdef DEBUG
-    std::cerr << "CDRImportFilter::detect" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CDRImportFilter::detect");
     OUString sTypeName;
     sal_Int32 nLength = Descriptor.getLength();
     sal_Int32 location = nLength;
@@ -157,9 +149,7 @@ throw( com::sun::star::uno::RuntimeException )
 void SAL_CALL CDRImportFilter::initialize( const Sequence< Any >& aArguments )
 throw (Exception, RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CDRImportFilter::initialize" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CDRImportFilter::initialize");
     Sequence < PropertyValue > aAnySeq;
     sal_Int32 nLength = aArguments.getLength();
     if ( nLength && ( aArguments[0] >>= aAnySeq ) )
@@ -179,9 +169,7 @@ throw (Exception, RuntimeException)
 OUString CDRImportFilter_getImplementationName ()
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CDRImportFilter_getImplementationName" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CDRImportFilter_getImplementationName");
     return OUString ( "com.sun.star.comp.Draw.CDRImportFilter" );
 }
 
@@ -190,17 +178,13 @@ throw (RuntimeException)
 sal_Bool SAL_CALL CDRImportFilter_supportsService( const OUString &ServiceName )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CDRImportFilter_supportsService" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CDRImportFilter_supportsService");
     return ( ServiceName == SERVICE_NAME1 || ServiceName == SERVICE_NAME2 );
 }
 Sequence< OUString > SAL_CALL CDRImportFilter_getSupportedServiceNames(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CDRImportFilter_getSupportedServiceNames" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CDRImportFilter_getSupportedServiceNames");
     Sequence < OUString > aRet(2);
     OUString *pArray = aRet.getArray();
     pArray[0] =  OUString ( SERVICE_NAME1 );
@@ -213,9 +197,7 @@ throw (RuntimeException)
 Reference< XInterface > SAL_CALL CDRImportFilter_createInstance( const Reference< XComponentContext > & rContext)
 throw( Exception )
 {
-#ifdef DEBUG
-    std::cerr << "CDRImportFilter_createInstance" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CDRImportFilter_createInstance");
     return (cppu::OWeakObject *) new CDRImportFilter( rContext );
 }
 
@@ -223,25 +205,19 @@ throw( Exception )
 OUString SAL_CALL CDRImportFilter::getImplementationName(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CDRImportFilter::getImplementationName" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CDRImportFilter::getImplementationName");
     return CDRImportFilter_getImplementationName();
 }
 sal_Bool SAL_CALL CDRImportFilter::supportsService( const OUString &rServiceName )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CDRImportFilter::supportsService" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CDRImportFilter::supportsService");
     return CDRImportFilter_supportsService( rServiceName );
 }
 Sequence< OUString > SAL_CALL CDRImportFilter::getSupportedServiceNames(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CDRImportFilter::getSupportedServiceNames" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CDRImportFilter::getSupportedServiceNames");
     return CDRImportFilter_getSupportedServiceNames();
 }
 
diff --git a/writerperfect/source/draw/CMXImportFilter.cxx b/writerperfect/source/draw/CMXImportFilter.cxx
index 22d7b3c..bf91f54 100644
--- a/writerperfect/source/draw/CMXImportFilter.cxx
+++ b/writerperfect/source/draw/CMXImportFilter.cxx
@@ -57,9 +57,7 @@ using com::sun::star::xml::sax::XParser;
 sal_Bool SAL_CALL CMXImportFilter::filter( const Sequence< ::com::sun::star::beans::PropertyValue >& aDescriptor )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CMXImportFilter::filter" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CMXImportFilter::filter");
     sal_Int32 nLength = aDescriptor.getLength();
     const PropertyValue *pValue = aDescriptor.getConstArray();
     Reference < XInputStream > xInputStream;
@@ -96,18 +94,14 @@ throw (RuntimeException)
 void SAL_CALL CMXImportFilter::cancel(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CMXImportFilter::cancel" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CMXImportFilter::cancel");
 }
 
 // XImporter
 void SAL_CALL CMXImportFilter::setTargetDocument( const Reference< ::com::sun::star::lang::XComponent >& xDoc )
 throw (::com::sun::star::lang::IllegalArgumentException, RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CMXImportFilter::setTargetDocument" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CMXImportFilter::setTargetDocument");
     mxDoc = xDoc;
 }
 
@@ -115,9 +109,7 @@ throw (::com::sun::star::lang::IllegalArgumentException, RuntimeException)
 OUString SAL_CALL CMXImportFilter::detect( com::sun::star::uno::Sequence< PropertyValue >& Descriptor )
 throw( com::sun::star::uno::RuntimeException )
 {
-#ifdef DEBUG
-    std::cerr << "CMXImportFilter::detect" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CMXImportFilter::detect");
     OUString sTypeName;
     sal_Int32 nLength = Descriptor.getLength();
     sal_Int32 location = nLength;
@@ -157,9 +149,7 @@ throw( com::sun::star::uno::RuntimeException )
 void SAL_CALL CMXImportFilter::initialize( const Sequence< Any >& aArguments )
 throw (Exception, RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CMXImportFilter::initialize" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CMXImportFilter::initialize");
     Sequence < PropertyValue > aAnySeq;
     sal_Int32 nLength = aArguments.getLength();
     if ( nLength && ( aArguments[0] >>= aAnySeq ) )
@@ -179,9 +169,7 @@ throw (Exception, RuntimeException)
 OUString CMXImportFilter_getImplementationName ()
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CMXImportFilter_getImplementationName" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CMXImportFilter_getImplementationName");
     return OUString ( "com.sun.star.comp.Draw.CMXImportFilter" );
 }
 
@@ -190,17 +178,13 @@ throw (RuntimeException)
 sal_Bool SAL_CALL CMXImportFilter_supportsService( const OUString &ServiceName )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CMXImportFilter_supportsService" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CMXImportFilter_supportsService");
     return ( ServiceName == SERVICE_NAME1 || ServiceName == SERVICE_NAME2 );
 }
 Sequence< OUString > SAL_CALL CMXImportFilter_getSupportedServiceNames(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CMXImportFilter_getSupportedServiceNames" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CMXImportFilter_getSupportedServiceNames");
     Sequence < OUString > aRet(2);
     OUString *pArray = aRet.getArray();
     pArray[0] =  OUString ( SERVICE_NAME1 );
@@ -213,9 +197,7 @@ throw (RuntimeException)
 Reference< XInterface > SAL_CALL CMXImportFilter_createInstance( const Reference< XComponentContext > & rContext)
 throw( Exception )
 {
-#ifdef DEBUG
-    std::cerr << "CMXImportFilter_createInstance" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CMXImportFilter_createInstance");
     return (cppu::OWeakObject *) new CMXImportFilter( rContext );
 }
 
@@ -223,25 +205,19 @@ throw( Exception )
 OUString SAL_CALL CMXImportFilter::getImplementationName(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CMXImportFilter::getImplementationName" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CMXImportFilter::getImplementationName");
     return CMXImportFilter_getImplementationName();
 }
 sal_Bool SAL_CALL CMXImportFilter::supportsService( const OUString &rServiceName )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CMXImportFilter::supportsService" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CMXImportFilter::supportsService");
     return CMXImportFilter_supportsService( rServiceName );
 }
 Sequence< OUString > SAL_CALL CMXImportFilter::getSupportedServiceNames(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "CMXImportFilter::getSupportedServiceNames" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "CMXImportFilter::getSupportedServiceNames");
     return CMXImportFilter_getSupportedServiceNames();
 }
 
diff --git a/writerperfect/source/draw/MSPUBImportFilter.cxx b/writerperfect/source/draw/MSPUBImportFilter.cxx
index d280c69..088058c 100644
--- a/writerperfect/source/draw/MSPUBImportFilter.cxx
+++ b/writerperfect/source/draw/MSPUBImportFilter.cxx
@@ -53,9 +53,7 @@ using com::sun::star::xml::sax::XParser;
 sal_Bool SAL_CALL MSPUBImportFilter::filter( const Sequence< ::com::sun::star::beans::PropertyValue >& aDescriptor )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "MSPUBImportFilter::filter" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "MSPUBImportFilter::filter");
     sal_Int32 nLength = aDescriptor.getLength();
     const PropertyValue *pValue = aDescriptor.getConstArray();
     Reference < XInputStream > xInputStream;
@@ -92,18 +90,14 @@ throw (RuntimeException)
 void SAL_CALL MSPUBImportFilter::cancel(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "MSPUBImportFilter::cancel" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "MSPUBImportFilter::cancel");
 }
 
 // XImporter
 void SAL_CALL MSPUBImportFilter::setTargetDocument( const Reference< ::com::sun::star::lang::XComponent >& xDoc )
 throw (::com::sun::star::lang::IllegalArgumentException, RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "MSPUBImportFilter::setTargetDocument" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "MSPUBImportFilter::setTargetDocument");
     mxDoc = xDoc;
 }
 
@@ -111,9 +105,7 @@ throw (::com::sun::star::lang::IllegalArgumentException, RuntimeException)
 OUString SAL_CALL MSPUBImportFilter::detect( com::sun::star::uno::Sequence< PropertyValue >& Descriptor )
 throw( com::sun::star::uno::RuntimeException )
 {
-#ifdef DEBUG
-    std::cerr << "MSPUBImportFilter::detect" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "MSPUBImportFilter::detect");
     OUString sTypeName;
     sal_Int32 nLength = Descriptor.getLength();
     sal_Int32 location = nLength;
@@ -153,9 +145,7 @@ throw( com::sun::star::uno::RuntimeException )
 void SAL_CALL MSPUBImportFilter::initialize( const Sequence< Any >& aArguments )
 throw (Exception, RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "MSPUBImportFilter::initialize" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "MSPUBImportFilter::initialize");
     Sequence < PropertyValue > aAnySeq;
     sal_Int32 nLength = aArguments.getLength();
     if ( nLength && ( aArguments[0] >>= aAnySeq ) )
@@ -175,9 +165,7 @@ throw (Exception, RuntimeException)
 OUString MSPUBImportFilter_getImplementationName ()
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "MSPUBImportFilter_getImplementationName" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "MSPUBImportFilter_getImplementationName");
     return OUString ( "com.sun.star.comp.Draw.MSPUBImportFilter" );
 }
 
@@ -186,17 +174,13 @@ throw (RuntimeException)
 sal_Bool SAL_CALL MSPUBImportFilter_supportsService( const OUString &ServiceName )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "MSPUBImportFilter_supportsService" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "MSPUBImportFilter_supportsService");
     return ( ServiceName == SERVICE_NAME1 || ServiceName == SERVICE_NAME2 );
 }
 Sequence< OUString > SAL_CALL MSPUBImportFilter_getSupportedServiceNames(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "MSPUBImportFilter_getSupportedServiceNames" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "MSPUBImportFilter_getSupportedServiceNames");
     Sequence < OUString > aRet(2);
     OUString *pArray = aRet.getArray();
     pArray[0] =  OUString ( SERVICE_NAME1 );
@@ -209,9 +193,7 @@ throw (RuntimeException)
 Reference< XInterface > SAL_CALL MSPUBImportFilter_createInstance( const Reference< XComponentContext > & rContext)
 throw( Exception )
 {
-#ifdef DEBUG
-    std::cerr << "MSPUBImportFilter_createInstance" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "MSPUBImportFilter_createInstance");
     return (cppu::OWeakObject *) new MSPUBImportFilter( rContext );
 }
 
@@ -219,25 +201,19 @@ throw( Exception )
 OUString SAL_CALL MSPUBImportFilter::getImplementationName(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "MSPUBImportFilter::getImplementationName" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "MSPUBImportFilter::getImplementationName");
     return MSPUBImportFilter_getImplementationName();
 }
 sal_Bool SAL_CALL MSPUBImportFilter::supportsService( const OUString &rServiceName )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "MSPUBImportFilter::supportsService" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "MSPUBImportFilter::supportsService");
     return MSPUBImportFilter_supportsService( rServiceName );
 }
 Sequence< OUString > SAL_CALL MSPUBImportFilter::getSupportedServiceNames(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "MSPUBImportFilter::getSupportedServiceNames" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "MSPUBImportFilter::getSupportedServiceNames");
     return MSPUBImportFilter_getSupportedServiceNames();
 }
 
diff --git a/writerperfect/source/draw/VisioImportFilter.cxx b/writerperfect/source/draw/VisioImportFilter.cxx
index ee757e4..e7f85d7 100644
--- a/writerperfect/source/draw/VisioImportFilter.cxx
+++ b/writerperfect/source/draw/VisioImportFilter.cxx
@@ -53,9 +53,7 @@ using com::sun::star::xml::sax::XParser;
 sal_Bool SAL_CALL VisioImportFilter::filter( const Sequence< ::com::sun::star::beans::PropertyValue >& aDescriptor )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "VisioImportFilter::filter" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "VisioImportFilter::filter");
     sal_Int32 nLength = aDescriptor.getLength();
     const PropertyValue *pValue = aDescriptor.getConstArray();
     Reference < XInputStream > xInputStream;
@@ -92,18 +90,14 @@ throw (RuntimeException)
 void SAL_CALL VisioImportFilter::cancel(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "VisioImportFilter::cancel" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "VisioImportFilter::cancel");
 }
 
 // XImporter
 void SAL_CALL VisioImportFilter::setTargetDocument( const Reference< ::com::sun::star::lang::XComponent >& xDoc )
 throw (::com::sun::star::lang::IllegalArgumentException, RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "VisioImportFilter::setTargetDocument" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "VisioImportFilter::setTargetDocument");
     mxDoc = xDoc;
 }
 
@@ -111,9 +105,7 @@ throw (::com::sun::star::lang::IllegalArgumentException, RuntimeException)
 OUString SAL_CALL VisioImportFilter::detect( com::sun::star::uno::Sequence< PropertyValue >& Descriptor )
 throw( com::sun::star::uno::RuntimeException )
 {
-#ifdef DEBUG
-    std::cerr << "VisioImportFilter::detect" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "VisioImportFilter::detect");
     OUString sTypeName;
     sal_Int32 nLength = Descriptor.getLength();
     sal_Int32 location = nLength;
@@ -153,9 +145,7 @@ throw( com::sun::star::uno::RuntimeException )
 void SAL_CALL VisioImportFilter::initialize( const Sequence< Any >& aArguments )
 throw (Exception, RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "VisioImportFilter::initialize" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "VisioImportFilter::initialize");
     Sequence < PropertyValue > aAnySeq;
     sal_Int32 nLength = aArguments.getLength();
     if ( nLength && ( aArguments[0] >>= aAnySeq ) )
@@ -175,9 +165,7 @@ throw (Exception, RuntimeException)
 OUString VisioImportFilter_getImplementationName ()
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "VisioImportFilter_getImplementationName" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "VisioImportFilter_getImplementationName");
     return OUString ( "com.sun.star.comp.Draw.VisioImportFilter" );
 }
 
@@ -186,17 +174,13 @@ throw (RuntimeException)
 sal_Bool SAL_CALL VisioImportFilter_supportsService( const OUString &ServiceName )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "VisioImportFilter_supportsService" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "VisioImportFilter_supportsService");
     return ( ServiceName == SERVICE_NAME1 || ServiceName == SERVICE_NAME2 );
 }
 Sequence< OUString > SAL_CALL VisioImportFilter_getSupportedServiceNames(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "VisioImportFilter_getSupportedServiceNames" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "VisioImportFilter_getSupportedServiceNames");
     Sequence < OUString > aRet(2);
     OUString *pArray = aRet.getArray();
     pArray[0] =  OUString ( SERVICE_NAME1 );
@@ -209,9 +193,7 @@ throw (RuntimeException)
 Reference< XInterface > SAL_CALL VisioImportFilter_createInstance( const Reference< XComponentContext > & rContext)
 throw( Exception )
 {
-#ifdef DEBUG
-    std::cerr << "VisioImportFilter_createInstance" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "VisioImportFilter_createInstance");
     return (cppu::OWeakObject *) new VisioImportFilter( rContext );
 }
 
@@ -219,25 +201,19 @@ throw( Exception )
 OUString SAL_CALL VisioImportFilter::getImplementationName(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "VisioImportFilter::getImplementationName" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "VisioImportFilter::getImplementationName");
     return VisioImportFilter_getImplementationName();
 }
 sal_Bool SAL_CALL VisioImportFilter::supportsService( const OUString &rServiceName )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "VisioImportFilter::supportsService" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "VisioImportFilter::supportsService");
     return VisioImportFilter_supportsService( rServiceName );
 }
 Sequence< OUString > SAL_CALL VisioImportFilter::getSupportedServiceNames(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "VisioImportFilter::getSupportedServiceNames" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "VisioImportFilter::getSupportedServiceNames");
     return VisioImportFilter_getSupportedServiceNames();
 }
 
diff --git a/writerperfect/source/draw/WPGImportFilter.cxx b/writerperfect/source/draw/WPGImportFilter.cxx
index 929ac9d..f52d425 100644
--- a/writerperfect/source/draw/WPGImportFilter.cxx
+++ b/writerperfect/source/draw/WPGImportFilter.cxx
@@ -59,9 +59,7 @@ using com::sun::star::xml::sax::XParser;
 sal_Bool SAL_CALL WPGImportFilter::filter( const Sequence< ::com::sun::star::beans::PropertyValue >& aDescriptor )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "WPGImportFilter::filter" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "WPGImportFilter::filter");
     sal_Int32 nLength = aDescriptor.getLength();
     const PropertyValue *pValue = aDescriptor.getConstArray();
     Reference < XInputStream > xInputStream;
@@ -98,18 +96,14 @@ throw (RuntimeException)
 void SAL_CALL WPGImportFilter::cancel(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "WPGImportFilter::cancel" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "WPGImportFilter::cancel");
 }
 
 // XImporter
 void SAL_CALL WPGImportFilter::setTargetDocument( const Reference< ::com::sun::star::lang::XComponent >& xDoc )
 throw (::com::sun::star::lang::IllegalArgumentException, RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "WPGImportFilter::setTargetDocument" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "WPGImportFilter::setTargetDocument");
     mxDoc = xDoc;
 }
 
@@ -117,9 +111,7 @@ throw (::com::sun::star::lang::IllegalArgumentException, RuntimeException)
 OUString SAL_CALL WPGImportFilter::detect( com::sun::star::uno::Sequence< PropertyValue >& Descriptor )
 throw( com::sun::star::uno::RuntimeException )
 {
-#ifdef DEBUG
-    std::cerr << "WPGImportFilter::detect" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "WPGImportFilter::detect");
     OUString sTypeName;
     sal_Int32 nLength = Descriptor.getLength();
     sal_Int32 location = nLength;
@@ -159,9 +151,7 @@ throw( com::sun::star::uno::RuntimeException )
 void SAL_CALL WPGImportFilter::initialize( const Sequence< Any >& aArguments )
 throw (Exception, RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "WPGImportFilter::initialize" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "WPGImportFilter::initialize");
     Sequence < PropertyValue > aAnySeq;
     sal_Int32 nLength = aArguments.getLength();
     if ( nLength && ( aArguments[0] >>= aAnySeq ) )
@@ -181,9 +171,7 @@ throw (Exception, RuntimeException)
 OUString WPGImportFilter_getImplementationName ()
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "WPGImportFilter_getImplementationName" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "WPGImportFilter_getImplementationName");
     return OUString (  "com.sun.star.comp.Draw.WPGImportFilter"  );
 }
 
@@ -192,17 +180,13 @@ throw (RuntimeException)
 sal_Bool SAL_CALL WPGImportFilter_supportsService( const OUString &ServiceName )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "WPGImportFilter_supportsService" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "WPGImportFilter_supportsService");
     return ( ServiceName == SERVICE_NAME1 || ServiceName == SERVICE_NAME2 );
 }
 Sequence< OUString > SAL_CALL WPGImportFilter_getSupportedServiceNames(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "WPGImportFilter_getSupportedServiceNames" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "WPGImportFilter_getSupportedServiceNames");
     Sequence < OUString > aRet(2);
     OUString *pArray = aRet.getArray();
     pArray[0] =  OUString (  SERVICE_NAME1  );
@@ -215,9 +199,7 @@ throw (RuntimeException)
 Reference< XInterface > SAL_CALL WPGImportFilter_createInstance( const Reference< XComponentContext > & rContext)
 throw( Exception )
 {
-#ifdef DEBUG
-    std::cerr << "WPGImportFilter_createInstance" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "WPGImportFilter_createInstance");
     return (cppu::OWeakObject *) new WPGImportFilter( rContext );
 }
 
@@ -225,25 +207,19 @@ throw( Exception )
 OUString SAL_CALL WPGImportFilter::getImplementationName(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "WPGImportFilter::getImplementationName" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "WPGImportFilter::getImplementationName");
     return WPGImportFilter_getImplementationName();
 }
 sal_Bool SAL_CALL WPGImportFilter::supportsService( const OUString &rServiceName )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "WPGImportFilter::supportsService" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "WPGImportFilter::supportsService");
     return WPGImportFilter_supportsService( rServiceName );
 }
 Sequence< OUString > SAL_CALL WPGImportFilter::getSupportedServiceNames(  )
 throw (RuntimeException)
 {
-#ifdef DEBUG
-    std::cerr << "WPGImportFilter::getSupportedServiceNames" << std::endl;
-#endif
+    SAL_INFO("writerperfect", "WPGImportFilter::getSupportedServiceNames");
     return WPGImportFilter_getSupportedServiceNames();
 }
 


More information about the Libreoffice-commits mailing list