summaryrefslogtreecommitdiffstats
path: root/libreofficekit
diff options
context:
space:
mode:
authorCorentin Noël <corentin.noel@collabora.com>2019-11-10 11:46:37 +0100
committerJan Holesovsky <kendy@collabora.com>2019-11-19 09:55:25 +0100
commit4e14163ceff6bc05ed372358ed66272caa1b35c2 (patch)
tree7bf56326d7b5a7fed56e68e2871b76f2ffb6ce2f /libreofficekit
parenttdf#125917 Ensure mouse is captured before the menu is launched (diff)
downloadcore-4e14163ceff6bc05ed372358ed66272caa1b35c2.tar.gz
core-4e14163ceff6bc05ed372358ed66272caa1b35c2.zip
lokdocview: Add support for get_command_values
Change-Id: I6a007724de8aea0e4de035313855acd6e9342ee7 Reviewed-on: https://gerrit.libreoffice.org/82377 Tested-by: Jenkins Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'libreofficekit')
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 8dc4516d0ca5..f6fc2d8160ea 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -3742,6 +3742,20 @@ lok_doc_view_post_command (LOKDocView* pDocView,
g_info ("LOK_POST_COMMAND: ignoring commands in view-only mode");
}
+SAL_DLLPUBLIC_EXPORT gchar *
+lok_doc_view_get_command_values (LOKDocView* pDocView,
+ const gchar* pCommand)
+{
+ g_return_val_if_fail (LOK_IS_DOC_VIEW (pDocView), nullptr);
+ g_return_val_if_fail (pCommand != nullptr, nullptr);
+
+ LibreOfficeKitDocument* pDocument = lok_doc_view_get_document(pDocView);
+ if (!pDocument)
+ return nullptr;
+
+ return pDocument->pClass->getCommandValues(pDocument, pCommand);
+}
+
SAL_DLLPUBLIC_EXPORT void
lok_doc_view_find_prev (LOKDocView* pDocView,
const gchar* pText,