diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-02-20 11:27:53 +0530 |
---|---|---|
committer | Pranav Kant <pranavk@collabora.co.uk> | 2017-02-20 14:08:29 +0530 |
commit | 57d75ba3176063249e27524a7c7e425b3a2e75b4 (patch) | |
tree | b16a3398a15a0999f4794406c353e7b44a7f0360 | |
parent | sd lok: Allow specifying text in the insert uno command (diff) | |
download | core-57d75ba3176063249e27524a7c7e425b3a2e75b4.tar.gz core-57d75ba3176063249e27524a7c7e425b3a2e75b4.zip |
gtktiledviewer: Different reply uno command for impress
Change-Id: I9dcd32a7e64198ca4772f263ed89a458e298c53b
-rw-r--r-- | libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx index c8bf3ee41aa2..59faff1d1fc8 100644 --- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx @@ -330,7 +330,12 @@ static void replyButtonClicked(GtkWidget* pWidget, gpointer userdata) boost::property_tree::write_json(aStream, aTree); std::string aArguments = aStream.str(); - lok_doc_view_post_command(LOK_DOC_VIEW(rWindow.m_pDocView), ".uno:ReplyComment", aArguments.c_str(), false); + // Different reply UNO command for impress + std::string replyCommand = ".uno:ReplyComment"; + LibreOfficeKitDocument* pDocument = lok_doc_view_get_document(LOK_DOC_VIEW(rWindow.m_pDocView)); + if (pDocument && pDocument->pClass->getDocumentType(pDocument) == LOK_DOCTYPE_PRESENTATION) + replyCommand = ".uno:ReplyToAnnotation"; + lok_doc_view_post_command(LOK_DOC_VIEW(rWindow.m_pDocView), replyCommand.c_str(), aArguments.c_str(), false); } static void deleteCommentButtonClicked(GtkWidget* pWidget, gpointer userdata) |