Kaydet (Commit) 300e33ce authored tarafından Andras Timar's avatar Andras Timar

not necessary to open read/write to extract document metadata

Change-Id: Idf1bfbac1adc083f6d697d19ca41110f765955e9
Reviewed-on: https://gerrit.libreoffice.org/16171Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarAndras Timar <andras.timar@collabora.com>
(cherry picked from commit 30c4467d)
üst f4b44a81
...@@ -2012,6 +2012,7 @@ SfxDocumentMetaData::loadFromMedium(const OUString & URL, ...@@ -2012,6 +2012,7 @@ SfxDocumentMetaData::loadFromMedium(const OUString & URL,
// if we have an URL parameter, it replaces the one in the media descriptor // if we have an URL parameter, it replaces the one in the media descriptor
if (!URL.isEmpty()) { if (!URL.isEmpty()) {
md[ utl::MediaDescriptor::PROP_URL() ] <<= URL; md[ utl::MediaDescriptor::PROP_URL() ] <<= URL;
md[ utl::MediaDescriptor::PROP_READONLY() ] <<= true;
} }
if (md.addInputStream()) { if (md.addInputStream()) {
md[ utl::MediaDescriptor::PROP_INPUTSTREAM() ] >>= xIn; md[ utl::MediaDescriptor::PROP_INPUTSTREAM() ] >>= xIn;
......
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