diff options
author | Pranam Lashkari <lpranam@collabora.com> | 2021-09-15 23:39:32 +0530 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-10-22 16:54:20 +0200 |
commit | d05c69a892535b910943fe98fbce42f5cc860aa4 (patch) | |
tree | 10dfcfc58a5456627821d3903f7c013a8f585e6c /include/sfx2 | |
parent | 6c9909dee4b06948ca6932397caa338d77ec7290 (diff) |
LOK: unify freemium APIs and uno command restriction APIs
Conflicts:
include/LibreOfficeKit/LibreOfficeKit.hxx
sfx2/source/control/unoctitm.cxx
Change-Id: I3badb038822331ab5cb30df6a66ce9a0640cf340
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124047
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/lokhelper.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/sfx2/lokhelper.hxx b/include/sfx2/lokhelper.hxx index 982296600d48..f37d70f30abf 100644 --- a/include/sfx2/lokhelper.hxx +++ b/include/sfx2/lokhelper.hxx @@ -63,10 +63,8 @@ public: static std::size_t getViewsCount(int nDocId); /// Get viewIds of views of the current DocId. static bool getViewIds(int nDocId, int* pArray, size_t nSize); - /// Set View Freemium - static void setFreemiumView(int nViewId, bool isFreemium); - /// Set View Restricted - static void setRestrictedView(int nViewId, bool isRestricted); + /// Set View Blocked for some uno commands + static void setBlockedCommandView(int nViewId, const OUString& type, bool isBlocked); /// Get the document id for a view static int getDocumentIdOfView(int nViewId); /// Get the default language that should be used for views |