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

Caolán McNamara caolanm at redhat.com
Thu Nov 6 07:53:10 PST 2014


 svl/source/numbers/supservs.cxx |   29 -----------------------------
 svl/source/numbers/supservs.hxx |    8 --------
 2 files changed, 37 deletions(-)

New commits:
commit 177fa1197655dea6195ccdc421b0054b7201a716
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Nov 6 09:08:08 2014 +0000

    drop XPersistObject support from SvNumberFormatsSupplierService
    
    why should css.util.NumberFormatsSupplier support XPersistObject and need
    read/write support ?
    
    Change-Id: I62bc2fa3a0adef6cf5b7006f4e2bf3a9a157043d
    Reviewed-on: https://gerrit.libreoffice.org/12281
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>

diff --git a/svl/source/numbers/supservs.cxx b/svl/source/numbers/supservs.cxx
index d178694..e6995ab 100644
--- a/svl/source/numbers/supservs.cxx
+++ b/svl/source/numbers/supservs.cxx
@@ -63,7 +63,6 @@ Any SAL_CALL SvNumberFormatsSupplierServiceObject::queryAggregation( const Type&
 {
     Any aReturn = ::cppu::queryInterface(_rType,
         static_cast< XInitialization* >(this),
-        static_cast< XPersistObject* >(this),
         static_cast< XServiceInfo* >(this)
     );
 
@@ -131,34 +130,6 @@ Sequence< OUString > SAL_CALL SvNumberFormatsSupplierServiceObject::getSupported
     return aSupported;
 }
 
-OUString SAL_CALL SvNumberFormatsSupplierServiceObject::getServiceName(  ) throw(RuntimeException, std::exception)
-{
-    return PERSISTENT_SERVICE_NAME;
-}
-
-void SAL_CALL SvNumberFormatsSupplierServiceObject::write( const Reference< XObjectOutputStream >& _rxOutStream ) throw(IOException, RuntimeException, std::exception)
-{
-    ::osl::MutexGuard aGuard( getSharedMutex() );
-    implEnsureFormatter();
-
-    Reference< XOutputStream > xStream(_rxOutStream.get());
-    SvLockBytesRef aLockBytes = new SvOutputStreamOpenLockBytes(xStream);
-    SvStream aSvOutputSteam(aLockBytes);
-
-    m_pOwnFormatter->Save(aSvOutputSteam);
-}
-
-void SAL_CALL SvNumberFormatsSupplierServiceObject::read( const Reference< XObjectInputStream >& _rxInStream ) throw(IOException, RuntimeException, std::exception)
-{
-    ::osl::MutexGuard aGuard( getSharedMutex() );
-    implEnsureFormatter();
-
-    Reference< XInputStream > xStream(_rxInStream.get());
-    SvInputStream aSvInputSteam(xStream);
-
-    m_pOwnFormatter->Load(aSvInputSteam);
-}
-
 Reference< XPropertySet > SAL_CALL SvNumberFormatsSupplierServiceObject::getNumberFormatSettings() throw(RuntimeException, std::exception)
 {
     ::osl::MutexGuard aGuard( getSharedMutex() );
diff --git a/svl/source/numbers/supservs.hxx b/svl/source/numbers/supservs.hxx
index 4df46ff..b2bed8e 100644
--- a/svl/source/numbers/supservs.hxx
+++ b/svl/source/numbers/supservs.hxx
@@ -24,14 +24,12 @@
 #include <svl/zforlist.hxx>
 #include <com/sun/star/lang/XInitialization.hpp>
 #include <com/sun/star/lang/XServiceInfo.hpp>
-#include <com/sun/star/io/XPersistObject.hpp>
 
 #include <registerservices.hxx>
 
 /**
  * SvNumberFormatsSupplierServiceObject - a number formats supplier which
  * - can be instantiated as an service
- * - supports the ::com::sun::star::io::XPersistObject interface
  * - works with it's own SvNumberFormatter instance
  * - can be initialized (::com::sun::star::lang::XInitialization)
  * with a specific language (i.e. ::com::sun::star::lang::Locale)
@@ -39,7 +37,6 @@
 class SvNumberFormatsSupplierServiceObject
             :protected SvNumberFormatsSupplierObj
             ,public ::com::sun::star::lang::XInitialization
-            ,public ::com::sun::star::io::XPersistObject
             ,public ::com::sun::star::lang::XServiceInfo
 {   // don't want the Set-/GetNumberFormatter to be accessible from outside
 
@@ -73,11 +70,6 @@ public:
     virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
 
-    // XPersistObject
-    virtual OUString SAL_CALL getServiceName(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
-    virtual void SAL_CALL write( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream >& OutStream ) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
-    virtual void SAL_CALL read( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream >& InStream ) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
-
     // XNumberFormatsSupplier
     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL
                 getNumberFormatSettings() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;


More information about the Libreoffice-commits mailing list