50
52
{"accumulate", true},
51
53
{"alignment-baseline", true},
52
54
{"alphabetic", false},
54
56
{"animate", false},
55
57
{"arabic-form", false},
57
59
{"attributeType", true},
59
{"baseFrequency", false},
61
{"baseFrequency", true},
60
62
{"baseline-shift", true},
61
63
{"baseProfile", false},
64
66
{"block-progression", true},
66
68
{"calcMode", true},
84
86
{"descent", false},
85
{"diffuseConstant", false},
87
{"diffuseConstant", true},
86
88
{"direction", true},
89
91
{"dominant-baseline", true},
95
97
{"enable-background", true},
98
100
{"externalResourcesRequired", false},
99
102
{"feColorMatrix", false},
103
{"feComponentTransfer", false},
100
104
{"feComposite", false},
105
{"feConvolveMatrix", false},
106
{"feDiffuseLighting", false},
107
{"feDisplacementMap", false},
101
109
{"feGaussianBlur", false},
102
112
{"feMorphology", false},
114
{"feSpecularLighting", false},
103
115
{"feTile", false},
105
117
{"fill-opacity", true},
106
118
{"fill-rule", true},
107
119
{"filter", true},
108
{"filterRes", false},
109
{"filterUnits", false},
121
{"filterUnits", true},
110
122
{"flood-color", true},
111
123
{"flood-opacity", true},
112
124
{"font-family", true},
135
147
{"horiz-origin-y", false},
136
148
{"ideographic", false},
137
149
{"image-rendering", true},
140
{"intercept", false},
146
{"kernelMatrix", false},
147
{"kernelUnitLength", false},
158
{"kernelMatrix", true},
159
{"kernelUnitLength", true},
148
160
{"kerning", true},
149
161
{"keyPoints", false},
150
162
{"keySplines", true},
153
165
{"lengthAdjust", false},
154
166
{"letter-spacing", true},
155
167
{"lighting-color", true},
156
{"limitingConeAngle", false},
168
{"limitingConeAngle", true},
158
170
{"marker-end", true},
159
171
{"marker-mid", true},
209
221
{"patternUnits", true},
210
222
{"pointer-events", true},
211
223
{"points", true},
212
{"pointsAtX", false},
213
{"pointsAtY", false},
214
{"pointsAtZ", false},
215
{"preserveAlpha", false},
227
{"preserveAlpha", true},
216
228
{"preserveAspectRatio", true},
217
{"primitiveUnits", false},
229
{"primitiveUnits", true},
222
234
{"rendering-intent", true},
225
237
{"requiredFeatures", true},
226
238
{"requiredExtensions", true},
227
239
{"restart", true},
229
241
{"rotate", true},
234
246
{"shape-rendering", true},
236
248
{"spacing", false},
237
{"specularConstant", false},
238
{"specularExponent", false},
249
{"specularConstant", true},
250
{"specularExponent", true},
239
251
{"spreadMethod", true},
240
252
{"startOffset", true},
241
{"stdDeviation", false},
253
{"stdDeviation", true},
242
254
{"stemh", false},
243
255
{"stemv", false},
244
{"stitchTiles", false},
256
{"stitchTiles", true},
245
257
{"stop-color", true},
246
258
{"stop-opacity", true},
247
259
{"strikethrough-position", false},
255
267
{"stroke-opacity", true},
256
268
{"stroke-width", true},
258
{"surfaceScale", false},
270
{"surfaceScale", true},
259
271
{"systemLanguage", true},
260
{"tableValues", false},
272
{"tableValues", true},
261
273
{"target", true},
264
276
{"text-align", true},
265
277
{"text-anchor", true},
266
278
{"text-decoration", true},
329
341
{"inkscape:groupmode", true},
330
342
{"sodipodi:version", true},
331
343
{"inkscape:version", true},
332
{"inkscape:object-bbox", true},
333
{"inkscape:object-points", true},
334
344
{"inkscape:object-paths", true},
335
345
{"inkscape:object-nodes", true},
346
{"inkscape:bbox-paths", true},
347
{"inkscape:bbox-nodes", true},
348
{"inkscape:snap-global", true},
349
{"inkscape:snap-bbox", true},
350
{"inkscape:snap-nodes", true},
351
{"inkscape:snap-guide", true},
352
{"inkscape:snap-center", true},
353
{"inkscape:snap-intersection-grid-guide", true},
354
{"inkscape:snap-intersection-line-segments", true},
336
355
{"inkscape:pageopacity", true},
337
356
{"inkscape:pageshadow", true},
338
357
{"inkscape:transform-center-x", true},
344
363
{"inkscape:window-height", true},
345
364
{"inkscape:window-x", true},
346
365
{"inkscape:window-y", true},
347
{"inkscape:grid-bbox", true},
348
{"inkscape:guide-bbox", true},
349
{"inkscape:grid-points", true},
350
{"inkscape:guide-points", true},
351
366
{"inkscape:current-layer", true},
352
367
{"inkscape:connector-type", true},
353
368
{"inkscape:connection-start", true},
358
373
{"sodipodi:cy", true},
359
374
{"sodipodi:rx", true},
360
375
{"sodipodi:ry", true},
376
{"inkscape:perspectiveID", true},
377
{"inkscape:corner0", true},
378
{"inkscape:corner7", true},
379
{"inkscape:box3dsidetype", true},
380
{"inkscape:persp3d", true},
381
{"inkscape:vp_x", true},
382
{"inkscape:vp_y", true},
383
{"inkscape:vp_z", true},
384
{"inkscape:persp3d-origin", true},
361
385
{"sodipodi:start", true},
362
386
{"sodipodi:end", true},
363
387
{"sodipodi:open", true},
392
416
/* SPNamedView */
393
417
{"viewonly", true},
394
418
{"showgrid", true},
419
// {"gridtype", true},
395
420
{"showguides", true},
396
421
{"gridtolerance", true},
397
422
{"guidetolerance", true},
398
423
{"objecttolerance", true},
399
{"has_abs_tolerance", true},
400
{"gridoriginx", true},
424
/* {"gridoriginx", true},
401
425
{"gridoriginy", true},
402
426
{"gridspacingx", true},
403
427
{"gridspacingy", true},
428
{"gridanglex", true},
429
{"gridanglez", true},
404
430
{"gridcolor", true},
405
431
{"gridopacity", true},
406
432
{"gridempcolor", true},
407
433
{"gridempopacity", true},
408
{"gridempspacing", true},
434
{"gridempspacing", true}, */
409
435
{"guidecolor", true},
410
436
{"guideopacity", true},
411
437
{"guidehicolor", true},
473
499
unsigned const n_ids = ids.size();
474
500
for (unsigned id = 1; id < n_ids; ++id) {
476
TS_WARN( std::string((const char*)sp_attribute_name(id)) );
502
gchar* tmp = g_strdup_printf( "Attribute string with enum %d {%s} not handled", id, sp_attribute_name(id) );
503
TS_WARN( std::string((const char*)tmp) );
480
508
TS_ASSERT(!found);
510
for ( guint index = 1; index < n_ids; index++ ) {
511
guchar const* name = sp_attribute_name(index);
512
gint postLookup = sp_attribute_lookup( reinterpret_cast<gchar const*>(name) );
513
TSM_ASSERT_EQUALS( std::string("Enum round-trip through string {") + (char const*)name + "} failed.", index, postLookup );