Kaydet (Commit) 6a4bf88c authored tarafından Pranav Kant's avatar Pranav Kant

gtktiledviewer: Adjust for different delete uno cmd for impress

Change-Id: I7fa82096298a8a7c9f586a1d3c06aa5852e6842e
üst 80d1ada9
...@@ -1110,7 +1110,9 @@ static void initWindow(TiledWindow& rWindow) ...@@ -1110,7 +1110,9 @@ static void initWindow(TiledWindow& rWindow)
gtk_toggle_tool_button_set_active(GTK_TOGGLE_TOOL_BUTTON(rWindow.m_pEnableEditing), TRUE); gtk_toggle_tool_button_set_active(GTK_TOGGLE_TOOL_BUTTON(rWindow.m_pEnableEditing), TRUE);
LibreOfficeKitDocument* pDocument = lok_doc_view_get_document(LOK_DOC_VIEW(rWindow.m_pDocView)); LibreOfficeKitDocument* pDocument = lok_doc_view_get_document(LOK_DOC_VIEW(rWindow.m_pDocView));
if (pDocument && pDocument->pClass->getDocumentType(pDocument) == LOK_DOCTYPE_SPREADSHEET) if (pDocument)
{
if (pDocument->pClass->getDocumentType(pDocument) == LOK_DOCTYPE_SPREADSHEET)
{ {
// Align to top left corner, so the tiles are in sync with the // Align to top left corner, so the tiles are in sync with the
// row/column bar, even when zooming out enough that not all space is // row/column bar, even when zooming out enough that not all space is
...@@ -1126,6 +1128,11 @@ static void initWindow(TiledWindow& rWindow) ...@@ -1126,6 +1128,11 @@ static void initWindow(TiledWindow& rWindow)
lcl_registerToolItem(rWindow, rWindow.m_pDeleteComment, ".uno:DeleteNote"); lcl_registerToolItem(rWindow, rWindow.m_pDeleteComment, ".uno:DeleteNote");
} }
else if (pDocument->pClass->getDocumentType(pDocument) == LOK_DOCTYPE_PRESENTATION)
{
lcl_registerToolItem(rWindow, rWindow.m_pDeleteComment, ".uno:DeleteAnnotation");
}
}
// Fill our comments sidebar // Fill our comments sidebar
gboolean bTiledAnnotations; gboolean bTiledAnnotations;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment