gtkimhtmltoolbar.h

00001 /*
00002  * GtkIMHtmlToolbar
00003  *
00004  * Pidgin is the legal property of its developers, whose names are too numerous
00005  * to list here.  Please refer to the COPYRIGHT file distributed with this
00006  * source distribution.
00007  *
00008  * This program is free software; you can redistribute it and/or modify
00009  * under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
00021  *
00022  */
00023 #ifndef _PIDGINIMHTMLTOOLBAR_H_
00024 #define _PIDGINIMHTMLTOOLBAR_H_
00025 
00026 #include <gtk/gtkvbox.h>
00027 #include "gtkimhtml.h"
00028 
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif
00032 
00033 #define DEFAULT_FONT_FACE "Helvetica 12"
00034 
00035 #define GTK_TYPE_IMHTMLTOOLBAR            (gtk_imhtmltoolbar_get_type ())
00036 #define GTK_IMHTMLTOOLBAR(obj)            (GTK_CHECK_CAST ((obj), GTK_TYPE_IMHTMLTOOLBAR, GtkIMHtmlToolbar))
00037 #define GTK_IMHTMLTOOLBAR_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_IMHTMLTOOLBAR, GtkIMHtmlToolbarClass))
00038 #define GTK_IS_IMHTMLTOOLBAR(obj)         (GTK_CHECK_TYPE ((obj), GTK_TYPE_IMHTMLTOOLBAR))
00039 #define GTK_IS_IMHTMLTOOLBAR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IMHTMLTOOLBAR))
00040 
00041 typedef struct _GtkIMHtmlToolbar        GtkIMHtmlToolbar;
00042 typedef struct _GtkIMHtmlToolbarClass       GtkIMHtmlToolbarClass;
00043 
00044 struct _GtkIMHtmlToolbar {
00045     GtkHBox box;
00046 
00047     GtkWidget *imhtml;
00048 
00049     GtkTooltips *tooltips;
00050 
00051     GtkWidget *bold;
00052     GtkWidget *italic;
00053     GtkWidget *underline;
00054 
00055     GtkWidget *larger_size;
00056     GtkWidget *normal_size;
00057     GtkWidget *smaller_size;
00058 
00059     GtkWidget *font;
00060     GtkWidget *fgcolor;
00061     GtkWidget *bgcolor;
00062 
00063     GtkWidget *clear;
00064 
00065     GtkWidget *image;
00066     GtkWidget *link;
00067     GtkWidget *smiley;
00068 
00069     GtkWidget *font_dialog;
00070     GtkWidget *fgcolor_dialog;
00071     GtkWidget *bgcolor_dialog;
00072     GtkWidget *link_dialog;
00073     GtkWidget *smiley_dialog;
00074     GtkWidget *image_dialog;
00075 
00076     char *sml;
00077     GtkWidget *strikethrough;
00078     GtkWidget *insert_hr;
00079 };
00080 
00081 struct _GtkIMHtmlToolbarClass {
00082     GtkHBoxClass parent_class;
00083 
00084 };
00085 
00086 GType      gtk_imhtmltoolbar_get_type         (void);
00087 GtkWidget* gtk_imhtmltoolbar_new              (void);
00088 
00089 void gtk_imhtmltoolbar_attach    (GtkIMHtmlToolbar *toolbar, GtkWidget *imhtml);
00090 void gtk_imhtmltoolbar_associate_smileys (GtkIMHtmlToolbar *toolbar, const char *proto_id);
00091 
00092 
00093 #ifdef __cplusplus
00094 }
00095 #endif
00096 
00097 #endif /* _PIDGINIMHTMLTOOLBAR_H_ */