[Libreoffice-commits] core.git: desktop/source
Ptyl Dragon
ptyl at cloudon.com
Tue Aug 19 03:15:11 PDT 2014
desktop/source/app/sofficemain.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit b00ce3241ef6456d10af869b2bc07cf0db7618dd
Author: Ptyl Dragon <ptyl at cloudon.com>
Date: Mon Aug 18 18:29:20 2014 +0300
fix for PtylTestEncryptionAndExport (on sofficemain.cxx)
Change-Id: I2857dae2df3b3e7e89b5bd56b35a4b8f3868920e
diff --git a/desktop/source/app/sofficemain.cxx b/desktop/source/app/sofficemain.cxx
index ef7d172..dff16e8 100644
--- a/desktop/source/app/sofficemain.cxx
+++ b/desktop/source/app/sofficemain.cxx
@@ -134,7 +134,10 @@ extern "C" void PtylTestEncryptionAndExport(const char *pathname)
utl::MediaDescriptor media;
media[utl::MediaDescriptor::PROP_FILTERNAME()] <<= OUString("MS Word 2007 XML");
- css::uno::Sequence<css::beans::NamedValue> encryptionData = comphelper::OStorageHelper::CreatePackageEncryptionData("myPassword");
+ OUString password("myPassword");
+ css::uno::Sequence<css::beans::NamedValue> encryptionData(1);
+ encryptionData[0].Name = "OOXPassword";
+ encryptionData[0].Value = css::uno::makeAny(password);
media[utl::MediaDescriptor::PROP_ENCRYPTIONDATA()] <<= encryptionData;
css::uno::Reference<css::frame::XModel> model(component, css::uno::UNO_QUERY);
More information about the Libreoffice-commits
mailing list