1 // -*- C++ -*- 2 /** 3 * \file src/FontEnums.h 4 * This file is part of LyX, the document processor. 5 * Licence details can be found in the file COPYING. 6 * 7 * \author Lars Gullik Bjønnes 8 * \author Jean-Marc Lasgouttes 9 * \author Angus Leeming 10 * \author Dekel Tsur 11 * 12 * Full author contact details are available in file CREDITS. 13 */ 14 15 #ifndef FONT_ENUMS_H 16 #define FONT_ENUMS_H 17 18 namespace lyx { 19 20 /** The value INHERIT_* means that the font attribute is 21 inherited from the layout. In the case of layout fonts, the 22 attribute is inherited from the default font. 23 The value IGNORE_* is used with Font::update() when the 24 attribute should not be changed. 25 */ 26 enum FontFamily { 27 /// 28 ROMAN_FAMILY = 0, 29 /// 30 SANS_FAMILY, 31 /// 32 TYPEWRITER_FAMILY, 33 /// 34 SYMBOL_FAMILY, 35 /// 36 CMR_FAMILY, 37 /// 38 CMSY_FAMILY, 39 /// 40 CMM_FAMILY, 41 /// 42 CMEX_FAMILY, 43 /// 44 MSA_FAMILY, 45 /// 46 MSB_FAMILY, 47 /// 48 EUFRAK_FAMILY, 49 /// 50 RSFS_FAMILY, 51 /// 52 STMARY_FAMILY, 53 /// 54 WASY_FAMILY, 55 /// 56 ESINT_FAMILY, 57 /// 58 INHERIT_FAMILY, 59 /// 60 IGNORE_FAMILY, 61 /// 62 NUM_FAMILIES = INHERIT_FAMILY 63 }; 64 65 /// 66 enum FontSeries { 67 /// 68 MEDIUM_SERIES = 0, 69 /// 70 BOLD_SERIES, 71 /// 72 INHERIT_SERIES, 73 /// 74 IGNORE_SERIES, 75 /// 76 NUM_SERIES = INHERIT_SERIES 77 }; 78 79 /// 80 enum FontShape { 81 /// 82 UP_SHAPE = 0, 83 /// 84 ITALIC_SHAPE, 85 /// 86 SLANTED_SHAPE, 87 /// 88 SMALLCAPS_SHAPE, 89 /// 90 INHERIT_SHAPE, 91 /// 92 IGNORE_SHAPE, 93 /// 94 NUM_SHAPE = INHERIT_SHAPE 95 }; 96 97 /// 98 enum FontSize { 99 /// 100 FONT_SIZE_TINY = 0, 101 /// 102 FONT_SIZE_SCRIPT, 103 /// 104 FONT_SIZE_FOOTNOTE, 105 /// 106 FONT_SIZE_SMALL, 107 /// 108 FONT_SIZE_NORMAL, 109 /// 110 FONT_SIZE_LARGE, 111 /// 112 FONT_SIZE_LARGER, 113 /// 114 FONT_SIZE_LARGEST, 115 /// 116 FONT_SIZE_HUGE, 117 /// 118 FONT_SIZE_HUGER, 119 /// 120 FONT_SIZE_INCREASE, 121 /// 122 FONT_SIZE_DECREASE, 123 /// 124 FONT_SIZE_INHERIT, 125 /// 126 FONT_SIZE_IGNORE, 127 /// 128 NUM_SIZE = FONT_SIZE_INCREASE 129 }; 130 131 /// Used for emph, underbar, noun and latex toggles 132 enum FontState { 133 /// 134 FONT_OFF, 135 /// 136 FONT_ON, 137 /// 138 FONT_TOGGLE, 139 /// 140 FONT_INHERIT, 141 /// 142 FONT_IGNORE 143 }; 144 145 146 /// Math styles 147 enum MathStyle { 148 /// 149 LM_ST_SCRIPTSCRIPT = 0, 150 /// 151 LM_ST_SCRIPT, 152 /// 153 LM_ST_TEXT, 154 /// 155 LM_ST_DISPLAY, 156 /// 157 NUM_STYLE = LM_ST_DISPLAY 158 }; 159 160 161 } // namespace lyx 162 #endif 163