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()
// 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
void SAL_CALL FileProvider::init()
......@@ -166,23 +127,6 @@ FileProvider::initialize(
}
}
// XTypeProvider methods.
XTYPEPROVIDER_IMPL_7( FileProvider,
XTypeProvider,
XServiceInfo,
XInitialization,
XContentIdentifierFactory,
XPropertySet,
XFileIdentifierConverter,
XContentProvider )
// XServiceInfo methods.
OUString SAL_CALL
FileProvider::getImplementationName()
......
......@@ -35,6 +35,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/ucb/XFileIdentifierConverter.hpp>
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <cppuhelper/implbase6.hxx>
// FileProvider
......@@ -47,15 +48,13 @@ namespace fileaccess {
class BaseContent;
class shell;
class FileProvider:
public cppu::OWeakObject,
public com::sun::star::lang::XServiceInfo,
public com::sun::star::lang::XInitialization,
public com::sun::star::lang::XTypeProvider,
public com::sun::star::ucb::XContentProvider,
public com::sun::star::ucb::XContentIdentifierFactory,
public com::sun::star::beans::XPropertySet,
public com::sun::star::ucb::XFileIdentifierConverter
class FileProvider: public cppu::WeakImplHelper6 <
css::lang::XServiceInfo,
css::lang::XInitialization,
css::ucb::XContentProvider,
css::ucb::XContentIdentifierFactory,
css::beans::XPropertySet,
css::ucb::XFileIdentifierConverter >
{
friend class BaseContent;
public:
......@@ -63,22 +62,6 @@ namespace fileaccess {
FileProvider( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext );
~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
virtual OUString SAL_CALL
getImplementationName(
......@@ -104,13 +87,6 @@ namespace fileaccess {
CreateInstance(
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
virtual void SAL_CALL
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