diff options
author | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-03-03 10:42:58 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-03-03 10:42:58 +0100 |
commit | e4aa69025215074e4be1fdd9b501f34361a064f4 (patch) | |
tree | 35186fffa1334290a06a0c75a087a8ce3f960a91 /smoketestoo_native | |
parent | debuglevels: GCC WaE / replace cppunit's DynamicLibraryManager (which does no... (diff) | |
download | core-e4aa69025215074e4be1fdd9b501f34361a064f4.tar.gz core-e4aa69025215074e4be1fdd9b501f34361a064f4.zip |
debuglevels: open the smoketest doc read-only
Diffstat (limited to 'smoketestoo_native')
-rwxr-xr-x | smoketestoo_native/smoketest.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/smoketestoo_native/smoketest.cxx b/smoketestoo_native/smoketest.cxx index a4e532123456..5fd16914b0d7 100755 --- a/smoketestoo_native/smoketest.cxx +++ b/smoketestoo_native/smoketest.cxx @@ -151,13 +151,18 @@ void Test::test() { CPPUNIT_ASSERT( test::getTestArgument( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("smoketest.doc")), &doc)); - css::uno::Sequence< css::beans::PropertyValue > args(1); + css::uno::Sequence< css::beans::PropertyValue > args(2); args[0].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("MacroExecutionMode")); args[0].Handle = -1; args[0].Value <<= com::sun::star::document::MacroExecMode::ALWAYS_EXECUTE_NO_WARN; args[0].State = css::beans::PropertyState_DIRECT_VALUE; + args[1].Name = rtl::OUString( + RTL_CONSTASCII_USTRINGPARAM("ReadOnly")); + args[1].Handle = -1; + args[1].Value <<= sal_True; + args[1].State = css::beans::PropertyState_DIRECT_VALUE; css::util::URL url; url.Complete = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( |