attributes.h revision 3fca06bd7c5d09e03990e9cc29696c0435df4c69
#ifndef __SP_ATTRIBUTES_H__
#define __SP_ATTRIBUTES_H__
/** \file
* Lookup dictionary for attributes/properties.
*/
/*
* Author:
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 2006 Johan Engelen <johan@shouraizou.nl>
* Copyright (C) 2002 Lauris Kaplinski
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
unsigned char const *sp_attribute_name(unsigned int id);
/**
* True iff k is a property in SVG, i.e. something that can be written either in a style attribute
* or as its own XML attribute.
*/
#define SP_ATTRIBUTE_IS_CSS(k) (((k) >= SP_PROP_INKSCAPE_FONT_SPEC) && ((k) <= SP_PROP_TEXT_RENDERING))
enum SPAttributeEnum {
SP_ATTR_INVALID, ///< Must have value 0.
/* SPObject */
/* SPItem */
/* SPAnchor */
/* SPGroup */
/* SPRoot */
/* SPNamedView */
//SP_ATTR_INKSCAPE_SNAP_FROM_GUIDE,
/* SPColorProfile */
/* SPGuide */
/* SPImage */
/* SPPath */
/* SPRect */
/* Box3D */
SP_ATTR_INKSCAPE_BOX3D_CORNER0, // "upper left front" corner (as a point in 3-space)
SP_ATTR_INKSCAPE_BOX3D_CORNER7, // "lower right rear" corner (as a point in 3-space)
/* Box3DSide */
/* Persp3D */
/* SPEllipse */
/* SPStar */
/* SPSpiral */
/* SPOffset */
/* SPLine */
/* SPPolyline */
/* SPTSpan */
/* SPText */
/* SPTextPath */
/* SPStop */
/* SPFilter */
/* Filter primitives common */
/*feBlend*/
/*feColorMatrix*/
/*feComponentTransfer*/
//SP_ATTR_TYPE,
//SP_ATTR_OFFSET,
/*feComposite*/
//SP_ATTR_IN2,
/*feConvolveMatrix*/
/*feDiffuseLighting*/
//SP_ATTR_KERNELUNITLENGTH,
/*feDisplacementMap*/
//SP_ATTR_IN2,
/*feDistantLight*/
/*fePointLight*/
/*feSpotLight*/
/* SPGaussianBlur */
/*feImage*/
/*feMerge*/
/*feMorphology*/
//SP_ATTR_OPERATOR,
/*feOffset*/
//SP_ATTR_DX,
//SP_ATTR_DY,
/*feSpecularLighting*/
//SP_ATTR_SURFACESCALE,
/*feTile*/
/*feTurbulence*/
//SP_ATTR_TYPE,
/* SPGradient */
/* SPRadialGradient */
/* SPMeshPatch */
/* SPPattern */
/* SPClipPath */
/* SPMask */
/* SPMarker */
/* SPStyleElem */
//SP_ATTR_TYPE,
/* Animations */
/* Interpolating animations */
//SP_ATTR_VALUES,
/* SVGFonts */
/* SPFont */
//SP_ATTR_ORIENTATION,
/*<hkern> and <vkern>*/
/*<font-face>*/
// SP_ATTR_FONT_FAMILY,
// SP_ATTR_FONT_STYLE,
// SP_ATTR_FONT_VARIANT,
// SP_ATTR_FONT_WEIGHT,
// SP_ATTR_FONT_STRETCH,
// SP_ATTR_FONT_SIZE,
//SP_ATTR_SLOPE,
/* XML */
/* typeset */
/* CSS & SVG Properties */
/* Custom full font name because Font stuff below is inadequate REMOVE ME */
/* Font */
/* Text Layout */
/* Text Decoration */
SP_PROP_TEXT_DECORATION, /* SVG 1 underline etc.( no color or style) OR SVG2 with _LINE, _STYLE, _COLOR values */
SP_PROP_TEXT_DECORATION_LINE, /* SVG 2 underline etc. */
SP_PROP_TEXT_DECORATION_STYLE, /* SVG 2 proposed solid [SVG 1], dotted, etc.)*/
SP_PROP_TEXT_DECORATION_COLOR, /* SVG 2 proposed same as text [SVG 1], specified*/
/* Misc */
/* SVG */
/* Filter */
/* Gradient */
/* Interactivity */
/* Paint */
SP_PROP_PAINT_ORDER, /* SVG2 */
/* Conditional */
/* LivePathEffect */
};
#endif
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :