diff options
author | Cao Cuong Ngo <cao.cuong.ngo@gmail.com> | 2013-08-02 15:04:40 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2013-09-02 13:51:54 +0200 |
commit | ff8b445dc003ea9da8d7040030250e7f08ff2fde (patch) | |
tree | 13bcd29d490b9052c1e235b92c10eeb36a492fff /sfx2 | |
parent | f6c006397896ae8b431a0ab85c89ab677d6ab981 (diff) |
CMIS: add document ID when saving.
The document ID is needed in case the get object by path
of the CMIS document doesn't work (like Google Drive)
Change-Id: I151d5433a19caeaf4a542b69cd9e95dde58722e7
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 60bcd206a661..329cfb8aee5c 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -1960,6 +1960,9 @@ void SfxMedium::Transfer_Impl() OUString aFileName; Any aAny = aDestContent.getPropertyValue("Title"); aAny >>= aFileName; + aAny = aDestContent.getPropertyValue( OUString("ObjectId" ) ); + OUString sObjectId; + aAny >>= sObjectId; if ( aFileName.isEmpty() ) aFileName = GetURLObject().getName( INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET ); @@ -2024,7 +2027,7 @@ void SfxMedium::Transfer_Impl() } OUString sResultURL; if (!aTransferContent.transferContent( aSourceContent, eOperation, - aFileName, nNameClash, aMimeType, bMajor, sComment, &sResultURL )) + aFileName, nNameClash, aMimeType, bMajor, sComment, &sResultURL, sObjectId)) pImp->m_eError = ERRCODE_IO_GENERAL; else if ( !sResultURL.isEmpty( ) ) // Likely to happen only for checkin SwitchDocumentToFile( sResultURL ); |