• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

goffice-gtk.h

Go to the documentation of this file.
00001 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
00002 /*
00003  * goffice-gtk.h - Misc GTK+ utilities
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License, version 2, as published by the Free Software Foundation.
00008  *
00009  * This library is distributed in the hope that it will be useful, but
00010  * WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Library General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
00017  * USA.
00018  */
00019 #ifndef _GOFFICE_GTK_H_
00020 #define _GOFFICE_GTK_H_
00021 
00022 #include <gtk/gtkmessagedialog.h>
00023 #if 0 /* dropped, since abiword doesn't depend on libglade */
00024 #include <glade/glade-xml.h>
00025 #endif
00026 #include <gtk/gtkfilechooser.h>
00027 #include <goffice/app/goffice-app.h>
00028 #include <goffice/utils/go-image.h>
00029 
00030 G_BEGIN_DECLS
00031 
00032 void       go_gtk_editable_enters (GtkWindow *window, GtkWidget *w);
00033 
00034 #if 0 /* dropped, since abiword doesn't depend on libglade */
00035 GladeXML  *go_libglade_new (char const *gladefile, char const *root,
00036                 char const *domain, GOCmdContext *cc);
00037 #endif
00038 
00039 GdkPixbuf *go_pixbuf_new_from_file  (char const *filename);
00040 GdkPixbuf *go_pixbuf_intelligent_scale  (GdkPixbuf *pixbuf,
00041                      guint width, guint height);
00042 
00043 int    go_pango_measure_string  (PangoContext *context,
00044                      PangoFontDescription const *font_desc,
00045                      char const *str);
00046 
00047 gint       go_gtk_dialog_run        (GtkDialog *dialog, GtkWindow *parent);
00048 GtkWidget *go_gtk_dialog_add_button (GtkDialog *dialog, char const *text, char const *stock_id,
00049                      gint response_id);
00050 void       go_gtk_notice_dialog     (GtkWindow *parent, GtkMessageType type,
00051                      const gchar *format, ...);
00052 void       go_gtk_notice_nonmodal_dialog (GtkWindow *parent, GtkWidget **ref,
00053                       GtkMessageType type, const gchar *format, ...);
00054 gboolean   go_gtk_query_yes_no      (GtkWindow *toplevel, gboolean default_answer,
00055                      const gchar *format, ...);
00056 
00057 GtkWidget *go_gtk_button_new_with_stock (char const *text,
00058                      char const *stock_id);
00059 void       go_gtk_widget_disable_focus  (GtkWidget *w);
00060 void       go_gtk_window_set_transient  (GtkWindow *parent,   GtkWindow *window);
00061 void       go_gtk_help_button_init  (GtkWidget *w, char const *data_dir,
00062                      char const *app, char const *link);
00063 void       go_gtk_nonmodal_dialog   (GtkWindow *toplevel, GtkWindow *dialog);
00064 gboolean   go_gtk_file_sel_dialog   (GtkWindow *toplevel, GtkWidget *w);
00065 char      *go_gtk_select_image      (GtkWindow *toplevel, const char *initial);
00066 #if 0 /* dropped, since abiword doesn't depend on libglade */
00067 char      *gui_get_image_save_info  (GtkWindow *toplevel, GSList *supported_formats,
00068                      GOImageFormat *ret_format, double *dpi);
00069 #endif
00070 
00071 gboolean   go_gtk_url_is_writeable  (GtkWindow *parent, char const *url,
00072                      gboolean overwrite_by_default);
00073 
00074 void       go_atk_setup_label       (GtkWidget *label, GtkWidget *target);
00075 
00076 void       go_dialog_guess_alternative_button_order (GtkDialog *dialog);
00077 
00078 G_END_DECLS
00079 
00080 #endif /* _GOFFICE_GTK_H_ */

Generated on Wed Mar 5 2014 for AbiWord by  doxygen 1.7.1