summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Behrens <Thorsten.Behrens@CIB.de>2019-12-04 13:34:57 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2019-12-04 17:19:50 +0100
commit97ac37b02a80508a0ef4b35285d768dc06d50767 (patch)
tree06f47d585378c015b8a1b6673b11e40feb5ae9ef
parenta52f2a82ca33d31ef7491f57bfa0a306a8235ed1 (diff)
Fixup Add document-level option for lock-downs
Change-Id: I52dda76fd779e7b5afce6599b1d8deb25056fb9b
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx25
1 files changed, 9 insertions, 16 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index 218dc2eab259..117a9f77346d 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -1061,48 +1061,41 @@ void SAL_CALL SfxBaseModel::setArgs(const Sequence<beans::PropertyValue>& aArgs)
for (int i = 0; i < aArgs.getLength(); i++)
{
OUString sValue;
- aArgs[i].Value >>= sValue;
bool bValue;
+ aArgs[i].Value >>= sValue;
+ aArgs[i].Value >>= bValue;
if (aArgs[i].Name == "SuggestedSaveAsName")
{
- rArg.Value >>= sValue;
pMedium->GetItemSet()->Put(SfxStringItem(SID_SUGGESTEDSAVEASNAME, sValue));
}
else if (aArgs[i].Name == "SuggestedSaveAsDir")
{
- rArg.Value >>= sValue;
pMedium->GetItemSet()->Put(SfxStringItem(SID_SUGGESTEDSAVEASDIR, sValue));
}
- else if (rArg.Name == "LockContentExtraction")
+ else if (aArgs[i].Name == "LockContentExtraction")
{
- rArg.Value >>= bValue;
pMedium->GetItemSet()->Put(SfxBoolItem(SID_LOCK_CONTENT_EXTRACTION, bValue));
}
- else if (rArg.Name == "LockExport")
+ else if (aArgs[i].Name == "LockExport")
{
- rArg.Value >>= bValue;
pMedium->GetItemSet()->Put(SfxBoolItem(SID_LOCK_EXPORT, bValue));
}
- else if (rArg.Name == "LockPrint")
+ else if (aArgs[i].Name == "LockPrint")
{
- rArg.Value >>= bValue;
pMedium->GetItemSet()->Put(SfxBoolItem(SID_LOCK_PRINT, bValue));
}
- else if (rArg.Name == "LockSave")
+ else if (aArgs[i].Name == "LockSave")
{
- rArg.Value >>= bValue;
pMedium->GetItemSet()->Put(SfxBoolItem(SID_LOCK_SAVE, bValue));
}
- else if (rArg.Name == "LockEditDoc")
+ else if (aArgs[i].Name == "LockEditDoc")
{
- rArg.Value >>= bValue;
pMedium->GetItemSet()->Put(SfxBoolItem(SID_LOCK_EDITDOC, bValue));
}
- else if (rArg.Name == "EncryptionData")
+ else if (aArgs[i].Name == "EncryptionData")
{
- rArg.Value >>= bValue;
- pMedium->GetItemSet()->Put(SfxUnoAnyItem(SID_ENCRYPTIONDATA, rArg.Value));
+ pMedium->GetItemSet()->Put(SfxUnoAnyItem(SID_ENCRYPTIONDATA, aArgs[i].Value));
}
else
{