diff options
author | Corentin Noël <corentin.noel@collabora.com> | 2019-11-10 11:46:37 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2019-11-19 09:55:25 +0100 |
commit | 4e14163ceff6bc05ed372358ed66272caa1b35c2 (patch) | |
tree | 7bf56326d7b5a7fed56e68e2871b76f2ffb6ce2f /libreofficekit/source/gtk | |
parent | 72bfc8aced60be0adaeabbd496ea8f755c35b016 (diff) |
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/source/gtk')
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 14 |
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, |