/* -*- 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 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*/);

#endif

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
