diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-05-17 11:10:34 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-05-18 16:23:55 +0200 |
commit | 0ca1659353cc9847f436280873e1047d2524395e (patch) | |
tree | c141e6a825e5275ac200afa5d6c0623a01ecc7ed /comphelper/source/misc | |
parent | f504273c10a7448aabd619175bc1e041458cb1a7 (diff) |
Refactor SfxObjectShell sign methods
for signature line signing
Change-Id: Iac4f3a248af53bdbf159e6e8d656e1dcbc3aacbf
Reviewed-on: https://gerrit.libreoffice.org/54473
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'comphelper/source/misc')
-rw-r--r-- | comphelper/source/misc/storagehelper.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx index dad5b83511e2..abd06ed048a9 100644 --- a/comphelper/source/misc/storagehelper.cxx +++ b/comphelper/source/misc/storagehelper.cxx @@ -692,6 +692,19 @@ uno::Reference< io::XStream > OStorageHelper::GetStreamAtPackageURL( return nullptr; } +OUString OStorageHelper::GetODFVersionFromStorage(uno::Reference<embed::XStorage> xStorage) +{ + OUString aODFVersion; + try + { + uno::Reference<beans::XPropertySet> xPropSet(xStorage, uno::UNO_QUERY_THROW); + xPropSet->getPropertyValue("Version") >>= aODFVersion; + } + catch (uno::Exception&) + { + } + return aODFVersion; +} } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |