summaryrefslogtreecommitdiffstats
path: root/sfx2/source/doc/docfile.cxx
diff options
context:
space:
mode:
authorCao Cuong Ngo <cao.cuong.ngo@gmail.com>2013-08-02 15:04:40 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2013-09-02 13:51:54 +0200
commitff8b445dc003ea9da8d7040030250e7f08ff2fde (patch)
tree13bcd29d490b9052c1e235b92c10eeb36a492fff /sfx2/source/doc/docfile.cxx
parentStore the decision about the certificate in a container to remember it (diff)
downloadcore-ff8b445dc003ea9da8d7040030250e7f08ff2fde.tar.gz
core-ff8b445dc003ea9da8d7040030250e7f08ff2fde.zip
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/source/doc/docfile.cxx')
-rw-r--r--sfx2/source/doc/docfile.cxx5
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 );