1 /* 2 * formatutils.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 LATEXFORMATUTILS_H 23 #define LATEXFORMATUTILS_H 24 25 #include "latex.h" 26 27 enum { 28 LATEX_ITALIC = 0, 29 LATEX_BOLD, 30 LATEX_UNDERLINE, 31 LATEX_TYPEWRITER, 32 LATEX_SMALLCAPS, 33 LATEX_SLANTED, 34 LATEX_EMPHASIS, 35 LATEX_CENTER, 36 LATEX_LEFT, 37 LATEX_RIGHT, 38 LATEX_STYLES_END 39 }; 40 41 /* Couting from smalles on up to biggest default font size. Keep in mind: 42 * LATEX_FONTSIZE_LARGE1 -> large 43 * LATEX_FONTSIZE_LARGE2 -> Large 44 * LATEX_FONTSIZE_LARGE3 -> LARGE 45 * LATEX_FONTSIZE_HUGE1 -> huge 46 * LATEX_FONTSIZE_HUGE2 -> Huge */ 47 enum { 48 LATEX_FONTSIZE_TINY = 0, 49 LATEX_FONTSIZE_SCRIPTSIZE, 50 LATEX_FONTSIZE_FOOTNOTESIZE, 51 LATEX_FONTSIZE_SMALL, 52 LATEX_FONTSIZE_NORMALSIZE, 53 LATEX_FONTSIZE_LARGE1, 54 LATEX_FONTSIZE_LARGE2, 55 LATEX_FONTSIZE_LARGE3, 56 LATEX_FONTSIZE_HUGE1, 57 LATEX_FONTSIZE_HUGE2, 58 LATEX_FONTSIZE_END 59 }; 60 61 extern const gchar* glatex_format_pattern[]; 62 extern const gchar *glatex_format_labels[]; 63 extern const gchar *glatex_fontsize_labels[]; 64 extern const gchar *glatex_fontsize_pattern[]; 65 void glatex_insert_latex_format(GtkMenuItem * menuitem, gpointer gdata); 66 void glatex_insert_latex_fontsize(GtkMenuItem * menuitem, gpointer gdata); 67 68 #endif 69