Kaydet (Commit) 4cf5556f authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

use WeakImplHelper for ucb FileProvider

Change-Id: I7de8301fc1a071f91d25f559ace44e9f27040d63
üst 37aeda6b
...@@ -102,45 +102,6 @@ FileProvider::~FileProvider() ...@@ -102,45 +102,6 @@ FileProvider::~FileProvider()
// XInterface
void SAL_CALL
FileProvider::acquire(
void )
throw()
{
OWeakObject::acquire();
}
void SAL_CALL
FileProvider::release(
void )
throw()
{
OWeakObject::release();
}
Any SAL_CALL
FileProvider::queryInterface(
const Type& rType )
throw( RuntimeException, std::exception )
{
Any aRet = cppu::queryInterface(
rType,
(static_cast< XContentProvider* >(this)),
(static_cast< XInitialization* >(this)),
(static_cast< XContentIdentifierFactory* >(this)),
(static_cast< XServiceInfo* >(this)),
(static_cast< XTypeProvider* >(this)),
(static_cast< XFileIdentifierConverter* >(this)),
(static_cast< XPropertySet* >(this)) );
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
// XInitialization // XInitialization
void SAL_CALL FileProvider::init() void SAL_CALL FileProvider::init()
...@@ -166,23 +127,6 @@ FileProvider::initialize( ...@@ -166,23 +127,6 @@ FileProvider::initialize(
} }
} }
// XTypeProvider methods.
XTYPEPROVIDER_IMPL_7( FileProvider,
XTypeProvider,
XServiceInfo,
XInitialization,
XContentIdentifierFactory,
XPropertySet,
XFileIdentifierConverter,
XContentProvider )
// XServiceInfo methods. // XServiceInfo methods.
OUString SAL_CALL OUString SAL_CALL
FileProvider::getImplementationName() FileProvider::getImplementationName()
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/ucb/XFileIdentifierConverter.hpp> #include <com/sun/star/ucb/XFileIdentifierConverter.hpp>
#include <com/sun/star/container/XHierarchicalNameAccess.hpp> #include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <cppuhelper/implbase6.hxx>
// FileProvider // FileProvider
...@@ -47,15 +48,13 @@ namespace fileaccess { ...@@ -47,15 +48,13 @@ namespace fileaccess {
class BaseContent; class BaseContent;
class shell; class shell;
class FileProvider: class FileProvider: public cppu::WeakImplHelper6 <
public cppu::OWeakObject, css::lang::XServiceInfo,
public com::sun::star::lang::XServiceInfo, css::lang::XInitialization,
public com::sun::star::lang::XInitialization, css::ucb::XContentProvider,
public com::sun::star::lang::XTypeProvider, css::ucb::XContentIdentifierFactory,
public com::sun::star::ucb::XContentProvider, css::beans::XPropertySet,
public com::sun::star::ucb::XContentIdentifierFactory, css::ucb::XFileIdentifierConverter >
public com::sun::star::beans::XPropertySet,
public com::sun::star::ucb::XFileIdentifierConverter
{ {
friend class BaseContent; friend class BaseContent;
public: public:
...@@ -63,22 +62,6 @@ namespace fileaccess { ...@@ -63,22 +62,6 @@ namespace fileaccess {
FileProvider( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); FileProvider( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext );
~FileProvider(); ~FileProvider();
// XInterface
virtual com::sun::star::uno::Any SAL_CALL
queryInterface(
const com::sun::star::uno::Type& aType )
throw( com::sun::star::uno::RuntimeException, std::exception);
virtual void SAL_CALL
acquire(
void )
throw();
virtual void SAL_CALL
release(
void )
throw();
// XServiceInfo // XServiceInfo
virtual OUString SAL_CALL virtual OUString SAL_CALL
getImplementationName( getImplementationName(
...@@ -104,13 +87,6 @@ namespace fileaccess { ...@@ -104,13 +87,6 @@ namespace fileaccess {
CreateInstance( CreateInstance(
const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& xMultiServiceFactory ); const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& xMultiServiceFactory );
// XTypeProvider
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
throw( css::uno::RuntimeException, std::exception );
virtual css::uno::Sequence< com::sun::star::uno::Type > SAL_CALL getTypes()
throw( css::uno::RuntimeException, std::exception );
// XInitialization // XInitialization
virtual void SAL_CALL virtual void SAL_CALL
initialize( initialize(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment