[Libreoffice-commits] core.git: sw/source
Michael Stahl
mstahl at redhat.com
Tue Sep 20 15:51:05 UTC 2016
sw/source/uibase/utlui/unotools.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit b7faef01678573f7b060ad26798aa841689ce3e6
Author: Michael Stahl <mstahl at redhat.com>
Date: Tue Sep 20 17:23:27 2016 +0200
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
diff --git a/sw/source/uibase/utlui/unotools.cxx b/sw/source/uibase/utlui/unotools.cxx
index 219823f..8ecc523 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 );
More information about the Libreoffice-commits
mailing list