зеркало из https://github.com/mozilla/gecko-dev.git
200 строки
6.4 KiB
C
200 строки
6.4 KiB
C
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
*
|
|
* ***** BEGIN LICENSE BLOCK *****
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
*
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
* the License. You may obtain a copy of the License at
|
|
* http://www.mozilla.org/MPL/
|
|
*
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
* for the specific language governing rights and limitations under the
|
|
* License.
|
|
*
|
|
* The Original Code is mozilla.org code.
|
|
*
|
|
* The Initial Developer of the Original Code is
|
|
* Netscape Communications Corporation.
|
|
* Portions created by the Initial Developer are Copyright (C) 1999
|
|
* the Initial Developer. All Rights Reserved.
|
|
*
|
|
* Contributor(s):
|
|
*
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
* use your version of this file under the terms of the MPL, indicate your
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
* the provisions above, a recipient may use your version of this file under
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
|
*
|
|
* ***** END LICENSE BLOCK ***** */
|
|
|
|
/******
|
|
|
|
This file contains the list of all SVG nsIAtoms and their values
|
|
|
|
It is designed to be used as inline input to nsSVGAtoms.cpp *only*
|
|
through the magic of C preprocessing.
|
|
|
|
All entires must be enclosed in the macro SVG_ATOM which will have cruel
|
|
and unusual things done to it
|
|
|
|
It is recommended (but not strictly necessary) to keep all entries
|
|
in alphabetical order
|
|
|
|
The first argument to SVG_ATOM is the C++ identifier of the atom
|
|
The second argument is the string value of the atom
|
|
|
|
******/
|
|
|
|
// tags
|
|
SVG_ATOM(circle, "circle")
|
|
SVG_ATOM(defs, "defs")
|
|
SVG_ATOM(ellipse, "ellipse")
|
|
SVG_ATOM(foreignObject, "foreignObject")
|
|
SVG_ATOM(g, "g")
|
|
SVG_ATOM(generic, "generic")
|
|
SVG_ATOM(image, "image")
|
|
SVG_ATOM(line, "line")
|
|
SVG_ATOM(linearGradient, "linearGradient")
|
|
SVG_ATOM(path, "path")
|
|
SVG_ATOM(polygon, "polygon")
|
|
SVG_ATOM(polyline, "polyline")
|
|
SVG_ATOM(radialGradient, "radialGradient")
|
|
SVG_ATOM(rect, "rect")
|
|
SVG_ATOM(script, "script")
|
|
SVG_ATOM(stop, "stop")
|
|
SVG_ATOM(svg, "svg")
|
|
SVG_ATOM(svgSwitch, "switch") // switch is a C++ keyword, hence svgSwitch
|
|
SVG_ATOM(text, "text")
|
|
SVG_ATOM(tref, "tref")
|
|
SVG_ATOM(tspan, "tspan")
|
|
|
|
|
|
// properties and attributes
|
|
SVG_ATOM(alignment_baseline, "alignment-baseline")
|
|
SVG_ATOM(baseline_shift, "baseline-shift")
|
|
SVG_ATOM(_class, "class")
|
|
SVG_ATOM(clip, "clip")
|
|
SVG_ATOM(clip_path, "clip-path")
|
|
SVG_ATOM(clip_rule, "clip-rule")
|
|
SVG_ATOM(color, "color")
|
|
SVG_ATOM(cursor, "cursor")
|
|
SVG_ATOM(cx, "cx")
|
|
SVG_ATOM(cy, "cy")
|
|
SVG_ATOM(d, "d")
|
|
SVG_ATOM(direction, "direction")
|
|
SVG_ATOM(display, "display")
|
|
SVG_ATOM(dominant_baseline, "dominant-baseline")
|
|
SVG_ATOM(fill, "fill")
|
|
SVG_ATOM(fill_opacity, "fill-opacity")
|
|
SVG_ATOM(fill_rule, "fill-rule")
|
|
SVG_ATOM(filter, "filter")
|
|
SVG_ATOM(font_family, "font-family")
|
|
SVG_ATOM(font_size, "font-size")
|
|
SVG_ATOM(font_size_adjust, "font-size-adjust")
|
|
SVG_ATOM(font_stretch, "font-stretch")
|
|
SVG_ATOM(font_style, "font-style")
|
|
SVG_ATOM(font_variant, "font-variant")
|
|
SVG_ATOM(font_weight, "font-weight")
|
|
SVG_ATOM(fx, "fx")
|
|
SVG_ATOM(fy, "fy")
|
|
SVG_ATOM(glyph_orientation_horizontal, "glyph-orientation-horizontal")
|
|
SVG_ATOM(glyph_orientation_vertical, "glyph-orientation-vertical")
|
|
SVG_ATOM(gradientUnits, "gradientUnits")
|
|
SVG_ATOM(gradientTransform, "gradientTransform")
|
|
SVG_ATOM(height, "height")
|
|
SVG_ATOM(href, "href")
|
|
SVG_ATOM(id, "id")
|
|
SVG_ATOM(image_rendering, "image-rendering")
|
|
SVG_ATOM(kerning, "kerning")
|
|
SVG_ATOM(letter_spacing, "letter-spacing")
|
|
SVG_ATOM(mask, "mask")
|
|
SVG_ATOM(media, "media")
|
|
SVG_ATOM(offset, "offset")
|
|
SVG_ATOM(onclick, "onclick")
|
|
SVG_ATOM(onmousedown, "onmousedown")
|
|
SVG_ATOM(onmouseup, "onmouseup")
|
|
SVG_ATOM(onmouseover, "onmouseover")
|
|
SVG_ATOM(onmousemove, "onmousemove")
|
|
SVG_ATOM(onmouseout, "onmouseout")
|
|
SVG_ATOM(onload, "onload")
|
|
SVG_ATOM(opacity, "opacity")
|
|
SVG_ATOM(overflow, "overflow")
|
|
SVG_ATOM(pathLength, "pathLength")
|
|
SVG_ATOM(pointer_events, "pointer-events")
|
|
SVG_ATOM(points, "points")
|
|
SVG_ATOM(preserveAspectRatio, "preserveAspectRatio")
|
|
SVG_ATOM(r, "r")
|
|
SVG_ATOM(requiredExtensions, "requiredExtensions")
|
|
SVG_ATOM(requiredFeatures, "requiredFeatures")
|
|
SVG_ATOM(rx, "rx")
|
|
SVG_ATOM(ry, "ry")
|
|
SVG_ATOM(shape_rendering, "shape-rendering")
|
|
SVG_ATOM(space, "space")
|
|
SVG_ATOM(spreadMethod, "spreadMethod")
|
|
SVG_ATOM(stop_color, "stop-color")
|
|
SVG_ATOM(stop_opacity, "stop-opacity")
|
|
SVG_ATOM(stroke, "stroke")
|
|
SVG_ATOM(stroke_dasharray, "stroke-dasharray")
|
|
SVG_ATOM(stroke_dashoffset, "stroke-dashoffset")
|
|
SVG_ATOM(stroke_linecap, "stroke-linecap")
|
|
SVG_ATOM(stroke_linejoin, "stroke-linejoin")
|
|
SVG_ATOM(stroke_miterlimit, "stroke-miterlimit")
|
|
SVG_ATOM(stroke_opacity, "stroke-opacity")
|
|
SVG_ATOM(stroke_width, "stroke-width")
|
|
SVG_ATOM(style, "style")
|
|
SVG_ATOM(systemLanguage, "systemLanguage")
|
|
SVG_ATOM(text_anchor, "text-anchor")
|
|
SVG_ATOM(text_decoration, "text-decoration")
|
|
SVG_ATOM(text_rendering, "text-rendering")
|
|
SVG_ATOM(title, "title")
|
|
SVG_ATOM(transform, "transform")
|
|
SVG_ATOM(type, "type")
|
|
SVG_ATOM(unicode_bidi, "unicode-bidi")
|
|
SVG_ATOM(viewBox, "viewBox")
|
|
SVG_ATOM(visibility, "visibility")
|
|
SVG_ATOM(width, "width")
|
|
SVG_ATOM(word_spacing, "word-spacing")
|
|
SVG_ATOM(x, "x")
|
|
SVG_ATOM(x1, "x1")
|
|
SVG_ATOM(x2, "x2")
|
|
SVG_ATOM(y, "y")
|
|
SVG_ATOM(y1, "y1")
|
|
SVG_ATOM(y2, "y2")
|
|
|
|
// transformation keywords
|
|
SVG_ATOM(matrix, "matrix")
|
|
SVG_ATOM(rotate, "rotate")
|
|
SVG_ATOM(scale, "scale")
|
|
SVG_ATOM(skewX, "skewX")
|
|
SVG_ATOM(skewY, "skewY")
|
|
SVG_ATOM(translate, "translate")
|
|
|
|
// length units
|
|
SVG_ATOM(cm, "cm")
|
|
SVG_ATOM(ems, "em")
|
|
SVG_ATOM(exs, "ex")
|
|
SVG_ATOM(in, "in")
|
|
SVG_ATOM(mm, "mm")
|
|
SVG_ATOM(pc, "pc")
|
|
SVG_ATOM(percentage, "%")
|
|
SVG_ATOM(pt, "pt")
|
|
SVG_ATOM(px, "px")
|
|
|
|
// Spread Methods
|
|
SVG_ATOM(pad, "pad")
|
|
SVG_ATOM(reflect, "reflect")
|
|
SVG_ATOM(repeat, "repeat")
|
|
|
|
// Gradient Units
|
|
SVG_ATOM(userSpaceOnUse, "userSpaceOnUse")
|
|
SVG_ATOM(objectBoundingBox, "objectBoundingBox")
|