mathematical 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -7
- data/Rakefile +4 -1
- data/ext/mathematical/cairo_callbacks.h +5 -0
- data/ext/mathematical/extconf.rb +34 -8
- data/ext/mathematical/lasem_overrides.c +32 -3
- data/ext/mathematical/lasem_overrides.h +11 -2
- data/ext/mathematical/mathematical.c +27 -26
- data/ext/mathematical/mathematical.h +5 -1
- data/ext/mathematical/mtex2MML/deps/strdup/strdup.c +24 -0
- data/ext/mathematical/mtex2MML/deps/strdup/strdup.h +24 -0
- data/ext/mathematical/mtex2MML/deps/uthash/utarray.h +1 -0
- data/ext/mathematical/mtex2MML/src/{color_definitions.c → colors.c} +2 -3
- data/ext/mathematical/mtex2MML/src/colors.h +23 -0
- data/ext/mathematical/mtex2MML/src/em.c +99 -0
- data/ext/mathematical/mtex2MML/src/em.h +31 -0
- data/ext/mathematical/mtex2MML/src/{parse_extras.c → environment.c} +73 -157
- data/ext/mathematical/mtex2MML/src/environment.h +85 -0
- data/ext/mathematical/mtex2MML/src/{mtex2MML.l → lexer.l} +26 -15
- data/ext/mathematical/mtex2MML/src/main.c +31 -10
- data/ext/mathematical/mtex2MML/src/mtex2MML.h +19 -7
- data/ext/mathematical/mtex2MML/src/{mtex2MML.y → parser.y} +451 -446
- data/ext/mathematical/mtex2MML/src/string_extras.c +4 -3
- data/ext/mathematical/mtex2MML/src/string_extras.h +7 -7
- data/ext/mathematical/mtex2MML/tests/array.c +11 -11
- data/ext/mathematical/mtex2MML/tests/basic.c +14 -13
- data/ext/mathematical/mtex2MML/tests/clar.c +2 -0
- data/ext/mathematical/mtex2MML/tests/clar/fs.h +3 -1
- data/ext/mathematical/mtex2MML/tests/clar/sandbox.h +3 -1
- data/ext/mathematical/mtex2MML/tests/cornercases.c +3 -2
- data/ext/mathematical/mtex2MML/tests/delimiters.c +126 -0
- data/ext/mathematical/mtex2MML/tests/deps/file2str/file2str.c +2 -4
- data/ext/mathematical/mtex2MML/tests/deps/mkdtemp/mkdtemp.c +151 -0
- data/ext/mathematical/mtex2MML/tests/deps/mkdtemp/mkdtemp.h +10 -0
- data/ext/mathematical/mtex2MML/tests/deps/trim/trim.c +4 -1
- data/ext/mathematical/mtex2MML/tests/env.c +35 -34
- data/ext/mathematical/mtex2MML/tests/functions.c +3 -2
- data/ext/mathematical/mtex2MML/tests/helpers.c +6 -4
- data/ext/mathematical/mtex2MML/tests/helpers.h +2 -2
- data/ext/mathematical/mtex2MML/tests/main.c +1 -1
- data/ext/mathematical/mtex2MML/tests/maliciousness.c +35 -9
- data/ext/mathematical/mtex2MML/tests/mathjax.c +202 -202
- data/ext/mathematical/mtex2MML/tests/numbered_equations.c +6 -6
- data/ext/mathematical/mtex2MML/tests/performance.c +39 -0
- data/lib/mathematical.rb +38 -5
- data/lib/mathematical/configuration.rb +19 -0
- data/lib/mathematical/validator.rb +17 -31
- data/lib/mathematical/version.rb +1 -1
- data/mathematical.gemspec +3 -1
- data/test/mathematical/basic_test.rb +60 -7
- data/test/mathematical/corrections_test.rb +1 -1
- data/test/mathematical/delimiters_test.rb +58 -0
- data/test/mathematical/fixtures_test.rb +3 -2
- data/test/mathematical/maliciousness_test.rb +19 -27
- data/test/mathematical/mathjax_test.rb +6 -5
- data/test/mathematical/mathml_test.rb +1 -1
- data/test/mathematical/multiples_test.rb +1 -1
- data/test/mathematical/performance_test.rb +3 -1
- data/test/mathematical/png_test.rb +3 -3
- data/test/test_helper.rb +4 -1
- metadata +35 -21
- data/ext/mathematical/lasem/src/lsmdomenumtypes.c +0 -99
- data/ext/mathematical/lasem/src/lsmdomenumtypes.h +0 -26
- data/ext/mathematical/lasem/src/lsmmathmlenumtypes.c +0 -737
- data/ext/mathematical/lasem/src/lsmmathmlenumtypes.h +0 -93
- data/ext/mathematical/lasem/src/lsmsvgenumtypes.c +0 -1083
- data/ext/mathematical/lasem/src/lsmsvgenumtypes.h +0 -111
- data/ext/mathematical/mtex2MML/Makefile +0 -100
- data/ext/mathematical/mtex2MML/build/libmtex2MML.a +0 -0
- data/ext/mathematical/mtex2MML/build/mtex2MML.h +0 -73
- data/ext/mathematical/mtex2MML/src/lex.yy.c +0 -8845
- data/ext/mathematical/mtex2MML/src/parse_extras.h +0 -111
- data/ext/mathematical/mtex2MML/src/y.tab.c +0 -10178
- data/ext/mathematical/mtex2MML/src/y.tab.h +0 -617
@@ -1,93 +0,0 @@
|
|
1
|
-
|
2
|
-
/* Generated data (by glib-mkenums) */
|
3
|
-
|
4
|
-
#ifndef LSM_MATHML_ENUM_TYPES_H
|
5
|
-
#define LSM_MATHML_ENUM_TYPES_H
|
6
|
-
|
7
|
-
#include <glib-object.h>
|
8
|
-
|
9
|
-
G_BEGIN_DECLS
|
10
|
-
|
11
|
-
/* Enumerations from "lsmmathmlenums.h" */
|
12
|
-
|
13
|
-
#define LSM_TYPE_MATHML_CSS_TYPE (lsm_mathml_css_type_get_type())
|
14
|
-
GType lsm_mathml_css_type_get_type (void) G_GNUC_CONST;
|
15
|
-
|
16
|
-
#define LSM_TYPE_MATHML_MODE (lsm_mathml_mode_get_type())
|
17
|
-
GType lsm_mathml_mode_get_type (void) G_GNUC_CONST;
|
18
|
-
|
19
|
-
#define LSM_TYPE_MATHML_DISPLAY (lsm_mathml_display_get_type())
|
20
|
-
GType lsm_mathml_display_get_type (void) G_GNUC_CONST;
|
21
|
-
|
22
|
-
#define LSM_TYPE_MATHML_SPACE_NAME (lsm_mathml_space_name_get_type())
|
23
|
-
GType lsm_mathml_space_name_get_type (void) G_GNUC_CONST;
|
24
|
-
|
25
|
-
#define LSM_TYPE_MATHML_UNIT (lsm_mathml_unit_get_type())
|
26
|
-
GType lsm_mathml_unit_get_type (void) G_GNUC_CONST;
|
27
|
-
|
28
|
-
#define LSM_TYPE_MATHML_FONT_STYLE (lsm_mathml_font_style_get_type())
|
29
|
-
GType lsm_mathml_font_style_get_type (void) G_GNUC_CONST;
|
30
|
-
|
31
|
-
#define LSM_TYPE_MATHML_FONT_WEIGHT (lsm_mathml_font_weight_get_type())
|
32
|
-
GType lsm_mathml_font_weight_get_type (void) G_GNUC_CONST;
|
33
|
-
|
34
|
-
#define LSM_TYPE_MATHML_VARIANT (lsm_mathml_variant_get_type())
|
35
|
-
GType lsm_mathml_variant_get_type (void) G_GNUC_CONST;
|
36
|
-
|
37
|
-
#define LSM_TYPE_MATHML_FORM (lsm_mathml_form_get_type())
|
38
|
-
GType lsm_mathml_form_get_type (void) G_GNUC_CONST;
|
39
|
-
|
40
|
-
#define LSM_TYPE_MATHML_ROW_ALIGN (lsm_mathml_row_align_get_type())
|
41
|
-
GType lsm_mathml_row_align_get_type (void) G_GNUC_CONST;
|
42
|
-
|
43
|
-
#define LSM_TYPE_MATHML_COLUMN_ALIGN (lsm_mathml_column_align_get_type())
|
44
|
-
GType lsm_mathml_column_align_get_type (void) G_GNUC_CONST;
|
45
|
-
|
46
|
-
#define LSM_TYPE_MATHML_LINE (lsm_mathml_line_get_type())
|
47
|
-
GType lsm_mathml_line_get_type (void) G_GNUC_CONST;
|
48
|
-
|
49
|
-
#define LSM_TYPE_MATHML_SCRIPT_LEVEL_SIGN (lsm_mathml_script_level_sign_get_type())
|
50
|
-
GType lsm_mathml_script_level_sign_get_type (void) G_GNUC_CONST;
|
51
|
-
|
52
|
-
#define LSM_TYPE_MATHML_NOTATION (lsm_mathml_notation_get_type())
|
53
|
-
GType lsm_mathml_notation_get_type (void) G_GNUC_CONST;
|
54
|
-
|
55
|
-
/* Enumerations from "lsmmathmltablerowelement.h" */
|
56
|
-
|
57
|
-
#define LSM_TYPE_MATHML_TABLE_ROW_ELEMENT_TYPE (lsm_mathml_table_row_element_type_get_type())
|
58
|
-
GType lsm_mathml_table_row_element_type_get_type (void) G_GNUC_CONST;
|
59
|
-
|
60
|
-
/* Enumerations from "lsmmathmlradicalelement.h" */
|
61
|
-
|
62
|
-
#define LSM_TYPE_MATHML_RADICAL_ELEMENT_TYPE (lsm_mathml_radical_element_type_get_type())
|
63
|
-
GType lsm_mathml_radical_element_type_get_type (void) G_GNUC_CONST;
|
64
|
-
|
65
|
-
/* Enumerations from "lsmmathmlscriptelement.h" */
|
66
|
-
|
67
|
-
#define LSM_TYPE_MATHML_SCRIPT_ELEMENT_TYPE (lsm_mathml_script_element_type_get_type())
|
68
|
-
GType lsm_mathml_script_element_type_get_type (void) G_GNUC_CONST;
|
69
|
-
|
70
|
-
/* Enumerations from "lsmmathmlunderoverelement.h" */
|
71
|
-
|
72
|
-
#define LSM_TYPE_MATHML_UNDER_OVER_ELEMENT_TYPE (lsm_mathml_under_over_element_type_get_type())
|
73
|
-
GType lsm_mathml_under_over_element_type_get_type (void) G_GNUC_CONST;
|
74
|
-
|
75
|
-
/* Enumerations from "lsmmathmlpresentationtoken.h" */
|
76
|
-
|
77
|
-
#define LSM_TYPE_MATHML_PRESENTATION_TOKEN_TYPE (lsm_mathml_presentation_token_type_get_type())
|
78
|
-
GType lsm_mathml_presentation_token_type_get_type (void) G_GNUC_CONST;
|
79
|
-
|
80
|
-
/* Enumerations from "lsmmathmlview.h" */
|
81
|
-
|
82
|
-
#define LSM_TYPE_MATHML_GLYPH_FLAGS (lsm_mathml_glyph_flags_get_type())
|
83
|
-
GType lsm_mathml_glyph_flags_get_type (void) G_GNUC_CONST;
|
84
|
-
|
85
|
-
#define LSM_TYPE_MATHML_FONT (lsm_mathml_font_get_type())
|
86
|
-
GType lsm_mathml_font_get_type (void) G_GNUC_CONST;
|
87
|
-
|
88
|
-
G_END_DECLS
|
89
|
-
|
90
|
-
#endif /* LSM_MATHML_ENUM_TYPES_H */
|
91
|
-
|
92
|
-
/* Generated data ends here */
|
93
|
-
|
@@ -1,1083 +0,0 @@
|
|
1
|
-
|
2
|
-
/* Generated data (by glib-mkenums) */
|
3
|
-
|
4
|
-
#include "lsmsvgenumtypes.h"
|
5
|
-
|
6
|
-
/* enumerations from "lsmsvgenums.h" */
|
7
|
-
#include "lsmsvgenums.h"
|
8
|
-
|
9
|
-
GType
|
10
|
-
lsm_svg_angle_type_get_type (void)
|
11
|
-
{
|
12
|
-
static GType the_type = 0;
|
13
|
-
|
14
|
-
if (the_type == 0)
|
15
|
-
{
|
16
|
-
static const GEnumValue values[] = {
|
17
|
-
{ LSM_SVG_ANGLE_TYPE_ERROR,
|
18
|
-
"LSM_SVG_ANGLE_TYPE_ERROR",
|
19
|
-
"error" },
|
20
|
-
{ LSM_SVG_ANGLE_TYPE_AUTO,
|
21
|
-
"LSM_SVG_ANGLE_TYPE_AUTO",
|
22
|
-
"auto" },
|
23
|
-
{ LSM_SVG_ANGLE_TYPE_FIXED,
|
24
|
-
"LSM_SVG_ANGLE_TYPE_FIXED",
|
25
|
-
"fixed" },
|
26
|
-
{ 0, NULL, NULL }
|
27
|
-
};
|
28
|
-
the_type = g_enum_register_static (
|
29
|
-
g_intern_static_string ("LsmSvgAngleType"),
|
30
|
-
values);
|
31
|
-
}
|
32
|
-
return the_type;
|
33
|
-
}
|
34
|
-
|
35
|
-
GType
|
36
|
-
lsm_svg_blending_mode_get_type (void)
|
37
|
-
{
|
38
|
-
static GType the_type = 0;
|
39
|
-
|
40
|
-
if (the_type == 0)
|
41
|
-
{
|
42
|
-
static const GEnumValue values[] = {
|
43
|
-
{ LSM_SVG_BLENDING_MODE_ERROR,
|
44
|
-
"LSM_SVG_BLENDING_MODE_ERROR",
|
45
|
-
"error" },
|
46
|
-
{ LSM_SVG_BLENDING_MODE_NORMAL,
|
47
|
-
"LSM_SVG_BLENDING_MODE_NORMAL",
|
48
|
-
"normal" },
|
49
|
-
{ LSM_SVG_BLENDING_MODE_MULTIPLY,
|
50
|
-
"LSM_SVG_BLENDING_MODE_MULTIPLY",
|
51
|
-
"multiply" },
|
52
|
-
{ LSM_SVG_BLENDING_MODE_SCREEN,
|
53
|
-
"LSM_SVG_BLENDING_MODE_SCREEN",
|
54
|
-
"screen" },
|
55
|
-
{ LSM_SVG_BLENDING_MODE_DARKEN,
|
56
|
-
"LSM_SVG_BLENDING_MODE_DARKEN",
|
57
|
-
"darken" },
|
58
|
-
{ LSM_SVG_BLENDING_MODE_LIGHTEN,
|
59
|
-
"LSM_SVG_BLENDING_MODE_LIGHTEN",
|
60
|
-
"lighten" },
|
61
|
-
{ LSM_SVG_BLENDING_MODE_OVER,
|
62
|
-
"LSM_SVG_BLENDING_MODE_OVER",
|
63
|
-
"over" },
|
64
|
-
{ LSM_SVG_BLENDING_MODE_IN,
|
65
|
-
"LSM_SVG_BLENDING_MODE_IN",
|
66
|
-
"in" },
|
67
|
-
{ LSM_SVG_BLENDING_MODE_OUT,
|
68
|
-
"LSM_SVG_BLENDING_MODE_OUT",
|
69
|
-
"out" },
|
70
|
-
{ LSM_SVG_BLENDING_MODE_ATOP,
|
71
|
-
"LSM_SVG_BLENDING_MODE_ATOP",
|
72
|
-
"atop" },
|
73
|
-
{ LSM_SVG_BLENDING_MODE_XOR,
|
74
|
-
"LSM_SVG_BLENDING_MODE_XOR",
|
75
|
-
"xor" },
|
76
|
-
{ 0, NULL, NULL }
|
77
|
-
};
|
78
|
-
the_type = g_enum_register_static (
|
79
|
-
g_intern_static_string ("LsmSvgBlendingMode"),
|
80
|
-
values);
|
81
|
-
}
|
82
|
-
return the_type;
|
83
|
-
}
|
84
|
-
|
85
|
-
GType
|
86
|
-
lsm_svg_enable_background_get_type (void)
|
87
|
-
{
|
88
|
-
static GType the_type = 0;
|
89
|
-
|
90
|
-
if (the_type == 0)
|
91
|
-
{
|
92
|
-
static const GEnumValue values[] = {
|
93
|
-
{ LSM_SVG_ENABLE_BACKGROUND_ERROR,
|
94
|
-
"LSM_SVG_ENABLE_BACKGROUND_ERROR",
|
95
|
-
"error" },
|
96
|
-
{ LSM_SVG_ENABLE_BACKGROUND_ACCUMULATE,
|
97
|
-
"LSM_SVG_ENABLE_BACKGROUND_ACCUMULATE",
|
98
|
-
"accumulate" },
|
99
|
-
{ LSM_SVG_ENABLE_BACKGROUND_NEW,
|
100
|
-
"LSM_SVG_ENABLE_BACKGROUND_NEW",
|
101
|
-
"new" },
|
102
|
-
{ 0, NULL, NULL }
|
103
|
-
};
|
104
|
-
the_type = g_enum_register_static (
|
105
|
-
g_intern_static_string ("LsmSvgEnableBackground"),
|
106
|
-
values);
|
107
|
-
}
|
108
|
-
return the_type;
|
109
|
-
}
|
110
|
-
|
111
|
-
GType
|
112
|
-
lsm_svg_paint_type_get_type (void)
|
113
|
-
{
|
114
|
-
static GType the_type = 0;
|
115
|
-
|
116
|
-
if (the_type == 0)
|
117
|
-
{
|
118
|
-
static const GEnumValue values[] = {
|
119
|
-
{ LSM_SVG_PAINT_TYPE_ERROR,
|
120
|
-
"LSM_SVG_PAINT_TYPE_ERROR",
|
121
|
-
"error" },
|
122
|
-
{ LSM_SVG_PAINT_TYPE_UNKNOWN,
|
123
|
-
"LSM_SVG_PAINT_TYPE_UNKNOWN",
|
124
|
-
"unknown" },
|
125
|
-
{ LSM_SVG_PAINT_TYPE_RGB_COLOR,
|
126
|
-
"LSM_SVG_PAINT_TYPE_RGB_COLOR",
|
127
|
-
"rgb-color" },
|
128
|
-
{ LSM_SVG_PAINT_TYPE_RGB_COLOR_ICC_COLOR,
|
129
|
-
"LSM_SVG_PAINT_TYPE_RGB_COLOR_ICC_COLOR",
|
130
|
-
"rgb-color-icc-color" },
|
131
|
-
{ LSM_SVG_PAINT_TYPE_NONE,
|
132
|
-
"LSM_SVG_PAINT_TYPE_NONE",
|
133
|
-
"none" },
|
134
|
-
{ LSM_SVG_PAINT_TYPE_CURRENT_COLOR,
|
135
|
-
"LSM_SVG_PAINT_TYPE_CURRENT_COLOR",
|
136
|
-
"current-color" },
|
137
|
-
{ LSM_SVG_PAINT_TYPE_URI_NONE,
|
138
|
-
"LSM_SVG_PAINT_TYPE_URI_NONE",
|
139
|
-
"uri-none" },
|
140
|
-
{ LSM_SVG_PAINT_TYPE_URI_CURRENT_COLOR,
|
141
|
-
"LSM_SVG_PAINT_TYPE_URI_CURRENT_COLOR",
|
142
|
-
"uri-current-color" },
|
143
|
-
{ LSM_SVG_PAINT_TYPE_URI_RGB_COLOR,
|
144
|
-
"LSM_SVG_PAINT_TYPE_URI_RGB_COLOR",
|
145
|
-
"uri-rgb-color" },
|
146
|
-
{ LSM_SVG_PAINT_TYPE_URI_RGB_COLOR_ICC_COLOR,
|
147
|
-
"LSM_SVG_PAINT_TYPE_URI_RGB_COLOR_ICC_COLOR",
|
148
|
-
"uri-rgb-color-icc-color" },
|
149
|
-
{ LSM_SVG_PAINT_TYPE_URI,
|
150
|
-
"LSM_SVG_PAINT_TYPE_URI",
|
151
|
-
"uri" },
|
152
|
-
{ 0, NULL, NULL }
|
153
|
-
};
|
154
|
-
the_type = g_enum_register_static (
|
155
|
-
g_intern_static_string ("LsmSvgPaintType"),
|
156
|
-
values);
|
157
|
-
}
|
158
|
-
return the_type;
|
159
|
-
}
|
160
|
-
|
161
|
-
GType
|
162
|
-
lsm_svg_length_direction_get_type (void)
|
163
|
-
{
|
164
|
-
static GType the_type = 0;
|
165
|
-
|
166
|
-
if (the_type == 0)
|
167
|
-
{
|
168
|
-
static const GEnumValue values[] = {
|
169
|
-
{ LSM_SVG_LENGTH_DIRECTION_ERROR,
|
170
|
-
"LSM_SVG_LENGTH_DIRECTION_ERROR",
|
171
|
-
"error" },
|
172
|
-
{ LSM_SVG_LENGTH_DIRECTION_HORIZONTAL,
|
173
|
-
"LSM_SVG_LENGTH_DIRECTION_HORIZONTAL",
|
174
|
-
"horizontal" },
|
175
|
-
{ LSM_SVG_LENGTH_DIRECTION_VERTICAL,
|
176
|
-
"LSM_SVG_LENGTH_DIRECTION_VERTICAL",
|
177
|
-
"vertical" },
|
178
|
-
{ LSM_SVG_LENGTH_DIRECTION_DIAGONAL,
|
179
|
-
"LSM_SVG_LENGTH_DIRECTION_DIAGONAL",
|
180
|
-
"diagonal" },
|
181
|
-
{ 0, NULL, NULL }
|
182
|
-
};
|
183
|
-
the_type = g_enum_register_static (
|
184
|
-
g_intern_static_string ("LsmSvgLengthDirection"),
|
185
|
-
values);
|
186
|
-
}
|
187
|
-
return the_type;
|
188
|
-
}
|
189
|
-
|
190
|
-
GType
|
191
|
-
lsm_svg_length_type_get_type (void)
|
192
|
-
{
|
193
|
-
static GType the_type = 0;
|
194
|
-
|
195
|
-
if (the_type == 0)
|
196
|
-
{
|
197
|
-
static const GEnumValue values[] = {
|
198
|
-
{ LSM_SVG_LENGTH_TYPE_ERROR,
|
199
|
-
"LSM_SVG_LENGTH_TYPE_ERROR",
|
200
|
-
"error" },
|
201
|
-
{ LSM_SVG_LENGTH_TYPE_NUMBER,
|
202
|
-
"LSM_SVG_LENGTH_TYPE_NUMBER",
|
203
|
-
"number" },
|
204
|
-
{ LSM_SVG_LENGTH_TYPE_PERCENTAGE,
|
205
|
-
"LSM_SVG_LENGTH_TYPE_PERCENTAGE",
|
206
|
-
"percentage" },
|
207
|
-
{ LSM_SVG_LENGTH_TYPE_EMS,
|
208
|
-
"LSM_SVG_LENGTH_TYPE_EMS",
|
209
|
-
"ems" },
|
210
|
-
{ LSM_SVG_LENGTH_TYPE_EXS,
|
211
|
-
"LSM_SVG_LENGTH_TYPE_EXS",
|
212
|
-
"exs" },
|
213
|
-
{ LSM_SVG_LENGTH_TYPE_PX,
|
214
|
-
"LSM_SVG_LENGTH_TYPE_PX",
|
215
|
-
"px" },
|
216
|
-
{ LSM_SVG_LENGTH_TYPE_CM,
|
217
|
-
"LSM_SVG_LENGTH_TYPE_CM",
|
218
|
-
"cm" },
|
219
|
-
{ LSM_SVG_LENGTH_TYPE_MM,
|
220
|
-
"LSM_SVG_LENGTH_TYPE_MM",
|
221
|
-
"mm" },
|
222
|
-
{ LSM_SVG_LENGTH_TYPE_IN,
|
223
|
-
"LSM_SVG_LENGTH_TYPE_IN",
|
224
|
-
"in" },
|
225
|
-
{ LSM_SVG_LENGTH_TYPE_PT,
|
226
|
-
"LSM_SVG_LENGTH_TYPE_PT",
|
227
|
-
"pt" },
|
228
|
-
{ LSM_SVG_LENGTH_TYPE_PC,
|
229
|
-
"LSM_SVG_LENGTH_TYPE_PC",
|
230
|
-
"pc" },
|
231
|
-
{ 0, NULL, NULL }
|
232
|
-
};
|
233
|
-
the_type = g_enum_register_static (
|
234
|
-
g_intern_static_string ("LsmSvgLengthType"),
|
235
|
-
values);
|
236
|
-
}
|
237
|
-
return the_type;
|
238
|
-
}
|
239
|
-
|
240
|
-
GType
|
241
|
-
lsm_svg_fill_rule_get_type (void)
|
242
|
-
{
|
243
|
-
static GType the_type = 0;
|
244
|
-
|
245
|
-
if (the_type == 0)
|
246
|
-
{
|
247
|
-
static const GEnumValue values[] = {
|
248
|
-
{ LSM_SVG_FILL_RULE_ERROR,
|
249
|
-
"LSM_SVG_FILL_RULE_ERROR",
|
250
|
-
"error" },
|
251
|
-
{ LSM_SVG_FILL_RULE_NON_ZERO,
|
252
|
-
"LSM_SVG_FILL_RULE_NON_ZERO",
|
253
|
-
"non-zero" },
|
254
|
-
{ LSM_SVG_FILL_RULE_EVEN_ODD,
|
255
|
-
"LSM_SVG_FILL_RULE_EVEN_ODD",
|
256
|
-
"even-odd" },
|
257
|
-
{ 0, NULL, NULL }
|
258
|
-
};
|
259
|
-
the_type = g_enum_register_static (
|
260
|
-
g_intern_static_string ("LsmSvgFillRule"),
|
261
|
-
values);
|
262
|
-
}
|
263
|
-
return the_type;
|
264
|
-
}
|
265
|
-
|
266
|
-
GType
|
267
|
-
lsm_svg_line_join_get_type (void)
|
268
|
-
{
|
269
|
-
static GType the_type = 0;
|
270
|
-
|
271
|
-
if (the_type == 0)
|
272
|
-
{
|
273
|
-
static const GEnumValue values[] = {
|
274
|
-
{ LSM_SVG_LINE_JOIN_ERROR,
|
275
|
-
"LSM_SVG_LINE_JOIN_ERROR",
|
276
|
-
"error" },
|
277
|
-
{ LSM_SVG_LINE_JOIN_MITER,
|
278
|
-
"LSM_SVG_LINE_JOIN_MITER",
|
279
|
-
"miter" },
|
280
|
-
{ LSM_SVG_LINE_JOIN_ROUND,
|
281
|
-
"LSM_SVG_LINE_JOIN_ROUND",
|
282
|
-
"round" },
|
283
|
-
{ LSM_SVG_LINE_JOIN_BEVEL,
|
284
|
-
"LSM_SVG_LINE_JOIN_BEVEL",
|
285
|
-
"bevel" },
|
286
|
-
{ 0, NULL, NULL }
|
287
|
-
};
|
288
|
-
the_type = g_enum_register_static (
|
289
|
-
g_intern_static_string ("LsmSvgLineJoin"),
|
290
|
-
values);
|
291
|
-
}
|
292
|
-
return the_type;
|
293
|
-
}
|
294
|
-
|
295
|
-
GType
|
296
|
-
lsm_svg_line_cap_get_type (void)
|
297
|
-
{
|
298
|
-
static GType the_type = 0;
|
299
|
-
|
300
|
-
if (the_type == 0)
|
301
|
-
{
|
302
|
-
static const GEnumValue values[] = {
|
303
|
-
{ LSM_SVG_LINE_CAP_ERROR,
|
304
|
-
"LSM_SVG_LINE_CAP_ERROR",
|
305
|
-
"error" },
|
306
|
-
{ LSM_SVG_LINE_CAP_BUTT,
|
307
|
-
"LSM_SVG_LINE_CAP_BUTT",
|
308
|
-
"butt" },
|
309
|
-
{ LSM_SVG_LINE_CAP_ROUND,
|
310
|
-
"LSM_SVG_LINE_CAP_ROUND",
|
311
|
-
"round" },
|
312
|
-
{ LSM_SVG_LINE_CAP_SQUARE,
|
313
|
-
"LSM_SVG_LINE_CAP_SQUARE",
|
314
|
-
"square" },
|
315
|
-
{ 0, NULL, NULL }
|
316
|
-
};
|
317
|
-
the_type = g_enum_register_static (
|
318
|
-
g_intern_static_string ("LsmSvgLineCap"),
|
319
|
-
values);
|
320
|
-
}
|
321
|
-
return the_type;
|
322
|
-
}
|
323
|
-
|
324
|
-
GType
|
325
|
-
lsm_svg_transform_type_get_type (void)
|
326
|
-
{
|
327
|
-
static GType the_type = 0;
|
328
|
-
|
329
|
-
if (the_type == 0)
|
330
|
-
{
|
331
|
-
static const GEnumValue values[] = {
|
332
|
-
{ LSM_SVG_TRANSFORM_TYPE_ERROR,
|
333
|
-
"LSM_SVG_TRANSFORM_TYPE_ERROR",
|
334
|
-
"error" },
|
335
|
-
{ LSM_SVG_TRANSFORM_TYPE_MATRIX,
|
336
|
-
"LSM_SVG_TRANSFORM_TYPE_MATRIX",
|
337
|
-
"matrix" },
|
338
|
-
{ LSM_SVG_TRANSFORM_TYPE_TRANSLATE,
|
339
|
-
"LSM_SVG_TRANSFORM_TYPE_TRANSLATE",
|
340
|
-
"translate" },
|
341
|
-
{ LSM_SVG_TRANSFORM_TYPE_SCALE,
|
342
|
-
"LSM_SVG_TRANSFORM_TYPE_SCALE",
|
343
|
-
"scale" },
|
344
|
-
{ LSM_SVG_TRANSFORM_TYPE_ROTATE,
|
345
|
-
"LSM_SVG_TRANSFORM_TYPE_ROTATE",
|
346
|
-
"rotate" },
|
347
|
-
{ LSM_SVG_TRANSFORM_TYPE_SKEW_X,
|
348
|
-
"LSM_SVG_TRANSFORM_TYPE_SKEW_X",
|
349
|
-
"skew-x" },
|
350
|
-
{ LSM_SVG_TRANSFORM_TYPE_SKEW_Y,
|
351
|
-
"LSM_SVG_TRANSFORM_TYPE_SKEW_Y",
|
352
|
-
"skew-y" },
|
353
|
-
{ 0, NULL, NULL }
|
354
|
-
};
|
355
|
-
the_type = g_enum_register_static (
|
356
|
-
g_intern_static_string ("LsmSvgTransformType"),
|
357
|
-
values);
|
358
|
-
}
|
359
|
-
return the_type;
|
360
|
-
}
|
361
|
-
|
362
|
-
GType
|
363
|
-
lsm_svg_overflow_get_type (void)
|
364
|
-
{
|
365
|
-
static GType the_type = 0;
|
366
|
-
|
367
|
-
if (the_type == 0)
|
368
|
-
{
|
369
|
-
static const GEnumValue values[] = {
|
370
|
-
{ LSM_SVG_OVERFLOW_ERROR,
|
371
|
-
"LSM_SVG_OVERFLOW_ERROR",
|
372
|
-
"error" },
|
373
|
-
{ LSM_SVG_OVERFLOW_VISIBLE,
|
374
|
-
"LSM_SVG_OVERFLOW_VISIBLE",
|
375
|
-
"visible" },
|
376
|
-
{ LSM_SVG_OVERFLOW_HIDDEN,
|
377
|
-
"LSM_SVG_OVERFLOW_HIDDEN",
|
378
|
-
"hidden" },
|
379
|
-
{ LSM_SVG_OVERFLOW_SCROLL,
|
380
|
-
"LSM_SVG_OVERFLOW_SCROLL",
|
381
|
-
"scroll" },
|
382
|
-
{ LSM_SVG_OVERFLOW_AUTO,
|
383
|
-
"LSM_SVG_OVERFLOW_AUTO",
|
384
|
-
"auto" },
|
385
|
-
{ 0, NULL, NULL }
|
386
|
-
};
|
387
|
-
the_type = g_enum_register_static (
|
388
|
-
g_intern_static_string ("LsmSvgOverflow"),
|
389
|
-
values);
|
390
|
-
}
|
391
|
-
return the_type;
|
392
|
-
}
|
393
|
-
|
394
|
-
GType
|
395
|
-
lsm_svg_pattern_units_get_type (void)
|
396
|
-
{
|
397
|
-
static GType the_type = 0;
|
398
|
-
|
399
|
-
if (the_type == 0)
|
400
|
-
{
|
401
|
-
static const GEnumValue values[] = {
|
402
|
-
{ LSM_SVG_PATTERN_UNITS_ERROR,
|
403
|
-
"LSM_SVG_PATTERN_UNITS_ERROR",
|
404
|
-
"error" },
|
405
|
-
{ LSM_SVG_PATTERN_UNITS_USER_SPACE_ON_USE,
|
406
|
-
"LSM_SVG_PATTERN_UNITS_USER_SPACE_ON_USE",
|
407
|
-
"user-space-on-use" },
|
408
|
-
{ LSM_SVG_PATTERN_UNITS_OBJECT_BOUNDING_BOX,
|
409
|
-
"LSM_SVG_PATTERN_UNITS_OBJECT_BOUNDING_BOX",
|
410
|
-
"object-bounding-box" },
|
411
|
-
{ 0, NULL, NULL }
|
412
|
-
};
|
413
|
-
the_type = g_enum_register_static (
|
414
|
-
g_intern_static_string ("LsmSvgPatternUnits"),
|
415
|
-
values);
|
416
|
-
}
|
417
|
-
return the_type;
|
418
|
-
}
|
419
|
-
|
420
|
-
GType
|
421
|
-
lsm_svg_marker_units_get_type (void)
|
422
|
-
{
|
423
|
-
static GType the_type = 0;
|
424
|
-
|
425
|
-
if (the_type == 0)
|
426
|
-
{
|
427
|
-
static const GEnumValue values[] = {
|
428
|
-
{ LSM_SVG_MARKER_UNITS_ERROR,
|
429
|
-
"LSM_SVG_MARKER_UNITS_ERROR",
|
430
|
-
"error" },
|
431
|
-
{ LSM_SVG_MARKER_UNITS_STROKE_WIDTH,
|
432
|
-
"LSM_SVG_MARKER_UNITS_STROKE_WIDTH",
|
433
|
-
"stroke-width" },
|
434
|
-
{ LSM_SVG_MARKER_UNITS_USER_SPACE_ON_USE,
|
435
|
-
"LSM_SVG_MARKER_UNITS_USER_SPACE_ON_USE",
|
436
|
-
"user-space-on-use" },
|
437
|
-
{ 0, NULL, NULL }
|
438
|
-
};
|
439
|
-
the_type = g_enum_register_static (
|
440
|
-
g_intern_static_string ("LsmSvgMarkerUnits"),
|
441
|
-
values);
|
442
|
-
}
|
443
|
-
return the_type;
|
444
|
-
}
|
445
|
-
|
446
|
-
GType
|
447
|
-
lsm_svg_spread_method_get_type (void)
|
448
|
-
{
|
449
|
-
static GType the_type = 0;
|
450
|
-
|
451
|
-
if (the_type == 0)
|
452
|
-
{
|
453
|
-
static const GEnumValue values[] = {
|
454
|
-
{ LSM_SVG_SPREAD_METHOD_ERROR,
|
455
|
-
"LSM_SVG_SPREAD_METHOD_ERROR",
|
456
|
-
"error" },
|
457
|
-
{ LSM_SVG_SPREAD_METHOD_PAD,
|
458
|
-
"LSM_SVG_SPREAD_METHOD_PAD",
|
459
|
-
"pad" },
|
460
|
-
{ LSM_SVG_SPREAD_METHOD_REFLECT,
|
461
|
-
"LSM_SVG_SPREAD_METHOD_REFLECT",
|
462
|
-
"reflect" },
|
463
|
-
{ LSM_SVG_SPREAD_METHOD_REPEAT,
|
464
|
-
"LSM_SVG_SPREAD_METHOD_REPEAT",
|
465
|
-
"repeat" },
|
466
|
-
{ 0, NULL, NULL }
|
467
|
-
};
|
468
|
-
the_type = g_enum_register_static (
|
469
|
-
g_intern_static_string ("LsmSvgSpreadMethod"),
|
470
|
-
values);
|
471
|
-
}
|
472
|
-
return the_type;
|
473
|
-
}
|
474
|
-
|
475
|
-
GType
|
476
|
-
lsm_svg_align_get_type (void)
|
477
|
-
{
|
478
|
-
static GType the_type = 0;
|
479
|
-
|
480
|
-
if (the_type == 0)
|
481
|
-
{
|
482
|
-
static const GEnumValue values[] = {
|
483
|
-
{ LSM_SVG_ALIGN_ERROR,
|
484
|
-
"LSM_SVG_ALIGN_ERROR",
|
485
|
-
"error" },
|
486
|
-
{ LSM_SVG_ALIGN_NONE,
|
487
|
-
"LSM_SVG_ALIGN_NONE",
|
488
|
-
"none" },
|
489
|
-
{ LSM_SVG_ALIGN_X_MIN_Y_MIN,
|
490
|
-
"LSM_SVG_ALIGN_X_MIN_Y_MIN",
|
491
|
-
"x-min-y-min" },
|
492
|
-
{ LSM_SVG_ALIGN_X_MID_Y_MIN,
|
493
|
-
"LSM_SVG_ALIGN_X_MID_Y_MIN",
|
494
|
-
"x-mid-y-min" },
|
495
|
-
{ LSM_SVG_ALIGN_X_MAX_Y_MIN,
|
496
|
-
"LSM_SVG_ALIGN_X_MAX_Y_MIN",
|
497
|
-
"x-max-y-min" },
|
498
|
-
{ LSM_SVG_ALIGN_X_MIN_Y_MID,
|
499
|
-
"LSM_SVG_ALIGN_X_MIN_Y_MID",
|
500
|
-
"x-min-y-mid" },
|
501
|
-
{ LSM_SVG_ALIGN_X_MID_Y_MID,
|
502
|
-
"LSM_SVG_ALIGN_X_MID_Y_MID",
|
503
|
-
"x-mid-y-mid" },
|
504
|
-
{ LSM_SVG_ALIGN_X_MAX_Y_MID,
|
505
|
-
"LSM_SVG_ALIGN_X_MAX_Y_MID",
|
506
|
-
"x-max-y-mid" },
|
507
|
-
{ LSM_SVG_ALIGN_X_MIN_Y_MAX,
|
508
|
-
"LSM_SVG_ALIGN_X_MIN_Y_MAX",
|
509
|
-
"x-min-y-max" },
|
510
|
-
{ LSM_SVG_ALIGN_X_MID_Y_MAX,
|
511
|
-
"LSM_SVG_ALIGN_X_MID_Y_MAX",
|
512
|
-
"x-mid-y-max" },
|
513
|
-
{ LSM_SVG_ALIGN_X_MAX_Y_MAX,
|
514
|
-
"LSM_SVG_ALIGN_X_MAX_Y_MAX",
|
515
|
-
"x-max-y-max" },
|
516
|
-
{ 0, NULL, NULL }
|
517
|
-
};
|
518
|
-
the_type = g_enum_register_static (
|
519
|
-
g_intern_static_string ("LsmSvgAlign"),
|
520
|
-
values);
|
521
|
-
}
|
522
|
-
return the_type;
|
523
|
-
}
|
524
|
-
|
525
|
-
GType
|
526
|
-
lsm_svg_meet_or_slice_get_type (void)
|
527
|
-
{
|
528
|
-
static GType the_type = 0;
|
529
|
-
|
530
|
-
if (the_type == 0)
|
531
|
-
{
|
532
|
-
static const GEnumValue values[] = {
|
533
|
-
{ LSM_SVG_MEET_OR_SLICE_ERROR,
|
534
|
-
"LSM_SVG_MEET_OR_SLICE_ERROR",
|
535
|
-
"error" },
|
536
|
-
{ LSM_SVG_MEET_OR_SLICE_MEET,
|
537
|
-
"LSM_SVG_MEET_OR_SLICE_MEET",
|
538
|
-
"meet" },
|
539
|
-
{ LSM_SVG_MEET_OR_SLICE_SLICE,
|
540
|
-
"LSM_SVG_MEET_OR_SLICE_SLICE",
|
541
|
-
"slice" },
|
542
|
-
{ 0, NULL, NULL }
|
543
|
-
};
|
544
|
-
the_type = g_enum_register_static (
|
545
|
-
g_intern_static_string ("LsmSvgMeetOrSlice"),
|
546
|
-
values);
|
547
|
-
}
|
548
|
-
return the_type;
|
549
|
-
}
|
550
|
-
|
551
|
-
GType
|
552
|
-
lsm_svg_comp_op_get_type (void)
|
553
|
-
{
|
554
|
-
static GType the_type = 0;
|
555
|
-
|
556
|
-
if (the_type == 0)
|
557
|
-
{
|
558
|
-
static const GEnumValue values[] = {
|
559
|
-
{ LSM_SVG_COMP_OP_ERROR,
|
560
|
-
"LSM_SVG_COMP_OP_ERROR",
|
561
|
-
"error" },
|
562
|
-
{ LSM_SVG_COMP_OP_CLEAR,
|
563
|
-
"LSM_SVG_COMP_OP_CLEAR",
|
564
|
-
"clear" },
|
565
|
-
{ LSM_SVG_COMP_OP_SRC,
|
566
|
-
"LSM_SVG_COMP_OP_SRC",
|
567
|
-
"src" },
|
568
|
-
{ LSM_SVG_COMP_OP_DST,
|
569
|
-
"LSM_SVG_COMP_OP_DST",
|
570
|
-
"dst" },
|
571
|
-
{ LSM_SVG_COMP_OP_SRC_OVER,
|
572
|
-
"LSM_SVG_COMP_OP_SRC_OVER",
|
573
|
-
"src-over" },
|
574
|
-
{ LSM_SVG_COMP_OP_DST_OVER,
|
575
|
-
"LSM_SVG_COMP_OP_DST_OVER",
|
576
|
-
"dst-over" },
|
577
|
-
{ LSM_SVG_COMP_OP_SRC_IN,
|
578
|
-
"LSM_SVG_COMP_OP_SRC_IN",
|
579
|
-
"src-in" },
|
580
|
-
{ LSM_SVG_COMP_OP_DST_IN,
|
581
|
-
"LSM_SVG_COMP_OP_DST_IN",
|
582
|
-
"dst-in" },
|
583
|
-
{ LSM_SVG_COMP_OP_SRC_OUT,
|
584
|
-
"LSM_SVG_COMP_OP_SRC_OUT",
|
585
|
-
"src-out" },
|
586
|
-
{ LSM_SVG_COMP_OP_DST_OUT,
|
587
|
-
"LSM_SVG_COMP_OP_DST_OUT",
|
588
|
-
"dst-out" },
|
589
|
-
{ LSM_SVG_COMP_OP_SRC_ATOP,
|
590
|
-
"LSM_SVG_COMP_OP_SRC_ATOP",
|
591
|
-
"src-atop" },
|
592
|
-
{ LSM_SVG_COMP_OP_DST_ATOP,
|
593
|
-
"LSM_SVG_COMP_OP_DST_ATOP",
|
594
|
-
"dst-atop" },
|
595
|
-
{ LSM_SVG_COMP_OP_XOR,
|
596
|
-
"LSM_SVG_COMP_OP_XOR",
|
597
|
-
"xor" },
|
598
|
-
{ LSM_SVG_COMP_OP_PLUS,
|
599
|
-
"LSM_SVG_COMP_OP_PLUS",
|
600
|
-
"plus" },
|
601
|
-
{ LSM_SVG_COMP_OP_MULTIPLY,
|
602
|
-
"LSM_SVG_COMP_OP_MULTIPLY",
|
603
|
-
"multiply" },
|
604
|
-
{ LSM_SVG_COMP_OP_SCREEN,
|
605
|
-
"LSM_SVG_COMP_OP_SCREEN",
|
606
|
-
"screen" },
|
607
|
-
{ LSM_SVG_COMP_OP_OVERLAY,
|
608
|
-
"LSM_SVG_COMP_OP_OVERLAY",
|
609
|
-
"overlay" },
|
610
|
-
{ LSM_SVG_COMP_OP_DARKEN,
|
611
|
-
"LSM_SVG_COMP_OP_DARKEN",
|
612
|
-
"darken" },
|
613
|
-
{ LSM_SVG_COMP_OP_LIGHTEN,
|
614
|
-
"LSM_SVG_COMP_OP_LIGHTEN",
|
615
|
-
"lighten" },
|
616
|
-
{ LSM_SVG_COMP_OP_COLOR_DODGE,
|
617
|
-
"LSM_SVG_COMP_OP_COLOR_DODGE",
|
618
|
-
"color-dodge" },
|
619
|
-
{ LSM_SVG_COMP_OP_COLOR_BURN,
|
620
|
-
"LSM_SVG_COMP_OP_COLOR_BURN",
|
621
|
-
"color-burn" },
|
622
|
-
{ LSM_SVG_COMP_OP_HARD_LIGHT,
|
623
|
-
"LSM_SVG_COMP_OP_HARD_LIGHT",
|
624
|
-
"hard-light" },
|
625
|
-
{ LSM_SVG_COMP_OP_SOFT_LIGHT,
|
626
|
-
"LSM_SVG_COMP_OP_SOFT_LIGHT",
|
627
|
-
"soft-light" },
|
628
|
-
{ LSM_SVG_COMP_OP_DIFFERENCE,
|
629
|
-
"LSM_SVG_COMP_OP_DIFFERENCE",
|
630
|
-
"difference" },
|
631
|
-
{ LSM_SVG_COMP_OP_EXCLUSION,
|
632
|
-
"LSM_SVG_COMP_OP_EXCLUSION",
|
633
|
-
"exclusion" },
|
634
|
-
{ 0, NULL, NULL }
|
635
|
-
};
|
636
|
-
the_type = g_enum_register_static (
|
637
|
-
g_intern_static_string ("LsmSvgCompOp"),
|
638
|
-
values);
|
639
|
-
}
|
640
|
-
return the_type;
|
641
|
-
}
|
642
|
-
|
643
|
-
GType
|
644
|
-
lsm_svg_font_stretch_get_type (void)
|
645
|
-
{
|
646
|
-
static GType the_type = 0;
|
647
|
-
|
648
|
-
if (the_type == 0)
|
649
|
-
{
|
650
|
-
static const GEnumValue values[] = {
|
651
|
-
{ LSM_SVG_FONT_STRETCH_ERROR,
|
652
|
-
"LSM_SVG_FONT_STRETCH_ERROR",
|
653
|
-
"error" },
|
654
|
-
{ LSM_SVG_FONT_STRETCH_NORMAL,
|
655
|
-
"LSM_SVG_FONT_STRETCH_NORMAL",
|
656
|
-
"normal" },
|
657
|
-
{ LSM_SVG_FONT_STRETCH_ULTRA_CONDENSED,
|
658
|
-
"LSM_SVG_FONT_STRETCH_ULTRA_CONDENSED",
|
659
|
-
"ultra-condensed" },
|
660
|
-
{ LSM_SVG_FONT_STRETCH_EXTRA_CONDENSED,
|
661
|
-
"LSM_SVG_FONT_STRETCH_EXTRA_CONDENSED",
|
662
|
-
"extra-condensed" },
|
663
|
-
{ LSM_SVG_FONT_STRETCH_CONDENSED,
|
664
|
-
"LSM_SVG_FONT_STRETCH_CONDENSED",
|
665
|
-
"condensed" },
|
666
|
-
{ LSM_SVG_FONT_STRETCH_SEMI_CONDENSED,
|
667
|
-
"LSM_SVG_FONT_STRETCH_SEMI_CONDENSED",
|
668
|
-
"semi-condensed" },
|
669
|
-
{ LSM_SVG_FONT_STRETCH_SEMI_EXPANDED,
|
670
|
-
"LSM_SVG_FONT_STRETCH_SEMI_EXPANDED",
|
671
|
-
"semi-expanded" },
|
672
|
-
{ LSM_SVG_FONT_STRETCH_EXPANDED,
|
673
|
-
"LSM_SVG_FONT_STRETCH_EXPANDED",
|
674
|
-
"expanded" },
|
675
|
-
{ LSM_SVG_FONT_STRETCH_EXTRA_EXPANDED,
|
676
|
-
"LSM_SVG_FONT_STRETCH_EXTRA_EXPANDED",
|
677
|
-
"extra-expanded" },
|
678
|
-
{ LSM_SVG_FONT_STRETCH_ULTRA_EXPANDED,
|
679
|
-
"LSM_SVG_FONT_STRETCH_ULTRA_EXPANDED",
|
680
|
-
"ultra-expanded" },
|
681
|
-
{ 0, NULL, NULL }
|
682
|
-
};
|
683
|
-
the_type = g_enum_register_static (
|
684
|
-
g_intern_static_string ("LsmSvgFontStretch"),
|
685
|
-
values);
|
686
|
-
}
|
687
|
-
return the_type;
|
688
|
-
}
|
689
|
-
|
690
|
-
GType
|
691
|
-
lsm_svg_font_style_get_type (void)
|
692
|
-
{
|
693
|
-
static GType the_type = 0;
|
694
|
-
|
695
|
-
if (the_type == 0)
|
696
|
-
{
|
697
|
-
static const GEnumValue values[] = {
|
698
|
-
{ LSM_SVG_FONT_STYLE_ERROR,
|
699
|
-
"LSM_SVG_FONT_STYLE_ERROR",
|
700
|
-
"error" },
|
701
|
-
{ LSM_SVG_FONT_STYLE_NORMAL,
|
702
|
-
"LSM_SVG_FONT_STYLE_NORMAL",
|
703
|
-
"normal" },
|
704
|
-
{ LSM_SVG_FONT_STYLE_OBLIQUE,
|
705
|
-
"LSM_SVG_FONT_STYLE_OBLIQUE",
|
706
|
-
"oblique" },
|
707
|
-
{ LSM_SVG_FONT_STYLE_ITALIC,
|
708
|
-
"LSM_SVG_FONT_STYLE_ITALIC",
|
709
|
-
"italic" },
|
710
|
-
{ 0, NULL, NULL }
|
711
|
-
};
|
712
|
-
the_type = g_enum_register_static (
|
713
|
-
g_intern_static_string ("LsmSvgFontStyle"),
|
714
|
-
values);
|
715
|
-
}
|
716
|
-
return the_type;
|
717
|
-
}
|
718
|
-
|
719
|
-
GType
|
720
|
-
lsm_svg_font_weight_get_type (void)
|
721
|
-
{
|
722
|
-
static GType the_type = 0;
|
723
|
-
|
724
|
-
if (the_type == 0)
|
725
|
-
{
|
726
|
-
static const GEnumValue values[] = {
|
727
|
-
{ LSM_SVG_FONT_WEIGHT_ERROR,
|
728
|
-
"LSM_SVG_FONT_WEIGHT_ERROR",
|
729
|
-
"error" },
|
730
|
-
{ LSM_SVG_FONT_WEIGHT_NORMAL,
|
731
|
-
"LSM_SVG_FONT_WEIGHT_NORMAL",
|
732
|
-
"normal" },
|
733
|
-
{ LSM_SVG_FONT_WEIGHT_BOLD,
|
734
|
-
"LSM_SVG_FONT_WEIGHT_BOLD",
|
735
|
-
"bold" },
|
736
|
-
{ 0, NULL, NULL }
|
737
|
-
};
|
738
|
-
the_type = g_enum_register_static (
|
739
|
-
g_intern_static_string ("LsmSvgFontWeight"),
|
740
|
-
values);
|
741
|
-
}
|
742
|
-
return the_type;
|
743
|
-
}
|
744
|
-
|
745
|
-
GType
|
746
|
-
lsm_svg_text_anchor_get_type (void)
|
747
|
-
{
|
748
|
-
static GType the_type = 0;
|
749
|
-
|
750
|
-
if (the_type == 0)
|
751
|
-
{
|
752
|
-
static const GEnumValue values[] = {
|
753
|
-
{ LSM_SVG_TEXT_ANCHOR_ERROR,
|
754
|
-
"LSM_SVG_TEXT_ANCHOR_ERROR",
|
755
|
-
"error" },
|
756
|
-
{ LSM_SVG_TEXT_ANCHOR_START,
|
757
|
-
"LSM_SVG_TEXT_ANCHOR_START",
|
758
|
-
"start" },
|
759
|
-
{ LSM_SVG_TEXT_ANCHOR_MIDDLE,
|
760
|
-
"LSM_SVG_TEXT_ANCHOR_MIDDLE",
|
761
|
-
"middle" },
|
762
|
-
{ LSM_SVG_TEXT_ANCHOR_END,
|
763
|
-
"LSM_SVG_TEXT_ANCHOR_END",
|
764
|
-
"end" },
|
765
|
-
{ 0, NULL, NULL }
|
766
|
-
};
|
767
|
-
the_type = g_enum_register_static (
|
768
|
-
g_intern_static_string ("LsmSvgTextAnchor"),
|
769
|
-
values);
|
770
|
-
}
|
771
|
-
return the_type;
|
772
|
-
}
|
773
|
-
|
774
|
-
GType
|
775
|
-
lsm_svg_filter_input_get_type (void)
|
776
|
-
{
|
777
|
-
static GType the_type = 0;
|
778
|
-
|
779
|
-
if (the_type == 0)
|
780
|
-
{
|
781
|
-
static const GEnumValue values[] = {
|
782
|
-
{ LSM_SVG_FILTER_INPUT_ERROR,
|
783
|
-
"LSM_SVG_FILTER_INPUT_ERROR",
|
784
|
-
"error" },
|
785
|
-
{ LSM_SVG_FILTER_INPUT_SOURCE_GRAPHIC,
|
786
|
-
"LSM_SVG_FILTER_INPUT_SOURCE_GRAPHIC",
|
787
|
-
"source-graphic" },
|
788
|
-
{ LSM_SVG_FILTER_INPUT_SOURCE_ALPHA,
|
789
|
-
"LSM_SVG_FILTER_INPUT_SOURCE_ALPHA",
|
790
|
-
"source-alpha" },
|
791
|
-
{ LSM_SVG_FILTER_INPUT_BACKGROUND_IMAGE,
|
792
|
-
"LSM_SVG_FILTER_INPUT_BACKGROUND_IMAGE",
|
793
|
-
"background-image" },
|
794
|
-
{ LSM_SVG_FILTER_INPUT_BACKGROUND_ALPHA,
|
795
|
-
"LSM_SVG_FILTER_INPUT_BACKGROUND_ALPHA",
|
796
|
-
"background-alpha" },
|
797
|
-
{ LSM_SVG_FILTER_INPUT_FILL_PAINT,
|
798
|
-
"LSM_SVG_FILTER_INPUT_FILL_PAINT",
|
799
|
-
"fill-paint" },
|
800
|
-
{ LSM_SVG_FILTER_INPUT_STROKE_PAINT,
|
801
|
-
"LSM_SVG_FILTER_INPUT_STROKE_PAINT",
|
802
|
-
"stroke-paint" },
|
803
|
-
{ 0, NULL, NULL }
|
804
|
-
};
|
805
|
-
the_type = g_enum_register_static (
|
806
|
-
g_intern_static_string ("LsmSvgFilterInput"),
|
807
|
-
values);
|
808
|
-
}
|
809
|
-
return the_type;
|
810
|
-
}
|
811
|
-
|
812
|
-
GType
|
813
|
-
lsm_svg_display_get_type (void)
|
814
|
-
{
|
815
|
-
static GType the_type = 0;
|
816
|
-
|
817
|
-
if (the_type == 0)
|
818
|
-
{
|
819
|
-
static const GEnumValue values[] = {
|
820
|
-
{ LSM_SVG_DISPLAY_ERROR,
|
821
|
-
"LSM_SVG_DISPLAY_ERROR",
|
822
|
-
"error" },
|
823
|
-
{ LSM_SVG_DISPLAY_NONE,
|
824
|
-
"LSM_SVG_DISPLAY_NONE",
|
825
|
-
"none" },
|
826
|
-
{ LSM_SVG_DISPLAY_INLINE,
|
827
|
-
"LSM_SVG_DISPLAY_INLINE",
|
828
|
-
"inline" },
|
829
|
-
{ LSM_SVG_DISPLAY_BLOCK,
|
830
|
-
"LSM_SVG_DISPLAY_BLOCK",
|
831
|
-
"block" },
|
832
|
-
{ LSM_SVG_DISPLAY_LIST_ITEM,
|
833
|
-
"LSM_SVG_DISPLAY_LIST_ITEM",
|
834
|
-
"list-item" },
|
835
|
-
{ LSM_SVG_DISPLAY_RUN_IN,
|
836
|
-
"LSM_SVG_DISPLAY_RUN_IN",
|
837
|
-
"run-in" },
|
838
|
-
{ LSM_SVG_DISPLAY_COMPACT,
|
839
|
-
"LSM_SVG_DISPLAY_COMPACT",
|
840
|
-
"compact" },
|
841
|
-
{ LSM_SVG_DISPLAY_MARKER,
|
842
|
-
"LSM_SVG_DISPLAY_MARKER",
|
843
|
-
"marker" },
|
844
|
-
{ LSM_SVG_DISPLAY_TABLE,
|
845
|
-
"LSM_SVG_DISPLAY_TABLE",
|
846
|
-
"table" },
|
847
|
-
{ LSM_SVG_DISPLAY_INLINE_TABLE,
|
848
|
-
"LSM_SVG_DISPLAY_INLINE_TABLE",
|
849
|
-
"inline-table" },
|
850
|
-
{ LSM_SVG_DISPLAY_TABLE_ROW_GROUP,
|
851
|
-
"LSM_SVG_DISPLAY_TABLE_ROW_GROUP",
|
852
|
-
"table-row-group" },
|
853
|
-
{ LSM_SVG_DISPLAY_TABLE_HEADER_GROUP,
|
854
|
-
"LSM_SVG_DISPLAY_TABLE_HEADER_GROUP",
|
855
|
-
"table-header-group" },
|
856
|
-
{ LSM_SVG_DISPLAY_TABLE_FOOTER_GROUP,
|
857
|
-
"LSM_SVG_DISPLAY_TABLE_FOOTER_GROUP",
|
858
|
-
"table-footer-group" },
|
859
|
-
{ LSM_SVG_DISPLAY_TABLE_ROW,
|
860
|
-
"LSM_SVG_DISPLAY_TABLE_ROW",
|
861
|
-
"table-row" },
|
862
|
-
{ LSM_SVG_DISPLAY_TABLE_COLUMN_GROUP,
|
863
|
-
"LSM_SVG_DISPLAY_TABLE_COLUMN_GROUP",
|
864
|
-
"table-column-group" },
|
865
|
-
{ LSM_SVG_DISPLAY_TABLE_COLUMN,
|
866
|
-
"LSM_SVG_DISPLAY_TABLE_COLUMN",
|
867
|
-
"table-column" },
|
868
|
-
{ LSM_SVG_DISPLAY_TABLE_CELL,
|
869
|
-
"LSM_SVG_DISPLAY_TABLE_CELL",
|
870
|
-
"table-cell" },
|
871
|
-
{ LSM_SVG_DISPLAY_TABLE_CAPTION,
|
872
|
-
"LSM_SVG_DISPLAY_TABLE_CAPTION",
|
873
|
-
"table-caption" },
|
874
|
-
{ 0, NULL, NULL }
|
875
|
-
};
|
876
|
-
the_type = g_enum_register_static (
|
877
|
-
g_intern_static_string ("LsmSvgDisplay"),
|
878
|
-
values);
|
879
|
-
}
|
880
|
-
return the_type;
|
881
|
-
}
|
882
|
-
|
883
|
-
GType
|
884
|
-
lsm_svg_visibility_get_type (void)
|
885
|
-
{
|
886
|
-
static GType the_type = 0;
|
887
|
-
|
888
|
-
if (the_type == 0)
|
889
|
-
{
|
890
|
-
static const GEnumValue values[] = {
|
891
|
-
{ LSM_SVG_VISIBILITY_ERROR,
|
892
|
-
"LSM_SVG_VISIBILITY_ERROR",
|
893
|
-
"error" },
|
894
|
-
{ LSM_SVG_VISIBILITY_VISIBLE,
|
895
|
-
"LSM_SVG_VISIBILITY_VISIBLE",
|
896
|
-
"visible" },
|
897
|
-
{ LSM_SVG_VISIBILITY_HIDDEN,
|
898
|
-
"LSM_SVG_VISIBILITY_HIDDEN",
|
899
|
-
"hidden" },
|
900
|
-
{ LSM_SVG_VISIBILITY_COLLAPSE,
|
901
|
-
"LSM_SVG_VISIBILITY_COLLAPSE",
|
902
|
-
"collapse" },
|
903
|
-
{ 0, NULL, NULL }
|
904
|
-
};
|
905
|
-
the_type = g_enum_register_static (
|
906
|
-
g_intern_static_string ("LsmSvgVisibility"),
|
907
|
-
values);
|
908
|
-
}
|
909
|
-
return the_type;
|
910
|
-
}
|
911
|
-
|
912
|
-
GType
|
913
|
-
lsm_svg_element_category_get_type (void)
|
914
|
-
{
|
915
|
-
static GType the_type = 0;
|
916
|
-
|
917
|
-
if (the_type == 0)
|
918
|
-
{
|
919
|
-
static const GFlagsValue values[] = {
|
920
|
-
{ LSM_SVG_ELEMENT_CATEGORY_NONE,
|
921
|
-
"LSM_SVG_ELEMENT_CATEGORY_NONE",
|
922
|
-
"none" },
|
923
|
-
{ LSM_SVG_ELEMENT_CATEGORY_DESCRIPTIVE,
|
924
|
-
"LSM_SVG_ELEMENT_CATEGORY_DESCRIPTIVE",
|
925
|
-
"descriptive" },
|
926
|
-
{ LSM_SVG_ELEMENT_CATEGORY_CONTAINER,
|
927
|
-
"LSM_SVG_ELEMENT_CATEGORY_CONTAINER",
|
928
|
-
"container" },
|
929
|
-
{ LSM_SVG_ELEMENT_CATEGORY_STRUCTURAL,
|
930
|
-
"LSM_SVG_ELEMENT_CATEGORY_STRUCTURAL",
|
931
|
-
"structural" },
|
932
|
-
{ LSM_SVG_ELEMENT_CATEGORY_GRAPHICS_REFERENCING,
|
933
|
-
"LSM_SVG_ELEMENT_CATEGORY_GRAPHICS_REFERENCING",
|
934
|
-
"graphics-referencing" },
|
935
|
-
{ LSM_SVG_ELEMENT_CATEGORY_GRAPHICS,
|
936
|
-
"LSM_SVG_ELEMENT_CATEGORY_GRAPHICS",
|
937
|
-
"graphics" },
|
938
|
-
{ LSM_SVG_ELEMENT_CATEGORY_SHAPE,
|
939
|
-
"LSM_SVG_ELEMENT_CATEGORY_SHAPE",
|
940
|
-
"shape" },
|
941
|
-
{ LSM_SVG_ELEMENT_CATEGORY_BASIC_SHAPE,
|
942
|
-
"LSM_SVG_ELEMENT_CATEGORY_BASIC_SHAPE",
|
943
|
-
"basic-shape" },
|
944
|
-
{ LSM_SVG_ELEMENT_CATEGORY_TEXT_CONTENT,
|
945
|
-
"LSM_SVG_ELEMENT_CATEGORY_TEXT_CONTENT",
|
946
|
-
"text-content" },
|
947
|
-
{ LSM_SVG_ELEMENT_CATEGORY_TEXT_CONTENT_CHILD,
|
948
|
-
"LSM_SVG_ELEMENT_CATEGORY_TEXT_CONTENT_CHILD",
|
949
|
-
"text-content-child" },
|
950
|
-
{ LSM_SVG_ELEMENT_CATEGORY_GRADIENT,
|
951
|
-
"LSM_SVG_ELEMENT_CATEGORY_GRADIENT",
|
952
|
-
"gradient" },
|
953
|
-
{ LSM_SVG_ELEMENT_CATEGORY_FILTER_PRIMITIVE,
|
954
|
-
"LSM_SVG_ELEMENT_CATEGORY_FILTER_PRIMITIVE",
|
955
|
-
"filter-primitive" },
|
956
|
-
{ LSM_SVG_ELEMENT_CATEGORY_ANIMATION,
|
957
|
-
"LSM_SVG_ELEMENT_CATEGORY_ANIMATION",
|
958
|
-
"animation" },
|
959
|
-
{ 0, NULL, NULL }
|
960
|
-
};
|
961
|
-
the_type = g_flags_register_static (
|
962
|
-
g_intern_static_string ("LsmSvgElementCategory"),
|
963
|
-
values);
|
964
|
-
}
|
965
|
-
return the_type;
|
966
|
-
}
|
967
|
-
|
968
|
-
GType
|
969
|
-
lsm_svg_writing_mode_get_type (void)
|
970
|
-
{
|
971
|
-
static GType the_type = 0;
|
972
|
-
|
973
|
-
if (the_type == 0)
|
974
|
-
{
|
975
|
-
static const GEnumValue values[] = {
|
976
|
-
{ LSM_SVG_WRITING_MODE_ERROR,
|
977
|
-
"LSM_SVG_WRITING_MODE_ERROR",
|
978
|
-
"error" },
|
979
|
-
{ LSM_SVG_WRITING_MODE_LR_TB,
|
980
|
-
"LSM_SVG_WRITING_MODE_LR_TB",
|
981
|
-
"lr-tb" },
|
982
|
-
{ LSM_SVG_WRITING_MODE_RL_TB,
|
983
|
-
"LSM_SVG_WRITING_MODE_RL_TB",
|
984
|
-
"rl-tb" },
|
985
|
-
{ LSM_SVG_WRITING_MODE_TB_RL,
|
986
|
-
"LSM_SVG_WRITING_MODE_TB_RL",
|
987
|
-
"tb-rl" },
|
988
|
-
{ LSM_SVG_WRITING_MODE_LR,
|
989
|
-
"LSM_SVG_WRITING_MODE_LR",
|
990
|
-
"lr" },
|
991
|
-
{ LSM_SVG_WRITING_MODE_RL,
|
992
|
-
"LSM_SVG_WRITING_MODE_RL",
|
993
|
-
"rl" },
|
994
|
-
{ LSM_SVG_WRITING_MODE_TB,
|
995
|
-
"LSM_SVG_WRITING_MODE_TB",
|
996
|
-
"tb" },
|
997
|
-
{ 0, NULL, NULL }
|
998
|
-
};
|
999
|
-
the_type = g_enum_register_static (
|
1000
|
-
g_intern_static_string ("LsmSvgWritingMode"),
|
1001
|
-
values);
|
1002
|
-
}
|
1003
|
-
return the_type;
|
1004
|
-
}
|
1005
|
-
|
1006
|
-
/* enumerations from "lsmsvgview.h" */
|
1007
|
-
#include "lsmsvgview.h"
|
1008
|
-
|
1009
|
-
GType
|
1010
|
-
lsm_svg_view_surface_type_get_type (void)
|
1011
|
-
{
|
1012
|
-
static GType the_type = 0;
|
1013
|
-
|
1014
|
-
if (the_type == 0)
|
1015
|
-
{
|
1016
|
-
static const GEnumValue values[] = {
|
1017
|
-
{ LSM_SVG_VIEW_SURFACE_TYPE_AUTO,
|
1018
|
-
"LSM_SVG_VIEW_SURFACE_TYPE_AUTO",
|
1019
|
-
"auto" },
|
1020
|
-
{ LSM_SVG_VIEW_SURFACE_TYPE_IMAGE,
|
1021
|
-
"LSM_SVG_VIEW_SURFACE_TYPE_IMAGE",
|
1022
|
-
"image" },
|
1023
|
-
{ 0, NULL, NULL }
|
1024
|
-
};
|
1025
|
-
the_type = g_enum_register_static (
|
1026
|
-
g_intern_static_string ("LsmSvgViewSurfaceType"),
|
1027
|
-
values);
|
1028
|
-
}
|
1029
|
-
return the_type;
|
1030
|
-
}
|
1031
|
-
|
1032
|
-
/* enumerations from "lsmsvgmatrix.h" */
|
1033
|
-
#include "lsmsvgmatrix.h"
|
1034
|
-
|
1035
|
-
GType
|
1036
|
-
lsm_svg_matrix_flags_get_type (void)
|
1037
|
-
{
|
1038
|
-
static GType the_type = 0;
|
1039
|
-
|
1040
|
-
if (the_type == 0)
|
1041
|
-
{
|
1042
|
-
static const GFlagsValue values[] = {
|
1043
|
-
{ LSM_SVG_MATRIX_FLAGS_IDENTITY,
|
1044
|
-
"LSM_SVG_MATRIX_FLAGS_IDENTITY",
|
1045
|
-
"identity" },
|
1046
|
-
{ 0, NULL, NULL }
|
1047
|
-
};
|
1048
|
-
the_type = g_flags_register_static (
|
1049
|
-
g_intern_static_string ("LsmSvgMatrixFlags"),
|
1050
|
-
values);
|
1051
|
-
}
|
1052
|
-
return the_type;
|
1053
|
-
}
|
1054
|
-
|
1055
|
-
/* enumerations from "lsmsvguseelement.h" */
|
1056
|
-
#include "lsmsvguseelement.h"
|
1057
|
-
|
1058
|
-
GType
|
1059
|
-
lsm_svg_use_element_flags_get_type (void)
|
1060
|
-
{
|
1061
|
-
static GType the_type = 0;
|
1062
|
-
|
1063
|
-
if (the_type == 0)
|
1064
|
-
{
|
1065
|
-
static const GFlagsValue values[] = {
|
1066
|
-
{ LSM_SVG_USE_ELEMENT_FLAGS_IN_USE_FOR_RENDER,
|
1067
|
-
"LSM_SVG_USE_ELEMENT_FLAGS_IN_USE_FOR_RENDER",
|
1068
|
-
"render" },
|
1069
|
-
{ LSM_SVG_USE_ELEMENT_FLAGS_IN_USE_FOR_GET_EXTENTS,
|
1070
|
-
"LSM_SVG_USE_ELEMENT_FLAGS_IN_USE_FOR_GET_EXTENTS",
|
1071
|
-
"get-extents" },
|
1072
|
-
{ 0, NULL, NULL }
|
1073
|
-
};
|
1074
|
-
the_type = g_flags_register_static (
|
1075
|
-
g_intern_static_string ("LsmSvgUseElementFlags"),
|
1076
|
-
values);
|
1077
|
-
}
|
1078
|
-
return the_type;
|
1079
|
-
}
|
1080
|
-
|
1081
|
-
|
1082
|
-
/* Generated data ends here */
|
1083
|
-
|