diff options
author | Ptyl Dragon <ptyl@cloudon.com> | 2014-08-18 18:29:20 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-08-19 13:14:10 +0300 |
commit | b00ce3241ef6456d10af869b2bc07cf0db7618dd (patch) | |
tree | cb61b2489372ca8b5302489ca077c4e9598e13c2 /desktop | |
parent | DOCX export: handle multi-para SDT's ending right before a table (diff) | |
download | core-b00ce3241ef6456d10af869b2bc07cf0db7618dd.tar.gz core-b00ce3241ef6456d10af869b2bc07cf0db7618dd.zip |
fix for PtylTestEncryptionAndExport (on sofficemain.cxx)
Change-Id: I2857dae2df3b3e7e89b5bd56b35a4b8f3868920e
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/sofficemain.cxx | 5 |
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); |