summaryrefslogtreecommitdiff
path: root/sfx2/source/view/lokhelper.cxx
diff options
context:
space:
mode:
authorPranam Lashkari <lpranam@collabora.com>2021-09-17 19:13:15 +0530
committerMiklos Vajna <vmiklos@collabora.com>2021-10-22 17:49:20 +0200
commitc4b934128965cbd461f1c61255fe0c5d25cc29d6 (patch)
tree04e4015769ed37bf876e3e7eec12bb863070cd97 /sfx2/source/view/lokhelper.cxx
parentd05c69a892535b910943fe98fbce42f5cc860aa4 (diff)
LOK: maintain blocked command list per view
Conflicts: include/LibreOfficeKit/LibreOfficeKitEnums.h include/sfx2/viewsh.hxx libreofficekit/source/gtk/lokdocview.cxx sfx2/source/view/viewsh.cxx Change-Id: I7c621accd84f49447ab3e08a4bb662a9b91b834a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124049 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sfx2/source/view/lokhelper.cxx')
-rw-r--r--sfx2/source/view/lokhelper.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx
index 80fd65e45f7f..8210fd7faf35 100644
--- a/sfx2/source/view/lokhelper.cxx
+++ b/sfx2/source/view/lokhelper.cxx
@@ -739,17 +739,13 @@ void SfxLokHelper::postKeyEventAsync(const VclPtr<vcl::Window> &xWindow,
postEventAsync(pLOKEv);
}
-void SfxLokHelper::setBlockedCommandView(int nViewId, const OUString& type, bool isBlocked)
+void SfxLokHelper::setBlockedCommandList(int nViewId, const char* bolckedCommandList)
{
- OUString aType = type;
SfxViewShell* pViewShell = SfxLokHelper::getViewOfId(nViewId);
if(pViewShell)
{
- if(aType == "freemium")
- pViewShell->setFreemiumView(isBlocked);
- else
- pViewShell->setRestrictedView(isBlocked);
+ pViewShell->setBlockedCommandList(bolckedCommandList);
}
}