summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-09-20 17:23:27 +0200
committerMichael Stahl <mstahl@redhat.com>2016-09-20 17:45:44 +0200
commitb7faef01678573f7b060ad26798aa841689ce3e6 (patch)
tree2535f992b299ba08224e4282b2c3e5de21cbf9b5
parentccb979c53931ab3f4712d0a3f7d0f844dcfc5c5d (diff)
tdf#101536 sw: do load Insert Index dialog's document ReadOnly
Turns out SwOneExampleFrame is used for different things, so load doc read-only only if it's an existing document. (regression from 6a8407d82d71083c8bdec6a106ba9092a5196cbe) Change-Id: I0a1ab0725ed9dccca23742c9d83cd9635a188edf
-rw-r--r--sw/source/uibase/utlui/unotools.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/uibase/utlui/unotools.cxx b/sw/source/uibase/utlui/unotools.cxx
index 219823f5023f..8ecc523e7b95 100644
--- a/sw/source/uibase/utlui/unotools.cxx
+++ b/sw/source/uibase/utlui/unotools.cxx
@@ -137,12 +137,14 @@ void SwOneExampleFrame::CreateControl()
sTempURL = sArgumentURL;
aURL <<= sTempURL;
- uno::Sequence<beans::PropertyValue> aSeq(2);
+ uno::Sequence<beans::PropertyValue> aSeq(3);
beans::PropertyValue* pValues = aSeq.getArray();
pValues[0].Name = "OpenFlags";
pValues[0].Value <<= OUString("-RB");
pValues[1].Name = "Referer";
pValues[1].Value <<= OUString("private:user");
+ pValues[2].Name = "ReadOnly";
+ pValues[2].Value <<= (sTempURL != cFactory);
uno::Any aArgs(aSeq);
xPrSet->setPropertyValue( "LoaderArguments", aArgs );