summaryrefslogtreecommitdiff
path: root/include/LibreOfficeKit/LibreOfficeKit.h
diff options
context:
space:
mode:
authorPranam Lashkari <lpranam@collabora.com>2021-09-15 23:39:32 +0530
committerMiklos Vajna <vmiklos@collabora.com>2021-10-22 16:54:20 +0200
commitd05c69a892535b910943fe98fbce42f5cc860aa4 (patch)
tree10dfcfc58a5456627821d3903f7c013a8f585e6c /include/LibreOfficeKit/LibreOfficeKit.h
parent6c9909dee4b06948ca6932397caa338d77ec7290 (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/LibreOfficeKit/LibreOfficeKit.h')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.h22
1 files changed, 7 insertions, 15 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h
index 6a94583b8bf3..72beeb613246 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.h
+++ b/include/LibreOfficeKit/LibreOfficeKit.h
@@ -458,23 +458,15 @@ struct _LibreOfficeKitDocumentClass
void (*sendFormFieldEvent) (LibreOfficeKitDocument* pThis,
const char* pArguments);
- /// @see lok::Document::setFreemiumDenyList
- void (*setFreemiumDenyList) (LibreOfficeKitDocument* pThis,
- const char* freemiumDenyList);
+ /// @see lok::Document::setBlockedCommandList
+ void (*setBlockedCommandList) (LibreOfficeKitDocument* pThis,
+ const char* bolckedCommandList);
- /// @see lok::Document::setFreemiumView
- void (*setFreemiumView) (LibreOfficeKitDocument* pThis,
+ /// @see lok::Document::setBlockedCommandView
+ void (*setBlockedCommandView) (LibreOfficeKitDocument* pThis,
int nViewId,
- bool isFreemium);
-
- /// @see lok::Document::setRestrictedCommandList
- void (*setRestrictedCommandList) (LibreOfficeKitDocument* pThis,
- const char* restrictedCommandList);
-
- /// @see lok::Document::setRestrictedView
- void (*setRestrictedView) (LibreOfficeKitDocument* pThis,
- int nViewId,
- bool isRestricted);
+ const char* type,
+ bool isBlocked);
/// @see lok::Document::renderSearchResult
bool (*renderSearchResult) (LibreOfficeKitDocument* pThis,