Kaydet (Commit) b24c15f2 authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

Switched to use libcmis' future 0.4.0 code

This means that building with internal libcmis won't work. Make install
libcmis master code and use --with-system-libcmis to build after this
commit

Change-Id: I3df31b299cfc462436681bb36a62c626b3ce3dfe
üst b3a2011b
...@@ -7646,7 +7646,7 @@ libo_CHECK_SYSTEM_MODULE([libvisio],[VISIO],[libvisio-0.0]) ...@@ -7646,7 +7646,7 @@ libo_CHECK_SYSTEM_MODULE([libvisio],[VISIO],[libvisio-0.0])
dnl =================================================================== dnl ===================================================================
dnl Check for system libcmis dnl Check for system libcmis
dnl =================================================================== dnl ===================================================================
libo_CHECK_SYSTEM_MODULE([libcmis],[CMIS],[libcmis-0.3 >= 0.3.1]) libo_CHECK_SYSTEM_MODULE([libcmis],[CMIS],[libcmis-0.4 >= 0.4.0])
dnl =================================================================== dnl ===================================================================
dnl Check for system libwpd dnl Check for system libwpd
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#ifndef AUTH_PROVIDER_HXX #ifndef AUTH_PROVIDER_HXX
#define AUTH_PROVIDER_HXX #define AUTH_PROVIDER_HXX
#include <libcmis/session.hxx> #include <libcmis/libcmis.hxx>
#include <com/sun/star/ucb/XCommandEnvironment.hpp> #include <com/sun/star/ucb/XCommandEnvironment.hpp>
......
...@@ -33,8 +33,6 @@ ...@@ -33,8 +33,6 @@
#include <com/sun/star/ucb/XCommandInfo.hpp> #include <com/sun/star/ucb/XCommandInfo.hpp>
#include <com/sun/star/ucb/XDynamicResultSet.hpp> #include <com/sun/star/ucb/XDynamicResultSet.hpp>
#include <libcmis/document.hxx>
#include <comphelper/processfactory.hxx> #include <comphelper/processfactory.hxx>
#include <ucbhelper/cancelcommandexecution.hxx> #include <ucbhelper/cancelcommandexecution.hxx>
#include <ucbhelper/content.hxx> #include <ucbhelper/content.hxx>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <com/sun/star/ucb/TransferInfo.hpp> #include <com/sun/star/ucb/TransferInfo.hpp>
#include <com/sun/star/ucb/XContentCreator.hpp> #include <com/sun/star/ucb/XContentCreator.hpp>
#include <ucbhelper/contenthelper.hxx> #include <ucbhelper/contenthelper.hxx>
#include <libcmis/session-factory.hxx> #include <libcmis/libcmis.hxx>
#include <list> #include <list>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include <com/sun/star/beans/Property.hpp> #include <com/sun/star/beans/Property.hpp>
#include <ucbhelper/providerhelper.hxx> #include <ucbhelper/providerhelper.hxx>
#include <libcmis/session.hxx> #include <libcmis/libcmis.hxx>
namespace cmis namespace cmis
{ {
......
...@@ -40,7 +40,7 @@ namespace cmis ...@@ -40,7 +40,7 @@ namespace cmis
{ {
RepoContent::RepoContent( const uno::Reference< uno::XComponentContext >& rxContext, RepoContent::RepoContent( const uno::Reference< uno::XComponentContext >& rxContext,
ContentProvider *pProvider, const uno::Reference< ucb::XContentIdentifier >& Identifier, ContentProvider *pProvider, const uno::Reference< ucb::XContentIdentifier >& Identifier,
list< libcmis::RepositoryPtr > aRepos ) vector< libcmis::RepositoryPtr > aRepos )
throw ( ucb::ContentCreationException ) throw ( ucb::ContentCreationException )
: ContentImplHelper( rxContext, pProvider, Identifier ), : ContentImplHelper( rxContext, pProvider, Identifier ),
m_pProvider( pProvider ), m_pProvider( pProvider ),
...@@ -169,7 +169,7 @@ namespace cmis ...@@ -169,7 +169,7 @@ namespace cmis
if ( !m_sRepositoryId.isEmpty() ) if ( !m_sRepositoryId.isEmpty() )
{ {
for ( list< libcmis::RepositoryPtr >::iterator it = m_aRepositories.begin( ); for ( vector< libcmis::RepositoryPtr >::iterator it = m_aRepositories.begin( );
it != m_aRepositories.end( ) && NULL == repo.get( ); ++it ) it != m_aRepositories.end( ) && NULL == repo.get( ); ++it )
{ {
if ( STD_TO_OUSTR( ( *it )->getId( ) ) == m_sRepositoryId ) if ( STD_TO_OUSTR( ( *it )->getId( ) ) == m_sRepositoryId )
...@@ -349,7 +349,7 @@ namespace cmis ...@@ -349,7 +349,7 @@ namespace cmis
if ( m_sRepositoryId.isEmpty( ) ) if ( m_sRepositoryId.isEmpty( ) )
{ {
for ( list< libcmis::RepositoryPtr >::iterator it = m_aRepositories.begin( ); for ( vector< libcmis::RepositoryPtr >::iterator it = m_aRepositories.begin( );
it != m_aRepositories.end(); ++it ) it != m_aRepositories.end(); ++it )
{ {
URL aUrl( m_aURL ); URL aUrl( m_aURL );
......
...@@ -20,8 +20,9 @@ ...@@ -20,8 +20,9 @@
#include <com/sun/star/ucb/TransferInfo.hpp> #include <com/sun/star/ucb/TransferInfo.hpp>
#include <com/sun/star/ucb/XContentCreator.hpp> #include <com/sun/star/ucb/XContentCreator.hpp>
#include <ucbhelper/contenthelper.hxx> #include <ucbhelper/contenthelper.hxx>
#include <libcmis/repository.hxx> #include <libcmis/libcmis.hxx>
#include <vector>
#include <list> #include <list>
namespace com { namespace sun { namespace star { namespace com { namespace sun { namespace star {
...@@ -52,7 +53,7 @@ private: ...@@ -52,7 +53,7 @@ private:
URL m_aURL; URL m_aURL;
OUString m_sRepositoryId; OUString m_sRepositoryId;
std::list< libcmis::RepositoryPtr > m_aRepositories; std::vector< libcmis::RepositoryPtr > m_aRepositories;
private: private:
...@@ -76,7 +77,7 @@ public: ...@@ -76,7 +77,7 @@ public:
RepoContent( const com::sun::star::uno::Reference< RepoContent( const com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext >& rxContext, ContentProvider *pProvider, com::sun::star::uno::XComponentContext >& rxContext, ContentProvider *pProvider,
const com::sun::star::uno::Reference< com::sun::star::ucb::XContentIdentifier >& Identifier, const com::sun::star::uno::Reference< com::sun::star::ucb::XContentIdentifier >& Identifier,
std::list< libcmis::RepositoryPtr > aRepos = std::list< libcmis::RepositoryPtr > ( ) ) std::vector< libcmis::RepositoryPtr > aRepos = std::vector< libcmis::RepositoryPtr > ( ) )
throw ( com::sun::star::ucb::ContentCreationException ); throw ( com::sun::star::ucb::ContentCreationException );
virtual ~RepoContent(); virtual ~RepoContent();
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ */
#include <libcmis/session-factory.hxx> #include <libcmis/libcmis.hxx>
#include <rtl/uri.hxx> #include <rtl/uri.hxx>
......
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