diff options
author | David Tardon <dtardon@redhat.com> | 2012-11-06 08:15:22 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-11-06 08:15:22 +0100 |
commit | b50610f0fa35cf1a5f1e8f26f2a33dba5f0ffd01 (patch) | |
tree | 698ab676b765442b5eb196ff3f001bde8710404a /ucb/source/ucp/gio | |
parent | a6ac5b2a9e4298f7e187dd42eaa8a8587b1693c9 (diff) |
fdo#46808 adapt GIO provider
Change-Id: I63d2c4a3e4b83ef94c309223c78fb2f93ccf251e
Diffstat (limited to 'ucb/source/ucp/gio')
-rw-r--r-- | ucb/source/ucp/gio/gio_content.cxx | 6 | ||||
-rw-r--r-- | ucb/source/ucp/gio/gio_provider.cxx | 9 | ||||
-rw-r--r-- | ucb/source/ucp/gio/gio_provider.hxx | 2 |
3 files changed, 9 insertions, 8 deletions
diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx index b19e98b33aa1..32fecc2277ab 100644 --- a/ucb/source/ucp/gio/gio_content.cxx +++ b/ucb/source/ucp/gio/gio_content.cxx @@ -599,7 +599,7 @@ sal_Bool Content::exchangeIdentity( const uno::Reference< ucb::XContentIdentifie 0, aOldURL.getLength(), xNewId->getContentIdentifier() ); uno::Reference< ucb::XContentIdentifier > xNewChildId - = new ::ucbhelper::ContentIdentifier( m_xSMgr, aNewChildURL ); + = new ::ucbhelper::ContentIdentifier( aNewChildURL ); if ( !xChild->exchangeIdentity( xNewChildId ) ) return sal_False; @@ -730,7 +730,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues( rtl::OUString aNewURL = getParentURL(); aNewURL += rtl::OUString( newName, strlen(newName), RTL_TEXTENCODING_UTF8 ); uno::Reference< ucb::XContentIdentifier > xNewId - = new ::ucbhelper::ContentIdentifier( m_xSMgr, aNewURL ); + = new ::ucbhelper::ContentIdentifier( aNewURL ); if (!exchangeIdentity( xNewId ) ) { @@ -1158,7 +1158,7 @@ uno::Reference< ucb::XContent > name = create_document ? "[New_Content]" : "[New_Collection]"; aURL += rtl::OUString::createFromAscii( name ); - uno::Reference< ucb::XContentIdentifier > xId(new ::ucbhelper::ContentIdentifier(m_xSMgr, aURL)); + uno::Reference< ucb::XContentIdentifier > xId(new ::ucbhelper::ContentIdentifier(aURL)); try { diff --git a/ucb/source/ucp/gio/gio_provider.cxx b/ucb/source/ucp/gio/gio_provider.cxx index 40a744a29b57..bbd7531743ce 100644 --- a/ucb/source/ucp/gio/gio_provider.cxx +++ b/ucb/source/ucp/gio/gio_provider.cxx @@ -51,7 +51,8 @@ ContentProvider::queryContent( try { - xContent = new ::gio::Content(m_xSMgr, this, Identifier); + uno::Reference<lang::XMultiServiceFactory> xMSF(m_xContext->getServiceManager(), uno::UNO_QUERY_THROW); + xContent = new ::gio::Content(xMSF, this, Identifier); } catch ( com::sun::star::ucb::ContentCreationException const & ) { @@ -65,8 +66,8 @@ ContentProvider::queryContent( } ContentProvider::ContentProvider( - const uno::Reference< lang::XMultiServiceFactory >& rSMgr ) -: ::ucbhelper::ContentProviderImplHelper( rSMgr ) + const uno::Reference< uno::XComponentContext >& rxContext ) +: ::ucbhelper::ContentProviderImplHelper( rxContext ) { } @@ -84,7 +85,7 @@ XTYPEPROVIDER_IMPL_3( ContentProvider, lang::XServiceInfo, com::sun::star::ucb::XContentProvider ); -XSERVICEINFO_IMPL_1( ContentProvider, +XSERVICEINFO_IMPL_1_CTX( ContentProvider, rtl::OUString( "com.sun.star.comp.GIOContentProvider" ), rtl::OUString( "com.sun.star.ucb.GIOContentProvider" ) ); diff --git a/ucb/source/ucp/gio/gio_provider.hxx b/ucb/source/ucp/gio/gio_provider.hxx index b3cfef6a3c97..076a9c74a72e 100644 --- a/ucb/source/ucp/gio/gio_provider.hxx +++ b/ucb/source/ucp/gio/gio_provider.hxx @@ -32,7 +32,7 @@ class ContentProvider : public ::ucbhelper::ContentProviderImplHelper { public: ContentProvider( const ::com::sun::star::uno::Reference< - ::com::sun::star::lang::XMultiServiceFactory >& rSMgr ); + ::com::sun::star::uno::XComponentContext >& rxContext ); virtual ~ContentProvider(); // XInterface |