Back to index

lightning-sunbird  0.9+nobinonly
nsSVGAtomList.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *
00003  * ***** BEGIN LICENSE BLOCK *****
00004  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00005  *
00006  * The contents of this file are subject to the Mozilla Public License Version
00007  * 1.1 (the "License"); you may not use this file except in compliance with
00008  * the License. You may obtain a copy of the License at
00009  * http://www.mozilla.org/MPL/
00010  *
00011  * Software distributed under the License is distributed on an "AS IS" basis,
00012  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00013  * for the specific language governing rights and limitations under the
00014  * License.
00015  *
00016  * The Original Code is mozilla.org code.
00017  *
00018  * The Initial Developer of the Original Code is
00019  * Netscape Communications Corporation.
00020  * Portions created by the Initial Developer are Copyright (C) 1999
00021  * the Initial Developer. All Rights Reserved.
00022  *
00023  * Contributor(s):
00024  *
00025  * Alternatively, the contents of this file may be used under the terms of
00026  * either of the GNU General Public License Version 2 or later (the "GPL"),
00027  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00028  * in which case the provisions of the GPL or the LGPL are applicable instead
00029  * of those above. If you wish to allow use of your version of this file only
00030  * under the terms of either the GPL or the LGPL, and not to allow others to
00031  * use your version of this file under the terms of the MPL, indicate your
00032  * decision by deleting the provisions above and replace them with the notice
00033  * and other provisions required by the GPL or the LGPL. If you do not delete
00034  * the provisions above, a recipient may use your version of this file under
00035  * the terms of any one of the MPL, the GPL or the LGPL.
00036  *
00037  * ***** END LICENSE BLOCK ***** */
00038 
00039 /******
00040 
00041   This file contains the list of all SVG nsIAtoms and their values
00042   
00043   It is designed to be used as inline input to nsSVGAtoms.cpp *only*
00044   through the magic of C preprocessing.
00045 
00046   All entires must be enclosed in the macro SVG_ATOM which will have cruel
00047   and unusual things done to it
00048 
00049   It is recommended (but not strictly necessary) to keep all entries
00050   in alphabetical order
00051 
00052   The first argument to SVG_ATOM is the C++ identifier of the atom
00053   The second argument is the string value of the atom
00054 
00055  ******/
00056 
00057 // tags
00058 SVG_ATOM(circle, "circle")
00059 SVG_ATOM(clipPath, "clipPath")
00060 SVG_ATOM(defs, "defs")
00061 SVG_ATOM(desc, "desc")
00062 SVG_ATOM(ellipse, "ellipse")
00063 #ifdef MOZ_SVG_FOREIGNOBJECT
00064 SVG_ATOM(foreignObject, "foreignObject")
00065 #endif
00066 SVG_ATOM(g, "g")
00067 SVG_ATOM(generic, "generic")
00068 SVG_ATOM(image, "image")
00069 SVG_ATOM(line, "line")
00070 SVG_ATOM(linearGradient, "linearGradient")
00071 SVG_ATOM(marker, "marker")
00072 SVG_ATOM(metadata, "metadata")
00073 SVG_ATOM(path, "path")
00074 SVG_ATOM(polygon, "polygon")
00075 SVG_ATOM(polyline, "polyline")
00076 SVG_ATOM(radialGradient, "radialGradient")
00077 SVG_ATOM(rect, "rect")
00078 SVG_ATOM(script, "script")
00079 SVG_ATOM(stop, "stop")
00080 SVG_ATOM(svg, "svg")
00081 SVG_ATOM(svgSwitch, "switch") // switch is a C++ keyword, hence svgSwitch
00082 SVG_ATOM(symbol, "symbol")
00083 SVG_ATOM(text, "text")
00084 SVG_ATOM(textPath, "textPath")
00085 SVG_ATOM(title, "title")
00086 SVG_ATOM(tref, "tref")
00087 SVG_ATOM(tspan, "tspan")
00088 SVG_ATOM(use, "use")
00089 
00090   
00091 // properties and attributes
00092 SVG_ATOM(alignment_baseline, "alignment-baseline")
00093 SVG_ATOM(align, "align")
00094 SVG_ATOM(_auto, "auto")
00095 SVG_ATOM(baseline_shift, "baseline-shift")
00096 SVG_ATOM(_class, "class")
00097 SVG_ATOM(clip, "clip")
00098 SVG_ATOM(clip_path, "clip-path")
00099 SVG_ATOM(clip_rule, "clip-rule")
00100 SVG_ATOM(clipPathUnits, "clipPathUnits")
00101 SVG_ATOM(color, "color")
00102 SVG_ATOM(cursor, "cursor")
00103 SVG_ATOM(cx, "cx")
00104 SVG_ATOM(cy, "cy")
00105 SVG_ATOM(d, "d")
00106 SVG_ATOM(direction, "direction")
00107 SVG_ATOM(display, "display")
00108 SVG_ATOM(dominant_baseline, "dominant-baseline")
00109 SVG_ATOM(dx, "dx")
00110 SVG_ATOM(dy, "dy")
00111 SVG_ATOM(exact, "exact")
00112 SVG_ATOM(fill, "fill")
00113 SVG_ATOM(fill_opacity, "fill-opacity")
00114 SVG_ATOM(fill_rule, "fill-rule")
00115 SVG_ATOM(filter, "filter")
00116 SVG_ATOM(font_family, "font-family")
00117 SVG_ATOM(font_size, "font-size")
00118 SVG_ATOM(font_size_adjust, "font-size-adjust")
00119 SVG_ATOM(font_stretch, "font-stretch")
00120 SVG_ATOM(font_style, "font-style")
00121 SVG_ATOM(font_variant, "font-variant")
00122 SVG_ATOM(font_weight, "font-weight")
00123 SVG_ATOM(fx, "fx")
00124 SVG_ATOM(fy, "fy")
00125 SVG_ATOM(glyph_orientation_horizontal, "glyph-orientation-horizontal")
00126 SVG_ATOM(glyph_orientation_vertical, "glyph-orientation-vertical")
00127 SVG_ATOM(gradientUnits, "gradientUnits")
00128 SVG_ATOM(gradientTransform, "gradientTransform")
00129 SVG_ATOM(height, "height")
00130 SVG_ATOM(href, "href")
00131 SVG_ATOM(id, "id")
00132 SVG_ATOM(image_rendering, "image-rendering")
00133 SVG_ATOM(kerning, "kerning")
00134 SVG_ATOM(letter_spacing, "letter-spacing")
00135 // defined above - SVG_ATOM(marker, "marker")
00136 SVG_ATOM(marker_end, "marker-end")
00137 SVG_ATOM(marker_mid, "marker-mid")
00138 SVG_ATOM(marker_start, "marker-start")
00139 SVG_ATOM(markerHeight, "markerHeight")
00140 SVG_ATOM(markerUnits, "markerUnits")
00141 SVG_ATOM(markerWidth, "markerWidth")
00142 SVG_ATOM(mask, "mask")
00143 SVG_ATOM(media, "media")
00144 SVG_ATOM(method, "method")
00145 SVG_ATOM(offset, "offset")
00146 SVG_ATOM(onabort, "onabort")
00147 SVG_ATOM(onclick, "onclick")
00148 SVG_ATOM(onerror, "onerror")
00149 SVG_ATOM(onload, "onload")
00150 SVG_ATOM(onmousedown, "onmousedown")
00151 SVG_ATOM(onmouseup, "onmouseup")
00152 SVG_ATOM(onmouseover, "onmouseover")
00153 SVG_ATOM(onmousemove, "onmousemove")
00154 SVG_ATOM(onmouseout, "onmouseout")
00155 SVG_ATOM(onresize, "onresize")
00156 SVG_ATOM(onscroll, "onscroll")
00157 SVG_ATOM(onunload, "onunload")
00158 SVG_ATOM(onzoom, "onzoom")
00159 SVG_ATOM(opacity, "opacity")
00160 SVG_ATOM(orient, "orient")
00161 SVG_ATOM(overflow, "overflow")
00162 SVG_ATOM(pathLength, "pathLength")
00163 SVG_ATOM(pointer_events, "pointer-events")
00164 SVG_ATOM(points, "points")
00165 SVG_ATOM(preserveAspectRatio, "preserveAspectRatio")
00166 SVG_ATOM(r, "r")
00167 SVG_ATOM(refX, "refX")
00168 SVG_ATOM(refY, "refY")
00169 SVG_ATOM(requiredExtensions, "requiredExtensions")
00170 SVG_ATOM(requiredFeatures, "requiredFeatures")
00171 SVG_ATOM(rx, "rx")
00172 SVG_ATOM(ry, "ry")
00173 SVG_ATOM(shape_rendering, "shape-rendering")
00174 SVG_ATOM(space, "space")
00175 SVG_ATOM(spacing, "spacing")
00176 SVG_ATOM(spreadMethod, "spreadMethod")
00177 SVG_ATOM(startOffset, "startOffset")
00178 SVG_ATOM(stop_color, "stop-color")
00179 SVG_ATOM(stop_opacity, "stop-opacity")
00180 SVG_ATOM(stretch, "stretch")
00181 SVG_ATOM(stroke, "stroke")
00182 SVG_ATOM(stroke_dasharray, "stroke-dasharray")
00183 SVG_ATOM(stroke_dashoffset, "stroke-dashoffset")
00184 SVG_ATOM(stroke_linecap, "stroke-linecap")
00185 SVG_ATOM(stroke_linejoin, "stroke-linejoin")
00186 SVG_ATOM(stroke_miterlimit, "stroke-miterlimit")
00187 SVG_ATOM(stroke_opacity, "stroke-opacity")
00188 SVG_ATOM(stroke_width, "stroke-width")
00189 SVG_ATOM(strokeWidth, "strokeWidth")
00190 SVG_ATOM(style, "style")
00191 SVG_ATOM(systemLanguage, "systemLanguage")
00192 SVG_ATOM(text_anchor, "text-anchor")
00193 SVG_ATOM(text_decoration, "text-decoration")
00194 SVG_ATOM(text_rendering, "text-rendering")
00195 // SVG_ATOM(title, "title") <-- already exists for the 'title' element
00196 SVG_ATOM(transform, "transform")
00197 SVG_ATOM(type, "type")
00198 SVG_ATOM(unicode_bidi, "unicode-bidi")
00199 SVG_ATOM(viewBox, "viewBox")
00200 SVG_ATOM(visibility, "visibility")
00201 SVG_ATOM(width, "width")
00202 SVG_ATOM(word_spacing, "word-spacing")
00203 SVG_ATOM(x, "x")
00204 SVG_ATOM(x1, "x1")
00205 SVG_ATOM(x2, "x2")
00206 SVG_ATOM(y, "y")
00207 SVG_ATOM(y1, "y1")
00208 SVG_ATOM(y2, "y2")
00209 SVG_ATOM(zoomAndPan, "zoomAndPan")
00210   
00211 // transformation keywords
00212 SVG_ATOM(matrix, "matrix")
00213 SVG_ATOM(rotate, "rotate")
00214 SVG_ATOM(scale, "scale")
00215 SVG_ATOM(skewX, "skewX")
00216 SVG_ATOM(skewY, "skewY")
00217 SVG_ATOM(translate, "translate")
00218 
00219 // length units
00220 SVG_ATOM(cm, "cm")
00221 SVG_ATOM(ems, "em")
00222 SVG_ATOM(exs, "ex")
00223 SVG_ATOM(in, "in")
00224 SVG_ATOM(mm, "mm")
00225 SVG_ATOM(pc, "pc")
00226 SVG_ATOM(percentage, "%")
00227 SVG_ATOM(pt, "pt")
00228 SVG_ATOM(px, "px")
00229 
00230 // Spread Methods
00231 SVG_ATOM(pad, "pad")
00232 SVG_ATOM(reflect, "reflect")
00233 SVG_ATOM(repeat, "repeat")
00234 
00235 // Gradient/Marker/ClipPath Units
00236 SVG_ATOM(userSpaceOnUse, "userSpaceOnUse")
00237 SVG_ATOM(objectBoundingBox, "objectBoundingBox")
00238 
00239 // Zoom and Pan options
00240 SVG_ATOM(disable, "disable")
00241 SVG_ATOM(magnify, "magnify")
00242 
00243 // angle units
00244 SVG_ATOM(deg, "deg")
00245 SVG_ATOM(grad, "grad")
00246 SVG_ATOM(rad, "rad")