1 /* Bluefish HTML Editor 2 * htmlbar.h - plugin for html toolbar 3 * 4 * Copyright (C) 2002-2005 Olivier Sessink 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 #ifndef __HTMLBAR_H_ 21 #define __HTMLBAR_H_ 22 23 #define ENABLEPLUGINS 24 /* #define DEBUG */ 25 26 #include <gtk/gtk.h> 27 #include "../config.h" 28 #include "../bluefish.h" 29 30 #ifdef ENABLE_NLS 31 #undef _ 32 #define _(String) dgettext(PACKAGE"_plugin_htmlbar", String) 33 #endif 34 35 typedef struct { 36 GHashTable *lookup; 37 GList *quickbar_items; 38 gint in_sidepanel; 39 gint lowercase_tags; 40 gint transient_htdialogs; 41 } Thtmlbar; 42 43 typedef struct { 44 Tbfwin *bfwin; 45 GtkWidget *handlebox; /* if top toolbar */ 46 GtkWidget *npage; /* if notebook page */ 47 GtkActionGroup *actiongroup; 48 GtkWidget *quickbar_toolbar; 49 } Thtmlbarwin; 50 51 typedef struct { 52 gint view_htmlbar; 53 gint notebooktab; 54 gint thumbnailwidth; 55 } Thtmlbarsession; 56 57 extern Thtmlbar htmlbar_v; 58 59 #endif /* __HTMLBAR_H_ */ 60