diff options
Diffstat (limited to 'ucb/source/ucp/package')
-rw-r--r-- | ucb/source/ucp/package/pkgcontent.hxx | 5 | ||||
-rw-r--r-- | ucb/source/ucp/package/pkgprovider.cxx | 21 |
2 files changed, 22 insertions, 4 deletions
diff --git a/ucb/source/ucp/package/pkgcontent.hxx b/ucb/source/ucp/package/pkgcontent.hxx index 2c9ee77f0a71..865fe9167b15 100644 --- a/ucb/source/ucp/package/pkgcontent.hxx +++ b/ucb/source/ucp/package/pkgcontent.hxx @@ -131,6 +131,7 @@ private: css::uno::Reference< css::sdbc::XRow > getPropertyValues( const css::uno::Sequence< css::beans::Property >& rProperties ); + /// @throws css::uno::Exception css::uno::Sequence< css::uno::Any > setPropertyValues( const css::uno::Sequence< css::beans::PropertyValue >& rValues, const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) @@ -172,21 +173,25 @@ private: exchangeIdentity( const css::uno::Reference< css::ucb::XContentIdentifier >& xNewId ); + /// @throws css::uno::Exception css::uno::Any open( const css::ucb::OpenCommandArgument2& rArg, const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) throw( css::uno::Exception, std::exception ); + /// @throws css::uno::Exception void insert( const css::uno::Reference< css::io::XInputStream >& xStream, sal_Int32 nNameClashResolve, const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) throw( css::uno::Exception, std::exception ); + /// @throws css::uno::Exception void destroy( bool bDeletePhysical, const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) throw( css::uno::Exception, std::exception ); + /// @throws css::uno::Exception void transfer( const css::ucb::TransferInfo& rInfo, const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) throw( css::uno::Exception, std::exception ); diff --git a/ucb/source/ucp/package/pkgprovider.cxx b/ucb/source/ucp/package/pkgprovider.cxx index fcae46c79c5a..f772f9d5d432 100644 --- a/ucb/source/ucp/package/pkgprovider.cxx +++ b/ucb/source/ucp/package/pkgprovider.cxx @@ -150,11 +150,24 @@ XTYPEPROVIDER_IMPL_3( ContentProvider, // XServiceInfo methods. +XSERVICEINFO_COMMOM_IMPL( ContentProvider, + OUString( "com.sun.star.comp.ucb.PackageContentProvider" ) ) +/// @throws css::uno::Exception +static css::uno::Reference< css::uno::XInterface > SAL_CALL +ContentProvider_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr ) + throw( css::uno::Exception ) +{ + css::lang::XServiceInfo* pX = + static_cast<css::lang::XServiceInfo*>(new ContentProvider( ucbhelper::getComponentContext(rSMgr) )); + return css::uno::Reference< css::uno::XInterface >::query( pX ); +} -XSERVICEINFO_IMPL_1_CTX( ContentProvider, - OUString( "com.sun.star.comp.ucb.PackageContentProvider" ), - "com.sun.star.ucb.PackageContentProvider" ); - +css::uno::Sequence< OUString > +ContentProvider::getSupportedServiceNames_Static() +{ + css::uno::Sequence< OUString > aSNS { "com.sun.star.ucb.PackageContentProvider" }; + return aSNS; +} // Service factory implementation. |