summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPtyl Dragon <ptyl@cloudon.com>2014-08-18 18:29:20 +0300
committerTor Lillqvist <tml@collabora.com>2014-08-19 13:14:10 +0300
commitb00ce3241ef6456d10af869b2bc07cf0db7618dd (patch)
treecb61b2489372ca8b5302489ca077c4e9598e13c2
parent914431e165ab4c9d99be329a8b8c68fdaccff960 (diff)
fix for PtylTestEncryptionAndExport (on sofficemain.cxx)
Change-Id: I2857dae2df3b3e7e89b5bd56b35a4b8f3868920e
-rw-r--r--desktop/source/app/sofficemain.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/desktop/source/app/sofficemain.cxx b/desktop/source/app/sofficemain.cxx
index ef7d1725098c..dff16e88a7d9 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);