1 /* 2 * latexenvironments.h 3 * 4 * Copyright 2009-2012 Frank Lanitz <frank(at)frank(dot)uvena(dot)de> 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 2 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, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 19 * MA 02110-1301, USA. 20 */ 21 22 #ifndef LATEXENVIRONMENTS_H 23 #define LATEXENVIRONMENTS_H 24 25 #include "latex.h" 26 #include <string.h> 27 28 enum { 29 ENVIRONMENT_CAT_DUMMY = 0, 30 ENVIRONMENT_CAT_FORMAT, 31 ENVIRONMENT_CAT_STRUCTURE, 32 ENVIRONMENT_CAT_LISTS, 33 ENVIRONMENT_CAT_MATH, 34 ENVIRONMENT_CAT_MAX 35 }; 36 37 enum { 38 GLATEX_LIST_DESCRIPTION = 0, 39 GLATEX_LIST_ENUMERATE, 40 GLATEX_LIST_ITEMIZE, 41 GLATEX_LIST_END 42 }; 43 44 enum { 45 GLATEX_ENVIRONMENT_TYPE_NONE = 0, 46 GLATEX_ENVIRONMENT_TYPE_LIST 47 }; 48 49 extern SubMenuTemplate glatex_environment_array[]; 50 51 extern CategoryName glatex_environment_cat_names[]; 52 53 void glatex_insert_environment(const gchar *environment, gint type); 54 55 void 56 glatex_insert_environment_dialog(G_GNUC_UNUSED GtkMenuItem *menuitem, 57 G_GNUC_UNUSED gpointer gdata); 58 59 void 60 glatex_environment_insert_activated (G_GNUC_UNUSED GtkMenuItem *menuitem, 61 G_GNUC_UNUSED gpointer gdata); 62 63 void glatex_insert_list_environment(gint type); 64 #endif 65