office-gobmx/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.hxx
Miklos Vajna 2c149dc998 libreofficekit: add a way to invoke getCommandValues()
- add a new button to the toolbar to invoke the getCommandValues() LOK
  API with user-provided command name (and parameters)

- log the result using g_info(), which is visible on the console if
  gtktiledviewer is started with G_MESSAGES_DEBUG=all

- change some labels to tooltip texts that actually show up on mouse
  hover so you can understand what button does what

- tweak the icons, so the question mark icon is the getter and the info
  icon is the setter

Change-Id: If6984d2dde3d669b42aafcc3f58a0ca757ccaaff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143477
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-11-30 10:26:06 +01:00

77 lines
2.5 KiB
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef GTV_SIGNAL_HANDLERS_H
#define GTV_SIGNAL_HANDLERS_H
#include <gtk/gtk.h>
void btn_clicked(GtkWidget* pWidget, gpointer);
void doCopy(GtkWidget* pButton, gpointer /*pItem*/);
void doPaste(GtkWidget* pButton, gpointer /*pItem*/);
void createView(GtkWidget* pButton, gpointer /*pItem*/);
void getRulerState(GtkWidget* pButton, gpointer /*pItem*/);
void recentUnoChanged(GtkWidget* pSelector, gpointer /* pItem */);
void unoCommandDebugger(GtkWidget* pButton, gpointer /* pItem */);
void commandValuesDebugger(GtkWidget* pButton, gpointer /* pItem */);
void toggleEditing(GtkWidget* pButton, gpointer /*pItem*/);
void changePartMode(GtkWidget* pSelector, gpointer /* pItem */);
void changePart(GtkWidget* pSelector, gpointer /*pItem*/);
void openLokDialog(GtkWidget* pSelector, gpointer /*pItem*/);
void changeZoom(GtkWidget* pButton, gpointer /* pItem */);
void toggleFindbar(GtkWidget* pButton, gpointer /*pItem*/);
void documentRedline(GtkWidget* pButton, gpointer /*pItem*/);
void documentRepair(GtkWidget* pButton, gpointer /*pItem*/);
void docAdjustmentChanged(GtkAdjustment*, gpointer);
/// Click handler for the search next button.
void signalSearchNext(GtkWidget* pButton, gpointer /*pItem*/);
/// Click handler for the search previous button.
void signalSearchPrev(GtkWidget* pButton, gpointer /*pItem*/);
/// Handles the key-press-event of the search entry widget.
gboolean signalFindbar(GtkWidget* pWidget, GdkEventKey* pEvent, gpointer /*pData*/);
void toggleFindAll(GtkWidget* pButton, gpointer /*pItem*/);
void editButtonClicked(GtkWidget*, gpointer);
void replyButtonClicked(GtkWidget*, gpointer);
void deleteCommentButtonClicked(GtkWidget*, gpointer);
/// Handles the key-press-event of the address bar entry widget.
gboolean signalAddressbar(GtkWidget* pWidget, GdkEventKey* pEvent, gpointer /*pData*/);
/// Handles the key-press-event of the formula entry widget.
gboolean signalFormulabar(GtkWidget* /*pWidget*/, GdkEventKey* /*pEvent*/, gpointer /*pData*/);
void changeContentControl(GtkWidget* pSelector, gpointer /*pItem*/);
void changeDateContentControl(GtkWidget* pSelector, gpointer /*pItem*/);
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */