diff options
author | Pranam Lashkari <lpranam@collabora.com> | 2021-06-02 19:06:52 +0530 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2021-06-28 15:45:35 +0200 |
commit | 2fb76306afdf50d52ec5021088e7aaa49008b71a (patch) | |
tree | 7f18ca1478b452512b523e91b3b72d16e31ec591 /include/sfx2/lokhelper.hxx | |
parent | cf46699c41a1bf36442cb6733dd0abf11516d80a (diff) |
LOK: introduced Freemium LOK API
also block the uno commands from deny list
Change-Id: Iee994411891b73b865e6496403682f996d5e9321
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116384
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117799
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'include/sfx2/lokhelper.hxx')
-rw-r--r-- | include/sfx2/lokhelper.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/sfx2/lokhelper.hxx b/include/sfx2/lokhelper.hxx index 3e37b8b68597..9c91a1724844 100644 --- a/include/sfx2/lokhelper.hxx +++ b/include/sfx2/lokhelper.hxx @@ -53,13 +53,16 @@ public: static void destroyView(int nId); /// Set a view shell as current one. static void setView(int nId); + /// Get view shell with id + static SfxViewShell* getViewOfId(int nId); /// Get the currently active view. static int getView(const SfxViewShell* pViewShell = nullptr); /// Get the number of views of the current DocId. 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); /// Get the document id for a view static int getDocumentIdOfView(int nViewId); /// Get the default language that should be used for views |