summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dom/work/001.css214
-rw-r--r--src/dom/work/Idlp.java394
-rw-r--r--src/dom/work/Main.java15
-rw-r--r--src/dom/work/acid.css110
-rw-r--r--src/dom/work/base.css32
-rw-r--r--src/dom/work/css.idl633
-rw-r--r--src/dom/work/cssprop.txt123
-rw-r--r--src/dom/work/dom.idl548
-rw-r--r--src/dom/work/events.idl298
-rw-r--r--src/dom/work/idl.g1386
-rw-r--r--src/dom/work/inkscape.css493
-rw-r--r--src/dom/work/ls.idl171
-rw-r--r--src/dom/work/meyerweb.css181
-rw-r--r--src/dom/work/prop-css.txt1082
-rw-r--r--src/dom/work/prop-svg.txt651
-rw-r--r--src/dom/work/ranges.idl122
-rw-r--r--src/dom/work/sandb1.css149
-rw-r--r--src/dom/work/smil.idl369
-rw-r--r--src/dom/work/stylesheets.idl71
-rw-r--r--src/dom/work/svg.idl1751
-rw-r--r--src/dom/work/svg2.cpp7049
-rw-r--r--src/dom/work/testdom.cpp107
-rw-r--r--src/dom/work/testhttp.cpp82
-rw-r--r--src/dom/work/testjs.cpp128
-rw-r--r--src/dom/work/testodf.cpp98
-rw-r--r--src/dom/work/testsvg.cpp80
-rw-r--r--src/dom/work/testuri.cpp117
-rw-r--r--src/dom/work/testxpath.cpp1434
-rw-r--r--src/dom/work/testzip.cpp65
-rw-r--r--src/dom/work/traversal.idl102
-rw-r--r--src/dom/work/views.idl38
-rw-r--r--src/dom/work/xpath.idl115
-rw-r--r--src/dom/work/xpathtests.cpp1290
33 files changed, 0 insertions, 19498 deletions
diff --git a/src/dom/work/001.css b/src/dom/work/001.css
deleted file mode 100644
index 6f07bc312..000000000
--- a/src/dom/work/001.css
+++ /dev/null
@@ -1,214 +0,0 @@
-/* css Zen Garden default style - 'Tranquille' by Dave Shea - http://www.mezzoblue.com/ */
-/* css released under Creative Commons License - http://creativecommons.org/licenses/by-nc-sa/1.0/ */
-/* All associated graphics copyright 2003, Dave Shea */
-/* Added: May 7th, 2003 */
-
-
-/* IMPORTANT */
-/* This design is not a template. You may not reproduce it elsewhere without the
- designer's written permission. However, feel free to study the CSS and use
- techniques you learn from it elsewhere. */
-
-
-/* The Zen Garden default was the first I put together, and almost didn't make the cut. I briefly flirted with using
- 'Salmon Cream Cheese' as the main style for the Garden, but switched back to this one before launch.
-
- All graphics in this design were illustrated by me in Photoshop. Google Image Search provided inspiration for
- some of the elements. I did a bit of research on Kanji to come up with the characters on the top left. Anyone who
- can read that will most likely tell you it makes no sense, but the best I could do was putting together the
- characters for 'beginning' 'complete' and 'skill' to roughly say something like 'we're breaking fresh ground.'
-
- It's a stretch. */
-
-
-/* basic elements */
-html {
- margin: 0px;
- padding: 0px;
- }
-body {
- font: 9pt/17pt georgia;
- color: #555753;
- background: #fff url(/001/blossoms.jpg) no-repeat bottom right;
- margin: 0px;
- padding: 0px;
- }
-p {
- font: 9pt/17pt georgia;
- margin-top: 0px;
- text-align: justify;
- }
-h3 {
- font: italic normal 12pt georgia;
- letter-spacing: 1px;
- margin-bottom: 0px;
- color: #7D775C;
- }
-a:link {
- font-weight: bold;
- text-decoration: none;
- color: #B7A5DF;
- }
-a:visited {
- font-weight: bold;
- text-decoration: none;
- color: #D4CDDC;
- }
-a:hover, a:active {
- text-decoration: underline;
- color: #9685BA;
- }
-acronym {
- border-bottom: none;
- }
-
-
-/* specific divs */
-#container {
- background: url(/001/zen-bg.jpg) no-repeat top left;
- padding: 0px 175px 0px 110px;
- margin: 0px;
- position: absolute;
- top: 0px;
- left: 0px;
- }
-
-#intro {
- min-width: 470px;
- }
-#pageHeader {
- margin-bottom: 20px;
- }
-
-/* using an image to replace text in an h1. This trick courtesy Douglas Bowman, http://www.stopdesign.com/articles/css/replace-text/ */
-#pageHeader h1 {
- background: transparent url(/001/h1.gif) no-repeat top left;
- margin-top: 10px;
- width: 219px;
- height: 87px;
- float: left;
- }
-#pageHeader h1 span {
- display:none
- }
-#pageHeader h2 {
- background: transparent url(/001/h2.gif) no-repeat top left;
- margin-top: 58px;
- margin-bottom: 40px;
- width: 200px;
- height: 18px;
- float: right;
- }
-#pageHeader h2 span {
- display:none
- }
-
-#quickSummary {
- clear:both;
- margin: 20px 20px 20px 10px;
- width: 160px;
- float: left;
- }
-#quickSummary p {
- font: italic 10pt/22pt georgia;
- text-align:center;
- }
-
-#preamble {
- clear: right;
- padding: 0px 10px 0px 10px;
- }
-#supportingText {
- padding-left: 10px;
- margin-bottom: 40px;
- }
-
-#footer {
- text-align: center;
- }
-#footer a:link, #footer a:visited {
- margin-right: 20px;
- }
-
-#linkList {
- margin-left: 600px;
- position: absolute;
- top: 0px;
- right: 0px;
- }
-#linkList2 {
- font: 10px verdana, sans-serif;
- background: transparent url(/001/paper-bg.jpg) top left repeat-y;
- padding: 10px;
- margin-top: 150px;
- width: 130px;
- }
-#linkList h3.select {
- background: transparent url(/001/h3.gif) no-repeat top left;
- margin: 10px 0px 5px 0px;
- width: 97px;
- height: 16px;
- }
-#linkList h3.select span {
- display:none
- }
-#linkList h3.favorites {
- background: transparent url(/001/h4.gif) no-repeat top left;
- margin: 25px 0px 5px 0px;
- width: 60px;
- height: 18px;
- }
-#linkList h3.favorites span {
- display:none
- }
-#linkList h3.archives {
- background: transparent url(/001/h5.gif) no-repeat top left;
- margin: 25px 0px 5px 0px;
- width:57px;
- height: 14px;
- }
-#linkList h3.archives span {
- display:none
- }
-#linkList h3.resources {
- background: transparent url(/001/h6.gif) no-repeat top left;
- margin: 25px 0px 5px 0px;
- width:63px;
- height: 10px;
- }
-#linkList h3.resources span {
- display:none
- }
-
-
-#linkList ul {
- margin: 0px;
- padding: 0px;
- }
-#linkList li {
- line-height: 2.5ex;
- background: transparent url(/001/cr1.gif) no-repeat top center;
- display: block;
- padding-top: 5px;
- margin-bottom: 5px;
- list-style-type: none;
- }
-#linkList li a:link {
- color: #988F5E;
- }
-#linkList li a:visited {
- color: #B3AE94;
- }
-
-
-#extraDiv1 {
- background: transparent url(/001/cr2.gif) top left no-repeat;
- position: absolute;
- top: 40px;
- right: 0px;
- width: 148px;
- height: 110px;
- }
-.accesskey {
- text-decoration: underline;
- } \ No newline at end of file
diff --git a/src/dom/work/Idlp.java b/src/dom/work/Idlp.java
deleted file mode 100644
index 2f45cf175..000000000
--- a/src/dom/work/Idlp.java
+++ /dev/null
@@ -1,394 +0,0 @@
-import java.io.*;
-import java.util.*;
-
-
-public class Idlp
-{
-String parsebuf;
-int len;
-
-
-void error(String msg)
-{
- System.out.println("Idlp err : " + msg);
-}
-
-void trace(String msg)
-{
- System.out.println("Idlp : " + msg);
-}
-
-
-
-
-
-
-int get(int pos)
-{
- if (pos<0 || pos>=len)
- return -1;
- else
- return (int) parsebuf.charAt(pos);
-}
-
-
-int skipwhite(int pos)
-{
- trace("skipwhite()");
- while (pos < len)
- {
- int ch = get(pos);
- if (ch == '/' && get(pos + 1) == '/')
- {
- pos += 2;
- while (pos < len)
- {
- ch = get(pos);
- if (ch == '\n' || ch == '\r')
- break;
- pos++;
- }
- }
- else if (!Character.isWhitespace(ch))
- {
- break;
- }
- pos++;
- }
- return pos;
-}
-
-boolean match(String key)
-{
- trace("match(" + key + ")");
- int p = 0;
- for (int i=0 ; i<key.length() ; i++)
- {
- if (get(p) != key.charAt(i))
- return false;
- p++;
- }
- return true;
-
-}
-
-String word = "";
-
-int getword(int pos)
-{
- trace("getword()");
- StringBuffer buf = new StringBuffer();
- while (pos < len)
- {
- int ch = get(pos);
- if (ch < 0)
- break;
- if (!Character.isLetterOrDigit(ch) && ch != '#' && ch != '_')
- break;
- buf.append((char)ch);
- pos++;
- }
- word = buf.toString();
- return pos;
-}
-
-int getDirective(String name, int pos)
-{
- trace("getDirective()");
- if (name.length() == 0 || name.charAt(0) != '#')
- return -1;
- while (pos < len)
- {
- int ch = get(pos);
- if (ch == '\n' || ch == '\r')
- break;
- pos++;
- }
- return pos;
-}
-
-int getTypedef(int pos)
-{
- trace("getTypedef()");
- while (pos < len)
- {
- int ch = get(pos++);
- if (ch == ';')
- break;
- }
- return pos;
-}
-
-
-int getInterface(int pos)
-{
- trace("getInterface()");
- pos = skipwhite(pos);
- int p = getword(pos);
- if (p < 0)
- return -1;
- if (p <= pos)
- {
- error("expected interface name");
- return -1;
- }
- String intfName = word;
- trace("intf: " + intfName);
- pos = p;
- pos = skipwhite(pos);
- int ch = get(pos);
- if (ch == ';')
- {
- pos++; //forward decl
- trace("forward decl");
- return pos;
- }
- if (ch != '{')
- {
- error("Expected opening { for interface");
- return -1;
- }
- pos++;
- while (true)
- {
- pos = skipwhite(pos);
- ch = get(pos);
- if (ch == '}')
- {
- break;
- }
- p = getword(pos);
- if (p < 0)
- {
- return -1;
- }
- if (p<=pos)
- {
- error("expected word");
- return -1;
- }
- trace("word : " + word);
- if (word.equals("typedef"))
- {
- pos = p;
- p = getTypedef(pos);
- if (p < 0)
- return -1;
- }
- pos = p;
- }
-
- return pos;
-}
-
-
-int getException(int pos)
-{
- trace("getException()");
- pos = skipwhite(pos);
- int p = getword(pos);
- if (p < 0)
- return -1;
- if (p <= pos)
- {
- error("expected exception name");
- return -1;
- }
- String exName = word;
- trace("ex: " + exName);
- pos = p;
- pos = skipwhite(pos);
- int ch = get(pos);
- if (ch == ';')
- {
- pos++; //forward decl
- trace("forward decl");
- return pos;
- }
- if (ch != '{')
- {
- error("Expected opening { for exception");
- return -1;
- }
- pos++;
- while (pos < len)
- {
- ch = get(pos++);
- if (ch == '}')
- {
- break;
- }
- }
- pos = skipwhite(pos);
- ch = get(pos);
- if (ch != ';')
- {
- error("expected ; for exception");
- return -1;
- }
- pos++;
- return pos;
-}
-
-
-
-int getModule(int pos)
-{
- trace("getModule()");
- pos = skipwhite(pos);
- int p = getword(pos);
- if (p < 0)
- return -1;
- if (p <= pos)
- {
- error("expected module name");
- return -1;
- }
- String modName = word;
- trace("mod: " + modName);
- pos = p;
- pos = skipwhite(pos);
- int ch = get(pos);
- if (ch != '{')
- {
- error("Expected opening { for module");
- return -1;
- }
- pos++;
- while (true)
- {
- pos = skipwhite(pos);
- ch = get(pos);
- if (ch == '}')
- {
- break;
- }
- p = getword(pos);
- if (p < 0)
- {
- return -1;
- }
- if (p<=pos)
- {
- error("expected word");
- return -1;
- }
- trace("word : " + word);
- if (word.equals("typedef"))
- {
- pos = p;
- p = getTypedef(pos);
- if (p < 0)
- return -1;
- }
- else if (word.equals("interface"))
- {
- pos = p;
- p = getInterface(pos);
- if (p < 0)
- return -1;
- }
- else if (word.equals("exception"))
- {
- pos = p;
- p = getException(pos);
- if (p < 0)
- return -1;
- }
- else if (word.equals("module"))
- {
- pos = p;
- p = getModule(pos);
- if (p < 0)
- return -1;
- }
- pos = p;
- }
-
- return pos;
-}
-
-boolean parse()
-{
- trace("parse()");
- len = parsebuf.length();
- int pos = 0;
- while (pos < len)
- {
- pos = skipwhite(pos);
- if (pos >= len)
- break;
- int ch = get(pos);
- int p = getword(pos);
- if (p < 0)
- return false;
- if (p<=pos)
- {
- error("expected word");
- return false;
- }
- trace("word: " + word);
- if (word.length() == 0)
- break;
- if (word.charAt(0) == '#')
- {
- p = getDirective(word, pos);
- if (p < 0)
- return false;
- }
- else if (word.equals("module"))
- {
- pos = p;
- p = getModule(pos);
- if (p<0)
- return false;
- }
- pos = p;
- }
-
- return true;
-}
-
-
-boolean run()
-{
- parsebuf = "";
- boolean ret = true;
- try
- {
- StringBuffer inbuf = new StringBuffer();
- FileReader in = new FileReader("svg.idl");
- while (true)
- {
- int ch = in.read();
- if (ch < 0)
- break;
- inbuf.append((char)ch);
- }
- in.close();
- parsebuf = inbuf.toString();
- ret = parse();
- }
- catch (IOException e)
- {
- error("run : " + e);
- return false;
- }
- return ret;
-}
-
-
-public Idlp()
-{
-}
-
-
-public static void main(String argv[])
-{
- Idlp idlp = new Idlp();
- idlp.run();
-}
-
-
-
-}
diff --git a/src/dom/work/Main.java b/src/dom/work/Main.java
deleted file mode 100644
index d4d9177d3..000000000
--- a/src/dom/work/Main.java
+++ /dev/null
@@ -1,15 +0,0 @@
-import java.io.*;
-import antlr.*;
-
-public class Main {
- public static void main(String[] args) {
- try {
- IDLLexer lexer = new IDLLexer(new DataInputStream(System.in));
- IDLParser parser = new IDLParser(lexer);
- parser.specification();
- } catch(Exception e) {
- System.err.println("exception: "+e);
- }
- }
-}
-
diff --git a/src/dom/work/acid.css b/src/dom/work/acid.css
deleted file mode 100644
index 7ea8750f5..000000000
--- a/src/dom/work/acid.css
+++ /dev/null
@@ -1,110 +0,0 @@
- /* section numbers refer to CSS2.1 */
-
- /* page setup */
- html { font: 12px sans-serif; margin: 0; padding: 0; overflow: hidden; /* hides scrollbars on viewport, see 11.1.1:3 */ background: white; color: red; }
- body { margin: 0; padding: 0; }
-
- /* introduction message */
- .intro { font: 2em sans-serif; margin: 3.5em 2em; padding: 0.5em; border: solid thin; background: white; color: black; position: relative; z-index: 2; /* should cover the black and red bars that are fixed-positioned */ }
- .intro * { font: inherit; margin: 0; padding: 0; }
- .intro h1 { font-size: 1em; font-weight: bolder; margin: 0; padding: 0; }
- .intro :link { color: blue; }
- .intro :visited { color: purple; }
-
- /* picture setup */
- #top { margin: 100em 3em 0; padding: 2em 0 0 .5em; text-align: left; font: 2em/24px sans-serif; color: navy; white-space: pre; } /* "Hello World!" text */
- .picture { position: relative; border: 1em solid transparent; margin: 0 0 100em 3em; } /* containing block for face */
- .picture { background: red; } /* overriden by preferred stylesheet below */
-
- /* top line of face (scalp): fixed positioning and min/max height/width */
- .picture p { position: fixed; margin: 0; padding: 0; border: 0; top: 9em; left: 11em; width: 140%; max-width: 4em; height: 8px; min-height: 1em; max-height: 2mm; /* min-height overrides max-height, see 10.7 */ background: black; border-bottom: 0.5em yellow solid; }
-
- /* bits that shouldn't be part of the top line (and shouldn't be visible at all): HTML parsing, "+" combinator, stacking order */
- .picture p.bad { border-bottom: red solid; /* shouldn't matter, because the "p + table + p" rule below should match it too, thus hiding it */ }
- .picture p + p { background: maroon; z-index: 1; } /* shouldn't match anything */
- .picture p + table + p { margin-top: 3em; /* should end up under the absolutely positioned table below, and thus not be visible */ }
-
- /* second line of face: attribute selectors, float positioning */
- [class~=one].first.one { position: absolute; top: 0; margin: 36px 0 0 60px; padding: 0; border: black 2em; border-style: none solid; /* shrink wraps around float */ }
- [class~=one][class~=first] [class=second\ two][class="second two"] { float: right; width: 48px; height: 12px; background: yellow; margin: 0; padding: 0; } /* only content of abs pos block */
-
- /* third line of face: width and overflow */
- .forehead { margin: 4em; width: 8em; border-left: solid black 1em; border-right: solid black 1em; background: red url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVR42mP4%2F58BAAT%2FAf9jgNErAAAAAElFTkSuQmCC); /* that's a 1x1 yellow pixel PNG */ }
- .forehead * { width: 12em; line-height: 1em; }
-
- /* class selectors headache */
- .two.error.two { background: maroon; } /* shouldn't match */
- .forehead.error.forehead { background: red; } /* shouldn't match */
- [class=second two] { background: red; } /* this should be ignored (invalid selector -- grammar says it only accepts IDENTs or STRINGs) */
-
- /* fourth and fifth lines of face, with eyes: paint order test (see appendix E) and fixed backgrounds */
- /* the two images are identical: 2-by-2 squares with the top left
- and bottom right pixels set to yellow and the other two set to
- transparent. Since they are offset by one pixel from each other,
- the second one paints exactly over the transparent parts of the
- first one, thus creating a solid yellow block. */
- .eyes { position: absolute; top: 5em; left: 3em; margin: 0; padding: 0; background: red; }
- #eyes-a { height: 0; line-height: 2em; text-align: right; } /* contents should paint top-most because they're inline */
- #eyes-a object { display: inline; vertical-align: bottom; }
- #eyes-a object[type] { width: 7.5em; height: 2.5em; } /* should have no effect since that object should fallback to being inline (height/width don't apply to inlines) */
- #eyes-a object object object { border-right: solid 1em black; padding: 0 12px 0 11px; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAABnRSTlMAAAAAAABupgeRAAAABmJLR0QA%2FwD%2FAP%2BgvaeTAAAAEUlEQVR42mP4%2F58BCv7%2FZwAAHfAD%2FabwPj4AAAAASUVORK5CYII%3D) fixed 1px 0; }
- #eyes-b { float: left; width: 10em; height: 2em; background: fixed url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAABnRSTlMAAAAAAABupgeRAAAABmJLR0QA%2FwD%2FAP%2BgvaeTAAAAEUlEQVR42mP4%2F58BCv7%2FZwAAHfAD%2FabwPj4AAAAASUVORK5CYII%3D); border-left: solid 1em black; border-right: solid 1em red; } /* should paint in the middle layer because it is a float */
- #eyes-c { display: block; background: red; border-left: 2em solid yellow; width: 10em; height: 2em; } /* should paint bottom most because it is a block */
-
- /* lines six to nine, with nose: auto margins */
- .nose { float: left; margin: -2em 2em -1em; border: solid 1em black; border-top: 0; min-height: 80%; height: 60%; max-height: 3em; /* percentages become auto (see 10.5 and 10.7) and intrinsic height is more than 3em, so 3em wins */ padding: 0; width: 12em; }
- .nose > div { padding: 1em 1em 3em; height: 0; background: yellow; }
- .nose div div { width: 2em; height: 2em; background: red; margin: auto; }
- .nose :hover div { border-color: blue; }
- .nose div:hover :before { border-bottom-color: inherit; }
- .nose div:hover :after { border-top-color: inherit; }
- .nose div div:before { display: block; border-style: none solid solid; border-color: red yellow black yellow; border-width: 1em; content: ''; height: 0; }
- .nose div :after { display: block; border-style: solid solid none; border-color: black yellow red yellow; border-width: 1em; content: ''; height: 0; }
-
- /* between lines nine and ten: margin collapsing with 'float' and 'clear' */
- .empty { margin: 6.25em; height: 10%; /* computes to auto which makes it empty per 8.3.1:7 (own margins) */ }
- .empty div { margin: 0 2em -6em 4em; }
- .smile { margin: 5em 3em; clear: both; /* clearance is negative (see 8.3.1 and 9.5.1) */ }
-
- /* line ten and eleven: containing block for abs pos */
- .smile div { margin-top: 0.25em; background: black; width: 12em; height: 2em; position: relative; bottom: -1em; }
- .smile div div { position: absolute; top: 0; right: 1em; width: auto; height: 0; margin: 0; border: yellow solid 1em; }
-
- /* smile (over lines ten and eleven): backgrounds behind borders, inheritance of 'float', nested floats, negative heights */
- .smile div div span { display: inline; margin: -1em 0 0 0; border: solid 1em transparent; border-style: none solid; float: right; background: black; height: 1em; }
- .smile div div span em { float: inherit; border-top: solid yellow 1em; border-bottom: solid black 1em; } /* zero-height block; width comes from (zero-height) child. */
- .smile div div span em strong { width: 6em; display: block; margin-bottom: -1em; /* should have no effect, since parent has top&bottom borders, so this margin doesn't collapse */ }
-
- /* line twelve: line-height */
- .chin { margin: -4em 4em 0; width: 8em; line-height: 1em; border-left: solid 1em black; border-right: solid 1em black; background: yellow url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAFSDNYfAAAAaklEQVR42u3XQQrAIAwAQeP%2F%2F6wf8CJBJTK9lnQ7FpHGaOurt1I34nfH9pMMZAZ8BwMGEvvh%2BBsJCAgICLwIOA8EBAQEBAQEBAQEBK79H5RfIQAAAAAAAAAAAAAAAAAAAAAAAAAAAID%2FABMSqAfj%2FsLmvAAAAABJRU5ErkJggg%3D%3D) /* 64x64 red square */ no-repeat fixed /* shouldn't be visible unless the smiley is moved to the top left of the viewport */; }
- .chin div { display: inline; font: 2px/4px serif; }
-
- /* line thirteen: cascade and selector tests */
- .parser-container div { color: maroon; border: solid; color: orange; } /* setup */
- div.parser-container * { border-color: black; /* overrides (implied) border-color on previous line */ } /* setup */
- * div.parser { border-width: 0 2em; /* overrides (implied) declarations on earlier line */ } /* setup */
-
- /* line thirteen continued: parser tests */
- .parser { /* comment parsing test -- comment ends before the end of this line, the backslash should have no effect: \*/ }
- .parser { margin: 0 5em 1em; padding: 0 1em; width: 2em; height: 1em; error: \}; background: yellow; } /* setup with parsing test */
- * html .parser { background: gray; }
- \.parser { padding: 2em; }
- .parser { m\argin: 2em; };
- .parser { height: 3em; }
- .parser { width: 200; }
- .parser { border: 5em solid red ! error; }
- .parser { background: red pink; }
-
- /* line fourteen (last line of face): table */
- ul { display: table; padding: 0; margin: -1em 7em 0; background: red; }
- ul li { padding: 0; margin: 0; }
- ul li.first-part { display: table-cell; height: 1em; width: 1em; background: black; }
- ul li.second-part { display: table; height: 1em; width: 1em; background: black; } /* anonymous table cell wraps around this */
- ul li.third-part { display: table-cell; height: 0.5em; /* gets stretched to fit row */ width: 1em; background: black; }
- ul li.fourth-part { list-style: none; height: 1em; width: 1em; background: black; } /* anonymous table cell wraps around this */
-
- /* bits that shouldn't appear: inline alignment in cells */
- .image-height-test { height: 10px; overflow: hidden; font: 20em serif; } /* only the area between the top of the line box and the top of the image should be visible */
- table { margin: 0; border-spacing: 0; }
- td { padding: 0; }
-
diff --git a/src/dom/work/base.css b/src/dom/work/base.css
deleted file mode 100644
index 7176bbf94..000000000
--- a/src/dom/work/base.css
+++ /dev/null
@@ -1,32 +0,0 @@
-/* recover from old-browser styling */
-
-*.oldbl {display: block !important;}
-*.oldin {display: inline !important;}
-*.ahem {display: none !important;}
-img.pic {display: block !important;}
-
-/* NS6.x-specific fix(es) */
-
-/*|*:-moz-list-bullet, *|*:-moz-list-number {font-size: 1em;}/
-
-/* misc */
-
-.skipper {display: none !important;}
-
-* {font-size: 100%;}
-h1 {font-size: 2em;}
-h2 {font-size: 1.5em;}
-h3 {font-size: 1.33em;}
-h4 {font-size: 1.1em;}
-h5 {font-size: 0.9em;}
-h6 {font-size: 0.75em;}
-pre, code, tt {font: 95% "Andale Mono", Courier, "Courier New", monospace;}
-
-img.pic {float: right; margin: 0.25em 0 0.66em 1.5em;}
-img.border {border: 3px double;}
-
-p.contact {margin: 0 1em !important; text-align: right; font-size: 90%;}
-
-#main {min-height: 30em;}
-#header h1 a, #nav a {text-decoration: none;}
-#nav {padding-top: 0.75em;}
diff --git a/src/dom/work/css.idl b/src/dom/work/css.idl
deleted file mode 100644
index 5033f901c..000000000
--- a/src/dom/work/css.idl
+++ /dev/null
@@ -1,633 +0,0 @@
-/*
- * Copyright (c) 2000 World Wide Web Consortium,
- * (Massachusetts Institute of Technology, Institut National de
- * Recherche en Informatique et en Automatique, Keio University). All
- * Rights Reserved. This program is distributed under the W3C's Software
- * Intellectual Property License. This program is distributed in the
- * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
- * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE.
- * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
- */
-
-// File: http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.idl
-
-#ifndef _CSS_IDL_
-#define _CSS_IDL_
-
-#include "dom.idl"
-#include "stylesheets.idl"
-#include "views.idl"
-
-#pragma prefix "dom.w3c.org"
-module css
-{
-
- typedef dom::DOMString DOMString;
- typedef dom::Element Element;
- typedef dom::DOMImplementation DOMImplementation;
-
- interface CSSRule;
- interface CSSStyleSheet;
- interface CSSStyleDeclaration;
- interface CSSValue;
- interface Counter;
- interface Rect;
- interface RGBColor;
-
- // Introduced in DOM Level 2:
- interface CSSRuleList {
- readonly attribute unsigned long length;
- CSSRule item(in unsigned long index);
- };
-
- // Introduced in DOM Level 2:
- interface CSSRule {
-
- // RuleType
- const unsigned short UNKNOWN_RULE = 0;
- const unsigned short STYLE_RULE = 1;
- const unsigned short CHARSET_RULE = 2;
- const unsigned short IMPORT_RULE = 3;
- const unsigned short MEDIA_RULE = 4;
- const unsigned short FONT_FACE_RULE = 5;
- const unsigned short PAGE_RULE = 6;
-
- readonly attribute unsigned short type;
- attribute DOMString cssText;
- // raises(dom::DOMException) on setting
-
- readonly attribute CSSStyleSheet parentStyleSheet;
- readonly attribute CSSRule parentRule;
- };
-
- // Introduced in DOM Level 2:
- interface CSSStyleRule : CSSRule {
- attribute DOMString selectorText;
- // raises(dom::DOMException) on setting
-
- readonly attribute CSSStyleDeclaration style;
- };
-
- // Introduced in DOM Level 2:
- interface CSSMediaRule : CSSRule {
- readonly attribute stylesheets::MediaList media;
- readonly attribute CSSRuleList cssRules;
- unsigned long insertRule(in DOMString rule,
- in unsigned long index)
- raises(dom::DOMException);
- void deleteRule(in unsigned long index)
- raises(dom::DOMException);
- };
-
- // Introduced in DOM Level 2:
- interface CSSFontFaceRule : CSSRule {
- readonly attribute CSSStyleDeclaration style;
- };
-
- // Introduced in DOM Level 2:
- interface CSSPageRule : CSSRule {
- attribute DOMString selectorText;
- // raises(dom::DOMException) on setting
-
- readonly attribute CSSStyleDeclaration style;
- };
-
- // Introduced in DOM Level 2:
- interface CSSImportRule : CSSRule {
- readonly attribute DOMString href;
- readonly attribute stylesheets::MediaList media;
- readonly attribute CSSStyleSheet styleSheet;
- };
-
- // Introduced in DOM Level 2:
- interface CSSCharsetRule : CSSRule {
- attribute DOMString encoding;
- // raises(dom::DOMException) on setting
-
- };
-
- // Introduced in DOM Level 2:
- interface CSSUnknownRule : CSSRule {
- };
-
- // Introduced in DOM Level 2:
- interface CSSStyleDeclaration {
- attribute DOMString cssText;
- // raises(dom::DOMException) on setting
-
- DOMString getPropertyValue(in DOMString propertyName);
- CSSValue getPropertyCSSValue(in DOMString propertyName);
- DOMString removeProperty(in DOMString propertyName)
- raises(dom::DOMException);
- DOMString getPropertyPriority(in DOMString propertyName);
- void setProperty(in DOMString propertyName,
- in DOMString value,
- in DOMString priority)
- raises(dom::DOMException);
- readonly attribute unsigned long length;
- DOMString item(in unsigned long index);
- readonly attribute CSSRule parentRule;
- };
-
- // Introduced in DOM Level 2:
- interface CSSValue {
-
- // UnitTypes
- const unsigned short CSS_INHERIT = 0;
- const unsigned short CSS_PRIMITIVE_VALUE = 1;
- const unsigned short CSS_VALUE_LIST = 2;
- const unsigned short CSS_CUSTOM = 3;
-
- attribute DOMString cssText;
- // raises(dom::DOMException) on setting
-
- readonly attribute unsigned short cssValueType;
- };
-
- // Introduced in DOM Level 2:
- interface CSSPrimitiveValue : CSSValue {
-
- // UnitTypes
- const unsigned short CSS_UNKNOWN = 0;
- const unsigned short CSS_NUMBER = 1;
- const unsigned short CSS_PERCENTAGE = 2;
- const unsigned short CSS_EMS = 3;
- const unsigned short CSS_EXS = 4;
- const unsigned short CSS_PX = 5;
- const unsigned short CSS_CM = 6;
- const unsigned short CSS_MM = 7;
- const unsigned short CSS_IN = 8;
- const unsigned short CSS_PT = 9;
- const unsigned short CSS_PC = 10;
- const unsigned short CSS_DEG = 11;
- const unsigned short CSS_RAD = 12;
- const unsigned short CSS_GRAD = 13;
- const unsigned short CSS_MS = 14;
- const unsigned short CSS_S = 15;
- const unsigned short CSS_HZ = 16;
- const unsigned short CSS_KHZ = 17;
- const unsigned short CSS_DIMENSION = 18;
- const unsigned short CSS_STRING = 19;
- const unsigned short CSS_URI = 20;
- const unsigned short CSS_IDENT = 21;
- const unsigned short CSS_ATTR = 22;
- const unsigned short CSS_COUNTER = 23;
- const unsigned short CSS_RECT = 24;
- const unsigned short CSS_RGBCOLOR = 25;
-
- readonly attribute unsigned short primitiveType;
- void setFloatValue(in unsigned short unitType,
- in float floatValue)
- raises(dom::DOMException);
- float getFloatValue(in unsigned short unitType)
- raises(dom::DOMException);
- void setStringValue(in unsigned short stringType,
- in DOMString stringValue)
- raises(dom::DOMException);
- DOMString getStringValue()
- raises(dom::DOMException);
- Counter getCounterValue()
- raises(dom::DOMException);
- Rect getRectValue()
- raises(dom::DOMException);
- RGBColor getRGBColorValue()
- raises(dom::DOMException);
- };
-
- // Introduced in DOM Level 2:
- interface CSSValueList : CSSValue {
- readonly attribute unsigned long length;
- CSSValue item(in unsigned long index);
- };
-
- // Introduced in DOM Level 2:
- interface RGBColor {
- readonly attribute CSSPrimitiveValue red;
- readonly attribute CSSPrimitiveValue green;
- readonly attribute CSSPrimitiveValue blue;
- };
-
- // Introduced in DOM Level 2:
- interface Rect {
- readonly attribute CSSPrimitiveValue top;
- readonly attribute CSSPrimitiveValue right;
- readonly attribute CSSPrimitiveValue bottom;
- readonly attribute CSSPrimitiveValue left;
- };
-
- // Introduced in DOM Level 2:
- interface Counter {
- readonly attribute DOMString identifier;
- readonly attribute DOMString listStyle;
- readonly attribute DOMString separator;
- };
-
- // Introduced in DOM Level 2:
- interface ElementCSSInlineStyle {
- readonly attribute CSSStyleDeclaration style;
- };
-
- // Introduced in DOM Level 2:
- interface CSS2Properties {
- attribute DOMString azimuth;
- // raises(dom::DOMException) on setting
-
- attribute DOMString background;
- // raises(dom::DOMException) on setting
-
- attribute DOMString backgroundAttachment;
- // raises(dom::DOMException) on setting
-
- attribute DOMString backgroundColor;
- // raises(dom::DOMException) on setting
-
- attribute DOMString backgroundImage;
- // raises(dom::DOMException) on setting
-
- attribute DOMString backgroundPosition;
- // raises(dom::DOMException) on setting
-
- attribute DOMString backgroundRepeat;
- // raises(dom::DOMException) on setting
-
- attribute DOMString border;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderCollapse;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderColor;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderSpacing;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderStyle;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderTop;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderRight;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderBottom;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderLeft;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderTopColor;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderRightColor;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderBottomColor;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderLeftColor;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderTopStyle;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderRightStyle;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderBottomStyle;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderLeftStyle;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderTopWidth;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderRightWidth;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderBottomWidth;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderLeftWidth;
- // raises(dom::DOMException) on setting
-
- attribute DOMString borderWidth;
- // raises(dom::DOMException) on setting
-
- attribute DOMString bottom;
- // raises(dom::DOMException) on setting
-
- attribute DOMString captionSide;
- // raises(dom::DOMException) on setting
-
- attribute DOMString clear;
- // raises(dom::DOMException) on setting
-
- attribute DOMString clip;
- // raises(dom::DOMException) on setting
-
- attribute DOMString color;
- // raises(dom::DOMException) on setting
-
- attribute DOMString content;
- // raises(dom::DOMException) on setting
-
- attribute DOMString counterIncrement;
- // raises(dom::DOMException) on setting
-
- attribute DOMString counterReset;
- // raises(dom::DOMException) on setting
-
- attribute DOMString cue;
- // raises(dom::DOMException) on setting
-
- attribute DOMString cueAfter;
- // raises(dom::DOMException) on setting
-
- attribute DOMString cueBefore;
- // raises(dom::DOMException) on setting
-
- attribute DOMString cursor;
- // raises(dom::DOMException) on setting
-
- attribute DOMString direction;
- // raises(dom::DOMException) on setting
-
- attribute DOMString display;
- // raises(dom::DOMException) on setting
-
- attribute DOMString elevation;
- // raises(dom::DOMException) on setting
-
- attribute DOMString emptyCells;
- // raises(dom::DOMException) on setting
-
- attribute DOMString cssFloat;
- // raises(dom::DOMException) on setting
-
- attribute DOMString font;
- // raises(dom::DOMException) on setting
-
- attribute DOMString fontFamily;
- // raises(dom::DOMException) on setting
-
- attribute DOMString fontSize;
- // raises(dom::DOMException) on setting
-
- attribute DOMString fontSizeAdjust;
- // raises(dom::DOMException) on setting
-
- attribute DOMString fontStretch;
- // raises(dom::DOMException) on setting
-
- attribute DOMString fontStyle;
- // raises(dom::DOMException) on setting
-
- attribute DOMString fontVariant;
- // raises(dom::DOMException) on setting
-
- attribute DOMString fontWeight;
- // raises(dom::DOMException) on setting
-
- attribute DOMString height;
- // raises(dom::DOMException) on setting
-
- attribute DOMString left;
- // raises(dom::DOMException) on setting
-
- attribute DOMString letterSpacing;
- // raises(dom::DOMException) on setting
-
- attribute DOMString lineHeight;
- // raises(dom::DOMException) on setting
-
- attribute DOMString listStyle;
- // raises(dom::DOMException) on setting
-
- attribute DOMString listStyleImage;
- // raises(dom::DOMException) on setting
-
- attribute DOMString listStylePosition;
- // raises(dom::DOMException) on setting
-
- attribute DOMString listStyleType;
- // raises(dom::DOMException) on setting
-
- attribute DOMString margin;
- // raises(dom::DOMException) on setting
-
- attribute DOMString marginTop;
- // raises(dom::DOMException) on setting
-
- attribute DOMString marginRight;
- // raises(dom::DOMException) on setting
-
- attribute DOMString marginBottom;
- // raises(dom::DOMException) on setting
-
- attribute DOMString marginLeft;
- // raises(dom::DOMException) on setting
-
- attribute DOMString markerOffset;
- // raises(dom::DOMException) on setting
-
- attribute DOMString marks;
- // raises(dom::DOMException) on setting
-
- attribute DOMString maxHeight;
- // raises(dom::DOMException) on setting
-
- attribute DOMString maxWidth;
- // raises(dom::DOMException) on setting
-
- attribute DOMString minHeight;
- // raises(dom::DOMException) on setting
-
- attribute DOMString minWidth;
- // raises(dom::DOMException) on setting
-
- attribute DOMString orphans;
- // raises(dom::DOMException) on setting
-
- attribute DOMString outline;
- // raises(dom::DOMException) on setting
-
- attribute DOMString outlineColor;
- // raises(dom::DOMException) on setting
-
- attribute DOMString outlineStyle;
- // raises(dom::DOMException) on setting
-
- attribute DOMString outlineWidth;
- // raises(dom::DOMException) on setting
-
- attribute DOMString overflow;
- // raises(dom::DOMException) on setting
-
- attribute DOMString padding;
- // raises(dom::DOMException) on setting
-
- attribute DOMString paddingTop;
- // raises(dom::DOMException) on setting
-
- attribute DOMString paddingRight;
- // raises(dom::DOMException) on setting
-
- attribute DOMString paddingBottom;
- // raises(dom::DOMException) on setting
-
- attribute DOMString paddingLeft;
- // raises(dom::DOMException) on setting
-
- attribute DOMString page;
- // raises(dom::DOMException) on setting
-
- attribute DOMString pageBreakAfter;
- // raises(dom::DOMException) on setting
-
- attribute DOMString pageBreakBefore;
- // raises(dom::DOMException) on setting
-
- attribute DOMString pageBreakInside;
- // raises(dom::DOMException) on setting
-
- attribute DOMString pause;
- // raises(dom::DOMException) on setting
-
- attribute DOMString pauseAfter;
- // raises(dom::DOMException) on setting
-
- attribute DOMString pauseBefore;
- // raises(dom::DOMException) on setting
-
- attribute DOMString pitch;
- // raises(dom::DOMException) on setting
-
- attribute DOMString pitchRange;
- // raises(dom::DOMException) on setting
-
- attribute DOMString playDuring;
- // raises(dom::DOMException) on setting
-
- attribute DOMString position;
- // raises(dom::DOMException) on setting
-
- attribute DOMString quotes;
- // raises(dom::DOMException) on setting
-
- attribute DOMString richness;
- // raises(dom::DOMException) on setting
-
- attribute DOMString right;
- // raises(dom::DOMException) on setting
-
- attribute DOMString size;
- // raises(dom::DOMException) on setting
-
- attribute DOMString speak;
- // raises(dom::DOMException) on setting
-
- attribute DOMString speakHeader;
- // raises(dom::DOMException) on setting
-
- attribute DOMString speakNumeral;
- // raises(dom::DOMException) on setting
-
- attribute DOMString speakPunctuation;
- // raises(dom::DOMException) on setting
-
- attribute DOMString speechRate;
- // raises(dom::DOMException) on setting
-
- attribute DOMString stress;
- // raises(dom::DOMException) on setting
-
- attribute DOMString tableLayout;
- // raises(dom::DOMException) on setting
-
- attribute DOMString textAlign;
- // raises(dom::DOMException) on setting
-
- attribute DOMString textDecoration;
- // raises(dom::DOMException) on setting
-
- attribute DOMString textIndent;
- // raises(dom::DOMException) on setting
-
- attribute DOMString textShadow;
- // raises(dom::DOMException) on setting
-
- attribute DOMString textTransform;
- // raises(dom::DOMException) on setting
-
- attribute DOMString top;
- // raises(dom::DOMException) on setting
-
- attribute DOMString unicodeBidi;
- // raises(dom::DOMException) on setting
-
- attribute DOMString verticalAlign;
- // raises(dom::DOMException) on setting
-
- attribute DOMString visibility;
- // raises(dom::DOMException) on setting
-
- attribute DOMString voiceFamily;
- // raises(dom::DOMException) on setting
-
- attribute DOMString volume;
- // raises(dom::DOMException) on setting
-
- attribute DOMString whiteSpace;
- // raises(dom::DOMException) on setting
-
- attribute DOMString widows;
- // raises(dom::DOMException) on setting
-
- attribute DOMString width;
- // raises(dom::DOMException) on setting
-
- attribute DOMString wordSpacing;
- // raises(dom::DOMException) on setting
-
- attribute DOMString zIndex;
- // raises(dom::DOMException) on setting
-
- };
-
- // Introduced in DOM Level 2:
- interface CSSStyleSheet : stylesheets::StyleSheet {
- readonly attribute CSSRule ownerRule;
- readonly attribute CSSRuleList cssRules;
- unsigned long insertRule(in DOMString rule,
- in unsigned long index)
- raises(dom::DOMException);
- void deleteRule(in unsigned long index)
- raises(dom::DOMException);
- };
-
- // Introduced in DOM Level 2:
- interface ViewCSS : views::AbstractView {
- CSSStyleDeclaration getComputedStyle(in Element elt,
- in DOMString pseudoElt);
- };
-
- // Introduced in DOM Level 2:
- interface DocumentCSS : stylesheets::DocumentStyle {
- CSSStyleDeclaration getOverrideStyle(in Element elt,
- in DOMString pseudoElt);
- };
-
- // Introduced in DOM Level 2:
- interface DOMImplementationCSS : DOMImplementation {
- CSSStyleSheet createCSSStyleSheet(in DOMString title,
- in DOMString media)
- raises(dom::DOMException);
- };
-};
-
-#endif // _CSS_IDL_
-
diff --git a/src/dom/work/cssprop.txt b/src/dom/work/cssprop.txt
deleted file mode 100644
index 36832f42b..000000000
--- a/src/dom/work/cssprop.txt
+++ /dev/null
@@ -1,123 +0,0 @@
-azimuth
-background
-backgroundAttachment
-backgroundColor
-backgroundImage
-backgroundPosition
-backgroundRepeat
-border
-borderCollapse
-borderColor
-borderSpacing
-borderStyle
-borderTop
-borderRight
-borderBottom
-borderLeft
-borderTopColor
-borderRightColor
-borderBottomColor
-borderLeftColor
-borderTopStyle
-borderRightStyle
-borderBottomStyle
-borderLeftStyle
-borderTopWidth
-borderRightWidth
-borderBottomWidth
-borderLeftWidth
-borderWidth
-bottom
-captionSide
-clear
-clip
-color
-content
-counterIncrement
-counterReset
-cue
-cueAfter
-cueBefore
-cursor
-direction
-display
-elevation
-emptyCells
-cssFloat
-font
-fontFamily
-fontSize
-fontSizeAdjust
-fontStretch
-fontStyle
-fontVariant
-fontWeight
-height
-left
-letterSpacing
-lineHeight
-listStyle
-listStyleImage
-listStylePosition
-listStyleType
-margin
-marginTop
-marginRight
-marginBottom
-marginLeft
-markerOffset
-marks
-maxHeight
-maxWidth
-minHeight
-minWidth
-orphans
-outline
-outlineColor
-outlineStyle
-outlineWidth
-overflow
-padding
-paddingTop
-paddingRight
-paddingBottom
-paddingLeft
-page
-pageBreakAfter
-pageBreakBefore
-pageBreakInside
-pause
-pauseAfter
-pauseBefore
-pitch
-pitchRange
-playDuring
-position
-quotes
-richness
-right
-size
-speak
-speakHeader
-speakNumeral
-speakPunctuation
-speechRate
-stress
-tableLayout
-textAlign
-textDecoration
-textIndent
-textShadow
-textTransform
-top
-unicodeBidi
-verticalAlign
-visibility
-voiceFamily
-volume
-whiteSpace
-widows
-width
-wordSpacing
-zIndex
-
diff --git a/src/dom/work/dom.idl b/src/dom/work/dom.idl
deleted file mode 100644
index 4c9dcbfe2..000000000
--- a/src/dom/work/dom.idl
+++ /dev/null
@@ -1,548 +0,0 @@
-/*
- * Copyright (c) 2004 World Wide Web Consortium,
- *
- * (Massachusetts Institute of Technology, European Research Consortium for
- * Informatics and Mathematics, Keio University). All Rights Reserved. This
- * work is distributed under the W3C(r) Software License [1] in the hope that
- * it will be useful, but WITHOUT ANY WARRANTY; without even the implied
- * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
- */
-
-// File: http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/dom.idl
-
-#ifndef _DOM_IDL_
-#define _DOM_IDL_
-
-#pragma prefix "w3c.org"
-module dom
-{
-
- valuetype DOMString sequence<unsigned short>;
-
- typedef unsigned long long DOMTimeStamp;
-
- typedef any DOMUserData;
-
- typedef Object DOMObject;
-
- interface DOMImplementation;
- interface DocumentType;
- interface Document;
- interface NodeList;
- interface NamedNodeMap;
- interface UserDataHandler;
- interface Element;
- interface TypeInfo;
- interface DOMLocator;
-
- exception DOMException {
- unsigned short code;
- };
- // ExceptionCode
- const unsigned short INDEX_SIZE_ERR = 1;
- const unsigned short DOMSTRING_SIZE_ERR = 2;
- const unsigned short HIERARCHY_REQUEST_ERR = 3;
- const unsigned short WRONG_DOCUMENT_ERR = 4;
- const unsigned short INVALID_CHARACTER_ERR = 5;
- const unsigned short NO_DATA_ALLOWED_ERR = 6;
- const unsigned short NO_MODIFICATION_ALLOWED_ERR = 7;
- const unsigned short NOT_FOUND_ERR = 8;
- const unsigned short NOT_SUPPORTED_ERR = 9;
- const unsigned short INUSE_ATTRIBUTE_ERR = 10;
- // Introduced in DOM Level 2:
- const unsigned short INVALID_STATE_ERR = 11;
- // Introduced in DOM Level 2:
- const unsigned short SYNTAX_ERR = 12;
- // Introduced in DOM Level 2:
- const unsigned short INVALID_MODIFICATION_ERR = 13;
- // Introduced in DOM Level 2:
- const unsigned short NAMESPACE_ERR = 14;
- // Introduced in DOM Level 2:
- const unsigned short INVALID_ACCESS_ERR = 15;
- // Introduced in DOM Level 3:
- const unsigned short VALIDATION_ERR = 16;
- // Introduced in DOM Level 3:
- const unsigned short TYPE_MISMATCH_ERR = 17;
-
-
- // Introduced in DOM Level 3:
- interface DOMStringList {
- DOMString item(in unsigned long index);
- readonly attribute unsigned long length;
- boolean contains(in DOMString str);
- };
-
- // Introduced in DOM Level 3:
- interface NameList {
- DOMString getName(in unsigned long index);
- DOMString getNamespaceURI(in unsigned long index);
- readonly attribute unsigned long length;
- boolean contains(in DOMString str);
- boolean containsNS(in DOMString namespaceURI,
- in DOMString name);
- };
-
- // Introduced in DOM Level 3:
- interface DOMImplementationList {
- DOMImplementation item(in unsigned long index);
- readonly attribute unsigned long length;
- };
-
- // Introduced in DOM Level 3:
- interface DOMImplementationSource {
- DOMImplementation getDOMImplementation(in DOMString features);
- DOMImplementationList getDOMImplementationList(in DOMString features);
- };
-
- interface DOMImplementation {
- boolean hasFeature(in DOMString feature,
- in DOMString version);
- // Introduced in DOM Level 2:
- DocumentType createDocumentType(in DOMString qualifiedName,
- in DOMString publicId,
- in DOMString systemId)
- raises(DOMException);
- // Introduced in DOM Level 2:
- Document createDocument(in DOMString namespaceURI,
- in DOMString qualifiedName,
- in DocumentType doctype)
- raises(DOMException);
- // Introduced in DOM Level 3:
- DOMObject getFeature(in DOMString feature,
- in DOMString version);
- };
-
- interface Node {
-
- // NodeType
- const unsigned short ELEMENT_NODE = 1;
- const unsigned short ATTRIBUTE_NODE = 2;
- const unsigned short TEXT_NODE = 3;
- const unsigned short CDATA_SECTION_NODE = 4;
- const unsigned short ENTITY_REFERENCE_NODE = 5;
- const unsigned short ENTITY_NODE = 6;
- const unsigned short PROCESSING_INSTRUCTION_NODE = 7;
- const unsigned short COMMENT_NODE = 8;
- const unsigned short DOCUMENT_NODE = 9;
- const unsigned short DOCUMENT_TYPE_NODE = 10;
- const unsigned short DOCUMENT_FRAGMENT_NODE = 11;
- const unsigned short NOTATION_NODE = 12;
-
- readonly attribute DOMString nodeName;
- attribute DOMString nodeValue;
- // raises(DOMException) on setting
- // raises(DOMException) on retrieval
-
- readonly attribute unsigned short nodeType;
- readonly attribute Node parentNode;
- readonly attribute NodeList childNodes;
- readonly attribute Node firstChild;
- readonly attribute Node lastChild;
- readonly attribute Node previousSibling;
- readonly attribute Node nextSibling;
- readonly attribute NamedNodeMap attributes;
- // Modified in DOM Level 2:
- readonly attribute Document ownerDocument;
- // Modified in DOM Level 3:
- Node insertBefore(in Node newChild,
- in Node refChild)
- raises(DOMException);
- // Modified in DOM Level 3:
- Node replaceChild(in Node newChild,
- in Node oldChild)
- raises(DOMException);
- // Modified in DOM Level 3:
- Node removeChild(in Node oldChild)
- raises(DOMException);
- // Modified in DOM Level 3:
- Node appendChild(in Node newChild)
- raises(DOMException);
- boolean hasChildNodes();
- Node cloneNode(in boolean deep);
- // Modified in DOM Level 3:
- void normalize();
- // Introduced in DOM Level 2:
- boolean isSupported(in DOMString feature,
- in DOMString version);
- // Introduced in DOM Level 2:
- readonly attribute DOMString namespaceURI;
- // Introduced in DOM Level 2:
- attribute DOMString prefix;
- // raises(DOMException) on setting
-
- // Introduced in DOM Level 2:
- readonly attribute DOMString localName;
- // Introduced in DOM Level 2:
- boolean hasAttributes();
- // Introduced in DOM Level 3:
- readonly attribute DOMString baseURI;
-
- // DocumentPosition
- const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01;
- const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02;
- const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04;
- const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08;
- const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10;
- const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
-
- // Introduced in DOM Level 3:
- unsigned short compareDocumentPosition(in Node other)
- raises(DOMException);
- // Introduced in DOM Level 3:
- attribute DOMString textContent;
- // raises(DOMException) on setting
- // raises(DOMException) on retrieval
-
- // Introduced in DOM Level 3:
- boolean isSameNode(in Node other);
- // Introduced in DOM Level 3:
- DOMString lookupPrefix(in DOMString namespaceURI);
- // Introduced in DOM Level 3:
- boolean isDefaultNamespace(in DOMString namespaceURI);
- // Introduced in DOM Level 3:
- DOMString lookupNamespaceURI(in DOMString prefix);
- // Introduced in DOM Level 3:
- boolean isEqualNode(in Node arg);
- // Introduced in DOM Level 3:
- DOMObject getFeature(in DOMString feature,
- in DOMString version);
- // Introduced in DOM Level 3:
- DOMUserData setUserData(in DOMString key,
- in DOMUserData data,
- in UserDataHandler handler);
- // Introduced in DOM Level 3:
- DOMUserData getUserData(in DOMString key);
- };
-
- interface NodeList {
- Node item(in unsigned long index);
- readonly attribute unsigned long length;
- };
-
- interface NamedNodeMap {
- Node getNamedItem(in DOMString name);
- Node setNamedItem(in Node arg)
- raises(DOMException);
- Node removeNamedItem(in DOMString name)
- raises(DOMException);
- Node item(in unsigned long index);
- readonly attribute unsigned long length;
- // Introduced in DOM Level 2:
- Node getNamedItemNS(in DOMString namespaceURI,
- in DOMString localName)
- raises(DOMException);
- // Introduced in DOM Level 2:
- Node setNamedItemNS(in Node arg)
- raises(DOMException);
- // Introduced in DOM Level 2:
- Node removeNamedItemNS(in DOMString namespaceURI,
- in DOMString localName)
- raises(DOMException);
- };
-
- interface CharacterData : Node {
- attribute DOMString data;
- // raises(DOMException) on setting
- // raises(DOMException) on retrieval
-
- readonly attribute unsigned long length;
- DOMString substringData(in unsigned long offset,
- in unsigned long count)
- raises(DOMException);
- void appendData(in DOMString arg)
- raises(DOMException);
- void insertData(in unsigned long offset,
- in DOMString arg)
- raises(DOMException);
- void deleteData(in unsigned long offset,
- in unsigned long count)
- raises(DOMException);
- void replaceData(in unsigned long offset,
- in unsigned long count,
- in DOMString arg)
- raises(DOMException);
- };
-
- interface Attr : Node {
- readonly attribute DOMString name;
- readonly attribute boolean specified;
- attribute DOMString value;
- // raises(DOMException) on setting
-
- // Introduced in DOM Level 2:
- readonly attribute Element ownerElement;
- // Introduced in DOM Level 3:
- readonly attribute TypeInfo schemaTypeInfo;
- // Introduced in DOM Level 3:
- readonly attribute boolean isId;
- };
-
- interface Element : Node {
- readonly attribute DOMString tagName;
- DOMString getAttribute(in DOMString name);
- void setAttribute(in DOMString name,
- in DOMString value)
- raises(DOMException);
- void removeAttribute(in DOMString name)
- raises(DOMException);
- Attr getAttributeNode(in DOMString name);
- Attr setAttributeNode(in Attr newAttr)
- raises(DOMException);
- Attr removeAttributeNode(in Attr oldAttr)
- raises(DOMException);
- NodeList getElementsByTagName(in DOMString name);
- // Introduced in DOM Level 2:
- DOMString getAttributeNS(in DOMString namespaceURI,
- in DOMString localName)
- raises(DOMException);
- // Introduced in DOM Level 2:
- void setAttributeNS(in DOMString namespaceURI,
- in DOMString qualifiedName,
- in DOMString value)
- raises(DOMException);
- // Introduced in DOM Level 2:
- void removeAttributeNS(in DOMString namespaceURI,
- in DOMString localName)
- raises(DOMException);
- // Introduced in DOM Level 2:
- Attr getAttributeNodeNS(in DOMString namespaceURI,
- in DOMString localName)
- raises(DOMException);
- // Introduced in DOM Level 2:
- Attr setAttributeNodeNS(in Attr newAttr)
- raises(DOMException);
- // Introduced in DOM Level 2:
- NodeList getElementsByTagNameNS(in DOMString namespaceURI,
- in DOMString localName)
- raises(DOMException);
- // Introduced in DOM Level 2:
- boolean hasAttribute(in DOMString name);
- // Introduced in DOM Level 2:
- boolean hasAttributeNS(in DOMString namespaceURI,
- in DOMString localName)
- raises(DOMException);
- // Introduced in DOM Level 3:
- readonly attribute TypeInfo schemaTypeInfo;
- // Introduced in DOM Level 3:
- void setIdAttribute(in DOMString name,
- in boolean isId)
- raises(DOMException);
- // Introduced in DOM Level 3:
- void setIdAttributeNS(in DOMString namespaceURI,
- in DOMString localName,
- in boolean isId)
- raises(DOMException);
- // Introduced in DOM Level 3:
- void setIdAttributeNode(in Attr idAttr,
- in boolean isId)
- raises(DOMException);
- };
-
- interface Text : CharacterData {
- Text splitText(in unsigned long offset)
- raises(DOMException);
- // Introduced in DOM Level 3:
- readonly attribute boolean isElementContentWhitespace;
- // Introduced in DOM Level 3:
- readonly attribute DOMString wholeText;
- // Introduced in DOM Level 3:
- Text replaceWholeText(in DOMString content)
- raises(DOMException);
- };
-
- interface Comment : CharacterData {
- };
-
- // Introduced in DOM Level 3:
- interface TypeInfo {
- readonly attribute DOMString typeName;
- readonly attribute DOMString typeNamespace;
-
- // DerivationMethods
- const unsigned long DERIVATION_RESTRICTION = 0x00000001;
- const unsigned long DERIVATION_EXTENSION = 0x00000002;
- const unsigned long DERIVATION_UNION = 0x00000004;
- const unsigned long DERIVATION_LIST = 0x00000008;
-
- boolean isDerivedFrom(in DOMString typeNamespaceArg,
- in DOMString typeNameArg,
- in unsigned long derivationMethod);
- };
-
- // Introduced in DOM Level 3:
- interface UserDataHandler {
-
- // OperationType
- const unsigned short NODE_CLONED = 1;
- const unsigned short NODE_IMPORTED = 2;
- const unsigned short NODE_DELETED = 3;
- const unsigned short NODE_RENAMED = 4;
- const unsigned short NODE_ADOPTED = 5;
-
- void handle(in unsigned short operation,
- in DOMString key,
- in DOMUserData data,
- in Node src,
- in Node dst);
- };
-
- // Introduced in DOM Level 3:
- interface DOMError {
-
- // ErrorSeverity
- const unsigned short SEVERITY_WARNING = 1;
- const unsigned short SEVERITY_ERROR = 2;
- const unsigned short SEVERITY_FATAL_ERROR = 3;
-
- readonly attribute unsigned short severity;
- readonly attribute DOMString message;
- readonly attribute DOMString type;
- readonly attribute DOMObject relatedException;
- readonly attribute DOMObject relatedData;
- readonly attribute DOMLocator location;
- };
-
- // Introduced in DOM Level 3:
- interface DOMErrorHandler {
- boolean handleError(in DOMError error);
- };
-
- // Introduced in DOM Level 3:
- interface DOMLocator {
- readonly attribute long lineNumber;
- readonly attribute long columnNumber;
- readonly attribute long byteOffset;
- readonly attribute long utf16Offset;
- readonly attribute Node relatedNode;
- readonly attribute DOMString uri;
- };
-
- // Introduced in DOM Level 3:
- interface DOMConfiguration {
- void setParameter(in DOMString name,
- in DOMUserData value)
- raises(DOMException);
- DOMUserData getParameter(in DOMString name)
- raises(DOMException);
- boolean canSetParameter(in DOMString name,
- in DOMUserData value);
- readonly attribute DOMStringList parameterNames;
- };
-
- interface CDATASection : Text {
- };
-
- interface DocumentType : Node {
- readonly attribute DOMString name;
- readonly attribute NamedNodeMap entities;
- readonly attribute NamedNodeMap notations;
- // Introduced in DOM Level 2:
- readonly attribute DOMString publicId;
- // Introduced in DOM Level 2:
- readonly attribute DOMString systemId;
- // Introduced in DOM Level 2:
- readonly attribute DOMString internalSubset;
- };
-
- interface Notation : Node {
- readonly attribute DOMString publicId;
- readonly attribute DOMString systemId;
- };
-
- interface Entity : Node {
- readonly attribute DOMString publicId;
- readonly attribute DOMString systemId;
- readonly attribute DOMString notationName;
- // Introduced in DOM Level 3:
- readonly attribute DOMString inputEncoding;
- // Introduced in DOM Level 3:
- readonly attribute DOMString xmlEncoding;
- // Introduced in DOM Level 3:
- readonly attribute DOMString xmlVersion;
- };
-
- interface EntityReference : Node {
- };
-
- interface ProcessingInstruction : Node {
- readonly attribute DOMString target;
- attribute DOMString data;
- // raises(DOMException) on setting
-
- };
-
- interface DocumentFragment : Node {
- };
-
- interface Document : Node {
- // Modified in DOM Level 3:
- readonly attribute DocumentType doctype;
- readonly attribute DOMImplementation implementation;
- readonly attribute Element documentElement;
- Element createElement(in DOMString tagName)
- raises(DOMException);
- DocumentFragment createDocumentFragment();
- Text createTextNode(in DOMString data);
- Comment createComment(in DOMString data);
- CDATASection createCDATASection(in DOMString data)
- raises(DOMException);
- ProcessingInstruction createProcessingInstruction(in DOMString target,
- in DOMString data)
- raises(DOMException);
- Attr createAttribute(in DOMString name)
- raises(DOMException);
- EntityReference createEntityReference(in DOMString name)
- raises(DOMException);
- NodeList getElementsByTagName(in DOMString tagname);
- // Introduced in DOM Level 2:
- Node importNode(in Node importedNode,
- in boolean deep)
- raises(DOMException);
- // Introduced in DOM Level 2:
- Element createElementNS(in DOMString namespaceURI,
- in DOMString qualifiedName)
- raises(DOMException);
- // Introduced in DOM Level 2:
- Attr createAttributeNS(in DOMString namespaceURI,
- in DOMString qualifiedName)
- raises(DOMException);
- // Introduced in DOM Level 2:
- NodeList getElementsByTagNameNS(in DOMString namespaceURI,
- in DOMString localName);
- // Introduced in DOM Level 2:
- Element getElementById(in DOMString elementId);
- // Introduced in DOM Level 3:
- readonly attribute DOMString inputEncoding;
- // Introduced in DOM Level 3:
- readonly attribute DOMString xmlEncoding;
- // Introduced in DOM Level 3:
- attribute boolean xmlStandalone;
- // raises(DOMException) on setting
-
- // Introduced in DOM Level 3:
- attribute DOMString xmlVersion;
- // raises(DOMException) on setting
-
- // Introduced in DOM Level 3:
- attribute boolean strictErrorChecking;
- // Introduced in DOM Level 3:
- attribute DOMString documentURI;
- // Introduced in DOM Level 3:
- Node adoptNode(in Node source)
- raises(DOMException);
- // Introduced in DOM Level 3:
- readonly attribute DOMConfiguration domConfig;
- // Introduced in DOM Level 3:
- void normalizeDocument();
- // Introduced in DOM Level 3:
- Node renameNode(in Node n,
- in DOMString namespaceURI,
- in DOMString qualifiedName)
- raises(DOMException);
- };
-};
-
-#endif // _DOM_IDL_
-
diff --git a/src/dom/work/events.idl b/src/dom/work/events.idl
deleted file mode 100644
index 5773dcaf6..000000000
--- a/src/dom/work/events.idl
+++ /dev/null
@@ -1,298 +0,0 @@
-/*
- * Copyright (c) 2003 World Wide Web Consortium,
- *
- * (Massachusetts Institute of Technology, European Research Consortium for
- * Informatics and Mathematics, Keio University). All Rights Reserved. This
- * work is distributed under the W3C(r) Software License [1] in the hope that
- * it will be useful, but WITHOUT ANY WARRANTY; without even the implied
- * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
- */
-
-// File: http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/events.idl
-
-#ifndef _EVENTS_IDL_
-#define _EVENTS_IDL_
-
-#include "dom.idl"
-#include "views.idl"
-
-#pragma prefix "dom.w3c.org"
-module events
-{
-
- typedef dom::DOMString DOMString;
- typedef dom::DOMTimeStamp DOMTimeStamp;
- typedef dom::DOMObject DOMObject;
- typedef dom::Node Node;
-
- interface EventTarget;
- interface EventListener;
-
- // Introduced in DOM Level 2:
- exception EventException {
- unsigned short code;
- };
- // EventExceptionCode
- const unsigned short UNSPECIFIED_EVENT_TYPE_ERR = 0;
- // Introduced in DOM Level 3:
- const unsigned short DISPATCH_REQUEST_ERR = 1;
-
-
- // Introduced in DOM Level 2:
- interface Event {
-
- // PhaseType
- const unsigned short CAPTURING_PHASE = 1;
- const unsigned short AT_TARGET = 2;
- const unsigned short BUBBLING_PHASE = 3;
-
- readonly attribute DOMString type;
- readonly attribute EventTarget target;
- readonly attribute EventTarget currentTarget;
- readonly attribute unsigned short eventPhase;
- readonly attribute boolean bubbles;
- readonly attribute boolean cancelable;
- readonly attribute DOMTimeStamp timeStamp;
- void stopPropagation();
- void preventDefault();
- void initEvent(in DOMString eventTypeArg,
- in boolean canBubbleArg,
- in boolean cancelableArg);
- // Introduced in DOM Level 3:
- readonly attribute DOMString namespaceURI;
- // Introduced in DOM Level 3:
- boolean isCustom();
- // Introduced in DOM Level 3:
- void stopImmediatePropagation();
- // Introduced in DOM Level 3:
- boolean isDefaultPrevented();
- // Introduced in DOM Level 3:
- void initEventNS(in DOMString namespaceURIArg,
- in DOMString eventTypeArg,
- in boolean canBubbleArg,
- in boolean cancelableArg);
- };
-
- // Introduced in DOM Level 2:
- interface EventTarget {
- void addEventListener(in DOMString type,
- in EventListener listener,
- in boolean useCapture);
- void removeEventListener(in DOMString type,
- in EventListener listener,
- in boolean useCapture);
- // Modified in DOM Level 3:
- boolean dispatchEvent(in Event evt)
- raises(EventException);
- // Introduced in DOM Level 3:
- void addEventListenerNS(in DOMString namespaceURI,
- in DOMString type,
- in EventListener listener,
- in boolean useCapture,
- in DOMObject evtGroup);
- // Introduced in DOM Level 3:
- void removeEventListenerNS(in DOMString namespaceURI,
- in DOMString type,
- in EventListener listener,
- in boolean useCapture);
- // Introduced in DOM Level 3:
- boolean willTriggerNS(in DOMString namespaceURI,
- in DOMString type);
- // Introduced in DOM Level 3:
- boolean hasEventListenerNS(in DOMString namespaceURI,
- in DOMString type);
- };
-
- // Introduced in DOM Level 2:
- interface EventListener {
- void handleEvent(in Event evt);
- };
-
- // Introduced in DOM Level 2:
- interface DocumentEvent {
- Event createEvent(in DOMString eventType)
- raises(dom::DOMException);
- // Introduced in DOM Level 3:
- boolean canDispatch(in DOMString namespaceURI,
- in DOMString type);
- };
-
- // Introduced in DOM Level 3:
- interface CustomEvent : Event {
- void setDispatchState(in EventTarget target,
- in unsigned short phase);
- boolean isPropagationStopped();
- boolean isImmediatePropagationStopped();
- };
-
- // Introduced in DOM Level 2:
- interface UIEvent : Event {
- readonly attribute views::AbstractView view;
- readonly attribute long detail;
- void initUIEvent(in DOMString typeArg,
- in boolean canBubbleArg,
- in boolean cancelableArg,
- in views::AbstractView viewArg,
- in long detailArg);
- // Introduced in DOM Level 3:
- void initUIEventNS(in DOMString namespaceURI,
- in DOMString typeArg,
- in boolean canBubbleArg,
- in boolean cancelableArg,
- in views::AbstractView viewArg,
- in long detailArg);
- };
-
- // Introduced in DOM Level 3:
- interface TextEvent : UIEvent {
- readonly attribute DOMString data;
- void initTextEvent(in DOMString typeArg,
- in boolean canBubbleArg,
- in boolean cancelableArg,
- in views::AbstractView viewArg,
- in DOMString dataArg);
- void initTextEventNS(in DOMString namespaceURI,
- in DOMString type,
- in boolean canBubbleArg,
- in boolean cancelableArg,
- in views::AbstractView viewArg,
- in DOMString dataArg);
- };
-
- // Introduced in DOM Level 2:
- interface MouseEvent : UIEvent {
- readonly attribute long screenX;
- readonly attribute long screenY;
- readonly attribute long clientX;
- readonly attribute long clientY;
- readonly attribute boolean ctrlKey;
- readonly attribute boolean shiftKey;
- readonly attribute boolean altKey;
- readonly attribute boolean metaKey;
- readonly attribute unsigned short button;
- readonly attribute EventTarget relatedTarget;
- void initMouseEvent(in DOMString typeArg,
- in boolean canBubbleArg,
- in boolean cancelableArg,
- in views::AbstractView viewArg,
- in long detailArg,
- in long screenXArg,
- in long screenYArg,
- in long clientXArg,
- in long clientYArg,
- in boolean ctrlKeyArg,
- in boolean altKeyArg,
- in boolean shiftKeyArg,
- in boolean metaKeyArg,
- in unsigned short buttonArg,
- in EventTarget relatedTargetArg);
- // Introduced in DOM Level 3:
- boolean getModifierState(in DOMString keyIdentifierArg);
- // Introduced in DOM Level 3:
- void initMouseEventNS(in DOMString namespaceURI,
- in DOMString typeArg,
- in boolean canBubbleArg,
- in boolean cancelableArg,
- in views::AbstractView viewArg,
- in long detailArg,
- in long screenXArg,
- in long screenYArg,
- in long clientXArg,
- in long clientYArg,
- in unsigned short buttonArg,
- in EventTarget relatedTargetArg,
- in DOMString modifiersList);
- };
-
- // Introduced in DOM Level 3:
- interface KeyboardEvent : UIEvent {
-
- // KeyLocationCode
- const unsigned long DOM_KEY_LOCATION_STANDARD = 0x00;
- const unsigned long DOM_KEY_LOCATION_LEFT = 0x01;
- const unsigned long DOM_KEY_LOCATION_RIGHT = 0x02;
- const unsigned long DOM_KEY_LOCATION_NUMPAD = 0x03;
-
- readonly attribute DOMString keyIdentifier;
- readonly attribute unsigned long keyLocation;
- readonly attribute boolean ctrlKey;
- readonly attribute boolean shiftKey;
- readonly attribute boolean altKey;
- readonly attribute boolean metaKey;
- boolean getModifierState(in DOMString keyIdentifierArg);
- void initKeyboardEvent(in DOMString typeArg,
- in boolean canBubbleArg,
- in boolean cancelableArg,
- in views::AbstractView viewArg,
- in DOMString keyIdentifierArg,
- in unsigned long keyLocationArg,
- in DOMString modifiersList);
- void initKeyboardEventNS(in DOMString namespaceURI,
- in DOMString typeArg,
- in boolean canBubbleArg,
- in boolean cancelableArg,
- in views::AbstractView viewArg,
- in DOMString keyIdentifierArg,
- in unsigned long keyLocationArg,
- in DOMString modifiersList);
- };
-
- // Introduced in DOM Level 2:
- interface MutationEvent : Event {
-
- // attrChangeType
- const unsigned short MODIFICATION = 1;
- const unsigned short ADDITION = 2;
- const unsigned short REMOVAL = 3;
-
- readonly attribute Node relatedNode;
- readonly attribute DOMString prevValue;
- readonly attribute DOMString newValue;
- readonly attribute DOMString attrName;
- readonly attribute unsigned short attrChange;
- void initMutationEvent(in DOMString typeArg,
- in boolean canBubbleArg,
- in boolean cancelableArg,
- in Node relatedNodeArg,
- in DOMString prevValueArg,
- in DOMString newValueArg,
- in DOMString attrNameArg,
- in unsigned short attrChangeArg);
- // Introduced in DOM Level 3:
- void initMutationEventNS(in DOMString namespaceURI,
- in DOMString typeArg,
- in boolean canBubbleArg,
- in boolean cancelableArg,
- in Node relatedNodeArg,
- in DOMString prevValueArg,
- in DOMString newValueArg,
- in DOMString attrNameArg,
- in unsigned short attrChangeArg);
- };
-
- // Introduced in DOM Level 3:
- interface MutationNameEvent : MutationEvent {
- readonly attribute DOMString prevNamespaceURI;
- readonly attribute DOMString prevNodeName;
- // Introduced in DOM Level 3:
- void initMutationNameEvent(in DOMString typeArg,
- in boolean canBubbleArg,
- in boolean cancelableArg,
- in Node relatedNodeArg,
- in DOMString prevNamespaceURIArg,
- in DOMString prevNodeNameArg);
- // Introduced in DOM Level 3:
- void initMutationNameEventNS(in DOMString namespaceURI,
- in DOMString typeArg,
- in boolean canBubbleArg,
- in boolean cancelableArg,
- in Node relatedNodeArg,
- in DOMString prevNamespaceURIArg,
- in DOMString prevNodeNameArg);
- };
-};
-
-#endif // _EVENTS_IDL_
-
diff --git a/src/dom/work/idl.g b/src/dom/work/idl.g
deleted file mode 100644
index ff70026a4..000000000
--- a/src/dom/work/idl.g
+++ /dev/null
@@ -1,1386 +0,0 @@
-header {
- package org.apache.yoko.tools.processors.idl;
-
- import java.io.*;
- import java.util.Vector;
- import java.util.Hashtable;
- }
-
-/**
- * This is a complete parser for the IDL language as defined
- * by the CORBA 3.0.2 specification. It will allow those who
- * need an IDL parser to get up-and-running very quickly.
- * Though IDL's syntax is very similar to C++, it is also
- * much simpler, due in large part to the fact that it is
- * a declarative-only language.
- *
- * Some things that are not included are: Symbol table construction
- * (it is not necessary for parsing, btw) and preprocessing (for
- * IDL compiler #pragma directives). You can use just about any
- * C or C++ preprocessor, but there is an interesting semantic
- * issue if you are going to generate code: In C, #include is
- * a literal include, in IDL, #include is more like Java's import:
- * It adds definitions to the scope of the parse, but included
- * definitions are not generated.
- *
- * Jim Coker, jcoker@magelang.com
- * Gary Duzan, gduzan@bbn.com
- * Modified by Edell Nolan May 3, 2007:
- * We originally used the corba grammar supplied on your site
- * but it doesn't support forward declaration support for interfaces
- * we have actually modified the grammar and fixed it.
- */
-class IDLParser extends Parser;
-options {
- exportVocab=IDL;
- buildAST=true;
- k=4;
-}
-
-specification
- : (import_dcl)* (definition)+
- ;
-
-
-definition
- : ( type_dcl SEMI!
- | const_dcl SEMI!
- | except_dcl SEMI!
- | (("abstract" | "local")? "interface") => interf SEMI!
- | module SEMI!
- | (("abstract" | "custom")? "valuetype") => value SEMI!
- | type_id_dcl SEMI!
- | type_prefix_dcl SEMI!
- | (("abstract" | "custom")? "eventtype") => event SEMI!
- | component SEMI!
- | home_dcl SEMI!
- )
- ;
-
-module
- : "module"^
- identifier
- LCURLY! d:definition_list RCURLY!
- ;
-
-definition_list
- : (definition)+
- ;
-
-interf
- : ( interface_dcl
- | forward_dcl
- )
- ;
-
-// Grammar changed to differentiate between
-// forward declared interfaces and empty interfaces
-interface_dcl
- : (( "abstract" | "local" )?
- "interface"^
- identifier
- ( interface_inheritance_spec )?
- LCURLY interface_body RCURLY)
- ;
-
-forward_dcl
- : ( "abstract" | "local" )?
- "interface"^
- identifier
- ;
-
-
-interface_body
- : ( export )*
- ;
-
-export
- : ( type_dcl SEMI!
- | const_dcl SEMI!
- | except_dcl SEMI!
- | attr_dcl SEMI!
- | op_dcl SEMI!
- | type_id_dcl SEMI!
- | type_prefix_dcl SEMI!
- )
- ;
-
-
-interface_inheritance_spec
- : COLON^ scoped_name_list
- ;
-
-interface_name
- : scoped_name
- ;
-
-scoped_name_list
- : scoped_name (COMMA! scoped_name)*
- ;
-
-
-scoped_name
- : ( SCOPEOP^ )? IDENT^ /* identifier */ (SCOPEOP! identifier)*
- ;
-
-value
- : ( value_dcl
- | value_abs_dcl
- | value_box_dcl
- | value_custom_dcl
- | value_forward_dcl
- )
- ;
-
-value_forward_dcl
- : "valuetype"^
- identifier
- ;
-
-value_box_dcl
- : "valuetype"^
- identifier
- type_spec
- ;
-
-value_abs_dcl
- : "abstract"
- "valuetype"^
- identifier
- ( value_abs_full_dcl
- | // value_abs_forward_dcl
- )
- ;
-
-value_abs_full_dcl
- : value_inheritance_spec
- LCURLY! ( export )* RCURLY!
- ;
-
-// value_abs_forward_dcl
-// :
-// ;
-
-value_dcl
- : value_header
- LCURLY! ( value_element )* RCURLY!
- ;
-
-value_custom_dcl
- : "custom"^
- value_dcl
- ;
-
-value_header
- : "valuetype"^
- identifier
- value_inheritance_spec
- ;
-
-value_inheritance_spec
-/*
- : ( COLON ( "truncatable" )?
- value_name ( COMMA! value_name )*
- )?
- ( "supports" interface_name ( COMMA! interface_name )* )?
- ;
-*/
- : ( value_value_inheritance_spec )?
- ( value_interface_inheritance_spec )?
- ;
-
-value_value_inheritance_spec
- : COLON^ ( "truncatable" )?
- value_name ( COMMA! value_name )*
- ;
-
-value_interface_inheritance_spec
- : "supports"^ interface_name ( COMMA! interface_name )*
- ;
-
-value_name
- : scoped_name
- ;
-
-value_element
- : ( export
- | state_member
- | init_dcl
- )
- ;
-
-state_member
- : ( "public" | "private" )
- type_spec declarators SEMI!
- ;
-
-init_dcl
- : "factory"^ identifier
- LPAREN! (init_param_decls)? RPAREN!
- (raises_expr)?
- SEMI!
- ;
-
-init_param_decls
- : init_param_decl ( COMMA! init_param_decl )*
- ;
-
-init_param_decl
- : init_param_attribute
- param_type_spec
- simple_declarator
- ;
-
-init_param_attribute
- : "in"
- ;
-
-const_dcl
- : "const"^ const_type identifier ASSIGN! const_exp
- ;
-
-const_type
- : (integer_type) => integer_type
- | char_type
- | wide_char_type
- | boolean_type
- | floating_pt_type
- | string_type
- | wide_string_type
- | fixed_pt_const_type
- | scoped_name
- | octet_type
- ;
-
-
-/* EXPRESSIONS */
-
-const_exp
- : or_expr
- ;
-
-or_expr
- : xor_expr
- ( OR^ // or_op
- xor_expr
- )*
- ;
-
-// or_op
-// : OR
-// ;
-
-
-xor_expr
- : and_expr
- ( XOR^ // xor_op
- and_expr
- )*
- ;
-
-// xor_op
-// : XOR
-// ;
-
-and_expr
- : shift_expr
- ( AND^ // and_op
- shift_expr
- )*
- ;
-
-// and_op
-// : AND
-// ;
-
-
-shift_expr
- : add_expr
- ( ( LSHIFT^
- | RSHIFT^
- ) // shift_op
- add_expr
- )*
- ;
-
-// shift_op
-// : LSHIFT
-// | RSHIFT
-// ;
-
-
-add_expr
- : mult_expr
- ( ( PLUS^
- | MINUS^
- ) // add_op
- mult_expr
- )*
- ;
-
-// add_op
-// : PLUS
-// | MINUS
-// ;
-
-mult_expr
- : unary_expr
- ( ( STAR^
- | DIV^
- | MOD^
- ) // mult_op
- unary_expr
- )*
- ;
-
-// mult_op
-// : STAR
-// | DIV
-// | MOD
-// ;
-
-unary_expr
- : ( MINUS^
- | PLUS^
- | TILDE^
- ) // unary_operator
- primary_expr
- | primary_expr
- ;
-
-// unary_operator
-// : MINUS
-// | PLUS
-// | TILDE
-// ;
-
-// Node of type TPrimaryExp serves to avoid inf. recursion on tree parse
-primary_expr
- : scoped_name
- | literal
- | LPAREN^ const_exp RPAREN
- ;
-
-literal
- : integer_literal
- | string_literal
- | wide_string_literal
- | character_literal
- | wide_character_literal
- | fixed_pt_literal
- | floating_pt_literal
- | boolean_literal
- ;
-
-boolean_literal
- : "TRUE"
- | "FALSE"
- ;
-
-positive_int_const
- : const_exp
- ;
-
-
-type_dcl
- : "typedef"^ type_declarator
- | (struct_type) => struct_type
- | (union_type) => union_type
- | enum_type
- | "native"^ simple_declarator
- | constr_forward_decl
- ;
-
-type_declarator
- : type_spec declarators
- ;
-
-type_spec
- : simple_type_spec
- | constr_type_spec
- ;
-
-simple_type_spec
- : base_type_spec
- | template_type_spec
- | scoped_name
- ;
-
-base_type_spec
- : (floating_pt_type) => floating_pt_type
- | integer_type
- | char_type
- | wide_char_type
- | boolean_type
- | octet_type
- | any_type
- | object_type
- | value_base_type
- ;
-
-template_type_spec
- : sequence_type
- | string_type
- | wide_string_type
- | fixed_pt_type
- ;
-
-constr_type_spec
- : struct_type
- | union_type
- | enum_type
- ;
-
-declarators
- : declarator (COMMA! declarator)*
- ;
-
-declarator
- : simple_declarator
- | complex_declarator
- ;
-
-simple_declarator
- : identifier
- ;
-
-complex_declarator
- : array_declarator
- ;
-
-floating_pt_type
- : "float"
- | "double"
- | "long"^ "double"
- ;
-
-integer_type
- : signed_int
- | unsigned_int
- ;
-
-signed_int
- : signed_short_int
- | signed_long_int
- | signed_longlong_int
- ;
-
-signed_short_int
- : "short"
- ;
-
-signed_long_int
- : "long"
- ;
-
-signed_longlong_int
- : "long" "long"
- ;
-
-unsigned_int
- : unsigned_short_int
- | unsigned_long_int
- | unsigned_longlong_int
- ;
-
-unsigned_short_int
- : "unsigned" "short"
- ;
-
-unsigned_long_int
- : "unsigned" "long"
- ;
-
-unsigned_longlong_int
- : "unsigned" "long" "long"
- ;
-
-char_type
- : "char"
- ;
-
-wide_char_type
- : "wchar"
- ;
-
-boolean_type
- : "boolean"
- ;
-
-octet_type
- : "octet"
- ;
-
-any_type
- : "any"
- ;
-
-object_type
- : "Object"
- ;
-
-struct_type
- : "struct"^
- identifier
- LCURLY! member_list RCURLY!
- ;
-
-member_list
- : (member)+
- ;
-
-member
- : type_spec declarators SEMI!
- ;
-
-union_type
- : "union"^
- identifier
- "switch"! LPAREN! switch_type_spec RPAREN!
- LCURLY! switch_body RCURLY!
- ;
-
-switch_type_spec
- : integer_type
- | char_type
- | boolean_type
- | enum_type
- | scoped_name
- ;
-
-switch_body
- : case_stmt_list
- ;
-
-case_stmt_list
- : (case_stmt)+
- ;
-
-case_stmt
- : // case_label_list
- ( "case"^ const_exp COLON!
- | "default"^ COLON!
- )+
- element_spec SEMI!
- ;
-
-// case_label_list
-// : (case_label)+
-// ;
-
-
-// case_label
-// : "case"^ const_exp COLON!
-// | "default"^ COLON!
-// ;
-
-element_spec
- : type_spec declarator
- ;
-
-enum_type
- : "enum"^ identifier LCURLY! enumerator_list RCURLY!
- ;
-
-enumerator_list
- : enumerator (COMMA! enumerator)*
- ;
-
-enumerator
- : identifier
- ;
-
-sequence_type
- : "sequence"^
- LT! simple_type_spec opt_pos_int GT!
- ;
-
-opt_pos_int
- : (COMMA! positive_int_const)?
- ;
-
-string_type
- : "string"^ (LT! positive_int_const GT!)?
- ;
-
-wide_string_type
- : "wstring"^ (LT! positive_int_const GT!)?
- ;
-
-array_declarator
- : IDENT^ // identifier
- (fixed_array_size)+
- ;
-
-fixed_array_size
- : LBRACK! positive_int_const RBRACK!
- ;
-
-attr_dcl
- : readonly_attr_spec
- | attr_spec
- ;
-
-except_dcl
- : "exception"^
- identifier
- LCURLY! opt_member_list RCURLY!
- ;
-
-
-opt_member_list
- : (member)*
- ;
-
-op_dcl
- : (op_attribute)?
- op_type_spec
- IDENT^ // identifier
- parameter_dcls
- (raises_expr)?
- (context_expr)?
- ;
-
-op_attribute
- : "oneway"
- ;
-
-op_type_spec
- : param_type_spec
- | "void"
- ;
-
-parameter_dcls
- : LPAREN! (param_dcl_list)? RPAREN!
- ;
-
-param_dcl_list
- : param_dcl (COMMA! param_dcl)*
- ;
-
-param_dcl
- : ("in"^ | "out"^ | "inout"^) // param_attribute
- param_type_spec simple_declarator
- ;
-
-// param_attribute
-// : "in"
-// | "out"
-// | "inout"
-// ;
-
-raises_expr
- : "raises"^ LPAREN! scoped_name_list RPAREN!
- ;
-
-context_expr
- : "context"^ LPAREN! string_literal_list RPAREN!
- ;
-
-string_literal_list
- : string_literal (COMMA! string_literal)*
- ;
-
-param_type_spec
- : base_type_spec
- | string_type
- | wide_string_type
- | scoped_name
- ;
-
-fixed_pt_type
- : "fixed"^ LT! positive_int_const COMMA! positive_int_const GT!
- ;
-
-fixed_pt_const_type
- : "fixed"
- ;
-
-value_base_type
- : "ValueBase"
- ;
-
-constr_forward_decl
- : "struct"^ identifier
- | "union"^ identifier
- ;
-
-import_dcl
- : "import"^ imported_scope SEMI!
- ;
-
-imported_scope
- : scoped_name
- | string_literal
- ;
-
-type_id_dcl
- : "typeid"^
- scoped_name
- string_literal
- ;
-
-type_prefix_dcl
- : "typeprefix"^
- scoped_name
- string_literal
- ;
-
-readonly_attr_spec
- : "readonly" "attribute"^
- param_type_spec
- readonly_attr_declarator
- ;
-
-readonly_attr_declarator
- : simple_declarator
- ( raises_expr
- | (COMMA! simple_declarator)*
- )
- ;
-
-attr_spec
- : "attribute"^ param_type_spec attr_declarator
- ;
-
-attr_declarator
- : simple_declarator
- ( ("getraises" | "setraises") => attr_raises_expr
- | (COMMA! simple_declarator)*
- )
- ;
-
-attr_raises_expr
- : (get_excep_expr)?
- (set_excep_expr)?
- ;
-
-get_excep_expr
- : "getraises"^ exception_list
- ;
-
-set_excep_expr
- : "setraises"^ exception_list
- ;
-
-exception_list
- : LPAREN! scoped_name (COMMA! scoped_name)* RPAREN!
- ;
-
-// Component Stuff
-
-component
- : "component"^
- identifier
- (component_dcl)?
- ;
-
-component_dcl
- : (component_inheritance_spec)?
- (supported_interface_spec)?
- LCURLY! component_body RCURLY!
- ;
-
-supported_interface_spec
- : "supports"^ scoped_name ( COMMA! scoped_name )*
- ;
-
-component_inheritance_spec
- : COLON^ scoped_name
- ;
-
-component_body
- : (component_export)*
- ;
-
-component_export
- : ( provides_dcl SEMI!
- | uses_dcl SEMI!
- | emits_dcl SEMI!
- | publishes_dcl SEMI!
- | consumes_dcl SEMI!
- | attr_dcl SEMI!
- )
- ;
-
-provides_dcl
- : "provides"^ interface_type identifier
- ;
-
-interface_type
- : ( scoped_name
- | "Object"
- )
- ;
-
-uses_dcl
- : "uses"^ ("multiple")? interface_type identifier
- ;
-
-emits_dcl
- : "emits"^ scoped_name identifier
- ;
-
-publishes_dcl
- : "publishes"^ scoped_name identifier
- ;
-
-consumes_dcl
- : "consumes"^ scoped_name identifier
- ;
-
-home_dcl
- : home_header home_body
- ;
-
-home_header
- : "home"^ identifier
- (home_inheritance_spec)?
- (supported_interface_spec)?
- "manages"! scoped_name
- (primary_key_spec)?
- ;
-
-home_inheritance_spec
- : COLON^ scoped_name
- ;
-
-primary_key_spec
- : "primarykey"^ scoped_name
- ;
-
-home_body
- : LCURLY! (home_export)* RCURLY!
- ;
-
-home_export
- : ( export
- | factory_dcl SEMI!
- | finder_dcl SEMI!
- )
- ;
-
-factory_dcl
- : "factory"^ identifier
- LPAREN! init_param_decls RPAREN!
- (raises_expr)?
- ;
-
-finder_dcl
- : "finder"^ identifier
- LPAREN! init_param_decls RPAREN!
- (raises_expr)?
- ;
-
-event
- : ( event_abs
- | event_custom
- | event_dcl
- )
- ;
-
-event_header
- : "eventtype"^
- identifier
- ;
-
-event_abs
- : "abstract"^
- event_header
- (event_abs_dcl)?
- ;
-
-event_abs_dcl
- : value_inheritance_spec
- LCURLY! (export)* RCURLY!
- ;
-
-event_custom
- : "custom"^
- event_header
- event_elem_dcl
- ;
-
-event_dcl
- : event_header
- ( event_elem_dcl
- | // event_forward_dcl
- )
- ;
-
-event_elem_dcl
- : value_inheritance_spec
- LCURLY! (export)* RCURLY!
- ;
-
-// event_forward_dcl
-// :
-// ;
-
-/* literals */
-integer_literal
- : INT
- | OCTAL
- | HEX
- ;
-
-string_literal
- : (STRING_LITERAL)+
- ;
-
-wide_string_literal
- : (WIDE_STRING_LITERAL)+
- ;
-
-character_literal
- : CHAR_LITERAL
- ;
-
-wide_character_literal
- : WIDE_CHAR_LITERAL
- ;
-
-fixed_pt_literal
- : FIXED
- ;
-
-floating_pt_literal
- : f:FLOAT
- ;
-
-identifier
- : IDENT
- ;
-
-/* IDL LEXICAL RULES */
-class IDLLexer extends Lexer;
-options {
- exportVocab=IDL;
- charVocabulary='\u0000'..'\uFFFE';
- k=4;
-}
-
-SEMI
-options {
- paraphrase = ";";
-}
- : ';'
- ;
-
-QUESTION
-options {
- paraphrase = "?";
-}
- : '?'
- ;
-
-LPAREN
-options {
- paraphrase = "(";
-}
- : '('
- ;
-
-RPAREN
-options {
- paraphrase = ")";
-}
- : ')'
- ;
-
-LBRACK
-options {
- paraphrase = "[";
-}
- : '['
- ;
-
-RBRACK
-options {
- paraphrase = "]";
-}
- : ']'
- ;
-
-LCURLY
-options {
- paraphrase = "{";
-}
- : '{'
- ;
-
-RCURLY
-options {
- paraphrase = "}";
-}
- : '}'
- ;
-
-OR
-options {
- paraphrase = "|";
-}
- : '|'
- ;
-
-XOR
-options {
- paraphrase = "^";
-}
- : '^'
- ;
-
-AND
-options {
- paraphrase = "&";
-}
- : '&'
- ;
-
-COLON
-options {
- paraphrase = ":";
-}
- : ':'
- ;
-
-COMMA
-options {
- paraphrase = ",";
-}
- : ','
- ;
-
-DOT
-options {
- paraphrase = ".";
-}
- : '.'
- ;
-
-ASSIGN
-options {
- paraphrase = "=";
-}
- : '='
- ;
-
-NOT
-options {
- paraphrase = "!";
-}
- : '!'
- ;
-
-LT
-options {
- paraphrase = "<";
-}
- : '<'
- ;
-
-LSHIFT
-options {
- paraphrase = "<<";
-}
- : "<<"
- ;
-
-GT
-options {
- paraphrase = ">";
-}
- : '>'
- ;
-
-RSHIFT
-options {
- paraphrase = ">>";
-}
- : ">>"
- ;
-
-DIV
-options {
- paraphrase = "/";
-}
- : '/'
- ;
-
-PLUS
-options {
- paraphrase = "+";
-}
- : '+'
- ;
-
-MINUS
-options {
- paraphrase = "-";
-}
- : '-'
- ;
-
-TILDE
-options {
- paraphrase = "~";
-}
- : '~'
- ;
-
-STAR
-options {
- paraphrase = "*";
-}
- : '*'
- ;
-
-MOD
-options {
- paraphrase = "%";
-}
- : '%'
- ;
-
-
-SCOPEOP
-options {
- paraphrase = "::";
-}
- : "::"
- ;
-
-WS
-options {
- paraphrase = "white space";
-}
- : (' '
- | '\t'
- | '\n' { newline(); }
- | '\r')
- { $setType(Token.SKIP); }
- ;
-
-
-PREPROC_DIRECTIVE
-options {
- paraphrase = "a preprocessor directive";
-}
-
- :
- '#'!
- (~'\n')* '\n'!
- { $setType(Token.SKIP); newline(); }
- ;
-
-
-SL_COMMENT
-options {
- paraphrase = "a comment";
-}
-
- :
- "//"!
- (~'\n')* '\n'
- { $setType(Token.SKIP); newline(); }
- ;
-
-ML_COMMENT
-options {
- paraphrase = "a comment";
-}
- :
- "/*"!
- (
- '\n' { newline(); }
- | ('*')+
- ( '\n' { newline(); }
- | ~('*' | '/' | '\n')
- )
- | ~('*' | '\n')
- )*
- "*/"!
- { $setType(Token.SKIP); }
- ;
-
-CHAR_LITERAL
-options {
- paraphrase = "a character literal";
-}
- :
- '\''!
- ( ESC | ~'\'' )
- '\''!
- ;
-
-WIDE_CHAR_LITERAL
-options {
- paraphrase = "a wide character literal";
-}
- : 'L'! CHAR_LITERAL
- ;
-
-STRING_LITERAL
-options {
- paraphrase = "a string literal";
-}
- :
- '"'!
- (ESC|~'"')*
- '"'!
- ;
-
-
-WIDE_STRING_LITERAL
-options {
- paraphrase = "a wide string literal";
-}
- :
- 'L'! STRING_LITERAL
- ;
-
-protected
-ESC
-options {
- paraphrase = "an escape sequence";
-}
- : '\\'!
- ( 'n' {$setText("\n");}
- | 't' {$setText("\t");}
- | 'v' {$setText("\013");}
- | 'b' {$setText("\b");}
- | 'r' {$setText("\r");}
- | 'f' {$setText("\r");}
- | 'a' {$setText("\007");}
- | '\\' {$setText("\\");}
- | '?' {$setText("?");}
- | '\'' {$setText("'");}
- | '"' {$setText("\"");}
- | OCTDIGIT
- (options {greedy=true;}:OCTDIGIT
- (options {greedy=true;}:OCTDIGIT)?
- )?
- {char realc = (char) Integer.valueOf($getText, 8).intValue(); $setText(realc);}
- | 'x'! HEXDIGIT
- (options {greedy=true;}:HEXDIGIT)?
- {char realc = (char) Integer.valueOf($getText, 16).intValue(); $setText(realc);}
- | 'u'!
- HEXDIGIT
- (options {greedy=true;}:HEXDIGIT
- (options {greedy=true;}:HEXDIGIT
- (options {greedy=true;}:HEXDIGIT)?
- )?
- )?
- {char realc = (char) Integer.valueOf($getText, 16).intValue(); $setText(realc);}
- )
- ;
-
-protected
-VOCAB
-options {
- paraphrase = "an escaped character value";
-}
- : '\3'..'\377'
- ;
-
-protected
-DIGIT
-options {
- paraphrase = "a digit";
-}
- : '0'..'9'
- ;
-
-protected
-NONZERODIGIT
-options {
- paraphrase = "a non-zero digit";
-}
- : '1'..'9'
- ;
-
-protected
-OCTDIGIT
-options {
- paraphrase = "an octal digit";
-}
- : '0'..'7'
- ;
-
-protected
-HEXDIGIT
-options {
- paraphrase = "a hexadecimal digit";
-}
- : ('0'..'9' | 'a'..'f' | 'A'..'F')
- ;
-
-HEX
-options {
- paraphrase = "a hexadecimal value value";
-}
-
- : ("0x" | "0X") (HEXDIGIT)+
- ;
-
-INT
-options {
- paraphrase = "an integer value";
-}
- : NONZERODIGIT (DIGIT)* // base-10
- ( '.' (DIGIT)*
- ( (('e' | 'E') ('+' | '-')? (DIGIT)+) {$setType(FLOAT);}
- | ('d' | 'D')! {$setType(FIXED);}
- | {$setType(FLOAT);}
- )
- | ('e' | 'E') ('+' | '-')? (DIGIT)+ {$setType(FLOAT);}
- | ('d' | 'D')! {$setType(FIXED);}
- )?
- ;
-
-OCTAL
-options {
- paraphrase = "an octal value";
-}
- : '0'
- ( (DIGIT)+
- | FLOAT {$setType(FLOAT);}
- | ('d' | 'D')! {$setType(FIXED);}
- | {$setType(INT);}
- )
- ;
-
-
-FLOAT
-options {
- paraphrase = "a floating point value";
-}
-
- : '.' (DIGIT)+
- ( ('e' | 'E') ('+' | '-')? (DIGIT)+
- | ('d' | 'D')! {$setType(FIXED);}
- )?
- ;
-
-IDENT
-options {
- paraphrase = "an identifer";
- testLiterals = true;
-}
-
- : ('a'..'z'|'A'..'Z') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*
- ;
-
-ESCAPED_IDENT
-options {
- paraphrase = "an escaped identifer";
- testLiterals = false; // redundant, but explicit is good.
-}
- // NOTE: Adding a ! to the '_' doesn't seem to work,
- // so we adjust _begin manually.
-
- : '_' ('a'..'z'|'A'..'Z') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*
- {_begin++;$setType(IDENT);}
- ;
-
-
diff --git a/src/dom/work/inkscape.css b/src/dom/work/inkscape.css
deleted file mode 100644
index e73b15038..000000000
--- a/src/dom/work/inkscape.css
+++ /dev/null
@@ -1,493 +0,0 @@
-/*
-* CSS for Inkscape Website (http://www.inkscape.org/)
-*
-* By: Tom von Schwerdtner | Etria LLP (http://www.etria.com/)
-*
-*/
-
-body {
- color: #000000;
- background: #ffffff;
- padding: 0px;
- margin: 0px;
- font-family: arial, Helvetica, 'Bitstream Vera Sans', 'Luxi Sans', Verdana, Sans-Serif;
- font-size: 80%;
-}
-
-a:link, a:visited, a:hover {
- font-weight: bold;
- color: #0081ac;
- text-decoration: none;
-}
-
-a:hover {
- text-decoration: underline;
-}
-
-a:visited {
- color: #ac0011;
-}
-
-div.top {
- background:#0081ac;
- width: 100%;
- height: 100px;
- border-bottom: 1px black solid;
-}
-
-div.top a.logo,
-div.top a.logo:link,
-div.top a.logo:hover,
-div.top a.logo:visited
- {
- color: #ffffff;
- background: transparent;
- border: none;
- text-decoration: none;
-}
-
-div.top h1 {
- color: #ffffff;
- background: transparent;
- font-size: 40px;
- font-family: arial;
- margin: 0px;
- padding: 20px;
- float: left;
-}
-
-img.logo {
- float: right;
- border: none;
-}
-
-#menu {
- float: left;
- border: 1px #999999 solid;
- width: 150px;
- margin-left: 10px;
- margin-top: 10px;
- margin-bottom: 10px;
-}
-
-#menu ul {
- list-style: none;
- padding: 0px;
- margin: 0px;
-}
-
-#menu li.sub {
- color: #000000;
- background: #d6d6d6;
- font-weight: bold;
- padding: 0px;
-}
-
-#menu .title {
- padding: 4px;
- text-align: center;
-}
-
-#menu ul.sub {
- padding: 0px;
- margin: 0px;
- border-top: 1px #999999 solid;
- border-bottom: 1px #999999 solid;
- list-style: none;
-}
-
-#menu li a {
- display: block;
- background: #f0f0f0;
- color: #0081ac;
- border-top: 1px #d6d6d6 solid;
- border-bottom: 1px #d6d6d6 solid;
- margin: 0px;
- padding: 4px;
- padding-left: 10px;
- width: 100%;
-}
-#menu li a:visited {
- color: #0081ac;
-}
-
-html>body #menu li a {
- width: auto;
-}
-
-#menu li.item a:hover, ul.sub li.item a:hover {
- display: block;
- background: #ac0011;
- /*background: #DC878F;*/
- color: #ffffff;
- border-top: 1px #6F000B solid;
- border-bottom: 1px #6F000B solid;
- text-decoration: none;
-}
-
-#sourceforge {
- text-align: center;
- border: none;
-}
-
-html>body #sourceforge {
- width: auto;
-}
-
-div.content {
- padding: 20px;
-
- /* this is a hack */
- margin-left: 160px;
- margin-right: 20px;
-}
-
-
-#skipnav {
- display: none;
-}
-
-#togglecss {
- position: absolute;
- top: 110px;
- right: 10px;
-}
-
-div.news {
-}
-
-div.news div.item {
-}
-
-div.news div.item img {
- margin: 10px;
-}
-
-div.news div.item img.right {
- float: right;
- margin-right: 0px;
-}
-
-div.news div.item img.left {
- float: left;
- margin-left: 0px;
-}
-
-img.thumb {
- border: 1px #999999 solid;
-}
-
-div.news div.item h3 {
- font-weight: bold;
- border-left: 10px #999999 solid;
- padding-left: 4px;
- margin-bottom: 4px;
-
- clear: right;
-}
-
-div.news div.item p {
- margin-top: 0px;
- margin-left: 20px;
- margin-right: 20px;
-}
-
-p {
- text-align: justify;
-}
-
-h2 {
- border-bottom: 1px #000000 solid;
- clear: right;
-}
-
-pre {
- border: 1px #006F02 solid;
- background: #B0E4AE;
- padding: 4px;
-}
-
-
-/* File Releases */
-
-div.rss-files {
-}
-
-div.rss-files div.file {
- background: #f0f0f0;
- color: #000000;
- border: 1px #999999 solid;
- padding: 2px;
- margin: 20px;
-}
-
-div.rss-files div.file div.title {
- font-weight: bold;
- padding: 4px;
- padding-top: 2px;
-}
-div.rss-files div.file div.description {
- font-weight: normal;
- border: 1px #999999 solid;
- background: #ffffff;
- color: #000000;
- padding: 4px;
-}
-
-#footer {
- text-align: center;
- width: 100%;
- border-top: 1px #000000 solid;
- border-bottom: 1px #000000 solid;
- padding-top: 4px;
- padding-bottom: 4px;
- background:#0081AC;
- color: #ffffff;
- clear: both;
-}
-
-#footer img {
- border: none;
-}
-
-#footer a {
- color: white;
-}
-/* We are overriding some earlier styles here, so this needs to be at the end
- */
-/*
-a.external:link,
-a.external:visited,
-a.external:hover,
-#menu li a.external,
-#menu li a.external:hover
-{
- background-image: url('/images/globe.png');
- background-repeat: no-repeat;
- background-position: center right;
- padding-right: 18px;
-}
-*/
-
-/* Doxygen Specific */
-
-div.doxygen {
-}
-
-div.doxygen pre {
- background: #F8F8C6;
- background: #fffff0;
- color: #000000;
- border: 1px #808000 solid;
-}
-
-div.doxygen pre a:hover {
-}
-
-div.doxygen pre .preprocessor {
- font-weight: bold;
- color: #006809;
-}
-
-div.doxygen pre .keyword {
- color: #68005F;
-}
-
-div.doxygen pre .keywordflow {
- color: #120053;
- font-weight: bold;
-}
-
-div.doxygen pre .keywordtype {
- font-weight: bold;
- color: #495300;
-}
-
-div.doxygen pre .comment {
- font-style: italic;
- font-weight: bold;
-}
-
-
-
-
-table {
-
- margin-left: auto;
- margin-right: auto;
- width: 100%;
-
- clear: none;
-
- border-collapse: collapse;
-
-
- background: none;
-
-
-/* font-family: Arial, Helvetica, 'Bitstream Vera Sans', 'Luxi Sans', Verdana, Sans-Serif; */
- font-size: 13px;
-
-}
-
-td {
- padding: 8px;
- vertical-align: top;
-}
-
-
-table.roadmap {
- background: #eee;
-}
-
-table.roadmap td {
-
- border: 1px solid #999;
- /* width: 50%; */
-
-
-}
-
-tr.header {
- font-weight: bold;
- background: #ddd;
-}
-
-td.title {
- text-align: center;
- font-size: 16px;
- font-weight: bold;
- background: #ddd;
-}
-
-
-
-img.float {
- float: right;
-
- margin-top: 7px;
- margin-left: 10px;
- /* margin-right: 10px; */
- margin-bottom: 10px;
-}
-
-
-
-/*@import: url(wiki.css)*/
-
-
-
-/* FORM STUFF */
-
-SELECT, option, textarea, input {
-
- color: #000000;
- font-size: 10px;
- text-decoration: none;
- background: white;
- border: 1px solid #666666;
-
- margin: 2px 0px 2px 0;
- padding: 2px;
-
-}
-
-/* now make them all have nice hovers */
-
-
-
-SELECT:hover, option:hover, textarea:hover, input:hover {
- background: #ddd;
-}
-
-
-form.search {
- /*display: inline;
- background: #f0f0f0;
- */
-
- text-align: center;
-
- display: block;
- background: #f0f0f0;
- color: #0081ac;
- border-top: 1px #d6d6d6 solid;
- border-bottom: 1px #d6d6d6 solid;
- margin: 0px;
- padding: 4px;
- padding-left: 10px;
-
-
-}
-
-form.search:hover {
- background: #ac0011;
-}
-
-
-
-#post_news input
-{
- width: 35%;
-}
-
-#post_news textarea
-{
- width: 100%;
- height: 150px;
-}
-
-input#login,
-#post_news input#preview,
-#post_news input#save,
-#post_news input#reset
-{
- width: 100px;
-}
-
-
-#post_news table
-{
- padding: 0;
-}
-
-#post_news td
-{
- padding-left: 0;
-}
-#post_news table tr td.header
-{
- width: 10%;
- font-weight: bold;
-}
-
-.alert
-{
- color: red;
-}
-
-
-div.alert
-{
- border: 1px solid red;
- padding: 8px;
-}
-
-.preview,
-.message
-{
- border: 1px solid #ccc;
- padding: 8px;
-}
-
-
-#navbar
-{
- padding: 8px;
- background: #ccc;
-}
-
-#navbar a
-{
- padding-right: 12px;
-}
diff --git a/src/dom/work/ls.idl b/src/dom/work/ls.idl
deleted file mode 100644
index db53ab79c..000000000
--- a/src/dom/work/ls.idl
+++ /dev/null
@@ -1,171 +0,0 @@
-/*
- * Copyright (c) 2004 World Wide Web Consortium,
- *
- * (Massachusetts Institute of Technology, European Research Consortium for
- * Informatics and Mathematics, Keio University). All Rights Reserved. This
- * work is distributed under the W3C(r) Software License [1] in the hope that
- * it will be useful, but WITHOUT ANY WARRANTY; without even the implied
- * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
- */
-
-// File: http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407/ls.idl
-
-#ifndef _LS_IDL_
-#define _LS_IDL_
-
-#include "dom.idl"
-#include "events.idl"
-#include "traversal.idl"
-
-#pragma prefix "dom.w3c.org"
-module ls
-{
-
- typedef Object LSInputStream;
-
- typedef Object LSOutputStream;
-
- typedef Object LSReader;
-
- typedef Object LSWriter;
-
- typedef dom::DOMString DOMString;
- typedef dom::DOMConfiguration DOMConfiguration;
- typedef dom::Node Node;
- typedef dom::Document Document;
- typedef dom::Element Element;
-
- interface LSParser;
- interface LSSerializer;
- interface LSInput;
- interface LSOutput;
- interface LSParserFilter;
- interface LSSerializerFilter;
-
- exception LSException {
- unsigned short code;
- };
- // LSExceptionCode
- const unsigned short PARSE_ERR = 81;
- const unsigned short SERIALIZE_ERR = 82;
-
-
- interface DOMImplementationLS {
-
- // DOMImplementationLSMode
- const unsigned short MODE_SYNCHRONOUS = 1;
- const unsigned short MODE_ASYNCHRONOUS = 2;
-
- LSParser createLSParser(in unsigned short mode,
- in DOMString schemaType)
- raises(dom::DOMException);
- LSSerializer createLSSerializer();
- LSInput createLSInput();
- LSOutput createLSOutput();
- };
-
- interface LSParser {
- readonly attribute DOMConfiguration domConfig;
- attribute LSParserFilter filter;
- readonly attribute boolean async;
- readonly attribute boolean busy;
- Document parse(in LSInput input)
- raises(dom::DOMException,
- LSException);
- Document parseURI(in DOMString uri)
- raises(dom::DOMException,
- LSException);
-
- // ACTION_TYPES
- const unsigned short ACTION_APPEND_AS_CHILDREN = 1;
- const unsigned short ACTION_REPLACE_CHILDREN = 2;
- const unsigned short ACTION_INSERT_BEFORE = 3;
- const unsigned short ACTION_INSERT_AFTER = 4;
- const unsigned short ACTION_REPLACE = 5;
-
- Node parseWithContext(in LSInput input,
- in Node contextArg,
- in unsigned short action)
- raises(dom::DOMException,
- LSException);
- void abort();
- };
-
- interface LSInput {
- // Depending on the language binding in use,
- // this attribute may not be available.
- attribute LSReader characterStream;
- attribute LSInputStream byteStream;
- attribute DOMString stringData;
- attribute DOMString systemId;
- attribute DOMString publicId;
- attribute DOMString baseURI;
- attribute DOMString encoding;
- attribute boolean certifiedText;
- };
-
- interface LSResourceResolver {
- LSInput resolveResource(in DOMString type,
- in DOMString namespaceURI,
- in DOMString publicId,
- in DOMString systemId,
- in DOMString baseURI);
- };
-
- interface LSParserFilter {
-
- // Constants returned by startElement and acceptNode
- const short FILTER_ACCEPT = 1;
- const short FILTER_REJECT = 2;
- const short FILTER_SKIP = 3;
- const short FILTER_INTERRUPT = 4;
-
- unsigned short startElement(in Element elementArg);
- unsigned short acceptNode(in Node nodeArg);
- readonly attribute unsigned long whatToShow;
- };
-
- interface LSSerializer {
- readonly attribute DOMConfiguration domConfig;
- attribute DOMString newLine;
- attribute LSSerializerFilter filter;
- boolean write(in Node nodeArg,
- in LSOutput destination)
- raises(LSException);
- boolean writeToURI(in Node nodeArg,
- in DOMString uri)
- raises(LSException);
- DOMString writeToString(in Node nodeArg)
- raises(dom::DOMException,
- LSException);
- };
-
- interface LSOutput {
- // Depending on the language binding in use,
- // this attribute may not be available.
- attribute LSWriter characterStream;
- attribute LSOutputStream byteStream;
- attribute DOMString systemId;
- attribute DOMString encoding;
- };
-
- interface LSProgressEvent : events::Event {
- readonly attribute LSInput input;
- readonly attribute unsigned long position;
- readonly attribute unsigned long totalSize;
- };
-
- interface LSLoadEvent : events::Event {
- readonly attribute Document newDocument;
- readonly attribute LSInput input;
- };
-
- interface LSSerializerFilter : traversal::NodeFilter {
- readonly attribute unsigned long whatToShow;
- };
-};
-
-#endif // _LS_IDL_
-
diff --git a/src/dom/work/meyerweb.css b/src/dom/work/meyerweb.css
deleted file mode 100644
index 9cce6b65e..000000000
--- a/src/dom/work/meyerweb.css
+++ /dev/null
@@ -1,181 +0,0 @@
-@import url(skel.css);
-
-/* generics */
-
-* {font-size: 100%; padding: 0; margin: 0;}
-body {font: 0.84em/1.333 Arial, sans-serif; margin: 0; padding: 0;
- color: #202020; background: #FFF;
- min-width: 40em; margin: 0 auto;}
-a:link {color: #339;}
-a:visited {color: #848;}
-a img {border: none;}
-h1 {font-size: 2em; margin: 2em 0 0.5em; padding: 0.25em 0;}
-h2 {font-size: 1.5em; margin: 2em 0 0.33em; padding: 0.25em 0;}
-h3 {font-size: 1.33em; margin: 2em 0 0.25em; padding: 0.125em 0;}
-h4 {font-size: 1.1em; margin: 0.5em 0 0;}
-h5 {font-size: 1em; margin: 0.5em 0 0;}
-h6 {font-size: 0.85em; margin: 0.5em 0 0;}
-p {margin: 0.33em 0 1em 0;}
-ul, ol {margin: 1em 0; padding-left: 2.5em;}
-dt {margin: 0.5em 0 0;}
-dd {margin: 0.25em 0 0.5em 2.5em;}
-pre, code, tt {font: 110% "Andale Mono", Courier, "Courier New", monospace;}
-small {font-size: 85%;}
-big {font-size: 115%;}
-sup {font-size: smaller; vertical-align: 0.5em; line-height: 1px;}
-img.pic {float: right; position: relative; margin: 0.25em 0 0.66em 1.5em;}
-img.border {border: 3px double;}
-img.standalone {display: block; margin: 0.5em auto; width: auto; max-width: 100%;}
-p.standalone {text-align: center;}
-p.standalone img {display: inline;}
-.warning {background: #FF8; color: red; border: 2px solid; padding: 1em;}
-.highlight {background: #B4D5FF; font-weight: bold;}
-
-table.chart {margin: 1em auto;}
-table.chart caption {font-weight: bold; font-style: italic; font-size: 90%;}
-table.chart th {text-align: left;}
-table.chart thead th {border-bottom: 1px solid #CCC;}
-table.chart th, table.chart td {border-bottom: 1px dotted #DDD;}
-table.chart tbody th {padding-right: 1em;}
-
-/* masthead */
-
-#sitemast {padding: 0; margin: 0; overflow: hidden; border-bottom: 1px solid #000;
- height: 128px; width: 100%; position: relative; z-index: 1;}
-#sitemast h1 {font-size: 2em; line-height: 1em; letter-spacing: 0.13em;
- padding: 0; margin: 0;
- position: absolute; left: 0; top: 100px;
- /* hide-from-IE5/Mac hack \*/
- top: auto; bottom: 0;
- /* end hack */}
-#sitemast h1 a {padding: 0 0.25em;}
-#sitemast h1 a, .panel a {text-decoration: none;}
-
-/* main content */
-
-#main {margin: 2.25em 20em 0 12em; padding: 3.5em 0;
- min-height: 30em;}
-#main h2 {border-bottom: 1px solid #888; margin: 0; padding: 0;
- font-size: 1.75em; line-height: 1;}
-#main p.contact {margin: 0 1em; text-align: right; font-size: 90%;}
-
-#main p {line-height: 1.4;}
-#main li {line-height: 1.33; margin-bottom: 0.33em;}
-#main .compact li {line-height: normal; margin-bottom: 0;}
-#main ul li {list-style: square;}
-#main ol li {list-style: decimal;}
-
-#main blockquote {font-style: normal; margin: 1em 1em 1em 2em;}
-#main blockquote em {font-style: italic; font-weight: inherit;}
-#main blockquote p {margin: 0.33em 2.5% 0.33em 0 !important;
- line-height: 1.2; text-indent: 2em;}
-#main blockquote.book p {margin: 0 2.5% 0 0 !important;}
-#main blockquote.lyric {font-style: italic; white-space: pre;
- border: none; margin-left: 1em;}
-#main blockquote.lyric p {text-indent: 0;}
-.quoteattrib {margin: -0.75em 3em 0.66em; font-size: 87.5%;}
-.quoteattrib cite {font-style: italic;}
-
-/* search bits */
-
-#search {position: absolute; top: 129px; right: 0;
- z-index: 10;
- text-align: right; padding: 0.25em 0 1.25em 5px;
- background: url(pix/logoogle2.gif) no-repeat 0% 100%;}
-#search h4 {display: none;}
-#search form {margin: 0; padding: 2px 1em 0;}
-#search input[type="text"] {width: 14em; border: 2px inset #999;}
-#search small {display: block; margin: 0 1.25em; padding: 0;
- text-align: right; line-height: 1;}
-#search small a {background: #FFF; color: #668; font-style: italic;}
-
-/* navbar */
-
-#navigate {position: absolute; top: 129px; left: 0; right: 0;
- padding: 0.25em 0 0.25em 1em;
- z-index: 1; overflow: hidden;
- height: auto; width: 85%; line-height: 2;}
-#navigate h4 {display: none;}
-#navigate ul, #navigate li {margin: 0; padding: 0;}
-#navigate ul {padding-left: 0.5em;}
-
-#navlinks {float: left; width: 100%;}
-#navlinks a {text-decoration: none;}
-#navlinks li {float: left; list-style: none; margin-left: 1px;}
-#navlinks li a {padding: 0.25em 1em; margin-right: 0.125em;
- border-top: 0.75em solid #AAC; border-bottom: 1px dotted #FFF;
- font-weight: bold; color: #668;}
-#navlinks li ul {display: none; border: none;}
-#navlinks li li a {font-weight: normal;}
-#navlinks a:hover {border-top-color: #88A;}
-#navlinks #otherLink {margin-left: 1.75em;}
-
-.arch #archLink a,
-.css #cssLink a,
-.tools #toolsLink a,
-.write #writeLink a,
-.speak #speakLink a,
-.other #otherLink a
-{border-color: #226 #FFF #FFF; background: #CCE; color: #226; font-style: italic;}
-
-/* 'sidebar' */
-
-#extra {position: absolute; top: 129px; right: 0; z-index: 100; width: 18em;
- font-size: 1em; line-height: 1.2;
- padding: 1.75em 0 0; margin: 3em 0 0;
- color: #5A5A5F;}
-#extra a:link {color: #66A;}
-#extra a:visited {color: #858;}
-
-#extra .panel {margin: 1em 0 0; padding: 1em 1em 0 3em; border: 1px dotted #FFF;}
-#extra .panel h4, #extra .panel h5 {margin: 0 0 0.25em; padding: 0 0.5em 0 0;
- font-size: 90%; line-height: 1;
- border-bottom: 1px solid #AAA;}
-#extra .panel ul {list-style: none; margin: 0 1em 0 0; padding: 0; font-size: 90%;}
-#extra .panel li {margin-left: 1em; text-indent: -1em;}
-#extra .panel .more {float: right; margin: -1.5em 1px 0 0.5em;
- font-style: italic; text-align: right; font-size: smaller;}
-#extra .panel .more a {padding-left: 15px; background: url(pix/morearr.gif) 0 66% no-repeat;}
-
-#extra #blogroll h5 {padding-right: 95px;}
-#extra #blogroll ul {margin: 0.5em 1em 0 0;}
-#extra #xfn-btn {float: right; margin: -20px 1px 0 5px;}
-
-#extra #excuse {text-align: center; padding: 0 0.25em 0.66em; margin: 2em 1em -2em 3em;
- border: 1px solid #CCC;}
-#extra #excuse h4 {display: inline; position: relative; top: -0.6em;
- border: 0; padding: 0 0.25em; margin: 0;
- background: #FFF; color: #666;
- text-transform: capitalize; font-size: 1em; font-weight: normal;}
-#extra #excuse p {margin: 0; padding: 0; color: #444;}
-
-#extra #extras {padding: 1em 0.5em 1em; margin: 2em 1em 0 3em; width: 13em;
- color: #666; border: 1px solid #AAA; border-width: 1px 0;}
-#extra #extras h4 {display: none;}
-#extra #extras ul {margin: 0; text-align: center; list-style: none;}
-#extra #extras li {margin-left: 0.25em; display: inline;}
-#extra #extras a {margin-right: 0.25em;}
-
-/* miscellaneous */
-
-#footer {margin: 3em 18em 0 12em; padding: 0.5em 0 3.5em;
- border-top: 1px solid gray;
- text-align: center;
- color: gray; background: #FFF;}
-#footer a {color: #558;}
-#footer a:visited {color: #858;}
-#footer p {line-height: 1; margin: 0; padding: 0.5em 0.25em 0; font-size: 0.85em; }
-
-#reading img {border: 1px solid silver;}
-#extra #reading img {margin: 0.5em;}
-
-.book #main img.cover {float: right; margin: 1em 0 1em 2em;
- border: 1px solid; border-color: #AAA #444 #444 #AAA;}
-
-/* Hack-o-rama! */
-
-* html #navigate {padding-top: 0;}
-
-/*\*//*/
-body #search {width: 20em;}
-/**/
diff --git a/src/dom/work/prop-css.txt b/src/dom/work/prop-css.txt
deleted file mode 100644
index 882984137..000000000
--- a/src/dom/work/prop-css.txt
+++ /dev/null
@@ -1,1082 +0,0 @@
-
-{
-"azimuth",
-"<angle> | [[ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards | inherit",
-"center",
-"",
-"yes",
-"",
-"aural"
-},
-
-
-{
-"background-attachment",
-"scroll | fixed | inherit",
-"scroll",
-"",
-"no",
-"",
-"visual"
-},
-
-
-{
-"background-color",
-"<color> | transparent | inherit",
-"transparent",
-"",
-"no",
-"",
-"visual"
-},
-
-
-{
-"background-image",
-"<uri> | none | inherit",
-"none",
-"",
-"no",
-"",
-"visual"
-},
-
-
-{
-"background-position",
-"[ [ <percentage> | <length> | left | center | right ] [ <percentage> | <length> | top | center | bottom ]? ] | [ [ left | center | right ] || [ top | center | bottom ] ] | inherit",
-"0% 0%",
-"",
-"no",
-"refer to the size of the box itself",
-"visual"
-},
-
-
-{
-"background-repeat",
-"repeat | repeat-x | repeat-y | no-repeat | inherit",
-"repeat",
-"",
-"no",
-"",
-"visual"
-},
-
-
-{
-"background",
-"['background-color' || 'background-image' || 'background-repeat' || 'background-attachment' || 'background-position'] | inherit",
-"see individual properties",
-"",
-"no",
-"allowed on 'background-position",
-"visual"
-},
-
-
-{
-"border-collapse",
-"collapse | separate | inherit",
-"separate",
-"table' and 'inline-table' elements",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"border-color",
-"[ <color> | transparent ]{1,4} | inherit",
-"see individual properties",
-"",
-"no",
-"",
-"visual"
-},
-
-
-{
-"border-spacing",
-"<length> <length>? | inherit",
-"0",
-"table' and 'inline-table' elements",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"border-style",
-"<border-style>{1,4} | inherit",
-"see individual properties",
-"",
-"no",
-"",
-"visual"
-},
-
-
-{
-"border-top' 'border-right' 'border-bottom' 'border-left",
-"[ <border-width> || <border-style> || 'border-top-color' ] | inherit",
-"see individual properties",
-"",
-"no",
-"",
-"visual"
-},
-
-
-{
-"border-top-color' 'border-right-color' 'border-bottom-color' 'border-left-color",
-"<color> | transparent | inherit",
-"the value of the 'color' property",
-"",
-"no",
-"",
-"visual"
-},
-
-
-{
-"border-top-style' 'border-right-style' 'border-bottom-style' 'border-left-style",
-"<border-style> | inherit",
-"none",
-"",
-"no",
-"",
-"visual"
-},
-
-
-{
-"border-top-width' 'border-right-width' 'border-bottom-width' 'border-left-width",
-"<border-width> | inherit",
-"medium",
-"",
-"no",
-"",
-"visual"
-},
-
-
-{
-"border-width",
-"<border-width>{1,4} | inherit",
-"see individual properties",
-"",
-"no",
-"",
-"visual"
-},
-
-
-{
-"border",
-"[ <border-width> || <border-style> || 'border-top-color' ] | inherit",
-"see individual properties",
-"",
-"no",
-"",
-"visual"
-},
-
-
-{
-"bottom",
-"<length> | <percentage> | auto | inherit",
-"auto",
-"positioned elements",
-"no",
-"refer to height of containing block",
-"visual"
-},
-
-
-{
-"caption-side",
-"top | bottom | inherit",
-"top",
-"table-caption' elements",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"clear",
-"none | left | right | both | inherit",
-"none",
-"block-level elements",
-"no",
-"",
-"visual"
-},
-
-
-{
-"clip",
-"<shape> | auto | inherit",
-"auto",
-"absolutely positioned elements",
-"no",
-"",
-"visual"
-},
-
-
-{
-"color",
-"<color> | inherit",
-"depends on user agent",
-"",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"content",
-"normal | [ <string> | <uri> | <counter> | attr(<identifier>) | open-quote | close-quote | no-open-quote | no-close-quote ]+ | inherit",
-"normal",
-":before and :after pseudo-elements",
-"no",
-"",
-"all "
-},
-
-
-{
-"counter-increment",
-"[ <identifier> <integer>? ]+ | none | inherit",
-"none",
-"",
-"no",
-"",
-"all "
-},
-
-
-{
-"counter-reset",
-"[ <identifier> <integer>? ]+ | none | inherit",
-"none",
-"",
-"no",
-"",
-"all "
-},
-
-
-{
-"cue-after",
-"<uri> | none | inherit",
-"none",
-"",
-"no",
-"",
-"aural"
-},
-
-
-{
-"cue-before",
-"<uri> | none | inherit",
-"none",
-"",
-"no",
-"",
-"aural"
-},
-
-
-{
-"cue",
-"[ 'cue-before' || 'cue-after' ] | inherit",
-"see individual properties",
-"",
-"no",
-"",
-"aural"
-},
-
-
-{
-"cursor",
-"[ [<uri> ,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize | text | wait | help | progress ] ] | inherit",
-"auto",
-"",
-"yes",
-"",
-"visual,
- interactive "
-},
-
-
-{
-"direction",
-"ltr | rtl | inherit",
-"ltr",
-"all elements, but see prose",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"display",
-"inline | block | list-item | run-in | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | none | inherit",
-"inline",
-"",
-"no",
-"",
-"all "
-},
-
-
-{
-"elevation",
-"<angle> | below | level | above | higher | lower | inherit",
-"level",
-"",
-"yes",
-"",
-"aural"
-},
-
-
-{
-"empty-cells",
-"show | hide | inherit",
-"show",
-"table-cell' elements",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"float",
-"left | right | none | inherit",
-"none",
-"all, but see 9.7",
-"no",
-"",
-"visual"
-},
-
-
-{
-"font-family",
-"[[ <family-name> | <generic-family> ] [, <family-name>| <generic-family>]* ] | inherit",
-"depends on user agent",
-"",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"font-size",
-"<absolute-size> | <relative-size> | <length> | <percentage> | inherit",
-"medium",
-"",
-"yes",
-"refer to parent element's font size",
-"visual"
-},
-
-
-{
-"font-style",
-"normal | italic | oblique | inherit",
-"normal",
-"",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"font-variant",
-"normal | small-caps | inherit",
-"normal",
-"",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"font-weight",
-"normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit",
-"normal",
-"",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"font",
-"[ [ 'font-style' || 'font-variant' || 'font-weight' ]? 'font-size' [ / 'line-height' ]? 'font-family' ] | caption | icon | menu | message-box | small-caption | status-bar | inherit",
-"see individual properties",
-"",
-"yes",
-"see individual properties",
-"visual"
-},
-
-
-{
-"height",
-"<length> | <percentage> | auto | inherit",
-"auto",
-"all elements but non-replaced inline elements, table columns, and column groups",
-"no",
-"see prose",
-"visual"
-},
-
-
-{
-"left",
-"<length> | <percentage> | auto | inherit",
-"auto",
-"positioned elements",
-"no",
-"refer to width of containing block",
-"visual"
-},
-
-
-{
-"letter-spacing",
-"normal | <length> | inherit",
-"normal",
-"",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"line-height",
-"normal | <number> | <length> | <percentage> | inherit",
-"normal",
-"",
-"yes",
-"refer to the font size of the element itself",
-"visual"
-},
-
-
-{
-"list-style-image",
-"<uri> | none | inherit",
-"none",
-"elements with 'display: list-item",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"list-style-position",
-"inside | outside | inherit",
-"outside",
-"elements with 'display: list-item",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"list-style-type",
-"disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | none | inherit",
-"disc",
-"elements with 'display: list-item",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"list-style",
-"[ 'list-style-type' || 'list-style-position' || 'list-style-image' ] | inherit",
-"see individual properties",
-"elements with 'display: list-item",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"margin-right' 'margin-left",
-"<margin-width> | inherit",
-"0",
-"all elements except elements with table display types other than table and inline-table",
-"no",
-"refer to width of containing block",
-"visual"
-},
-
-
-{
-"margin-top' 'margin-bottom",
-"<margin-width> | inherit",
-"0",
-"all elements except elements with table display types other than table and inline-table",
-"no",
-"refer to width of containing block",
-"visual"
-},
-
-
-{
-"margin",
-"<margin-width>{1,4} | inherit",
-"see individual properties",
-"all elements except elements with table display types other than table and inline-table",
-"no",
-"refer to width of containing block",
-"visual"
-},
-
-
-{
-"max-height",
-"<length> | <percentage> | none | inherit",
-"none",
-"all elements except non-replaced inline elements and table elements",
-"no",
-"see prose",
-"visual"
-},
-
-
-{
-"max-width",
-"<length> | <percentage> | none | inherit",
-"none",
-"all elements except non-replaced inline elements and table elements",
-"no",
-"refer to width of containing block",
-"visual"
-},
-
-
-{
-"min-height",
-"<length> | <percentage> | inherit",
-"0",
-"all elements except non-replaced inline elements and table elements",
-"no",
-"see prose",
-"visual"
-},
-
-
-{
-"min-width",
-"<length> | <percentage> | inherit",
-"0",
-"all elements except non-replaced inline elements and table elements",
-"no",
-"refer to width of containing block",
-"visual"
-},
-
-
-{
-"orphans",
-"<integer> | inherit",
-"2",
-"block-level elements",
-"yes",
-"",
-"visual, paged "
-},
-
-
-{
-"outline-color",
-"<color> | invert | inherit",
-"invert",
-"",
-"no",
-"",
-"visual, interactive "
-},
-
-
-{
-"outline-style",
-"<border-style> | inherit",
-"none",
-"",
-"no",
-"",
-"visual, interactive "
-},
-
-
-{
-"outline-width",
-"<border-width> | inherit",
-"medium",
-"",
-"no",
-"",
-"visual, interactive "
-},
-
-
-{
-"outline",
-"[ 'outline-color' || 'outline-style' || 'outline-width' ] | inherit",
-"see individual properties",
-"",
-"no",
-"",
-"visual, interactive "
-},
-
-
-{
-"overflow",
-"visible | hidden | scroll | auto | inherit",
-"visible",
-"block-level and replaced elements, table cells, inline blocks",
-"no",
-"",
-"visual"
-},
-
-
-{
-"padding-top' 'padding-right' 'padding-bottom' 'padding-left",
-"<padding-width> | inherit",
-"0",
-"all elements except elements with table display types other than table, inline-table, and table-cell",
-"no",
-"refer to width of containing block",
-"visual"
-},
-
-
-{
-"padding",
-"<padding-width>{1,4} | inherit",
-"see individual properties",
-"all elements except elements with table display types other than table, inline-table, and table-cell",
-"no",
-"refer to width of containing block",
-"visual"
-},
-
-
-{
-"page-break-after",
-"auto | always | avoid | left | right | inherit",
-"auto",
-"block-level elements",
-"no",
-"",
-"visual,
- paged "
-},
-
-
-{
-"page-break-before",
-"auto | always | avoid | left | right | inherit",
-"auto",
-"block-level elements",
-"no",
-"",
-"visual,
- paged "
-},
-
-
-{
-"page-break-inside",
-"avoid | auto | inherit",
-"auto",
-"block-level elements",
-"yes",
-"",
-"visual,
- paged "
-},
-
-
-{
-"pause-after",
-"<time> | <percentage> | inherit",
-"0",
-"",
-"no",
-"see prose",
-"aural"
-},
-
-
-{
-"pause-before",
-"<time> | <percentage> | inherit",
-"0",
-"",
-"no",
-"see prose",
-"aural"
-},
-
-
-{
-"pause",
-"[ [<time> | <percentage>]{1,2} ] | inherit",
-"see individual properties",
-"",
-"no",
-"see descriptions of 'pause-before' and 'pause-after",
-"aural"
-},
-
-
-{
-"pitch-range",
-"<number> | inherit",
-"50",
-"",
-"yes",
-"",
-"aural"
-},
-
-
-{
-"pitch",
-"<frequency> | x-low | low | medium | high | x-high | inherit",
-"medium",
-"",
-"yes",
-"",
-"aural"
-},
-
-
-{
-"play-during",
-"<uri> [ mix || repeat ]? | auto | none | inherit",
-"auto",
-"",
-"no",
-"",
-"aural"
-},
-
-
-{
-"position",
-"static | relative | absolute | fixed | inherit",
-"static",
-"",
-"no",
-"",
-"visual"
-},
-
-
-{
-"quotes",
-"[<string> <string>]+ | none | inherit",
-"depends on user agent",
-"",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"richness",
-"<number> | inherit",
-"50",
-"",
-"yes",
-"",
-"aural"
-},
-
-
-{
-"right",
-"<length> | <percentage> | auto | inherit",
-"auto",
-"positioned elements",
-"no",
-"refer to width of containing block",
-"visual"
-},
-
-
-{
-"speak-header",
-"once | always | inherit",
-"once",
-"elements that have table header information",
-"yes",
-"",
-"aural"
-},
-
-
-{
-"speak-numeral",
-"digits | continuous | inherit",
-"continuous",
-"",
-"yes",
-"",
-"aural"
-},
-
-
-{
-"speak-punctuation",
-"code | none | inherit",
-"none",
-"",
-"yes",
-"",
-"aural"
-},
-
-
-{
-"speak",
-"normal | none | spell-out | inherit",
-"normal",
-"",
-"yes",
-"",
-"aural"
-},
-
-
-{
-"speech-rate",
-"<number> | x-slow | slow | medium | fast | x-fast | faster | slower | inherit",
-"medium",
-"",
-"yes",
-"",
-"aural"
-},
-
-
-{
-"stress",
-"<number> | inherit",
-"50",
-"",
-"yes",
-"",
-"aural"
-},
-
-
-{
-"table-layout",
-"auto | fixed | inherit",
-"auto",
-"table' and 'inline-table' elements",
-"no",
-"",
-"visual"
-},
-
-
-{
-"text-align",
-"left | right | center | justify | inherit",
-"left' if 'direction' is 'ltr'; 'right' if 'direction' is 'rtl",
-"block-level elements, table cells and inline blocks",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"text-decoration",
-"none | [ underline || overline || line-through || blink ] | inherit",
-"none",
-"",
-"no (see prose)",
-"",
-"visual"
-},
-
-
-{
-"text-indent",
-"<length> | <percentage> | inherit",
-"0",
-"block-level elements, table cells and inline blocks",
-"yes",
-"refer to width of containing block",
-"visual"
-},
-
-
-{
-"text-transform",
-"capitalize | uppercase | lowercase | none | inherit",
-"none",
-"",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"top",
-"<length> | <percentage> | auto | inherit",
-"auto",
-"positioned elements",
-"no",
-"refer to height of containing block",
-"visual"
-},
-
-
-{
-"unicode-bidi",
-"normal | embed | bidi-override | inherit",
-"normal",
-"all elements, but see prose",
-"no",
-"",
-"visual"
-},
-
-
-{
-"vertical-align",
-"baseline | sub | super | top | text-top | middle | bottom | text-bottom | <percentage> | <length> | inherit",
-"baseline",
-"inline-level and 'table-cell' elements",
-"no",
-"refer to the 'line-height' of the element itself",
-"visual"
-},
-
-
-{
-"visibility",
-"visible | hidden | collapse | inherit",
-"visible",
-"",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"voice-family",
-"[[<specific-voice> | <generic-voice> ],]* [<specific-voice> | <generic-voice> ] | inherit",
-"depends on user agent",
-"",
-"yes",
-"",
-"aural"
-},
-
-
-{
-"volume",
-"<number> | <percentage> | silent | x-soft | soft | medium | loud | x-loud | inherit",
-"medium",
-"",
-"yes",
-"refer to inherited value",
-"aural"
-},
-
-
-{
-"white-space",
-"normal | pre | nowrap | pre-wrap | pre-line | inherit",
-"normal",
-"",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"widows",
-"<integer> | inherit",
-"2",
-"block-level elements",
-"yes",
-"",
-"visual, paged "
-},
-
-
-{
-"width",
-"<length> | <percentage> | auto | inherit",
-"auto",
-"all elements but non-replaced inline elements, table rows, and row groups",
-"no",
-"refer to width of containing block",
-"visual"
-},
-
-
-{
-"word-spacing",
-"normal | <length> | inherit",
-"normal",
-"",
-"yes",
-"",
-"visual"
-},
-
-
-{
-"z-index",
-"auto | <integer> | inherit",
-"auto",
-"positioned elements",
-"no",
-"",
-"visual"
-}
-
diff --git a/src/dom/work/prop-svg.txt b/src/dom/work/prop-svg.txt
deleted file mode 100644
index 0d4984f25..000000000
--- a/src/dom/work/prop-svg.txt
+++ /dev/null
@@ -1,651 +0,0 @@
-
-{
-"alignment-baseline",
-"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | inherit",
-"see property description",
-"'tspan', 'tref', 'altGlyph', 'textPath' elements",
-"no",
-"",
-"visual",
-"yes"
-},
-
-{
-"baseline-shift",
-"baseline | sub | super | <percentage> | <length> | inherit",
-"baseline",
-"tspan', 'tref', 'altGlyph', 'textPath' elements",
-"no",
-"refers to the 'line-height' of the 'text' element, which in the case of SVG is defined to be equal to the 'font-size",
-"visual",
-"yes (non-additive, 'set' and 'animate' elements only)"
-},
-
-{
-"clip",
-"<shape> | auto | inherit",
-"auto",
-"elements which establish a new viewport, 'pattern' elements and 'marker' elements",
-"no",
-"",
-"visual",
-"yes"
-},
-
-{
-"clip-path",
-"<uri> | none | inherit",
-"none",
-"container elements and graphics elements",
-"no",
-"",
-"visual",
-"yes"
-},
-
-{
-"clip-rule",
-"nonzero | evenodd | inherit",
-"nonzero",
-"graphics elements within a 'clipPath' element",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"color",
-"<color> | inherit",
-"depends on user agent",
-"elements to which properties 'fill', 'stroke', 'stop-color', 'flood-color', 'lighting-color' apply",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"color-interpolation",
-"auto | sRGB | linearRGB | inherit",
-"sRGB",
-"container elements, graphics elements and 'animateColor",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"color-interpolation-filters",
-"auto | sRGB | linearRGB | inherit",
-"linearRGB",
-"filter primitives",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"color-profile",
-"auto | sRGB | <name> | <uri> | inherit",
-"auto",
-"'image' elements that refer to raster images",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"color-rendering",
-"auto | optimizeSpeed | optimizeQuality | inherit",
-"auto",
-"container elements, graphics elements and 'animateColor",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"cursor",
-"[ [<uri> ,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize| text | wait | help ] ] | inherit",
-"auto",
-"container elements and graphics elements",
-"yes",
-"",
-"visual, interactive",
-"yes"
-},
-
-{
-"direction",
-"ltr | rtl | inherit",
-"ltr",
-"text content elements",
-"yes",
-"",
-"visual",
-"no"
-},
-
-{
-"display",
-"inline | block | list-item | run-in | compact | marker | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | none | inherit",
-"inline",
-"'svg', 'g', 'switch', 'a', 'foreignObject', graphics elements (including the 'text' element) and text sub-elements (i.e., 'tspan', 'tref', 'altGlyph', 'textPath')",
-"no",
-"",
-"all",
-"yes"
-},
-
-{
-"dominant-baseline",
-"auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge | inherit",
-"auto",
-"text content elements",
-"no",
-"",
-"visual",
-"yes"
-},
-
-{
-"enable-background",
-"accumulate | new [ <x> <y> <width> <height> ] | inherit",
-"accumulate",
-"container elements",
-"no",
-"",
-"visual",
-"no"
-},
-
-{
-"fill",
-"<paint> (See Specifying paint)",
-"black",
-"shapes and text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"fill-opacity",
-"<opacity-value> | inherit",
-"1",
-"shapes and text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"fill-rule",
-"nonzero | evenodd | inherit",
-"nonzero",
-"shapes and text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"filter",
-"<uri> | none | inherit",
-"none",
-"container elements and graphics elements",
-"no",
-"",
-"visual",
-"yes"
-},
-
-{
-"flood-color",
-"currentColor | <color> [icc-color(<name>[,<icccolorvalue>]*)] | inherit",
-"black",
-"'feFlood' elements",
-"no",
-"",
-"visual",
-"yes"
-},
-
-{
-"flood-opacity",
-"<opacity-value> | inherit",
-"1",
-"'feFlood' elements",
-"no",
-"",
-"visual",
-"yes"
-},
-
-{
-"font",
-"[ [ 'font-style' || 'font-variant' || 'font-weight' ]? 'font-size' [ / 'line-height' ]? 'font-family' ] | caption | icon | menu | message-box | small-caption | status-bar | inherit",
-"see individual properties",
-"text content elements",
-"yes",
-"allowed on 'font-size' and 'line-height' ('line-height' same as 'font-size' in SVG)",
-"visual",
-"yes (non-additive, 'set' and 'animate' elements only)"
-},
-
-{
-"font-family",
-"[[ <family-name> | <generic-family> ],]* [ <family-name> | <generic-family>] | inherit",
-"depends on user agent",
-"text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"font-size",
-"<absolute-size> | <relative-size> | <length> | <percentage> | inherit",
-"medium",
-"text content elements",
-"yes, the computed value is inherited",
-"refer to parent element's font size",
-"visual",
-"yes"
-},
-
-{
-"font-size-adjust",
-"<number> | none | inherit",
-"none",
-"text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"font-stretch",
-"normal | wider | narrower | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | inherit",
-"normal",
-"text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"font-style",
-"normal | italic | oblique | inherit",
-"normal",
-"text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"font-variant",
-"normal | small-caps | inherit",
-"normal",
-"text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"font-weight",
-"normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit",
-"normal",
-"text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"glyph-orientation-horizontal",
-"<angle> | inherit",
-"0deg",
-"text content elements",
-"yes",
-"",
-"visual",
-"no"
-},
-
-{
-"glyph-orientation-vertical",
-"auto | <angle> | inherit",
-"auto",
-"text content elements",
-"yes",
-"",
-"visual",
-"no"
-},
-
-{
-"image-rendering",
-"auto | optimizeSpeed | optimizeQuality | inherit",
-"auto",
-"images",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"kerning",
-"auto | <length> | inherit",
-"auto",
-"text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"letter-spacing",
-"normal | <length> | inherit",
-"normal",
-"text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"lighting-color",
-"currentColor | <color> [icc-color(<name>[,<icccolorvalue>]*)] | inherit",
-"white",
-"feDiffuseLighting' and 'feSpecularLighting' elements",
-"no",
-"",
-"visual",
-"yes"
-},
-
-{
-"marker",
-"see individual properties",
-"see individual properties",
-"path', 'line', 'polyline' and 'polygon' elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"marker-end' 'marker-mid' 'marker-start",
-"none | inherit | <uri>",
-"none",
-"path', 'line', 'polyline' and 'polygon' elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"mask",
-"<uri> | none | inherit",
-"none",
-"container elements and graphics elements",
-"no",
-"",
-"visual",
-"yes"
-},
-
-{
-"opacity",
-"<opacity-value> | inherit",
-"1",
-"container elements and graphics elements",
-"no",
-"",
-"visual",
-"yes"
-},
-
-{
-"overflow",
-"visible | hidden | scroll | auto | inherit",
-"see prose",
-"elements which establish a new viewport, 'pattern' elements and 'marker' elements",
-"no",
-"",
-"visual",
-"yes"
-},
-
-{
-"pointer-events",
-"visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | none | inherit",
-"visiblePainted",
-"graphics elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"shape-rendering",
-"auto | optimizeSpeed | crispEdges | geometricPrecision | inherit",
-"auto",
-"shapes",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"stop-color",
-"currentColor | <color> [icc-color(<name>[,<icccolorvalue>]*)] | inherit",
-"black",
-"stop' elements",
-"no",
-"",
-"visual",
-"yes"
-},
-
-{
-"stop-opacity",
-"<opacity-value> | inherit",
-"1",
-"stop' elements",
-"no",
-"",
-"visual",
-"yes"
-},
-
-{
-"stroke",
-"<paint> (See Specifying paint)",
-"none",
-"shapes and text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"stroke-dasharray",
-"none | <dasharray> | inherit",
-"none",
-"shapes and text content elements",
-"yes",
-"",
-"visual",
-""
-},
-
-{
-"stroke-dashoffset",
-"<length> | inherit",
-"0",
-"shapes and text content elements",
-"yes",
-"see prose",
-"visual",
-"yes"
-},
-
-{
-"stroke-linecap",
-"butt | round | square | inherit",
-"butt",
-"shapes and text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"stroke-linejoin",
-"miter | round | bevel | inherit",
-"miter",
-"shapes and text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"stroke-miterlimit",
-"<miterlimit> | inherit",
-"4",
-"shapes and text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"stroke-opacity",
-"<opacity-value> | inherit",
-"1",
-"shapes and text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"stroke-width",
-"<length> | inherit",
-"1",
-"shapes and text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"text-anchor",
-"start | middle | end | inherit",
-"start",
-"text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"text-decoration",
-"none | [ underline || overline || line-through || blink ] | inherit",
-"none",
-"text content elements",
-"no (see prose)",
-"",
-"visual",
-"yes"
-},
-
-{
-"text-rendering",
-"auto | optimizeSpeed | optimizeLegibility | geometricPrecision | inherit",
-"auto",
-"'text' elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"unicode-bidi",
-"normal | embed | bidi-override | inherit",
-"normal",
-"text content elements",
-"no",
-"",
-"visual",
-"no"
-},
-
-{
-"visibility",
-"visible | hidden | collapse | inherit",
-"visible",
-"graphics elements (including the 'text' element) and text sub-elements (i.e., 'tspan', 'tref', 'altGlyph', 'textPath' and 'a')",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"word-spacing",
-"normal | <length> | inherit",
-"normal",
-"text content elements",
-"yes",
-"",
-"visual",
-"yes"
-},
-
-{
-"writing-mode",
-"lr-tb | rl-tb | tb-rl | lr | rl | tb | inherit",
-"lr-tb",
-"'text' elements",
-"yes",
-"",
-"visual",
-"no"
-},
-
-
diff --git a/src/dom/work/ranges.idl b/src/dom/work/ranges.idl
deleted file mode 100644
index 205b1bab7..000000000
--- a/src/dom/work/ranges.idl
+++ /dev/null
@@ -1,122 +0,0 @@
-/*
- * Copyright (c) 2000 World Wide Web Consortium,
- * (Massachusetts Institute of Technology, Institut National de
- * Recherche en Informatique et en Automatique, Keio University). All
- * Rights Reserved. This program is distributed under the W3C's Software
- * Intellectual Property License. This program is distributed in the
- * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
- * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE.
- * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
- */
-
-// File: http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113/ranges.idl
-
-#ifndef _RANGES_IDL_
-#define _RANGES_IDL_
-
-#include "dom.idl"
-
-#pragma prefix "dom.w3c.org"
-module ranges
-{
-
- typedef dom::Node Node;
- typedef dom::DocumentFragment DocumentFragment;
- typedef dom::DOMString DOMString;
-
- // Introduced in DOM Level 2:
- exception RangeException {
- unsigned short code;
- };
- // RangeExceptionCode
- const unsigned short BAD_BOUNDARYPOINTS_ERR = 1;
- const unsigned short INVALID_NODE_TYPE_ERR = 2;
-
-
- // Introduced in DOM Level 2:
- interface Range {
- readonly attribute Node startContainer;
- // raises(dom::DOMException) on retrieval
-
- readonly attribute long startOffset;
- // raises(dom::DOMException) on retrieval
-
- readonly attribute Node endContainer;
- // raises(dom::DOMException) on retrieval
-
- readonly attribute long endOffset;
- // raises(dom::DOMException) on retrieval
-
- readonly attribute boolean collapsed;
- // raises(dom::DOMException) on retrieval
-
- readonly attribute Node commonAncestorContainer;
- // raises(dom::DOMException) on retrieval
-
- void setStart(in Node refNode,
- in long offset)
- raises(RangeException,
- dom::DOMException);
- void setEnd(in Node refNode,
- in long offset)
- raises(RangeException,
- dom::DOMException);
- void setStartBefore(in Node refNode)
- raises(RangeException,
- dom::DOMException);
- void setStartAfter(in Node refNode)
- raises(RangeException,
- dom::DOMException);
- void setEndBefore(in Node refNode)
- raises(RangeException,
- dom::DOMException);
- void setEndAfter(in Node refNode)
- raises(RangeException,
- dom::DOMException);
- void collapse(in boolean toStart)
- raises(dom::DOMException);
- void selectNode(in Node refNode)
- raises(RangeException,
- dom::DOMException);
- void selectNodeContents(in Node refNode)
- raises(RangeException,
- dom::DOMException);
-
- // CompareHow
- const unsigned short START_TO_START = 0;
- const unsigned short START_TO_END = 1;
- const unsigned short END_TO_END = 2;
- const unsigned short END_TO_START = 3;
-
- short compareBoundaryPoints(in unsigned short how,
- in Range sourceRange)
- raises(dom::DOMException);
- void deleteContents()
- raises(dom::DOMException);
- DocumentFragment extractContents()
- raises(dom::DOMException);
- DocumentFragment cloneContents()
- raises(dom::DOMException);
- void insertNode(in Node newNode)
- raises(dom::DOMException,
- RangeException);
- void surroundContents(in Node newParent)
- raises(dom::DOMException,
- RangeException);
- Range cloneRange()
- raises(dom::DOMException);
- DOMString toString()
- raises(dom::DOMException);
- void detach()
- raises(dom::DOMException);
- };
-
- // Introduced in DOM Level 2:
- interface DocumentRange {
- Range createRange();
- };
-};
-
-#endif // _RANGES_IDL_
-
diff --git a/src/dom/work/sandb1.css b/src/dom/work/sandb1.css
deleted file mode 100644
index 1da2686aa..000000000
--- a/src/dom/work/sandb1.css
+++ /dev/null
@@ -1,149 +0,0 @@
-@import url(base.css);
-
-/*
-All images:
-Copyright 2003 - Swartz & Bivens, P.L.L.C.
-*/
-
-html, body {width: 100%; height: 100% !important; font-size: 1em;}
-body {margin: 0; padding: 0; font: 1em Verdana, Arial, Helvetica, sans-serif; position: relative;}
-
-#header {margin: 0; padding: 0 0 0.75em 0; border-bottom: 1px solid;
- border-left: 1.5em solid;}
-#header h1 {margin: 0; padding: 0.75em 0.5em 0 0; font-size: 1.5em;
- font-family: Verdana, sans-serif; line-height: 0.8em; letter-spacing: -0.13em;}
-
-#main {padding: 0.6em 0 5em 25px; margin-right: 21%;}
-#main h2, #main h3, #main h4, #main h5, #main h6 {line-height: 0.8em; margin: 1em 0 0;
- border-bottom: 1px solid; }
-
-
-#main p, #main ul, #main ol, #main dl {margin-right: 6%;}
-
-
-p.desc {margin: 0.5em 0 1em 95px;}
-a.pic {float: left; margin: -21px 0 0.5em; width: 80px;}
-a.hlinks {text-decoration: none; border-bottom: 0.25em solid;}
-
-#nav {position: absolute; right: 0%; top: 3.2em; width: 20%; max-width: 200px;
- padding: 0; margin: 0 0 0 1px;
- font-family: Arial, sans-serif;
- border-style: solid;
- background-color: #4682B4;
- border-width: 1px 2px 2px 1px;
-}
-#nav h4 {margin: 0; padding: 0.25em 0.5em 1px 0.25em;
- font-size: 0.9em; font-style: italic; line-height: 0.7em;
- letter-spacing: 1px; text-transform: lowercase;
- border-style: dotted; border-width: 0px 0 1px 2px;}
-#nav ul {margin: 0 0 1.5em 0; padding: 0.25em 0 0.5em 0;
- list-style: none; font-size: 85%;}
-#nav ul li {padding: 0.15em 0 0.1em 0.5em;}
-#nav ul ul {padding: 0 0 0 1em; margin: 0; border-left: none; font-size: 90%; font-style: italic;}
-#nav ul ul li {padding-top: 1px; text-indent: -0.5em;}
-#nav ul li em {font-weight: bold; padding: 0; margin: 0; border-bottom: 1px dotted red; width: .5em; }
-#nav ul ul em {font-weight: bold; padding: 0; margin: 0; border-bottom: 1px dotted red; width: .5em; }
-#nav ul ul li em {font-weight: bold; padding: 0; margin: 0; border-bottom: 1px dotted red; width: .5em; }
-#nav #select {font-weight: bold; font-style: italic; letter-spacing: 1px; text-transform: lowercase;
- border-style: dotted; border-width: 1px 3px 1px 2px; border-right: none; margin-left: -1px;}
-
-#style li.sub:hover {margin-left: -10.2em; border: 1px solid gray; background: #DDB;}
-#style li.sub:hover > a {color: #330;}
-#style li.sub:hover > ul {top: 1.75em; left: -1px; background: #FEFEFC;}
-
-#style {position: absolute; right: 0%; top: 1.0em;
- padding: 0; margin: 0;
- font-family: Arial, sans-serif;}
-#style h4 {margin: 0; padding: 0.25em 0.5em 1px 0.25em;
- font-size: 0.9em; font-style: italic; line-height: 0.7em;
- letter-spacing: 1px; text-transform: lowercase;
- border-style: solid solid dotted; border-width: 1px 0 1px 2px;}
-#style #sandb1 {font-weight: bold; font-style: italic; letter-spacing: 1px; text-transform: lowercase;
- border: 1px dotted; border-top: none; margin-left: -1px;}
-
-#style li.sub:hover {margin-left: -10.2em; border: 1px solid gray; background: #DDB;}
-#style li.sub:hover > a {color: #330;}
-#style li.sub:hover > ul {top: 1.75em; left: -1px; background: #FEFEFC;}
-
-#footer {border-top: 2.5px double; margin: 0; padding: 0.25em; text-align: left; font-size: 75%;}
-#footer p {margin: 0; padding: 0; text-align: center}
-#footer img, #nav img {padding:0; margin: 0; border:0; vertical-align: middle; }
-
-img {border:0;}
-
-/* home styles */
-
-body.home #main {padding-left: 120px;}
-body.home #main img.pic {position: absolute; left: -1em; top: 6.25em; z-index: 100;}
-
-
-/* colors and backgrounds */
-
-body {background: #FFFFFF url(bigsbbg.gif) no-repeat fixed center;
- color: #42384C;}
-
-#header, #nav ul, #nav #sandb1, #footer {border-color: #738CA6;}
-#main h2, #main h2 a {border-color: #414066;}
-#thoughts * {border-color: #5B5980;}
-
-#main a:link {color: #006691;}
-#main a:hover {color: #006691; background-color: #ddeeff;}
-
-#header {background: #BAC5D1;}
-#header h1 {background: #738CA6;}
-#header h1 a {color: #343366;}
-
-#main h2 a {color: #00294C;}
-
-#nav {background: #BCCAE0;}
-#nav h4 {border-color: #667F99; color: #343366; background: #B2BFD9;}
-#nav ul {background: none;}
-#nav ul ul {background: none;}
-
-#navlinks a:link {color: #4C6580;}
-#navlinks a:visited, #stylelinks a {color: #818099;}
-#nav a:hover {color: #334180;}
-#style #sandb1 {background: #C7D4E6;}
-#style #sandb1 a {color: #4D4C66;}
-
-#style a {font-size: 70%; background: transparent; color: #FFFFFF}
-#style a:hover {font-size:70%; background: transparent; color: #683399}
-#style a:visited {font-size:70%; background: transparent; color: #FFFFFF}
-#style a span {display: none;}
-#style a:hover span {display: block; position: absolute; bottom: 2px; left: 0; width: 265px; padding: 1px; margin: 1px; z-index: 100; color: #ffffff; background: #000066; font: 10px Verdana, sans-serif; text-align: center;}
-
-.sField { border-width:1px; border-style:solid; border-color:#ffffff; background-color:#333399;font-family: Arial, Helvetica, sans-serif;color: #ffffff; margin: 0; padding: 0; }
-.sButton { border-width:1px; border-style:solid; border-color:#ffffff; background-color:#333399;font-family: Arial, Helvetica, sans-serif;color: #ffffff; margin: 0; padding: 0; }
-.eField { border-width:1px; border-style:solid; border-color:#6495ED; background-color:#F0F8FF;font-family: Arial, Helvetica, sans-serif;color: #000000; }
-.eButton { border-width:1px; border-style:solid; border-color:#6495ED; background-color:#F0F8FF;font-family: Arial, Helvetica, sans-serif;color: #000000;}
-.mid { vertical-align: middle; }
-.line { color: #6495ED; border-top: 3px solid #6495ED; border-bottom: 2px solid #000080; height: 5px; border-left: none; }
-
-input { font: 60% verdana,sans-serif; vertical-align: middle; }
-.sField:hover, .sField:focus { background-color: #336699 }
-.sButton:hover, .sButton:focus { background-color: #336699 }
-.eField:hover, .eField:focus { background-color: #DFEFFF}
-.eButton:hover, .eButton:focus { background-color: #DFEFFF }
-
-#bt {position: absolute; right: 0%; margin-right: 24%;}
-
-#gl { text-align: center; vertical-align: middle; margin: 0; padding: 0; }
-
-
-#footer {color: #343366; background: #BAC5D1;}
-
-
-a:visited {color: #4C6580; background: transparent;}
-
-#navlinks li a:hover:after, #navlinks li a:focus:after {content: " [" attr(accesskey) "] ";}
-
-acronym {border-bottom: 1px dashed #0063CC; cursor: help;}
-
-
-
-/* fix IE6 rendering bugs */
-
-#header h1 {position: relative;}
-#header>h1 {position: static;}
-
-html>body #main p, html>body #main h3, html>body #main dt, html>body #main ul, html>body #main li, html>body #main ol {background: url(bigsbbg2.gif) no-repeat fixed center;}
diff --git a/src/dom/work/smil.idl b/src/dom/work/smil.idl
deleted file mode 100644
index 29fd3754d..000000000
--- a/src/dom/work/smil.idl
+++ /dev/null
@@ -1,369 +0,0 @@
-/*
- * Copyright (c) 2000 World Wide Web Consortium,
- * (Massachusetts Institute of Technology, Institut National de
- * Recherche en Informatique et en Automatique, Keio University). All
- * Rights Reserved. This program is distributed under the W3C's Software
- * Intellectual Property License. This program is distributed in the
- * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
- * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
- * details.
- */
-
-// File: smil.idl
-#ifndef _SMIL_IDL_
-#define _SMIL_IDL_
-
-#include "dom.idl"
-#include "views.idl"
-#include "events.idl"
-
-#pragma prefix "dom.w3c.org"
-module smil
-{
- typedef dom::DOMString DOMString;
- typedef dom::Element Element;
- typedef dom::NodeList NodeList;
- typedef dom::Document Document;
-
- interface SMILRegionElement;
-
- interface ElementLayout {
- attribute DOMString title;
- // raises(dom::DOMException) on setting
-
- attribute DOMString backgroundColor;
- // raises(dom::DOMException) on setting
-
- attribute long height;
- // raises(dom::DOMException) on setting
-
- attribute long width;
- // raises(dom::DOMException) on setting
-
- };
-
- interface SMILRegionInterface {
- attribute SMILRegionElement region;
- };
-
- interface Time {
- readonly attribute boolean resolved;
- readonly attribute double resolvedOffset;
- // TimeTypes
- const unsigned short SMIL_TIME_INDEFINITE = 0;
- const unsigned short SMIL_TIME_OFFSET = 1;
- const unsigned short SMIL_TIME_SYNC_BASED = 2;
- const unsigned short SMIL_TIME_EVENT_BASED = 3;
- const unsigned short SMIL_TIME_WALLCLOCK = 4;
- const unsigned short SMIL_TIME_MEDIA_MARKER = 5;
-
- readonly attribute unsigned short timeType;
- attribute double offset;
- // raises(dom::DOMException) on setting
-
- attribute Element baseElement;
- // raises(dom::DOMException) on setting
-
- attribute boolean baseBegin;
- // raises(dom::DOMException) on setting
-
- attribute DOMString event;
- // raises(dom::DOMException) on setting
-
- attribute DOMString marker;
- // raises(dom::DOMException) on setting
-
- };
-
- interface TimeList {
- Time item(in unsigned long index);
- readonly attribute unsigned long length;
- };
-
- interface ElementTime {
- attribute TimeList begin;
- // raises(dom::DOMException) on setting
-
- attribute TimeList end;
- // raises(dom::DOMException) on setting
-
- attribute float dur;
- // raises(dom::DOMException) on setting
-
- // restartTypes
- const unsigned short RESTART_ALWAYS = 0;
- const unsigned short RESTART_NEVER = 1;
- const unsigned short RESTART_WHEN_NOT_ACTIVE = 2;
-
- attribute unsigned short restart;
- // raises(dom::DOMException) on setting
-
- // fillTypes
- const unsigned short FILL_REMOVE = 0;
- const unsigned short FILL_FREEZE = 1;
-
- attribute unsigned short fill;
- // raises(dom::DOMException) on setting
-
- attribute float repeatCount;
- // raises(dom::DOMException) on setting
-
- attribute float repeatDur;
- // raises(dom::DOMException) on setting
-
- boolean beginElement();
- boolean endElement();
- void pauseElement();
- void resumeElement();
- void seekElement(inout float seekTo);
- };
-
- interface ElementTimeManipulation {
- attribute float speed;
- // raises(dom::DOMException) on setting
-
- attribute float accelerate;
- // raises(dom::DOMException) on setting
-
- attribute float decelerate;
- // raises(dom::DOMException) on setting
-
- attribute boolean autoReverse;
- // raises(dom::DOMException) on setting
-
- };
-
- interface ElementTimeContainer : ElementTime {
- readonly attribute NodeList timeChildren;
- NodeList getActiveChildrenAt(in float instant);
- };
-
- interface ElementSyncBehavior {
- readonly attribute DOMString syncBehavior;
- readonly attribute float syncTolerance;
- readonly attribute DOMString defaultSyncBehavior;
- readonly attribute float defaultSyncTolerance;
- readonly attribute boolean syncMaster;
- };
-
- interface ElementParallelTimeContainer : ElementTimeContainer {
- attribute DOMString endSync;
- // raises(dom::DOMException) on setting
-
- float getImplicitDuration();
- };
-
- interface ElementSequentialTimeContainer : ElementTimeContainer {
- };
-
- interface ElementExclusiveTimeContainer : ElementTimeContainer {
- attribute DOMString endSync;
- // raises(dom::DOMException) on setting
-
- NodeList getPausedElements();
- };
-
- interface ElementTimeControl {
- boolean beginElement()
- raises(dom::DOMException);
- boolean beginElementAt(in float offset)
- raises(dom::DOMException);
- boolean endElement()
- raises(dom::DOMException);
- boolean endElementAt(in float offset)
- raises(dom::DOMException);
- };
-
- interface ElementTargetAttributes {
- attribute DOMString attributeName;
- // attributeTypes
- const unsigned short ATTRIBUTE_TYPE_AUTO = 0;
- const unsigned short ATTRIBUTE_TYPE_CSS = 1;
- const unsigned short ATTRIBUTE_TYPE_XML = 2;
-
- attribute unsigned short attributeType;
- };
-
- interface ElementTest {
- attribute long systemBitrate;
- // raises(dom::DOMException) on setting
-
- attribute boolean systemCaptions;
- // raises(dom::DOMException) on setting
-
- attribute DOMString systemLanguage;
- // raises(dom::DOMException) on setting
-
- readonly attribute boolean systemRequired;
- readonly attribute boolean systemScreenSize;
- readonly attribute boolean systemScreenDepth;
- attribute DOMString systemOverdubOrSubtitle;
- // raises(dom::DOMException) on setting
-
- attribute boolean systemAudioDesc;
- // raises(dom::DOMException) on setting
-
- };
-
- interface SMILDocument : Document, ElementSequentialTimeContainer {
- };
-
- interface SMILElement : Element {
- attribute DOMString id;
- // raises(dom::DOMException) on setting
-
- };
-
- interface SMILLayoutElement : SMILElement {
- readonly attribute DOMString type;
- readonly attribute boolean resolved;
- };
-
- interface SMILTopLayoutElement : SMILElement, ElementLayout {
- };
-
- interface SMILRootLayoutElement : SMILElement, ElementLayout {
- };
-
- interface SMILRegionElement : SMILElement, ElementLayout {
- attribute DOMString fit;
- // raises(dom::DOMException) on setting
-
- attribute DOMString top;
- // raises(dom::DOMException) on setting
-
- attribute long zIndex;
- // raises(dom::DOMException) on setting
-
- };
-
- interface TimeEvent : events::Event {
- readonly attribute views::AbstractView view;
- readonly attribute long detail;
- void initTimeEvent(in DOMString typeArg,
- in views::AbstractView viewArg,
- in long detailArg);
- };
-
- interface SMILMediaElement : ElementTime, SMILElement {
- attribute DOMString abstractAttr;
- // raises(dom::DOMException) on setting
-
- attribute DOMString alt;
- // raises(dom::DOMException) on setting
-
- attribute DOMString author;
- // raises(dom::DOMException) on setting
-
- attribute DOMString clipBegin;
- // raises(dom::DOMException) on setting
-
- attribute DOMString clipEnd;
- // raises(dom::DOMException) on setting
-
- attribute DOMString copyright;
- // raises(dom::DOMException) on setting
-
- attribute DOMString longdesc;
- // raises(dom::DOMException) on setting
-
- attribute DOMString port;
- // raises(dom::DOMException) on setting
-
- attribute DOMString readIndex;
- // raises(dom::DOMException) on setting
-
- attribute DOMString rtpformat;
- // raises(dom::DOMException) on setting
-
- attribute DOMString src;
- // raises(dom::DOMException) on setting
-
- attribute DOMString stripRepeat;
- // raises(dom::DOMException) on setting
-
- attribute DOMString title;
- // raises(dom::DOMException) on setting
-
- attribute DOMString transport;
- // raises(dom::DOMException) on setting
-
- attribute DOMString type;
- // raises(dom::DOMException) on setting
-
- };
-
- interface SMILRefElement : SMILMediaElement {
- };
-
- interface SMILAnimation : SMILElement, ElementTargetAttributes, ElementTime, ElementTimeControl {
- // additiveTypes
- const unsigned short ADDITIVE_REPLACE = 0;
- const unsigned short ADDITIVE_SUM = 1;
-
- attribute unsigned short additive;
- // raises(dom::DOMException) on setting
-
- // accumulateTypes
- const unsigned short ACCUMULATE_NONE = 0;
- const unsigned short ACCUMULATE_SUM = 1;
-
- attribute unsigned short accumulate;
- // raises(dom::DOMException) on setting
-
- // calcModeTypes
- const unsigned short CALCMODE_DISCRETE = 0;
- const unsigned short CALCMODE_LINEAR = 1;
- const unsigned short CALCMODE_PACED = 2;
- const unsigned short CALCMODE_SPLINE = 3;
-
- attribute unsigned short calcMode;
- // raises(dom::DOMException) on setting
-
- attribute DOMString keySplines;
- // raises(dom::DOMException) on setting
-
- attribute TimeList keyTimes;
- // raises(dom::DOMException) on setting
-
- attribute DOMString values;
- // raises(dom::DOMException) on setting
-
- attribute DOMString from;
- // raises(dom::DOMException) on setting
-
- attribute DOMString to;
- // raises(dom::DOMException) on setting
-
- attribute DOMString by;
- // raises(dom::DOMException) on setting
-
- };
-
- interface SMILAnimateElement : SMILAnimation {
- };
-
- interface SMILSetElement : ElementTimeControl, ElementTime, ElementTargetAttributes, SMILElement {
- attribute DOMString to;
- };
-
- interface SMILAnimateMotionElement : SMILAnimateElement {
- attribute DOMString path;
- // raises(dom::DOMException) on setting
-
- attribute DOMString origin;
- // raises(dom::DOMException) on setting
-
- };
-
- interface SMILAnimateColorElement : SMILAnimation {
- };
-
- interface SMILSwitchElement : SMILElement {
- Element getSelectedElement();
- };
-};
-
-#endif // _SMIL_IDL_
-
diff --git a/src/dom/work/stylesheets.idl b/src/dom/work/stylesheets.idl
deleted file mode 100644
index 1bc307370..000000000
--- a/src/dom/work/stylesheets.idl
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Copyright (c) 2000 World Wide Web Consortium,
- * (Massachusetts Institute of Technology, Institut National de
- * Recherche en Informatique et en Automatique, Keio University). All
- * Rights Reserved. This program is distributed under the W3C's Software
- * Intellectual Property License. This program is distributed in the
- * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
- * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE.
- * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
- */
-
-// File: http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/stylesheets.idl
-
-#ifndef _STYLESHEETS_IDL_
-#define _STYLESHEETS_IDL_
-
-#include "dom.idl"
-
-#pragma prefix "dom.w3c.org"
-module stylesheets
-{
-
- typedef dom::DOMString DOMString;
- typedef dom::Node Node;
-
- interface MediaList;
-
- // Introduced in DOM Level 2:
- interface StyleSheet {
- readonly attribute DOMString type;
- attribute boolean disabled;
- readonly attribute Node ownerNode;
- readonly attribute StyleSheet parentStyleSheet;
- readonly attribute DOMString href;
- readonly attribute DOMString title;
- readonly attribute MediaList media;
- };
-
- // Introduced in DOM Level 2:
- interface StyleSheetList {
- readonly attribute unsigned long length;
- StyleSheet item(in unsigned long index);
- };
-
- // Introduced in DOM Level 2:
- interface MediaList {
- attribute DOMString mediaText;
- // raises(dom::DOMException) on setting
-
- readonly attribute unsigned long length;
- DOMString item(in unsigned long index);
- void deleteMedium(in DOMString oldMedium)
- raises(dom::DOMException);
- void appendMedium(in DOMString newMedium)
- raises(dom::DOMException);
- };
-
- // Introduced in DOM Level 2:
- interface LinkStyle {
- readonly attribute StyleSheet sheet;
- };
-
- // Introduced in DOM Level 2:
- interface DocumentStyle {
- readonly attribute StyleSheetList styleSheets;
- };
-};
-
-#endif // _STYLESHEETS_IDL_
-
diff --git a/src/dom/work/svg.idl b/src/dom/work/svg.idl
deleted file mode 100644
index 1a30dd3be..000000000
--- a/src/dom/work/svg.idl
+++ /dev/null
@@ -1,1751 +0,0 @@
-// File: svg.idl
-#ifndef _SVG_IDL_
-#define _SVG_IDL_
-
-
-// For access to DOM2 core
-#include "dom.idl"
-
-// For access to DOM2 events
-#include "events.idl"
-
-// For access to those parts from DOM2 CSS OM used by SVG DOM.
-#include "css.idl"
-
-// For access to those parts from DOM2 Views OM used by SVG DOM.
-#include "views.idl"
-
-// For access to the SMIL OM used by SVG DOM.
-#include "smil.idl"
-
-#pragma prefix "dom.w3c.org"
-#pragma javaPackage "org.w3c.dom"
-module svg
-{
- typedef dom::DOMString DOMString;
- typedef dom::DOMException DOMException;
- typedef dom::Element Element;
- typedef dom::Document Document;
- typedef dom::NodeList NodeList;
-
- // Predeclarations
- interface SVGElement;
- interface SVGLangSpace;
- interface SVGExternalResourcesRequired;
- interface SVGTests;
- interface SVGFitToViewBox;
- interface SVGZoomAndPan;
- interface SVGViewSpec;
- interface SVGURIReference;
- interface SVGPoint;
- interface SVGMatrix;
- interface SVGPreserveAspectRatio;
- interface SVGAnimatedPreserveAspectRatio;
- interface SVGTransformList;
- interface SVGAnimatedTransformList;
- interface SVGTransform;
- interface SVGICCColor;
- interface SVGColor;
- interface SVGPaint;
- interface SVGTransformable;
- interface SVGDocument;
- interface SVGSVGElement;
- interface SVGElementInstance;
- interface SVGElementInstanceList;
-
-
- exception SVGException {
- unsigned short code;
- };
-
- // SVGExceptionCode
- const unsigned short SVG_WRONG_TYPE_ERR = 0;
- const unsigned short SVG_INVALID_VALUE_ERR = 1;
- const unsigned short SVG_MATRIX_NOT_INVERTABLE = 2;
-
- interface SVGElement : Element {
- attribute DOMString id;
- // raises DOMException on setting
- attribute DOMString xmlbase;
- // raises DOMException on setting
- readonly attribute SVGSVGElement ownerSVGElement;
- readonly attribute SVGElement viewportElement;
- };
-
- interface SVGAnimatedBoolean {
-
- attribute boolean baseVal;
- // raises DOMException on setting
- readonly attribute boolean animVal;
- };
-
- interface SVGAnimatedString {
-
- attribute DOMString baseVal;
- // raises DOMException on setting
- readonly attribute DOMString animVal;
- };
-
- interface SVGStringList {
-
- readonly attribute unsigned long numberOfItems;
-
- void clear ( )
- raises( DOMException );
- DOMString initialize ( in DOMString newItem )
- raises( DOMException, SVGException );
- DOMString getItem ( in unsigned long index )
- raises( DOMException );
- DOMString insertItemBefore ( in DOMString newItem, in unsigned long index )
- raises( DOMException, SVGException );
- DOMString replaceItem ( in DOMString newItem, in unsigned long index )
- raises( DOMException, SVGException );
- DOMString removeItem ( in unsigned long index )
- raises( DOMException );
- DOMString appendItem ( in DOMString newItem )
- raises( DOMException, SVGException );
- };
-
- interface SVGAnimatedEnumeration {
-
- attribute unsigned short baseVal;
- // raises DOMException on setting
- readonly attribute unsigned short animVal;
- };
-
- interface SVGAnimatedInteger {
-
- attribute long baseVal;
- // raises DOMException on setting
- readonly attribute long animVal;
- };
-
- interface SVGNumber {
-
- attribute float value;
- // raises DOMException on setting
- };
-
- interface SVGAnimatedNumber {
-
- attribute float baseVal;
- // raises DOMException on setting
- readonly attribute float animVal;
- };
-
- interface SVGNumberList {
-
- readonly attribute unsigned long numberOfItems;
-
- void clear ( )
- raises( DOMException );
- SVGNumber initialize ( in SVGNumber newItem )
- raises( DOMException, SVGException );
- SVGNumber getItem ( in unsigned long index )
- raises( DOMException );
- SVGNumber insertItemBefore ( in SVGNumber newItem, in unsigned long index )
- raises( DOMException, SVGException );
- SVGNumber replaceItem ( in SVGNumber newItem, in unsigned long index )
- raises( DOMException, SVGException );
- SVGNumber removeItem ( in unsigned long index )
- raises( DOMException );
- SVGNumber appendItem ( in SVGNumber newItem )
- raises( DOMException, SVGException );
- };
-
- interface SVGAnimatedNumberList {
-
- readonly attribute SVGNumberList baseVal;
- readonly attribute SVGNumberList animVal;
- };
-
- interface SVGLength {
-
- // Length Unit Types
- const unsigned short SVG_LENGTHTYPE_UNKNOWN = 0;
- const unsigned short SVG_LENGTHTYPE_NUMBER = 1;
- const unsigned short SVG_LENGTHTYPE_PERCENTAGE = 2;
- const unsigned short SVG_LENGTHTYPE_EMS = 3;
- const unsigned short SVG_LENGTHTYPE_EXS = 4;
- const unsigned short SVG_LENGTHTYPE_PX = 5;
- const unsigned short SVG_LENGTHTYPE_CM = 6;
- const unsigned short SVG_LENGTHTYPE_MM = 7;
- const unsigned short SVG_LENGTHTYPE_IN = 8;
- const unsigned short SVG_LENGTHTYPE_PT = 9;
- const unsigned short SVG_LENGTHTYPE_PC = 10;
-
- readonly attribute unsigned short unitType;
- attribute float value;
- // raises DOMException on setting
- attribute float valueInSpecifiedUnits;
- // raises DOMException on setting
- attribute DOMString valueAsString;
- // raises DOMException on setting
-
- void newValueSpecifiedUnits ( in unsigned short unitType, in float valueInSpecifiedUnits );
- void convertToSpecifiedUnits ( in unsigned short unitType );
- };
-
- interface SVGAnimatedLength {
-
- readonly attribute SVGLength baseVal;
- readonly attribute SVGLength animVal;
- };
-
- interface SVGLengthList {
-
- readonly attribute unsigned long numberOfItems;
-
- void clear ( )
- raises( DOMException );
- SVGLength initialize ( in SVGLength newItem )
- raises( DOMException, SVGException );
- SVGLength getItem ( in unsigned long index )
- raises( DOMException );
- SVGLength insertItemBefore ( in SVGLength newItem, in unsigned long index )
- raises( DOMException, SVGException );
- SVGLength replaceItem ( in SVGLength newItem, in unsigned long index )
- raises( DOMException, SVGException );
- SVGLength removeItem ( in unsigned long index )
- raises( DOMException );
- SVGLength appendItem ( in SVGLength newItem )
- raises( DOMException, SVGException );
- };
-
- interface SVGAnimatedLengthList {
-
- readonly attribute SVGLengthList baseVal;
- readonly attribute SVGLengthList animVal;
- };
-
- interface SVGAngle {
-
- // Angle Unit Types
- const unsigned short SVG_ANGLETYPE_UNKNOWN = 0;
- const unsigned short SVG_ANGLETYPE_UNSPECIFIED = 1;
- const unsigned short SVG_ANGLETYPE_DEG = 2;
- const unsigned short SVG_ANGLETYPE_RAD = 3;
- const unsigned short SVG_ANGLETYPE_GRAD = 4;
-
- readonly attribute unsigned short unitType;
- attribute float value;
- // raises DOMException on setting
- attribute float valueInSpecifiedUnits;
- // raises DOMException on setting
- attribute DOMString valueAsString;
- // raises DOMException on setting
-
- void newValueSpecifiedUnits ( in unsigned short unitType, in float valueInSpecifiedUnits );
- void convertToSpecifiedUnits ( in unsigned short unitType );
- };
-
- interface SVGAnimatedAngle {
-
- readonly attribute SVGAngle baseVal;
- readonly attribute SVGAngle animVal;
- };
-
- interface SVGColor : css::CSSValue {
- // Color Types
- const unsigned short SVG_COLORTYPE_UNKNOWN = 0;
- const unsigned short SVG_COLORTYPE_RGBCOLOR = 1;
- const unsigned short SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2;
- const unsigned short SVG_COLORTYPE_CURRENTCOLOR = 3;
-
- readonly attribute unsigned short colorType;
- readonly attribute css::RGBColor rgbColor;
- readonly attribute SVGICCColor iccColor;
-
- void setRGBColor ( in DOMString rgbColor )
- raises( SVGException );
- void setRGBColorICCColor ( in DOMString rgbColor, in DOMString iccColor )
- raises( SVGException );
- void setColor ( in unsigned short colorType, in DOMString rgbColor, in DOMString iccColor )
- raises( SVGException );
- };
-
- interface SVGICCColor {
-
- attribute DOMString colorProfile;
- // raises DOMException on setting
- readonly attribute SVGNumberList colors;
- };
-
- interface SVGRect {
-
- attribute float x;
- // raises DOMException on setting
- attribute float y;
- // raises DOMException on setting
- attribute float width;
- // raises DOMException on setting
- attribute float height;
- // raises DOMException on setting
- };
-
- interface SVGAnimatedRect {
-
- readonly attribute SVGRect baseVal;
- readonly attribute SVGRect animVal;
- };
-
- interface SVGUnitTypes {
-
- // Unit Types
- const unsigned short SVG_UNIT_TYPE_UNKNOWN = 0;
- const unsigned short SVG_UNIT_TYPE_USERSPACEONUSE = 1;
- const unsigned short SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2;
- };
-
- interface SVGStylable {
-
- readonly attribute SVGAnimatedString className;
- readonly attribute css::CSSStyleDeclaration style;
-
- css::CSSValue getPresentationAttribute ( in DOMString name );
- };
-
- interface SVGLocatable {
-
- readonly attribute SVGElement nearestViewportElement;
- readonly attribute SVGElement farthestViewportElement;
-
- SVGRect getBBox ( );
- SVGMatrix getCTM ( );
- SVGMatrix getScreenCTM ( );
- SVGMatrix getTransformToElement ( in SVGElement element )
- raises( SVGException );
- };
-
- interface SVGTransformable : SVGLocatable {
- readonly attribute SVGAnimatedTransformList transform;
- };
-
- interface SVGTests {
-
- readonly attribute SVGStringList requiredFeatures;
- readonly attribute SVGStringList requiredExtensions;
- readonly attribute SVGStringList systemLanguage;
-
- boolean hasExtension ( in DOMString extension );
- };
-
- interface SVGLangSpace {
-
- attribute DOMString xmllang;
- // raises DOMException on setting
- attribute DOMString xmlspace;
- // raises DOMException on setting
- };
-
- interface SVGExternalResourcesRequired {
-
- readonly attribute SVGAnimatedBoolean externalResourcesRequired;
- };
-
- interface SVGFitToViewBox {
-
- readonly attribute SVGAnimatedRect viewBox;
- readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio;
- };
-
- interface SVGZoomAndPan {
-
- // Zoom and Pan Types
- const unsigned short SVG_ZOOMANDPAN_UNKNOWN = 0;
- const unsigned short SVG_ZOOMANDPAN_DISABLE = 1;
- const unsigned short SVG_ZOOMANDPAN_MAGNIFY = 2;
-
- attribute unsigned short zoomAndPan;
- // raises DOMException on setting
- };
-
- interface SVGViewSpec :
- SVGZoomAndPan,
- SVGFitToViewBox {
-
- readonly attribute SVGTransformList transform;
- readonly attribute SVGElement viewTarget;
- readonly attribute DOMString viewBoxString;
- readonly attribute DOMString preserveAspectRatioString;
- readonly attribute DOMString transformString;
- readonly attribute DOMString viewTargetString;
- };
-
- interface SVGURIReference {
-
- readonly attribute SVGAnimatedString href;
- };
-
- interface SVGCSSRule : css::CSSRule {
- // Additional CSS RuleType to support ICC color specifications
- const unsigned short COLOR_PROFILE_RULE = 7;
- };
-
- interface SVGRenderingIntent {
-
- // Rendering Intent Types
- const unsigned short RENDERING_INTENT_UNKNOWN = 0;
- const unsigned short RENDERING_INTENT_AUTO = 1;
- const unsigned short RENDERING_INTENT_PERCEPTUAL = 2;
- const unsigned short RENDERING_INTENT_RELATIVE_COLORIMETRIC = 3;
- const unsigned short RENDERING_INTENT_SATURATION = 4;
- const unsigned short RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5;
- };
-
- interface SVGDocument :
- Document,
- events::DocumentEvent {
-
- readonly attribute DOMString title;
- readonly attribute DOMString referrer;
- readonly attribute DOMString domain;
- readonly attribute DOMString URL;
- readonly attribute SVGSVGElement rootElement;
- };
-
- interface SVGSVGElement :
- SVGElement,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGLocatable,
- SVGFitToViewBox,
- SVGZoomAndPan,
- events::EventTarget,
- events::DocumentEvent,
- css::ViewCSS,
- css::DocumentCSS {
-
- readonly attribute SVGAnimatedLength x;
- readonly attribute SVGAnimatedLength y;
- readonly attribute SVGAnimatedLength width;
- readonly attribute SVGAnimatedLength height;
- attribute DOMString contentScriptType;
- // raises DOMException on setting
- attribute DOMString contentStyleType;
- // raises DOMException on setting
- readonly attribute SVGRect viewport;
- readonly attribute float pixelUnitToMillimeterX;
- readonly attribute float pixelUnitToMillimeterY;
- readonly attribute float screenPixelToMillimeterX;
- readonly attribute float screenPixelToMillimeterY;
- attribute boolean useCurrentView;
- // raises DOMException on setting
- readonly attribute SVGViewSpec currentView;
- attribute float currentScale;
- // raises DOMException on setting
- readonly attribute SVGPoint currentTranslate;
-
- unsigned long suspendRedraw ( in unsigned long max_wait_milliseconds );
- void unsuspendRedraw ( in unsigned long suspend_handle_id )
- raises( DOMException );
- void unsuspendRedrawAll ( );
- void forceRedraw ( );
- void pauseAnimations ( );
- void unpauseAnimations ( );
- boolean animationsPaused ( );
- float getCurrentTime ( );
- void setCurrentTime ( in float seconds );
- NodeList getIntersectionList ( in SVGRect rect, in SVGElement referenceElement );
- NodeList getEnclosureList ( in SVGRect rect, in SVGElement referenceElement );
- boolean checkIntersection ( in SVGElement element, in SVGRect rect );
- boolean checkEnclosure ( in SVGElement element, in SVGRect rect );
- void deselectAll ( );
- SVGNumber createSVGNumber ( );
- SVGLength createSVGLength ( );
- SVGAngle createSVGAngle ( );
- SVGPoint createSVGPoint ( );
- SVGMatrix createSVGMatrix ( );
- SVGRect createSVGRect ( );
- SVGTransform createSVGTransform ( );
- SVGTransform createSVGTransformFromMatrix ( in SVGMatrix matrix );
- Element getElementById ( in DOMString elementId );
- };
-
- interface SVGGElement :
- SVGElement,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGTransformable,
- events::EventTarget {};
-
- interface SVGDefsElement :
- SVGElement,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGTransformable,
- events::EventTarget {};
-
- interface SVGDescElement :
- SVGElement,
- SVGLangSpace,
- SVGStylable {};
-
- interface SVGTitleElement :
- SVGElement,
- SVGLangSpace,
- SVGStylable {};
-
- interface SVGSymbolElement :
- SVGElement,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGFitToViewBox,
- events::EventTarget {};
-
- interface SVGUseElement :
- SVGElement,
- SVGURIReference,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGTransformable,
- events::EventTarget {
-
- readonly attribute SVGAnimatedLength x;
- readonly attribute SVGAnimatedLength y;
- readonly attribute SVGAnimatedLength width;
- readonly attribute SVGAnimatedLength height;
- readonly attribute SVGElementInstance instanceRoot;
- readonly attribute SVGElementInstance animatedInstanceRoot;
- };
-
- interface SVGElementInstance : events::EventTarget {
- readonly attribute SVGElement correspondingElement;
- readonly attribute SVGUseElement correspondingUseElement;
- readonly attribute SVGElementInstance parentNode;
- readonly attribute SVGElementInstanceList childNodes;
- readonly attribute SVGElementInstance firstChild;
- readonly attribute SVGElementInstance lastChild;
- readonly attribute SVGElementInstance previousSibling;
- readonly attribute SVGElementInstance nextSibling;
- };
-
- interface SVGElementInstanceList {
-
- readonly attribute unsigned long length;
-
- SVGElementInstance item ( in unsigned long index );
- };
-
- interface SVGImageElement :
- SVGElement,
- SVGURIReference,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGTransformable,
- events::EventTarget {
-
- readonly attribute SVGAnimatedLength x;
- readonly attribute SVGAnimatedLength y;
- readonly attribute SVGAnimatedLength width;
- readonly attribute SVGAnimatedLength height;
- readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio;
- };
-
- interface SVGSwitchElement :
- SVGElement,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGTransformable,
- events::EventTarget {};
-
- interface GetSVGDocument {
-
- SVGDocument getSVGDocument ( )
- raises( DOMException );
- };
-
- interface SVGStyleElement : SVGElement {
- attribute DOMString xmlspace;
- // raises DOMException on setting
- attribute DOMString type;
- // raises DOMException on setting
- attribute DOMString media;
- // raises DOMException on setting
- attribute DOMString title;
- // raises DOMException on setting
- };
-
- interface SVGPoint {
-
- attribute float x;
- // raises DOMException on setting
- attribute float y;
- // raises DOMException on setting
-
- SVGPoint matrixTransform ( in SVGMatrix matrix );
- };
-
- interface SVGPointList {
-
- readonly attribute unsigned long numberOfItems;
-
- void clear ( )
- raises( DOMException );
- SVGPoint initialize ( in SVGPoint newItem )
- raises( DOMException, SVGException );
- SVGPoint getItem ( in unsigned long index )
- raises( DOMException );
- SVGPoint insertItemBefore ( in SVGPoint newItem, in unsigned long index )
- raises( DOMException, SVGException );
- SVGPoint replaceItem ( in SVGPoint newItem, in unsigned long index )
- raises( DOMException, SVGException );
- SVGPoint removeItem ( in unsigned long index )
- raises( DOMException );
- SVGPoint appendItem ( in SVGPoint newItem )
- raises( DOMException, SVGException );
- };
-
- interface SVGMatrix {
-
- attribute float a;
- // raises DOMException on setting
- attribute float b;
- // raises DOMException on setting
- attribute float c;
- // raises DOMException on setting
- attribute float d;
- // raises DOMException on setting
- attribute float e;
- // raises DOMException on setting
- attribute float f;
- // raises DOMException on setting
-
- SVGMatrix multiply ( in SVGMatrix secondMatrix );
- SVGMatrix inverse ( )
- raises( SVGException );
- SVGMatrix translate ( in float x, in float y );
- SVGMatrix scale ( in float scaleFactor );
- SVGMatrix scaleNonUniform ( in float scaleFactorX, in float scaleFactorY );
- SVGMatrix rotate ( in float angle );
- SVGMatrix rotateFromVector ( in float x, in float y )
- raises( SVGException );
- SVGMatrix flipX ( );
- SVGMatrix flipY ( );
- SVGMatrix skewX ( in float angle );
- SVGMatrix skewY ( in float angle );
- };
-
- interface SVGTransform {
-
- // Transform Types
- const unsigned short SVG_TRANSFORM_UNKNOWN = 0;
- const unsigned short SVG_TRANSFORM_MATRIX = 1;
- const unsigned short SVG_TRANSFORM_TRANSLATE = 2;
- const unsigned short SVG_TRANSFORM_SCALE = 3;
- const unsigned short SVG_TRANSFORM_ROTATE = 4;
- const unsigned short SVG_TRANSFORM_SKEWX = 5;
- const unsigned short SVG_TRANSFORM_SKEWY = 6;
-
- readonly attribute unsigned short type;
- readonly attribute SVGMatrix matrix;
- readonly attribute float angle;
-
- void setMatrix ( in SVGMatrix matrix );
- void setTranslate ( in float tx, in float ty );
- void setScale ( in float sx, in float sy );
- void setRotate ( in float angle, in float cx, in float cy );
- void setSkewX ( in float angle );
- void setSkewY ( in float angle );
- };
-
- interface SVGTransformList {
-
- readonly attribute unsigned long numberOfItems;
-
- void clear ( )
- raises( DOMException );
- SVGTransform initialize ( in SVGTransform newItem )
- raises( DOMException, SVGException );
- SVGTransform getItem ( in unsigned long index )
- raises( DOMException );
- SVGTransform insertItemBefore ( in SVGTransform newItem, in unsigned long index )
- raises( DOMException, SVGException );
- SVGTransform replaceItem ( in SVGTransform newItem, in unsigned long index )
- raises( DOMException, SVGException );
- SVGTransform removeItem ( in unsigned long index )
- raises( DOMException );
- SVGTransform appendItem ( in SVGTransform newItem )
- raises( DOMException, SVGException );
- SVGTransform createSVGTransformFromMatrix ( in SVGMatrix matrix );
- SVGTransform consolidate ( );
- };
-
- interface SVGAnimatedTransformList {
-
- readonly attribute SVGTransformList baseVal;
- readonly attribute SVGTransformList animVal;
- };
-
- interface SVGPreserveAspectRatio {
-
- // Alignment Types
- const unsigned short SVG_PRESERVEASPECTRATIO_UNKNOWN = 0;
- const unsigned short SVG_PRESERVEASPECTRATIO_NONE = 1;
- const unsigned short SVG_PRESERVEASPECTRATIO_XMINYMIN = 2;
- const unsigned short SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3;
- const unsigned short SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4;
- const unsigned short SVG_PRESERVEASPECTRATIO_XMINYMID = 5;
- const unsigned short SVG_PRESERVEASPECTRATIO_XMIDYMID = 6;
- const unsigned short SVG_PRESERVEASPECTRATIO_XMAXYMID = 7;
- const unsigned short SVG_PRESERVEASPECTRATIO_XMINYMAX = 8;
- const unsigned short SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9;
- const unsigned short SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10;
- // Meet-or-slice Types
- const unsigned short SVG_MEETORSLICE_UNKNOWN = 0;
- const unsigned short SVG_MEETORSLICE_MEET = 1;
- const unsigned short SVG_MEETORSLICE_SLICE = 2;
-
- attribute unsigned short align;
- // raises DOMException on setting
- attribute unsigned short meetOrSlice;
- // raises DOMException on setting
- };
-
- interface SVGAnimatedPreserveAspectRatio {
-
- readonly attribute SVGPreserveAspectRatio baseVal;
- readonly attribute SVGPreserveAspectRatio animVal;
- };
-
- interface SVGPathSeg {
-
- // Path Segment Types
- const unsigned short PATHSEG_UNKNOWN = 0;
- const unsigned short PATHSEG_CLOSEPATH = 1;
- const unsigned short PATHSEG_MOVETO_ABS = 2;
- const unsigned short PATHSEG_MOVETO_REL = 3;
- const unsigned short PATHSEG_LINETO_ABS = 4;
- const unsigned short PATHSEG_LINETO_REL = 5;
- const unsigned short PATHSEG_CURVETO_CUBIC_ABS = 6;
- const unsigned short PATHSEG_CURVETO_CUBIC_REL = 7;
- const unsigned short PATHSEG_CURVETO_QUADRATIC_ABS = 8;
- const unsigned short PATHSEG_CURVETO_QUADRATIC_REL = 9;
- const unsigned short PATHSEG_ARC_ABS = 10;
- const unsigned short PATHSEG_ARC_REL = 11;
- const unsigned short PATHSEG_LINETO_HORIZONTAL_ABS = 12;
- const unsigned short PATHSEG_LINETO_HORIZONTAL_REL = 13;
- const unsigned short PATHSEG_LINETO_VERTICAL_ABS = 14;
- const unsigned short PATHSEG_LINETO_VERTICAL_REL = 15;
- const unsigned short PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16;
- const unsigned short PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17;
- const unsigned short PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;
- const unsigned short PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;
-
- readonly attribute unsigned short pathSegType;
- readonly attribute DOMString pathSegTypeAsLetter;
- };
-
- interface SVGPathSegClosePath : SVGPathSeg {};
-
- interface SVGPathSegMovetoAbs : SVGPathSeg {
- attribute float x;
- // raises DOMException on setting
- attribute float y;
- // raises DOMException on setting
- };
-
- interface SVGPathSegMovetoRel : SVGPathSeg {
- attribute float x;
- // raises DOMException on setting
- attribute float y;
- // raises DOMException on setting
- };
-
- interface SVGPathSegLinetoAbs : SVGPathSeg {
- attribute float x;
- // raises DOMException on setting
- attribute float y;
- // raises DOMException on setting
- };
-
- interface SVGPathSegLinetoRel : SVGPathSeg {
- attribute float x;
- // raises DOMException on setting
- attribute float y;
- // raises DOMException on setting
- };
-
- interface SVGPathSegCurvetoCubicAbs : SVGPathSeg {
- attribute float x;
- // raises DOMException on setting
- attribute float y;
- // raises DOMException on setting
- attribute float x1;
- // raises DOMException on setting
- attribute float y1;
- // raises DOMException on setting
- attribute float x2;
- // raises DOMException on setting
- attribute float y2;
- // raises DOMException on setting
- };
-
- interface SVGPathSegCurvetoCubicRel : SVGPathSeg {
- attribute float x;
- // raises DOMException on setting
- attribute float y;
- // raises DOMException on setting
- attribute float x1;
- // raises DOMException on setting
- attribute float y1;
- // raises DOMException on setting
- attribute float x2;
- // raises DOMException on setting
- attribute float y2;
- // raises DOMException on setting
- };
-
- interface SVGPathSegCurvetoQuadraticAbs : SVGPathSeg {
- attribute float x;
- // raises DOMException on setting
- attribute float y;
- // raises DOMException on setting
- attribute float x1;
- // raises DOMException on setting
- attribute float y1;
- // raises DOMException on setting
- };
-
- interface SVGPathSegCurvetoQuadraticRel : SVGPathSeg {
- attribute float x;
- // raises DOMException on setting
- attribute float y;
- // raises DOMException on setting
- attribute float x1;
- // raises DOMException on setting
- attribute float y1;
- // raises DOMException on setting
- };
-
- interface SVGPathSegArcAbs : SVGPathSeg {
- attribute float x;
- // raises DOMException on setting
- attribute float y;
- // raises DOMException on setting
- attribute float r1;
- // raises DOMException on setting
- attribute float r2;
- // raises DOMException on setting
- attribute float angle;
- // raises DOMException on setting
- attribute boolean largeArcFlag;
- // raises DOMException on setting
- attribute boolean sweepFlag;
- // raises DOMException on setting
- };
-
- interface SVGPathSegArcRel : SVGPathSeg {
- attribute float x;
- // raises DOMException on setting
- attribute float y;
- // raises DOMException on setting
- attribute float r1;
- // raises DOMException on setting
- attribute float r2;
- // raises DOMException on setting
- attribute float angle;
- // raises DOMException on setting
- attribute boolean largeArcFlag;
- // raises DOMException on setting
- attribute boolean sweepFlag;
- // raises DOMException on setting
- };
-
- interface SVGPathSegLinetoHorizontalAbs : SVGPathSeg {
- attribute float x;
- // raises DOMException on setting
- };
-
- interface SVGPathSegLinetoHorizontalRel : SVGPathSeg {
- attribute float x;
- // raises DOMException on setting
- };
-
- interface SVGPathSegLinetoVerticalAbs : SVGPathSeg {
- attribute float y;
- // raises DOMException on setting
- };
-
- interface SVGPathSegLinetoVerticalRel : SVGPathSeg {
- attribute float y;
- // raises DOMException on setting
- };
-
- interface SVGPathSegCurvetoCubicSmoothAbs : SVGPathSeg {
- attribute float x;
- // raises DOMException on setting
- attribute float y;
- // raises DOMException on setting
- attribute float x2;
- // raises DOMException on setting
- attribute float y2;
- // raises DOMException on setting
- };
-
- interface SVGPathSegCurvetoCubicSmoothRel : SVGPathSeg {
- attribute float x;
- // raises DOMException on setting
- attribute float y;
- // raises DOMException on setting
- attribute float x2;
- // raises DOMException on setting
- attribute float y2;
- // raises DOMException on setting
- };
-
- interface SVGPathSegCurvetoQuadraticSmoothAbs : SVGPathSeg {
- attribute float x;
- // raises DOMException on setting
- attribute float y;
- // raises DOMException on setting
- };
-
- interface SVGPathSegCurvetoQuadraticSmoothRel : SVGPathSeg {
- attribute float x;
- // raises DOMException on setting
- attribute float y;
- // raises DOMException on setting
- };
-
- interface SVGPathSegList {
-
- readonly attribute unsigned long numberOfItems;
-
- void clear ( )
- raises( DOMException );
- SVGPathSeg initialize ( in SVGPathSeg newItem )
- raises( DOMException, SVGException );
- SVGPathSeg getItem ( in unsigned long index )
- raises( DOMException );
- SVGPathSeg insertItemBefore ( in SVGPathSeg newItem, in unsigned long index )
- raises( DOMException, SVGException );
- SVGPathSeg replaceItem ( in SVGPathSeg newItem, in unsigned long index )
- raises( DOMException, SVGException );
- SVGPathSeg removeItem ( in unsigned long index )
- raises( DOMException );
- SVGPathSeg appendItem ( in SVGPathSeg newItem )
- raises( DOMException, SVGException );
- };
-
- interface SVGAnimatedPathData {
-
- readonly attribute SVGPathSegList pathSegList;
- readonly attribute SVGPathSegList normalizedPathSegList;
- readonly attribute SVGPathSegList animatedPathSegList;
- readonly attribute SVGPathSegList animatedNormalizedPathSegList;
- };
-
- interface SVGPathElement :
- SVGElement,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGTransformable,
- events::EventTarget,
- SVGAnimatedPathData {
-
- readonly attribute SVGAnimatedNumber pathLength;
-
- float getTotalLength ( );
- SVGPoint getPointAtLength ( in float distance );
- unsigned long getPathSegAtLength ( in float distance );
- SVGPathSegClosePath createSVGPathSegClosePath ( );
- SVGPathSegMovetoAbs createSVGPathSegMovetoAbs ( in float x, in float y );
- SVGPathSegMovetoRel createSVGPathSegMovetoRel ( in float x, in float y );
- SVGPathSegLinetoAbs createSVGPathSegLinetoAbs ( in float x, in float y );
- SVGPathSegLinetoRel createSVGPathSegLinetoRel ( in float x, in float y );
- SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs ( in float x, in float y, in float x1, in float y1, in float x2, in float y2 );
- SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel ( in float x, in float y, in float x1, in float y1, in float x2, in float y2 );
- SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs ( in float x, in float y, in float x1, in float y1 );
- SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel ( in float x, in float y, in float x1, in float y1 );
- SVGPathSegArcAbs createSVGPathSegArcAbs ( in float x, in float y, in float r1, in float r2, in float angle, in boolean largeArcFlag, in boolean sweepFlag );
- SVGPathSegArcRel createSVGPathSegArcRel ( in float x, in float y, in float r1, in float r2, in float angle, in boolean largeArcFlag, in boolean sweepFlag );
- SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs ( in float x );
- SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel ( in float x );
- SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs ( in float y );
- SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel ( in float y );
- SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs ( in float x, in float y, in float x2, in float y2 );
- SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel ( in float x, in float y, in float x2, in float y2 );
- SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs ( in float x, in float y );
- SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel ( in float x, in float y );
- };
-
- interface SVGRectElement :
- SVGElement,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGTransformable,
- events::EventTarget {
-
- readonly attribute SVGAnimatedLength x;
- readonly attribute SVGAnimatedLength y;
- readonly attribute SVGAnimatedLength width;
- readonly attribute SVGAnimatedLength height;
- readonly attribute SVGAnimatedLength rx;
- readonly attribute SVGAnimatedLength ry;
- };
-
- interface SVGCircleElement :
- SVGElement,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGTransformable,
- events::EventTarget {
-
- readonly attribute SVGAnimatedLength cx;
- readonly attribute SVGAnimatedLength cy;
- readonly attribute SVGAnimatedLength r;
- };
-
- interface SVGEllipseElement :
- SVGElement,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGTransformable,
- events::EventTarget {
-
- readonly attribute SVGAnimatedLength cx;
- readonly attribute SVGAnimatedLength cy;
- readonly attribute SVGAnimatedLength rx;
- readonly attribute SVGAnimatedLength ry;
- };
-
- interface SVGLineElement :
- SVGElement,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGTransformable,
- events::EventTarget {
-
- readonly attribute SVGAnimatedLength x1;
- readonly attribute SVGAnimatedLength y1;
- readonly attribute SVGAnimatedLength x2;
- readonly attribute SVGAnimatedLength y2;
- };
-
- interface SVGAnimatedPoints {
-
- readonly attribute SVGPointList points;
- readonly attribute SVGPointList animatedPoints;
- };
-
- interface SVGPolylineElement :
- SVGElement,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGTransformable,
- events::EventTarget,
- SVGAnimatedPoints {};
-
- interface SVGPolygonElement :
- SVGElement,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGTransformable,
- events::EventTarget,
- SVGAnimatedPoints {};
-
- interface SVGTextContentElement :
- SVGElement,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- events::EventTarget {
-
- // lengthAdjust Types
- const unsigned short LENGTHADJUST_UNKNOWN = 0;
- const unsigned short LENGTHADJUST_SPACING = 1;
- const unsigned short LENGTHADJUST_SPACINGANDGLYPHS = 2;
-
- readonly attribute SVGAnimatedLength textLength;
- readonly attribute SVGAnimatedEnumeration lengthAdjust;
-
- long getNumberOfChars ( );
- float getComputedTextLength ( );
- float getSubStringLength ( in unsigned long charnum, in unsigned long nchars )
- raises( DOMException );
- SVGPoint getStartPositionOfChar ( in unsigned long charnum )
- raises( DOMException );
- SVGPoint getEndPositionOfChar ( in unsigned long charnum )
- raises( DOMException );
- SVGRect getExtentOfChar ( in unsigned long charnum )
- raises( DOMException );
- float getRotationOfChar ( in unsigned long charnum )
- raises( DOMException );
- long getCharNumAtPosition ( in SVGPoint point );
- void selectSubString ( in unsigned long charnum, in unsigned long nchars )
- raises( DOMException );
- };
-
- interface SVGTextPositioningElement : SVGTextContentElement {
- readonly attribute SVGAnimatedLengthList x;
- readonly attribute SVGAnimatedLengthList y;
- readonly attribute SVGAnimatedLengthList dx;
- readonly attribute SVGAnimatedLengthList dy;
- readonly attribute SVGAnimatedNumberList rotate;
- };
-
- interface SVGTextElement :
- SVGTextPositioningElement,
- SVGTransformable {};
-
- interface SVGTSpanElement : SVGTextPositioningElement {};
-
- interface SVGTRefElement :
- SVGTextPositioningElement,
- SVGURIReference {};
-
- interface SVGTextPathElement :
- SVGTextContentElement,
- SVGURIReference {
-
- // textPath Method Types
- const unsigned short TEXTPATH_METHODTYPE_UNKNOWN = 0;
- const unsigned short TEXTPATH_METHODTYPE_ALIGN = 1;
- const unsigned short TEXTPATH_METHODTYPE_STRETCH = 2;
- // textPath Spacing Types
- const unsigned short TEXTPATH_SPACINGTYPE_UNKNOWN = 0;
- const unsigned short TEXTPATH_SPACINGTYPE_AUTO = 1;
- const unsigned short TEXTPATH_SPACINGTYPE_EXACT = 2;
-
- readonly attribute SVGAnimatedLength startOffset;
- readonly attribute SVGAnimatedEnumeration method;
- readonly attribute SVGAnimatedEnumeration spacing;
- };
-
- interface SVGAltGlyphElement :
- SVGTextPositioningElement,
- SVGURIReference {
-
- attribute DOMString glyphRef;
- // raises DOMException on setting
- attribute DOMString format;
- // raises DOMException on setting
- };
-
- interface SVGAltGlyphDefElement : SVGElement {};
-
- interface SVGAltGlyphItemElement : SVGElement {};
-
- interface SVGGlyphRefElement :
- SVGElement,
- SVGURIReference,
- SVGStylable {
-
- attribute DOMString glyphRef;
- // raises DOMException on setting
- attribute DOMString format;
- // raises DOMException on setting
- attribute float x;
- // raises DOMException on setting
- attribute float y;
- // raises DOMException on setting
- attribute float dx;
- // raises DOMException on setting
- attribute float dy;
- // raises DOMException on setting
- };
-
- interface SVGPaint : SVGColor {
- // Paint Types
- const unsigned short SVG_PAINTTYPE_UNKNOWN = 0;
- const unsigned short SVG_PAINTTYPE_RGBCOLOR = 1;
- const unsigned short SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2;
- const unsigned short SVG_PAINTTYPE_NONE = 101;
- const unsigned short SVG_PAINTTYPE_CURRENTCOLOR = 102;
- const unsigned short SVG_PAINTTYPE_URI_NONE = 103;
- const unsigned short SVG_PAINTTYPE_URI_CURRENTCOLOR = 104;
- const unsigned short SVG_PAINTTYPE_URI_RGBCOLOR = 105;
- const unsigned short SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106;
- const unsigned short SVG_PAINTTYPE_URI = 107;
-
- readonly attribute unsigned short paintType;
- readonly attribute DOMString uri;
-
- void setUri ( in DOMString uri );
- void setPaint ( in unsigned short paintType, in DOMString uri, in DOMString rgbColor, in DOMString iccColor )
- raises( SVGException );
- };
-
- interface SVGMarkerElement :
- SVGElement,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGFitToViewBox {
-
- // Marker Unit Types
- const unsigned short SVG_MARKERUNITS_UNKNOWN = 0;
- const unsigned short SVG_MARKERUNITS_USERSPACEONUSE = 1;
- const unsigned short SVG_MARKERUNITS_STROKEWIDTH = 2;
- // Marker Orientation Types
- const unsigned short SVG_MARKER_ORIENT_UNKNOWN = 0;
- const unsigned short SVG_MARKER_ORIENT_AUTO = 1;
- const unsigned short SVG_MARKER_ORIENT_ANGLE = 2;
-
- readonly attribute SVGAnimatedLength refX;
- readonly attribute SVGAnimatedLength refY;
- readonly attribute SVGAnimatedEnumeration markerUnits;
- readonly attribute SVGAnimatedLength markerWidth;
- readonly attribute SVGAnimatedLength markerHeight;
- readonly attribute SVGAnimatedEnumeration orientType;
- readonly attribute SVGAnimatedAngle orientAngle;
-
- void setOrientToAuto ( );
- void setOrientToAngle ( in SVGAngle angle );
- };
-
- interface SVGColorProfileElement :
- SVGElement,
- SVGURIReference,
- SVGRenderingIntent {
-
- attribute DOMString local;
- // raises DOMException on setting
- attribute DOMString name;
- // raises DOMException on setting
- attribute unsigned short renderingIntent;
- // raises DOMException on setting
- };
-
- interface SVGColorProfileRule :
- SVGCSSRule,
- SVGRenderingIntent {
-
- attribute DOMString src;
- // raises DOMException on setting
- attribute DOMString name;
- // raises DOMException on setting
- attribute unsigned short renderingIntent;
- // raises DOMException on setting
- };
-
- interface SVGGradientElement :
- SVGElement,
- SVGURIReference,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGUnitTypes {
-
- // Spread Method Types
- const unsigned short SVG_SPREADMETHOD_UNKNOWN = 0;
- const unsigned short SVG_SPREADMETHOD_PAD = 1;
- const unsigned short SVG_SPREADMETHOD_REFLECT = 2;
- const unsigned short SVG_SPREADMETHOD_REPEAT = 3;
-
- readonly attribute SVGAnimatedEnumeration gradientUnits;
- readonly attribute SVGAnimatedTransformList gradientTransform;
- readonly attribute SVGAnimatedEnumeration spreadMethod;
- };
-
- interface SVGLinearGradientElement : SVGGradientElement {
- readonly attribute SVGAnimatedLength x1;
- readonly attribute SVGAnimatedLength y1;
- readonly attribute SVGAnimatedLength x2;
- readonly attribute SVGAnimatedLength y2;
- };
-
- interface SVGRadialGradientElement : SVGGradientElement {
- readonly attribute SVGAnimatedLength cx;
- readonly attribute SVGAnimatedLength cy;
- readonly attribute SVGAnimatedLength r;
- readonly attribute SVGAnimatedLength fx;
- readonly attribute SVGAnimatedLength fy;
- };
-
- interface SVGStopElement :
- SVGElement,
- SVGStylable {
-
- readonly attribute SVGAnimatedNumber offset;
- };
-
- interface SVGPatternElement :
- SVGElement,
- SVGURIReference,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGFitToViewBox,
- SVGUnitTypes {
-
- readonly attribute SVGAnimatedEnumeration patternUnits;
- readonly attribute SVGAnimatedEnumeration patternContentUnits;
- readonly attribute SVGAnimatedTransformList patternTransform;
- readonly attribute SVGAnimatedLength x;
- readonly attribute SVGAnimatedLength y;
- readonly attribute SVGAnimatedLength width;
- readonly attribute SVGAnimatedLength height;
- };
-
- interface SVGClipPathElement :
- SVGElement,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGTransformable,
- SVGUnitTypes {
-
- readonly attribute SVGAnimatedEnumeration clipPathUnits;
- };
-
- interface SVGMaskElement :
- SVGElement,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGUnitTypes {
-
- readonly attribute SVGAnimatedEnumeration maskUnits;
- readonly attribute SVGAnimatedEnumeration maskContentUnits;
- readonly attribute SVGAnimatedLength x;
- readonly attribute SVGAnimatedLength y;
- readonly attribute SVGAnimatedLength width;
- readonly attribute SVGAnimatedLength height;
- };
-
- interface SVGFilterElement :
- SVGElement,
- SVGURIReference,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGUnitTypes {
-
- readonly attribute SVGAnimatedEnumeration filterUnits;
- readonly attribute SVGAnimatedEnumeration primitiveUnits;
- readonly attribute SVGAnimatedLength x;
- readonly attribute SVGAnimatedLength y;
- readonly attribute SVGAnimatedLength width;
- readonly attribute SVGAnimatedLength height;
- readonly attribute SVGAnimatedInteger filterResX;
- readonly attribute SVGAnimatedInteger filterResY;
-
- void setFilterRes ( in unsigned long filterResX, in unsigned long filterResY );
- };
-
- interface SVGFilterPrimitiveStandardAttributes : SVGStylable {
- readonly attribute SVGAnimatedLength x;
- readonly attribute SVGAnimatedLength y;
- readonly attribute SVGAnimatedLength width;
- readonly attribute SVGAnimatedLength height;
- readonly attribute SVGAnimatedString result;
- };
-
- interface SVGFEBlendElement :
- SVGElement,
- SVGFilterPrimitiveStandardAttributes {
-
- // Blend Mode Types
- const unsigned short SVG_FEBLEND_MODE_UNKNOWN = 0;
- const unsigned short SVG_FEBLEND_MODE_NORMAL = 1;
- const unsigned short SVG_FEBLEND_MODE_MULTIPLY = 2;
- const unsigned short SVG_FEBLEND_MODE_SCREEN = 3;
- const unsigned short SVG_FEBLEND_MODE_DARKEN = 4;
- const unsigned short SVG_FEBLEND_MODE_LIGHTEN = 5;
-
- readonly attribute SVGAnimatedString in1;
- readonly attribute SVGAnimatedString in2;
- readonly attribute SVGAnimatedEnumeration mode;
- };
-
- interface SVGFEColorMatrixElement :
- SVGElement,
- SVGFilterPrimitiveStandardAttributes {
-
- // Color Matrix Types
- const unsigned short SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0;
- const unsigned short SVG_FECOLORMATRIX_TYPE_MATRIX = 1;
- const unsigned short SVG_FECOLORMATRIX_TYPE_SATURATE = 2;
- const unsigned short SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3;
- const unsigned short SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4;
-
- readonly attribute SVGAnimatedString in1;
- readonly attribute SVGAnimatedEnumeration type;
- readonly attribute SVGAnimatedNumberList values;
- };
-
- interface SVGFEComponentTransferElement :
- SVGElement,
- SVGFilterPrimitiveStandardAttributes {
-
- readonly attribute SVGAnimatedString in1;
- };
-
- interface SVGComponentTransferFunctionElement : SVGElement {
- // Component Transfer Types
- const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0;
- const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1;
- const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2;
- const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3;
- const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4;
- const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5;
-
- readonly attribute SVGAnimatedEnumeration type;
- readonly attribute SVGAnimatedNumberList tableValues;
- readonly attribute SVGAnimatedNumber slope;
- readonly attribute SVGAnimatedNumber intercept;
- readonly attribute SVGAnimatedNumber amplitude;
- readonly attribute SVGAnimatedNumber exponent;
- readonly attribute SVGAnimatedNumber offset;
- };
-
- interface SVGFEFuncRElement : SVGComponentTransferFunctionElement {};
-
- interface SVGFEFuncGElement : SVGComponentTransferFunctionElement {};
-
- interface SVGFEFuncBElement : SVGComponentTransferFunctionElement {};
-
- interface SVGFEFuncAElement : SVGComponentTransferFunctionElement {};
-
- interface SVGFECompositeElement :
- SVGElement,
- SVGFilterPrimitiveStandardAttributes {
-
- // Composite Operators
- const unsigned short SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0;
- const unsigned short SVG_FECOMPOSITE_OPERATOR_OVER = 1;
- const unsigned short SVG_FECOMPOSITE_OPERATOR_IN = 2;
- const unsigned short SVG_FECOMPOSITE_OPERATOR_OUT = 3;
- const unsigned short SVG_FECOMPOSITE_OPERATOR_ATOP = 4;
- const unsigned short SVG_FECOMPOSITE_OPERATOR_XOR = 5;
- const unsigned short SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6;
-
- readonly attribute SVGAnimatedString in1;
- readonly attribute SVGAnimatedString in2;
- readonly attribute SVGAnimatedEnumeration operator;
- readonly attribute SVGAnimatedNumber k1;
- readonly attribute SVGAnimatedNumber k2;
- readonly attribute SVGAnimatedNumber k3;
- readonly attribute SVGAnimatedNumber k4;
- };
-
- interface SVGFEConvolveMatrixElement :
- SVGElement,
- SVGFilterPrimitiveStandardAttributes {
-
- // Edge Mode Values
- const unsigned short SVG_EDGEMODE_UNKNOWN = 0;
- const unsigned short SVG_EDGEMODE_DUPLICATE = 1;
- const unsigned short SVG_EDGEMODE_WRAP = 2;
- const unsigned short SVG_EDGEMODE_NONE = 3;
-
- readonly attribute SVGAnimatedInteger orderX;
- readonly attribute SVGAnimatedInteger orderY;
- readonly attribute SVGAnimatedNumberList kernelMatrix;
- readonly attribute SVGAnimatedNumber divisor;
- readonly attribute SVGAnimatedNumber bias;
- readonly attribute SVGAnimatedInteger targetX;
- readonly attribute SVGAnimatedInteger targetY;
- readonly attribute SVGAnimatedEnumeration edgeMode;
- readonly attribute SVGAnimatedLength kernelUnitLengthX;
- readonly attribute SVGAnimatedLength kernelUnitLengthY;
- readonly attribute SVGAnimatedBoolean preserveAlpha;
- };
-
- interface SVGFEDiffuseLightingElement :
- SVGElement,
- SVGFilterPrimitiveStandardAttributes {
-
- readonly attribute SVGAnimatedString in1;
- readonly attribute SVGAnimatedNumber surfaceScale;
- readonly attribute SVGAnimatedNumber diffuseConstant;
- };
-
- interface SVGFEDistantLightElement : SVGElement {
- readonly attribute SVGAnimatedNumber azimuth;
- readonly attribute SVGAnimatedNumber elevation;
- };
-
- interface SVGFEPointLightElement : SVGElement {
- readonly attribute SVGAnimatedNumber x;
- readonly attribute SVGAnimatedNumber y;
- readonly attribute SVGAnimatedNumber z;
- };
-
- interface SVGFESpotLightElement : SVGElement {
- readonly attribute SVGAnimatedNumber x;
- readonly attribute SVGAnimatedNumber y;
- readonly attribute SVGAnimatedNumber z;
- readonly attribute SVGAnimatedNumber pointsAtX;
- readonly attribute SVGAnimatedNumber pointsAtY;
- readonly attribute SVGAnimatedNumber pointsAtZ;
- readonly attribute SVGAnimatedNumber specularExponent;
- readonly attribute SVGAnimatedNumber limitingConeAngle;
- };
-
- interface SVGFEDisplacementMapElement :
- SVGElement,
- SVGFilterPrimitiveStandardAttributes {
-
- // Channel Selectors
- const unsigned short SVG_CHANNEL_UNKNOWN = 0;
- const unsigned short SVG_CHANNEL_R = 1;
- const unsigned short SVG_CHANNEL_G = 2;
- const unsigned short SVG_CHANNEL_B = 3;
- const unsigned short SVG_CHANNEL_A = 4;
-
- readonly attribute SVGAnimatedString in1;
- readonly attribute SVGAnimatedString in2;
- readonly attribute SVGAnimatedNumber scale;
- readonly attribute SVGAnimatedEnumeration xChannelSelector;
- readonly attribute SVGAnimatedEnumeration yChannelSelector;
- };
-
- interface SVGFEFloodElement :
- SVGElement,
- SVGFilterPrimitiveStandardAttributes {
-
- readonly attribute SVGAnimatedString in1;
- };
-
- interface SVGFEGaussianBlurElement :
- SVGElement,
- SVGFilterPrimitiveStandardAttributes {
-
- readonly attribute SVGAnimatedString in1;
- readonly attribute SVGAnimatedNumber stdDeviationX;
- readonly attribute SVGAnimatedNumber stdDeviationY;
-
- void setStdDeviation ( in float stdDeviationX, in float stdDeviationY );
- };
-
- interface SVGFEImageElement :
- SVGElement,
- SVGURIReference,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGFilterPrimitiveStandardAttributes {};
-
- interface SVGFEMergeElement :
- SVGElement,
- SVGFilterPrimitiveStandardAttributes {};
-
- interface SVGFEMergeNodeElement : SVGElement {
- readonly attribute SVGAnimatedString in1;
- };
-
- interface SVGFEMorphologyElement :
- SVGElement,
- SVGFilterPrimitiveStandardAttributes {
-
- // Morphology Operators
- const unsigned short SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0;
- const unsigned short SVG_MORPHOLOGY_OPERATOR_ERODE = 1;
- const unsigned short SVG_MORPHOLOGY_OPERATOR_DILATE = 2;
-
- readonly attribute SVGAnimatedString in1;
- readonly attribute SVGAnimatedEnumeration operator;
- readonly attribute SVGAnimatedLength radiusX;
- readonly attribute SVGAnimatedLength radiusY;
- };
-
- interface SVGFEOffsetElement :
- SVGElement,
- SVGFilterPrimitiveStandardAttributes {
-
- readonly attribute SVGAnimatedString in1;
- readonly attribute SVGAnimatedNumber dx;
- readonly attribute SVGAnimatedNumber dy;
- };
-
- interface SVGFESpecularLightingElement :
- SVGElement,
- SVGFilterPrimitiveStandardAttributes {
-
- readonly attribute SVGAnimatedString in1;
- readonly attribute SVGAnimatedNumber surfaceScale;
- readonly attribute SVGAnimatedNumber specularConstant;
- readonly attribute SVGAnimatedNumber specularExponent;
- };
-
- interface SVGFETileElement :
- SVGElement,
- SVGFilterPrimitiveStandardAttributes {
-
- readonly attribute SVGAnimatedString in1;
- };
-
- interface SVGFETurbulenceElement :
- SVGElement,
- SVGFilterPrimitiveStandardAttributes {
-
- // Turbulence Types
- const unsigned short SVG_TURBULENCE_TYPE_UNKNOWN = 0;
- const unsigned short SVG_TURBULENCE_TYPE_FRACTALNOISE = 1;
- const unsigned short SVG_TURBULENCE_TYPE_TURBULENCE = 2;
- // Stitch Options
- const unsigned short SVG_STITCHTYPE_UNKNOWN = 0;
- const unsigned short SVG_STITCHTYPE_STITCH = 1;
- const unsigned short SVG_STITCHTYPE_NOSTITCH = 2;
-
- readonly attribute SVGAnimatedNumber baseFrequencyX;
- readonly attribute SVGAnimatedNumber baseFrequencyY;
- readonly attribute SVGAnimatedInteger numOctaves;
- readonly attribute SVGAnimatedNumber seed;
- readonly attribute SVGAnimatedEnumeration stitchTiles;
- readonly attribute SVGAnimatedEnumeration type;
- };
-
- interface SVGCursorElement :
- SVGElement,
- SVGURIReference,
- SVGTests,
- SVGExternalResourcesRequired {
-
- readonly attribute SVGAnimatedLength x;
- readonly attribute SVGAnimatedLength y;
- };
-
- interface SVGAElement :
- SVGElement,
- SVGURIReference,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGTransformable,
- events::EventTarget {
-
- readonly attribute SVGAnimatedString target;
- };
-
- interface SVGViewElement :
- SVGElement,
- SVGExternalResourcesRequired,
- SVGFitToViewBox,
- SVGZoomAndPan {
-
- readonly attribute SVGStringList viewTarget;
- };
-
- interface SVGScriptElement :
- SVGElement,
- SVGURIReference,
- SVGExternalResourcesRequired {
-
- attribute DOMString type;
- // raises DOMException on setting
- };
-
- interface SVGEvent : events::Event {};
-
- interface SVGZoomEvent : events::UIEvent {
- readonly attribute SVGRect zoomRectScreen;
- readonly attribute float previousScale;
- readonly attribute SVGPoint previousTranslate;
- readonly attribute float newScale;
- readonly attribute SVGPoint newTranslate;
- };
-
- interface SVGAnimationElement :
- SVGElement,
- SVGTests,
- SVGExternalResourcesRequired,
- smil::ElementTimeControl,
- events::EventTarget {
-
- readonly attribute SVGElement targetElement;
-
- float getStartTime ( );
- float getCurrentTime ( );
- float getSimpleDuration ( )
- raises( DOMException );
- };
-
- interface SVGAnimateElement : SVGAnimationElement {};
-
- interface SVGSetElement : SVGAnimationElement {};
-
- interface SVGAnimateMotionElement : SVGAnimationElement {};
-
- interface SVGMPathElement :
- SVGElement,
- SVGURIReference,
- SVGExternalResourcesRequired {};
-
- interface SVGAnimateColorElement : SVGAnimationElement {};
-
- interface SVGAnimateTransformElement : SVGAnimationElement {};
-
- interface SVGFontElement :
- SVGElement,
- SVGExternalResourcesRequired,
- SVGStylable {};
-
- interface SVGGlyphElement :
- SVGElement,
- SVGStylable {};
-
- interface SVGMissingGlyphElement :
- SVGElement,
- SVGStylable {};
-
- interface SVGHKernElement : SVGElement {};
-
- interface SVGVKernElement : SVGElement {};
-
- interface SVGFontFaceElement : SVGElement {};
-
- interface SVGFontFaceSrcElement : SVGElement {};
-
- interface SVGFontFaceUriElement : SVGElement {};
-
- interface SVGFontFaceFormatElement : SVGElement {};
-
- interface SVGFontFaceNameElement : SVGElement {};
-
- interface SVGDefinitionSrcElement : SVGElement {};
-
- interface SVGMetadataElement : SVGElement {};
-
- interface SVGForeignObjectElement :
- SVGElement,
- SVGTests,
- SVGLangSpace,
- SVGExternalResourcesRequired,
- SVGStylable,
- SVGTransformable,
- events::EventTarget {
-
- readonly attribute SVGAnimatedLength x;
- readonly attribute SVGAnimatedLength y;
- readonly attribute SVGAnimatedLength width;
- readonly attribute SVGAnimatedLength height;
- };
-
-
-};
-
-#endif // _SVG_IDL_ \ No newline at end of file
diff --git a/src/dom/work/svg2.cpp b/src/dom/work/svg2.cpp
deleted file mode 100644
index f0da61e09..000000000
--- a/src/dom/work/svg2.cpp
+++ /dev/null
@@ -1,7049 +0,0 @@
-/**
- * Phoebe DOM Implementation.
- *
- * This is a C++ approximation of the W3C DOM model, which follows
- * fairly closely the specifications in the various .idl files, copies of
- * which are provided for reference. Most important is this one:
- *
- * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html
- *
- * Authors:
- * Bob Jamison
- *
- * Copyright(C) 2005-2008 Bob Jamison
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or(at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * =======================================================================
- * NOTES
- *
- * This API follows:
- * http://www.w3.org/TR/SVG11/svgdom.html
- *
- * This file defines the main SVG-DOM Node types. Other non-Node types are
- * defined in svgtypes.h.
- *
- */
-
-#include "svg.h"
-
-#include <math.h>
-
-
-namespace org
-{
-namespace w3c
-{
-namespace dom
-{
-namespace svg
-{
-
-
-
-//########################################################################
-//########################################################################
-//########################################################################
-//# I N T E R F A C E S
-//########################################################################
-//########################################################################
-//########################################################################
-
-
-
-/*#########################################################################
-## SVGMatrix
-#########################################################################*/
-
-/**
- *
- */
-double SVGMatrix::getA()
-{
- return a;
-}
-
-/**
- *
- */
-void SVGMatrix::setA(double val) throw (DOMException)
-{
- a = val;
-}
-
-/**
- *
- */
-double SVGMatrix::getB()
-{
- return b;
-}
-
-/**
- *
- */
-void SVGMatrix::setB(double val) throw (DOMException)
-{
- b = val;
-}
-
-/**
- *
- */
-double SVGMatrix::getC()
-{
- return c;
-}
-
-/**
- *
- */
-void SVGMatrix::setC(double val) throw (DOMException)
-{
- c = val;
-}
-
-/**
- *
- */
-double SVGMatrix::getD()
-{
- return d;
-}
-
-/**
- *
- */
-void SVGMatrix::setD(double val) throw (DOMException)
-{
- d = val;
-}
-
-/**
- *
- */
-double SVGMatrix::getE()
-{
- return e;
-}
-
-/**
- *
- */
-void SVGMatrix::setE(double val) throw (DOMException)
-{
- e = val;
-}
-
-/**
- *
- */
-double SVGMatrix::getF()
-{
- return f;
-}
-
-/**
- *
- */
-void SVGMatrix::setF(double val) throw (DOMException)
-{
- f = val;
-}
-
-
-/**
- * Return the result of postmultiplying this matrix with another.
- */
-SVGMatrix SVGMatrix::multiply(const SVGMatrix &other)
-{
- SVGMatrix result;
- result.a = a * other.a + c * other.b;
- result.b = b * other.a + d * other.b;
- result.c = a * other.c + c * other.d;
- result.d = b * other.c + d * other.d;
- result.e = a * other.e + c * other.f + e;
- result.f = b * other.e + d * other.f + f;
- return result;
-}
-
-/**
- * Calculate the inverse of this matrix
- *
- */
-SVGMatrix SVGMatrix::inverse() throw (SVGException)
-{
- /*###########################################
- The determinant of a 3x3 matrix E
- (let's use our own notation for a bit)
-
- A B C
- D E F
- G H I
- is
- AEI - AFH - BDI + BFG + CDH - CEG
-
- Since in our affine transforms, G and H==0 and I==1,
- this reduces to:
- AE - BD
- In SVG's naming scheme, that is: a * d - c * b . SIMPLE!
-
- In a similar method of attack, SVG's adjunct matrix is:
-
- d -c cf-ed
- -b a eb-af
- 0 0 ad-cb
-
- To get the inverse matrix, we divide the adjunct matrix by
- the determinant. Notice that (ad-cb)/(ad-cb)==1. Very cool.
- So what we end up with is this:
-
- a = d/(ad-cb) c = -c/(ad-cb) e = (cf-ed)/(ad-cb)
- b = -b/(ad-cb) d = a/(ad-cb) f = (eb-af)/(ad-cb)
-
- (Since this would be in all SVG-DOM implementations,
- somebody needed to document this! ^^)
- #############################################*/
-
- SVGMatrix result;
- double determinant = a * d - c * b;
- if (determinant < 1.0e-18)//invertible?
- {
- result.identity();//cop out
- return result;
- }
-
- double idet = 1.0 / determinant;
- result.a = d * idet;
- result.b = -b * idet;
- result.c = -c * idet;
- result.d = a * idet;
- result.e = (c*f - e*d) * idet;
- result.f = (e*b - a*f) * idet;
- return result;
-}
-
-/**
- * Equivalent to multiplying by:
- * | 1 0 x |
- * | 0 1 y |
- * | 0 0 1 |
- *
- */
-SVGMatrix SVGMatrix::translate(double x, double y)
-{
- SVGMatrix result;
- result.a = a;
- result.b = b;
- result.c = c;
- result.d = d;
- result.e = a * x + c * y + e;
- result.f = b * x + d * y + f;
- return result;
-}
-
-/**
- * Equivalent to multiplying by:
- * | scale 0 0 |
- * | 0 scale 0 |
- * | 0 0 1 |
- *
- */
-:SVGMatrix SVGMatrix:scale(double scale)
-{
- SVGMatrix result;
- result.a = a * scale;
- result.b = b * scale;
- result.c = c * scale;
- result.d = d * scale;
- result.e = e;
- result.f = f;
- return result;
-}
-
-/**
- * Equivalent to multiplying by:
- * | scaleX 0 0 |
- * | 0 scaleY 0 |
- * | 0 0 1 |
- *
- */
-SVGMatrix SVGMatrix::scaleNonUniform(double scaleX,
- double scaleY)
-{
- SVGMatrix result;
- result.a = a * scaleX;
- result.b = b * scaleX;
- result.c = c * scaleY;
- result.d = d * scaleY;
- result.e = e;
- result.f = f;
- return result;
-}
-
-/**
- * Equivalent to multiplying by:
- * | cos(a) -sin(a) 0 |
- * | sin(a) cos(a) 0 |
- * | 0 0 1 |
- *
- */
-SVGMatrix SVGMatrix::rotate (double angle)
-{
- double sina = sin(angle);
- double msina = -sina;
- double cosa = cos(angle);
- SVGMatrix result;
- result.a = a * cosa + c * sina;
- result.b = b * cosa + d + sina;
- result.c = a * msina + c * cosa;
- result.d = b * msina + d * cosa;
- result.e = e;
- result.f = f;
- return result;
-}
-
-/**
- * Equivalent to multiplying by:
- * | cos(a) -sin(a) 0 |
- * | sin(a) cos(a) 0 |
- * | 0 0 1 |
- * In this case, angle 'a' is computed as the artangent
- * of the slope y/x . It is negative if the slope is negative.
- */
-SVGMatrix SVGMatrix::rotateFromVector(double x, double y)
- throw (SVGException)
-{
- double angle = atan(y / x);
- if (y < 0.0)
- angle = -angle;
- SVGMatrix result;
- double sina = sin(angle);
- double msina = -sina;
- double cosa = cos(angle);
- result.a = a * cosa + c * sina;
- result.b = b * cosa + d + sina;
- result.c = a * msina + c * cosa;
- result.d = b * msina + d * cosa;
- result.e = e;
- result.f = f;
- return result;
-}
-
-/**
- * Equivalent to multiplying by:
- * | -1 0 0 |
- * | 0 1 0 |
- * | 0 0 1 |
- *
- */
-SVGMatrix SVGMatrix::flipX()
-{
- SVGMatrix result;
- result.a = -a;
- result.b = -b;
- result.c = c;
- result.d = d;
- result.e = e;
- result.f = f;
- return result;
-}
-
-/**
- * Equivalent to multiplying by:
- * | 1 0 0 |
- * | 0 -1 0 |
- * | 0 0 1 |
- *
- */
-SVGMatrix SVGMatrix::flipY()
-{
- SVGMatrix result;
- result.a = a;
- result.b = b;
- result.c = -c;
- result.d = -d;
- result.e = e;
- result.f = f;
- return result;
-}
-
-/**
- * | 1 tan(a) 0 |
- * | 0 1 0 |
- * | 0 0 1 |
- *
- */
-SVGMatrix SVGMatrix::skewX(double angle)
-{
- double tana = tan(angle);
- SVGMatrix result;
- result.a = a;
- result.b = b;
- result.c = a * tana + c;
- result.d = b * tana + d;
- result.e = e;
- result.f = f;
- return result;
-}
-
-/**
- * Equivalent to multiplying by:
- * | 1 0 0 |
- * | tan(a) 1 0 |
- * | 0 0 1 |
- *
- */
-SVGMatrix::SVGMatrix SVGMatrix::skewY(double angle)
-{
- double tana = tan(angle);
- SVGMatrix result;
- result.a = a + c * tana;
- result.b = b + d * tana;
- result.c = c;
- result.d = d;
- result.e = e;
- result.f = f;
- return result;
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGMatrix::SVGMatrix()
-{
- identity();
-}
-
-/**
- *
- */
-SVGMatrix::SVGMatrix(double aArg, double bArg, double cArg,
- double dArg, double eArg, double fArg)
-{
- a = aArg; b = bArg; c = cArg;
- d = dArg; e = eArg; f = fArg;
-}
-
-/**
- * Copy constructor
- */
-SVGMatrix::SVGMatrix(const SVGMatrix &other)
-{
- a = other.a;
- b = other.b;
- c = other.c;
- d = other.d;
- e = other.e;
- f = other.f;
-}
-
-
-
-/**
- *
- */
-SVGMatrix::~SVGMatrix()
-{
-}
-
-/*
- * Set to the identity matrix
- */
-void SVGMatrix::identity()
-{
- a = 1.0;
- b = 0.0;
- c = 0.0;
- d = 1.0;
- e = 0.0;
- f = 0.0;
-}
-
-
-/*#########################################################################
-## SVGTransform
-#########################################################################*/
-
-/**
- *
- */
-unsigned short SVGTransform::getType()
-{
- return type;
-}
-
-
-/**
- *
- */
-SVGMatrix SVGTransform::getMatrix()
-{
- return matrix;
-}
-
-/**
- *
- */
-double SVGTransform::getAngle()
-{
- return angle;
-}
-
-
-/**
- *
- */
-void SVGTransform::setMatrix(const SVGMatrix &matrixArg)
-{
- type = SVG_TRANSFORM_MATRIX;
- matrix = matrixArg;
-}
-
-/**
- *
- */
-void SVGTransform::setTranslate(double tx, double ty)
-{
- type = SVG_TRANSFORM_TRANSLATE;
- matrix.setA(1.0);
- matrix.setB(0.0);
- matrix.setC(0.0);
- matrix.setD(1.0);
- matrix.setE(tx);
- matrix.setF(ty);
-}
-
-/**
- *
- */
-void SVGTransform::setScale(double sx, double sy)
-{
- type = SVG_TRANSFORM_SCALE;
- matrix.setA(sx);
- matrix.setB(0.0);
- matrix.setC(0.0);
- matrix.setD(sy);
- matrix.setE(0.0);
- matrix.setF(0.0);
-}
-
-/**
- *
- */
-void SVGTransform::setRotate(double angleArg, double cx, double cy)
-{
- angle = angleArg;
- setTranslate(cx, cy);
- type = SVG_TRANSFORM_ROTATE;
- matrix.rotate(angle);
-}
-
-/**
- *
- */
-void SVGTransform::setSkewX(double angleArg)
-{
- angle = angleArg;
- type = SVG_TRANSFORM_SKEWX;
- matrix.identity();
- matrix.skewX(angle);
-}
-
-/**
- *
- */
-void SVGTransform::setSkewY(double angleArg)
-{
- angle = angleArg;
- type = SVG_TRANSFORM_SKEWY;
- matrix.identity();
- matrix.skewY(angle);
-}
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGTransform::SVGTransform()
-{
- type = SVG_TRANSFORM_UNKNOWN;
- angle = 0.0;
-}
-
-/**
- *
- */
-SVGTransform::SVGTransform(const SVGTransform &other)
-{
- type = other.type;
- angle = other.angle;
- matrix = other.matrix;
-}
-
-/**
- *
- */
-~SVGTransform::SVGTransform()
-{
-}
-
-
-
-/*#########################################################################
-## SVGNumber
-#########################################################################*/
-
-/**
- *
- */
-double SVGNumber::getValue()
-{
- return value;
-}
-
-/**
- *
- */
-void SVGNumber::setValue(double val) throw (DOMException)
-{
- value = val;
-}
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGNumber::SVGNumber()
-{
- value = 0.0;
-}
-
-/**
- *
- */
-SVGNumber::SVGNumber(const SVGNumber &other)
-{
- value = other.value;
-}
-
-/**
- *
- */
-SVGNumber::~SVGNumber()
-{
-}
-
-
-
-/*#########################################################################
-## SVGLength
-#########################################################################*/
-
-
-/**
- *
- */
-unsigned short SVGLength::getUnitType()
-{
- return unitType;
-}
-
-/**
- *
- */
-double SVGLength::getValue()
-{
- return value;
-}
-
-/**
- *
- */
-void SVGLength::setValue(double val) throw (DOMException)
-{
- value = val;
-}
-
-/**
- *
- */
-double SVGLength::getValueInSpecifiedUnits()
-{
- double result = 0.0;
- //fill this in
- return result;
-}
-
-/**
- *
- */
-void SVGLength::setValueInSpecifiedUnits(double /*val*/)
- throw (DOMException)
-{
- //fill this in
-}
-
-/**
- *
- */
-DOMString SVGLength::getValueAsString()
-{
- DOMString ret;
- char buf[32];
- snprintf(buf, 31, "%f", value);
- ret.append(buf);
- return ret;
-}
-
-/**
- *
- */
-void SVGLength::setValueAsString(const DOMString& /*val*/)
- throw (DOMException)
-{
-}
-
-
-/**
- *
- */
-void SVGLength::newValueSpecifiedUnits (unsigned short /*unitType*/, double /*val*/)
-{
-}
-
-/**
- *
- */
-void SVGLength::convertToSpecifiedUnits (unsigned short /*unitType*/)
-{
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGLength::SVGLength()
-{
- unitType = SVG_LENGTHTYPE_UNKNOWN;
- value = 0.0;
-}
-
-
-/**
- *
- */
-SVGLength::SVGLength(const SVGLength &other)
-{
- unitType = other.unitType;
- value = other.value;
-}
-
-/**
- *
- */
-SVGLength::~SVGLength()
-{
-}
-
-
-
-
-/*#########################################################################
-## SVGAngle
-#########################################################################*/
-
-/**
- *
- */
-unsigned short SVGAngle::getUnitType()
-{
- return unitType;
-}
-
-/**
- *
- */
-double SVGAngle::getValue()
-{
- return value;
-}
-
-/**
- *
- */
-void SVGAngle::setValue(double val) throw (DOMException)
-{
- value = val;
-}
-
-/**
- *
- */
-double SVGAngle::getValueInSpecifiedUnits()
-{
- double result = 0.0;
- //convert here
- return result;
-}
-
-/**
- *
- */
-void SVGAngle::setValueInSpecifiedUnits(double /*val*/)
- throw (DOMException)
-{
- //do conversion
-}
-
-/**
- *
- */
-DOMString SVGAngle::getValueAsString()
-{
- DOMString result;
- char buf[32];
- snprintf(buf, 31, "%f", value);
- result.append(buf);
- return result;
-}
-
-/**
- *
- */
-void SVGAngle::setValueAsString(const DOMString &/*val*/)
- throw (DOMException)
-{
- //convert here
-}
-
-
-/**
- *
- */
-void SVGAngle::newValueSpecifiedUnits (unsigned short /*unitType*/,
- double /*valueInSpecifiedUnits*/)
-{
- //convert here
-}
-
-/**
- *
- */
-void SVGAngle::convertToSpecifiedUnits (unsigned short /*unitType*/)
-{
- //convert here
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGAngle::SVGAngle()
-{
- unitType = SVG_ANGLETYPE_UNKNOWN;
- value = 0.0;
-}
-
-/**
- *
- */
-SVGAngle::SVGAngle(const SVGAngle &other)
-{
- unitType = other.unitType;
- value = other.value;
-}
-
-/**
- *
- */
-SVGAngle::~SVGAngle()
-{
-}
-
-
-
-
-/*#########################################################################
-## SVGICCColor
-#########################################################################*/
-
-
-/**
- *
- */
-DOMString SVGICCColor::getColorProfile()
-{
- return colorProfile;
-}
-
-/**
- *
- */
-void SVGICCColor::setColorProfile(const DOMString &val) throw (DOMException)
-{
- colorProfile = val;
-}
-
-/**
- *
- */
-SVGNumberList &SVGICCColor::getColors()
-{
- return colors;
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGICCColor::SVGICCColor()
-{
-}
-
-/**
- *
- */
-SVGICCColor::SVGICCColor(const SVGICCColor &other)
-{
- colorProfile = other.colorProfile;
- colors = other.colors;
-}
-
-/**
- *
- */
-SVGICCColor::~SVGICCColor()
-{
-}
-
-
-
-/*#########################################################################
-## SVGColor
-#########################################################################*/
-
-
-
-/**
- *
- */
-unsigned short SVGColor::getColorType()
-{
- return colorType;
-}
-
-/**
- *
- */
-css::RGBColor SVGColor::getRgbColor()
-{
- css::RGBColor col;
- return col;
-}
-
-/**
- *
- */
-SVGICCColor SVGColor::getIccColor()
-{
- SVGICCColor col;
- return col;
-}
-
-
-/**
- *
- */
-void SVGColor::setRGBColor(const DOMString& /*rgbColor*/)
- throw (SVGException)
-{
-}
-
-/**
- *
- */
-void SVGColor::setRGBColorICCColor(const DOMString& /*rgbColor*/,
- const DOMString& /*iccColor*/)
- throw (SVGException)
-{
-}
-
-/**
- *
- */
-void SVGColor::setColor (unsigned short /*colorType*/,
- const DOMString& /*rgbColor*/,
- const DOMString& /*iccColor*/)
- throw (SVGException)
-{
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGColor::SVGColor()
-{
- colorType = SVG_COLORTYPE_UNKNOWN;
-}
-
-/**
- *
- */
-SVGColor::SVGColor(const SVGColor &other) : css::CSSValue(other)
-{
- colorType = other.colorType;
-}
-
-/**
- *
- */
-SVGColor::~SVGColor()
-{
-}
-
-
-
-/*#########################################################################
-## SVGRect
-#########################################################################*/
-
-
-/**
- *
- */
-double SVGRect::getX()
-{
- return x;
-}
-
-/**
- *
- */
-void SVGRect::setX(double val) throw (DOMException)
-{
- x = val;
-}
-
-/**
- *
- */
-double SVGRect::getY()
-{
- return y;
-}
-
-/**
- *
- */
-void SVGRect::setY(double val) throw (DOMException)
-{
- y = val;
-}
-
-/**
- *
- */
-double SVGRect::getWidth()
-{
- return width;
-}
-
-/**
- *
- */
-void SVGRect::setWidth(double val) throw (DOMException)
-{
- width = val;
-}
-
-/**
- *
- */
-double SVGRect::getHeight()
-{
- return height;
-}
-
-/**
- *
- */
-void SVGRect::setHeight(double val) throw (DOMException)
-{
- height = val;
-}
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGRect::SVGRect()
-{
- x = y = width = height = 0.0;
-}
-
-/**
- *
- */
-SVGRect::SVGRect(const SVGRect &other)
-{
- x = other.x;
- y = other.y;
- width = other.width;
- height = other.height;
-}
-
-/**
- *
- */
-SVGRect::~SVGRect()
-{
-}
-
-
-
-/*#########################################################################
-## SVGPoint
-#########################################################################*/
-
-
-/**
- *
- */
-double SVGPoint::getX()
-{
- return x;
-}
-
-/**
- *
- */
-void SVGPoint::setX(double val) throw (DOMException)
-{
- x = val;
-}
-
-/**
- *
- */
-double SVGPoint::getY()
-{
- return y;
-}
-
-/**
- *
- */
-void SVGPoint::setY(double val) throw (DOMException)
-{
- y = val;
-}
-
-/**
- *
- */
-SVGPoint SVGPoint::matrixTransform(const SVGMatrix &/*matrix*/)
-{
- SVGPoint point;
- return point;
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGPoint::SVGPoint()
-{
- x = y = 0;
-}
-
-/**
- *
- */
-SVGPoint::SVGPoint(const SVGPoint &other)
-{
- x = other.x;
- y = other.y;
-}
-
-/**
- *
- */
-SVGPoint::~SVGPoint()
-{
-}
-
-
-/*#########################################################################
-## SVGUnitTypes
-#########################################################################*/
-
-/**
- *
- */
-SVGUnitTypes::SVGUnitTypes()
-{
-}
-
-
-
-/**
- *
- */
-SVGUnitTypes::~SVGUnitTypes()
-{
-}
-
-
-/*#########################################################################
-## SVGStylable
-#########################################################################*/
-
-
-/**
- *
- */
-SVGAnimatedString SVGStylable::getClassName()
-{
- return className;
-}
-
-/**
- *
- */
-css::CSSStyleDeclaration SVGStylable::getStyle()
-{
- return style;
-}
-
-
-/**
- *
- */
-css::CSSValue SVGStylable::getPresentationAttribute(const DOMString& /*name*/)
-{
- css::CSSValue val;
- //perform a lookup
- return val;
-}
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGStylable::SVGStylable()
-{
-}
-
-/**
- *
- */
-SVGStylable::SVGStylable(const SVGStylable &other)
-{
- className = other.className;
- style = other.style;
-}
-
-/**
- *
- */
-SVGStylable::~SVGStylable()
-{
-}
-
-
-
-
-/*#########################################################################
-## SVGLocatable
-#########################################################################*/
-
-
-/**
- *
- */
-SVGElementPtr SVGLocatable::getNearestViewportElement()
-{
- SVGElementPtr result;
- return result;
-}
-
-/**
- *
- */
-SVGElementPtr SVGLocatable::getFarthestViewportElement()
-{
- SVGElementPtr result;
- return result;
-}
-
-/**
- *
- */
-SVGRect SVGLocatable::getBBox ()
-{
- return bbox;
-}
-
-/**
- *
- */
-SVGMatrix SVGLocatable::getCTM ()
-{
- return ctm;
-}
-
-/**
- *
- */
-SVGMatrix SVGLocatable::getScreenCTM ()
-{
- return screenCtm;
-}
-
-/**
- *
- */
-SVGMatrix SVGLocatable::getTransformToElement (const SVGElement &/*element*/)
- throw (SVGException)
-{
- SVGMatrix result;
- //do calculations
- return result;
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGLocatable::SVGLocatable()
-{
-}
-
-/**
- *
- */
-SVGLocatable::SVGLocatable(const SVGLocatable &/*other*/)
-{
-}
-
-/**
- *
- */
-SVGLocatable::~SVGLocatable()
-{
-}
-
-
-/*#########################################################################
-## SVGTransformable
-#########################################################################*/
-
-
-/**
- *
- */
-SVGAnimatedTransformList &SVGTransformable::getTransform()
-{
- return transforms;
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGTransformable::SVGTransformable() {}
-
-/**
- *
- */
-SVGTransformable::SVGTransformable(const SVGTransformable &other) : SVGLocatable(other)
-{
- transforms = other.transforms;
-}
-
-/**
- *
- */
-SVGTransformable::~SVGTransformable()
-{
-}
-
-
-
-
-
-
-
-/*#########################################################################
-## SVGTests
-#########################################################################*/
-
-
-/**
- *
- */
-SVGStringList &SVGTests::getRequiredFeatures()
-{
- return requiredFeatures;
-}
-
-/**
- *
- */
-SVGStringList &SVGTests::getRequiredExtensions()
-{
- return requiredExtensions;
-}
-
-/**
- *
- */
-SVGStringList &SVGTests::getSystemLanguage()
-{
- return systemLanguage;
-}
-
-
-/**
- *
- */
-bool SVGTests::hasExtension (const DOMString& /*extension*/)
-{
- return false;
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGTests::SVGTests()
-{
-}
-
-/**
- *
- */
-SVGTests::SVGTests(const SVGTests &other)
-{
- requiredFeatures = other.requiredFeatures;
- requiredExtensions = other.requiredExtensions;
- systemLanguage = other.systemLanguage;
-}
-
-/**
- *
- */
-SVGTests::~SVGTests()
-{
-}
-
-
-
-/*#########################################################################
-## SVGLangSpace
-#########################################################################*/
-
-
-/**
- *
- */
-DOMString SVGLangSpace::getXmllang()
-{
- return xmlLang;
-}
-
-/**
- *
- */
-void SVGLangSpace::setXmllang(const DOMString &val) throw (DOMException)
-{
- xmlLang = val;
-}
-
-/**
- *
- */
-DOMString SVGLangSpace::getXmlspace()
-{
- return xmlSpace;
-}
-
-/**
- *
- */
-void SVGLangSpace::setXmlspace(const DOMString &val)
- throw (DOMException)
-{
- xmlSpace = val;
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGLangSpace::SVGLangSpace()
-{
-}
-
-/**
- *
- */
-SVGLangSpace::SVGLangSpace(const SVGLangSpace &other)
-{
- xmlLang = other.xmlLang;
- xmlSpace = other.xmlSpace;
-}
-
-/**
- *
- */
-SVGLangSpace::~SVGLangSpace()
-{
-}
-
-
-
-/*#########################################################################
-## SVGExternalResourcesRequired
-#########################################################################*/
-
-/**
- *
- */
-SVGAnimatedBoolean SVGExternalResourcesRequired::getExternalResourcesRequired()
-{
- return required;
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGExternalResourcesRequired::SVGExternalResourcesRequired()
-{
-}
-
-
-/**
- *
- */
-SVGExternalResourcesRequired::SVGExternalResourcesRequired(
- const SVGExternalResourcesRequired &other)
-{
- required = other.required;
-}
-
-/**
- *
- */
-SVGExternalResourcesRequired::~SVGExternalResourcesRequired() {}
-
-
-/*#########################################################################
-## SVGPreserveAspectRatio
-#########################################################################*/
-
-/**
- *
- */
-unsigned short SVGPreserveAspectRatio::getAlign()
-{
- return align;
-}
-
-/**
- *
- */
-void SVGPreserveAspectRatio::setAlign(unsigned short val) throw (DOMException)
-{
- align = val;
-}
-
-/**
- *
- */
-unsigned short SVGPreserveAspectRatio::getMeetOrSlice()
-{
- return meetOrSlice;
-}
-
-/**
- *
- */
-void SVGPreserveAspectRatio::setMeetOrSlice(unsigned short val) throw (DOMException)
-{
- meetOrSlice = val;
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGPreserveAspectRatio::SVGPreserveAspectRatio()
-{
- align = SVG_PRESERVEASPECTRATIO_UNKNOWN;
- meetOrSlice = SVG_MEETORSLICE_UNKNOWN;
-}
-
-/**
- *
- */
-SVGPreserveAspectRatio::SVGPreserveAspectRatio(const SVGPreserveAspectRatio &other)
-{
- align = other.align;
- meetOrSlice = other.meetOrSlice;
-}
-
-/**
- *
- */
-SVGPreserveAspectRatio::~SVGPreserveAspectRatio()
-{
-}
-
-
-
-/*#########################################################################
-## SVGFitToViewBox
-#########################################################################*/
-
-
-/**
- *
- */
-SVGAnimatedRect SVGFitToViewBox::getViewBox()
-{
- return viewBox;
-}
-
-/**
- *
- */
-SVGAnimatedPreserveAspectRatio SVGFitToViewBox::getPreserveAspectRatio()
-{
- return preserveAspectRatio;
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGFitToViewBox::SVGFitToViewBox()
-{
-}
-
-/**
- *
- */
-
-SVGFitToViewBox::SVGFitToViewBox(const SVGFitToViewBox &other)
-{
- viewBox = other.viewBox;
- preserveAspectRatio = other.preserveAspectRatio;
-}
-
-/**
- *
- */
-SVGFitToViewBox::~SVGFitToViewBox()
-{
-}
-
-/*#########################################################################
-## SVGZoomAndPan
-#########################################################################*/
-
-/**
- *
- */
-unsigned short SVGZoomAndPan::getZoomAndPan()
-{
- return zoomAndPan;
-}
-
-/**
- *
- */
-void SVGZoomAndPan::setZoomAndPan(unsigned short val) throw (DOMException)
-{
- zoomAndPan = val;
-}
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGZoomAndPan::SVGZoomAndPan()
-{
- zoomAndPan = SVG_ZOOMANDPAN_UNKNOWN;
-}
-
-/**
- *
- */
-SVGZoomAndPan::SVGZoomAndPan(const SVGZoomAndPan &other)
-{
- zoomAndPan = other.zoomAndPan;
-}
-
-/**
- *
- */
-SVGZoomAndPan::~SVGZoomAndPan()
-{
-}
-
-
-/*#########################################################################
-## SVGViewSpec
-#########################################################################*/
-
-/**
- *
- */
-SVGTransformList SVGViewSpec::getTransform()
-{
- return transform;
-}
-
-/**
- *
- */
-SVGElementPtr SVGViewSpec::getViewTarget()
-{
- return viewTarget;
-}
-
-/**
- *
- */
-DOMString SVGViewSpec::getViewBoxString()
-{
- DOMString ret;
- return ret;
-}
-
-/**
- *
- */
-DOMString SVGViewSpec::getPreserveAspectRatioString()
-{
- DOMString ret;
- return ret;
-}
-
-/**
- *
- */
-DOMString SVGViewSpec::getTransformString()
-{
- DOMString ret;
- return ret;
-}
-
-/**
- *
- */
-DOMString SVGViewSpec::getViewTargetString()
-{
- DOMString ret;
- return ret;
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGViewSpec::SVGViewSpec()
-{
- viewTarget = NULL;
-}
-
-/**
- *
- */
-SVGViewSpec::SVGViewSpec(const SVGViewSpec &other) : SVGZoomAndPan(other), SVGFitToViewBox(other)
-{
- viewTarget = other.viewTarget;
- transform = other.transform;
-}
-
-/**
- *
- */
-SVGViewSpec::~SVGViewSpec()
-{
-}
-
-
-
-/*#########################################################################
-## SVGURIReference
-#########################################################################*/
-
-
-/**
- *
- */
-SVGAnimatedString SVGURIReference::getHref()
-{
- return href;
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGURIReference::SVGURIReference()
-{
-}
-
-/**
- *
- */
-SVGURIReference::SVGURIReference(const SVGURIReference &other)
-{
- href = other.href;
-}
-
-/**
- *
- */
-SVGURIReference::~SVGURIReference()
-{
-}
-
-
-
-/*#########################################################################
-## SVGCSSRule
-#########################################################################*/
-
-
-
-
-/*#########################################################################
-## SVGRenderingIntent
-#########################################################################*/
-
-
-
-
-
-/*#########################################################################
-## SVGPathSeg
-#########################################################################*/
-
-static const char *pathSegLetters[] =
-{
- '@', // PATHSEG_UNKNOWN,
- 'z', // PATHSEG_CLOSEPATH
- 'M', // PATHSEG_MOVETO_ABS
- 'm', // PATHSEG_MOVETO_REL,
- 'L', // PATHSEG_LINETO_ABS
- 'l', // PATHSEG_LINETO_REL
- 'C', // PATHSEG_CURVETO_CUBIC_ABS
- 'c', // PATHSEG_CURVETO_CUBIC_REL
- 'Q', // PATHSEG_CURVETO_QUADRATIC_ABS,
- 'q', // PATHSEG_CURVETO_QUADRATIC_REL
- 'A', // PATHSEG_ARC_ABS
- 'a', // PATHSEG_ARC_REL,
- 'H', // PATHSEG_LINETO_HORIZONTAL_ABS,
- 'h', // PATHSEG_LINETO_HORIZONTAL_REL
- 'V', // PATHSEG_LINETO_VERTICAL_ABS
- 'v', // PATHSEG_LINETO_VERTICAL_REL
- 'S', // PATHSEG_CURVETO_CUBIC_SMOOTH_ABS
- 's', // PATHSEG_CURVETO_CUBIC_SMOOTH_REL
- 'T', // PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS
- 't' // PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL
-};
-
-
-
-/**
- *
- */
-unsigned short getPathSegType()
-{
- return type;
-}
-
-/**
- *
- */
-DOMString getPathSegTypeAsLetter()
-{
- int typ = type;
- if (typ<0 || typ>PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL)
- typ = PATHSEG_UNKNOWN;
- char const ch = pathSegLetters[typ];
- DOMString letter = ch;
- return letter;
-}
-
-
-/**
- *
- */
-unsigned short getPathSegType()
-{
- return type;
-}
-
-/**
- *
- */
-DOMString getPathSegTypeAsLetter()
-{
- int typ = type;
- if (typ<0 || typ>PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL)
- typ = PATHSEG_UNKNOWN;
- char const *ch = pathSegLetters[typ];
- DOMString letter = ch;
- return letter;
-}
-
-/**
- * From the various subclasses
- */
-
-/**
- *
- */
-double SVGPathSeg::getX()
-{
- return x;
-}
-
-/**
- *
- */
-void SVGPathSeg::setX(double val) throw (DOMException)
-{
- x = val;
-}
-
-/**
- *
- */
-double SVGPathSeg::getX1()
-{
- return x;
-}
-
-/**
- *
- */
-void SVGPathSeg::setX1(double val) throw (DOMException)
-{
- x = val;
-}
-
-/**
- *
- */
-double SVGPathSeg::getX2()
-{
- return x;
-}
-
-/**
- *
- */
-void SVGPathSeg::setX2(double val) throw (DOMException)
-{
- x = val;
-}
-
-/**
- *
- */
-double SVGPathSeg::getY()
-{
- return y;
-}
-
-/**
- *
- */
-void SVGPathSeg::setY(double val) throw (DOMException)
-{
- y = val;
-}
-
-/**
- *
- */
-double SVGPathSeg::getY1()
-{
- return y;
-}
-
-/**
- *
- */
-void SVGPathSeg::setY1(double val) throw (DOMException)
-{
- y = val;
-}
-
-/**
- *
- */
-double SVGPathSeg::getY2()
-{
- return y;
-}
-
-/**
- *
- */
-void SVGPathSeg::setY2(double val) throw (DOMException)
-{
- y = val;
-}
-
-/**
- *
- */
-double SVGPathSeg::getR1()
-{
- return r1;
-}
-
-/**
- *
- */
-void SVGPathSeg::setR1(double val) throw (DOMException)
-{
- r1 = val;
-}
-
-/**
- *
- */
-double SVGPathSeg::getR2()
-{
- return r2;
-}
-
-/**
- *
- */
-void SVGPathSeg::setR2(double val) throw (DOMException)
-{
- r2 = val;
-}
-
-/**
- *
- */
-double SVGPathSeg::getAngle()
-{
- return angle;
-}
-
-/**
- *
- */
-void SVGPathSeg::setAngle(double val) throw (DOMException)
-{
- angle = val;
-}
-
-/**
- *
- */
-bool SVGPathSeg::getLargeArcFlag()
-{
- return largeArcFlag;
-}
-
-/**
- *
- */
-void SVGPathSeg::setLargeArcFlag(bool val) throw (DOMException)
-{
- largeArcFlag = val;
-}
-
-/**
- *
- */
-bool SVGPathSeg::getSweepFlag()
-{
- return sweepFlag;
-}
-
-/**
- *
- */
-void SVGPathSeg::setSweepFlag(bool val) throw (DOMException)
-{
- sweepFlag = val;
-}
-
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGPathSeg::SVGPathSeg()
-{
- init();
-}
-
-/**
- *
- */
-SVGPathSeg::SVGPathSeg(const SVGPathSeg &other)
-{
- assign(other);
-}
-
-/**
- *
- */
-SVGPathSeg &operator=(const SVGPathSeg &other)
-{
- assign(other);
- return *this;
-}
-
-/**
- *
- */
-void SVGPathSeg::init()
-{
- type = PATHSEG_UNKNOWN;
- x = y = x1 = y1 = x2 = y2 = 0.0;
- r1 = r2 = 0.0;
- angle = 0.0;
- largeArcFlag = false;
- sweepFlag = false;
-}
-
-/**
- *
- */
-void SVGPathSeg::assign(const SVGPathSeg &other)
-{
- type = other.type;
- x = other.x;
- y = other.y;
- x1 = other.x1;
- y1 = other.y1;
- x2 = other.x2;
- y2 = other.y2;
- r1 = other.r1;
- r2 = other.r2;
- angle = other.angle;
- largeArcFlag = other.largeArcFlag;
- sweepFlag = other.sweepFlag;
-}
-
-
-/**
- *
- */
-SVGPathSeg::~SVGPathSeg()
-{
-}
-
-
-
-
-/*#########################################################################
-## SVGPaint
-#########################################################################*/
-
-
-/**
- *
- */
-unsigned short SVGPaint::getPaintType()
-{ return paintType; }
-
-/**
- *
- */
-DOMString SVGPaint::getUri()
-{ return uri; }
-
-/**
- *
- */
-void SVGPaint::setUri(const DOMString& uriArg)
-{
- uri = uriArg;
-}
-
-/**
- *
- */
-void SVGPaint::setPaint (unsigned short paintTypeArg,
- const DOMString& uriArg,
- const DOMString& /*rgbColor*/,
- const DOMString& /*iccColor*/)
- throw (SVGException)
-{
- paintType = paintTypeArg;
- uri = uriArg;
- //do something with rgbColor
- //do something with iccColor;
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGPaint::SVGPaint()
-{
- uri = "";
- paintType = SVG_PAINTTYPE_UNKNOWN;
-}
-
-/**
- *
- */
-SVGPaint::SVGPaint(const SVGPaint &other) : css::CSSValue(other), SVGColor(other)
-{
- uri = "";
- paintType = SVG_PAINTTYPE_UNKNOWN;
-}
-
-/**
- *
- */
-SVGPaint::~SVGPaint() {}
-
-
-/*#########################################################################
-## SVGColorProfileRule
-#########################################################################*/
-
-
-/**
- *
- */
-DOMString SVGColorProfileRule::getSrc()
-{ return src; }
-
-/**
- *
- */
-void SVGColorProfileRule::setSrc(const DOMString &val) throw (DOMException)
-{ src = val; }
-
-/**
- *
- */
-DOMString SVGColorProfileRule::getName()
-{ return name; }
-
-/**
- *
- */
-void SVGColorProfileRule::setName(const DOMString &val) throw (DOMException)
-{ name = val; }
-
-/**
- *
- */
-unsigned short SVGColorProfileRule::getRenderingIntent()
-{ return renderingIntent; }
-
-/**
- *
- */
-void SVGColorProfileRule::setRenderingIntent(unsigned short val) throw (DOMException)
-{ renderingIntent = val; }
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGColorProfileRule::SVGColorProfileRule()
-{
-}
-
-/**
- *
- */
-SVGColorProfileRule::SVGColorProfileRule(const SVGColorProfileRule &other)
- : SVGCSSRule(other), SVGRenderingIntent(other)
-{
- renderingIntent = other.renderingIntent;
- src = other.src;
- name = other.name;
-}
-
-/**
- *
- */
-SVGColorProfileRule::~SVGColorProfileRule()
-{
-}
-
-
-/*#########################################################################
-## SVGFilterPrimitiveStandardAttributes
-#########################################################################*/
-
-/**
- *
- */
-SVGAnimatedLength SVGFilterPrimitiveStandardAttributes::getX()
-{ return x; }
-
-/**
- *
- */
-SVGAnimatedLength SVGFilterPrimitiveStandardAttributes::getY()
-{ return y; }
-
-/**
- *
- */
-SVGAnimatedLength SVGFilterPrimitiveStandardAttributes::getWidth()
-{ return width; }
-
-/**
- *
- */
-SVGAnimatedLength SVGFilterPrimitiveStandardAttributes::getHeight()
-{ return height; }
-
-/**
- *
- */
-SVGAnimatedString SVGFilterPrimitiveStandardAttributes::getResult()
-{ return result; }
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-
-/**
- *
- */
-SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes()
-{
-}
-
-/**
- *
- */
-SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes(
- const SVGFilterPrimitiveStandardAttributes &other)
- : SVGStylable(other)
-{
- x = other.x;
- y = other.y;
- width = other.width;
- height = other.height;
- result = other.result;
-}
-
-/**
- *
- */
-SVGFilterPrimitiveStandardAttributes::~SVGFilterPrimitiveStandardAttributes()
-{
-}
-
-
-/*#########################################################################
-## SVGEvent
-#########################################################################*/
-
-/**
- *
- */
-SVGEvent:SVGEvent()
-{
-}
-
-/**
- *
- */
-SVGEvent:SVGEvent(const SVGEvent &other) : events::Event(other)
-{
-}
-
-/**
- *
- */
-SVGEvent::~SVGEvent()
-{
-}
-
-
-/*#########################################################################
-## SVGZoomEvent
-#########################################################################*/
-
-/**
- *
- */
-SVGRect SVGZoomEvent::getZoomRectScreen()
-{
- return zoomRectScreen;
-}
-
-/**
- *
- */
-double SVGZoomEvent::getPreviousScale()
-{
- return previousScale;
-}
-
-/**
- *
- */
-SVGPoint SVGZoomEvent::getPreviousTranslate()
-{
- return previousTranslate;
-}
-
-/**
- *
- */
-double SVGZoomEvent::getNewScale()
-{
- return newScale;
-}
-
-/**
- *
- */
-SVGPoint SVGZoomEvent::getNewTranslate()
-{
- return newTranslate;
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGZoomEvent::SVGZoomEvent()
-{
-}
-
-/**
- *
- */
-SVGZoomEvent::SVGZoomEvent(const SVGZoomEvent &other) :
- events::Event(other), events::UIEvent(other)
-{
- zoomRectScreen = other.zoomRectScreen;
- previousScale = other.previousScale;
- previousTranslate = other.previousTranslate;
- newScale = other.newScale;
- newTranslate = other.newTranslate;
-}
-
-/**
- *
- */
-SVGZoomEvent::~SVGZoomEvent()
-{
-}
-
-
-/*#########################################################################
-## SVGElementInstance
-#########################################################################*/
-
-
-/**
- *
- */
-SVGElementPtr SVGElementInstance::getCorrespondingElement()
-{
- return correspondingElement;
-}
-
-/**
- *
- */
-SVGUseElementPtr SVGElementInstance::getCorrespondingUseElement()
-{
- return correspondingUseElement;
-}
-
-/**
- *
- */
-SVGElementInstance SVGElementInstance::getParentNode()
-{
- SVGElementInstance ret;
- return ret;
-}
-
-/**
- * Since we are using stack types and this is a circular definition,
- * we will instead implement this as a global function below:
- * SVGElementInstanceList getChildNodes(const SVGElementInstance instance);
- */
-//SVGElementInstanceList getChildNodes();
-
-/**
- *
- */
-SVGElementInstance SVGElementInstance::getFirstChild()
-{
- SVGElementInstance ret;
- return ret;
-}
-
-/**
- *
- */
-SVGElementInstance SVGElementInstance::getLastChild()
-{
- SVGElementInstance ret;
- return ret;
-}
-
-/**
- *
- */
-SVGElementInstance SVGElementInstance::getPreviousSibling()
-{
- SVGElementInstance ret;
- return ret;
-}
-
-/**
- *
- */
-SVGElementInstance SVGElementInstance::getNextSibling()
-{
- SVGElementInstance ret;
- return ret;
-}
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGElementInstance::SVGElementInstance()
-{
-}
-
-/**
- *
- */
-SVGElementInstance::SVGElementInstance(const SVGElementInstance &other)
- : events::EventTarget(other)
-{
-}
-
-/**
- *
- */
-SVGElementInstance::~SVGElementInstance()
-{
-}
-
-
-/*#########################################################################
-## SVGElementInstanceList
-#########################################################################*/
-
-/**
- *
- */
-unsigned long SVGElementInstanceList::getLength()
-{ return items.size(); }
-
-/**
- *
- */
-SVGElementInstance SVGElementInstanceList::item(unsigned long index)
-{
- if (index >= items.size())
- {
- SVGElementInstance ret;
- return ret;
- }
- return items[index];
-}
-
-/**
- * This static method replaces the circular definition of:
- * SVGElementInstanceList SVGElementInstance::getChildNodes()
- *
- */
-static SVGElementInstanceList SVGElementInstanceList::getChildNodes(const SVGElementInstance &/*instance*/)
-{
- SVGElementInstanceList list;
- return list;
-}
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGElementInstanceList::SVGElementInstanceList()
-{
-}
-
-/**
- *
- */
-SVGElementInstanceList::SVGElementInstanceList(const SVGElementInstanceList &other)
-{
- items = other.items;
-}
-
-/**
- *
- */
-SVGElementInstanceList::~SVGElementInstanceList()
-{
-}
-
-
-
-
-/*#########################################################################
-## SVGValue
-#########################################################################*/
-
-/**
- * Constructor
- */
-SVGValue()
-{
- init();
-}
-
-/**
- * Copy constructor
- */
-SVGValue(const SVGValue &other)
-{
- assign(other);
-}
-
-/**
- * Assignment
- */
-SVGValue &operator=(const SVGValue &other)
-{
- assign(other);
- return *this;
-}
-
-/**
- *
- */
-~SVGValue()
-{
-}
-
-//###########################
-// TYPES
-//###########################
-
-/**
- * Angle
- */
-SVGValue::SVGValue(const SVGAngle &v)
-{
- type = SVG_ANGLE;
- angleval = v;
-}
-
-SVGAngle SVGValue::angleValue()
-{
- return algleval;
-}
-
-/**
- * Boolean
- */
-SVGValue::SVGValue(bool v)
-{
- type = SVG_BOOLEAN;
- bval = v;
-}
-
-bool SVGValue::booleanValue()
-{
- return bval;
-}
-
-
-/**
- * Enumeration
- */
-SVGValue::SVGValue(short v)
-{
- type = SVG_ENUMERATION;
- eval = v;
-}
-
-short SVGValue::enumerationValue()
-{
- return eval;
-}
-
-/**
- * Integer
- */
-SVGValue::SVGValue(long v)
-{
- type = SVG_INTEGER;
- ival = v;
-}
-
-long SVGValue::integerValue()
-{
- return ival;
-}
-
-/**
- * Length
- */
-SVGValue::SVGValue(const SVGLength &v)
-{
- type = SVG_LENGTH;
- lengthval = v;
-}
-
-SVGLength SVGValue::lengthValue()
-{
- return lengthval;
-}
-
-/**
- * Number
- */
-SVGValue::SVGValue(double v)
-{
- type = SVG_NUMBER;
- dval = v;
-}
-
-double SVGValue::numberValue()
-{
- return dval;
-}
-
-/**
- * Points
- */
-SVGValue::SVGValue(const SVGPointList &v)
-{
- type = SVG_POINTS;
- plistval = v;
-}
-
-SVGPointList SVGValue::pointListValue()
-{
- return plistval;
-}
-
-
-/**
- * PreserveAspectRatio
- */
-SVGValue::SVGValue(const SVGPreserveAspectRatio &v)
-{
- type = SVG_PRESERVE_ASPECT_RATIO;
- parval = v;
-}
-
-SVGPreserveAspectRatio SVGValue::preserveAspectRatioValue()
-{
- return parval;
-}
-
-/**
- * Rect
- */
-SVGValue::SVGValue(const SVGRect &v)
-{
- type = SVG_RECT;
- rectval = v;
-}
-
-SVGRect SVGValue::rectValue()
-{
- return rectval;
-}
-
-/**
- * String
- */
-SVGValue::SVGValue(const DOMString &v)
-{
- type = SVG_STRING;
- sval = v;
-}
-
-DOMString SVGValue::stringValue()
-{
- return sval;
-}
-
-
-void SVGValue::init()
-{
- type = SVG_NUMBER;
- bval = false;
- eval = 0;
- ival = 0;
- dval = 0.0;
-}
-
-void SVGValue::assign(const SVGValue &other)
-{
- type = other.type;
- angleval = other.angleval;
- bval = other.bval;
- eval = other.eval;
- ival = other.ival;
- lengthval = other.lengthval;
- dval = other.dval;
- parval = other.parval;
- rval = other.rval;
- sval = other.sval;
-}
-
-
-/*#########################################################################
-## SVGTransformList
-#########################################################################*/
-
-
-/*#########################################################################
-## SVGStringList
-#########################################################################*/
-
-
-/*#########################################################################
-## SVGNumberList
-#########################################################################*/
-
-
-/*#########################################################################
-## SVGLengthList
-#########################################################################*/
-
-
-/*#########################################################################
-## SVGPointList
-#########################################################################*/
-
-/*#########################################################################
-## SVGPathSegList
-#########################################################################*/
-
-/*#########################################################################
-## SVGValueList
-#########################################################################*/
-
-
-/**
- *
- */
-unsigned long SVGValueList::getNumberOfItems()
-{
- return items.size();
-}
-
-/**
- *
- */
-void SVGValueList::clear() throw (DOMException)
-{
- items.clear();
-}
-
-/**
- *
- */
-SVGValue SVGValueList::initialize(const SVGValue& newItem)
- throw (DOMException, SVGException)
-{
- items.clear();
- items.push_back(newItem);
- return newItem;
-}
-
-/**
- *
- */
-SVGValue SVGValueList::getItem(unsigned long index) throw (DOMException)
-{
- if (index >= items.size())
- return "";
- return items[index];
-}
-
-/**
- *
- */
-SVGValue SVGValueList::insertItemBefore(const SVGValue& newItem,
- unsigned long index)
- throw (DOMException, SVGException)
-{
- if (index>=items.size())
- {
- items.push_back(newItem);
- }
- else
- {
- std::vector<SVGValue>::iterator iter = items.begin() + index;
- items.insert(iter, newItem);
- }
- return newItem;
-}
-
-/**
- *
- */
-SVGValue SVGValueList::replaceItem (const SVGValue& newItem,
- unsigned long index)
- throw (DOMException, SVGException)
-{
- if (index>=items.size())
- return "";
- std::vector<SVGValue>::iterator iter = items.begin() + index;
- *iter = newItem;
- return newItem;
-}
-
-/**
- *
- */
-SVGValue SVGValueList::removeItem (unsigned long index)
- throw (DOMException)
-{
- if (index>=items.size())
- return "";
- std::vector<SVGValue>::iterator iter = items.begin() + index;
- SVGValue oldval = *iter;
- items.erase(iter);
- return oldval;
-}
-
-/**
- *
- */
-SVGValue SVGValueList::appendItem (const SVGValue& newItem)
- throw (DOMException, SVGException)
-{
- items.push_back(newItem);
- return newItem;
-}
-
-
-/**
- * Matrix
- */
-SVGValue SVGValueList::createSVGTransformFromMatrix(const SVGValue &matrix)
-{
-}
-
-/**
- * Matrix
- */
-SVGValue SVGValueList::consolidate()
-{
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGValueList::SVGValueList()
-{
-}
-
-/**
- *
- */
-SVGValueList::SVGValueList(const SVGValueList &other)
-{
- items = other.items;
-}
-
-/**
- *
- */
-SVGValueList::~SVGValueList()
-{
-}
-
-
-
-
-
-/*#########################################################################
-## SVGAnimatedValue
-#########################################################################*/
-
-
-
-
-/**
- *
- */
-SVGValue &SVGAnimatedValue::getBaseVal()
-{
- return baseVal;
-}
-
-/**
- *
- */
-void SVGAnimatedValue::setBaseVal(const SVGValue &val) throw (DOMException)
-{
- baseVal = val;
-}
-
-/**
- *
- */
-SVGValue &SVGAnimatedValue::getAnimVal()
-{
- return animVal;
-}
-
-
-/**
- *
- */
-SVGAnimatedValue::SVGAnimatedValue()
-{
- init();
-}
-
-
-/**
- *
- */
-SVGAnimatedValue::SVGAnimatedValue(const SVGValue &v)
-{
- init();
- baseVal = v;
-}
-
-
-/**
- *
- */
-SVGAnimatedValue::SVGAnimatedValue(const SVGValue &bv, const SVGValue &av)
-{
- init();
- baseVal = bv;
- animVal = av;
-}
-
-
-/**
- *
- */
-SVGAnimatedValue::SVGAnimatedValue(const SVGAnimatedValue &other)
-{
- assign(other);
-}
-
-
-/**
- *
- */
-SVGAnimatedValue &SVGAnimatedValue::operator=(const SVGAnimatedValue &other)
-{
- assign(other);
- return *this;
-}
-
-
-/**
- *
- */
-SVGAnimatedValue &SVGAnimatedValue::operator=(const SVGValue &bv)
-{
- init();
- baseVal = bv;
-}
-
-
-/**
- *
- */
-SVGAnimatedValue::~SVGAnimatedValue()
-{
-}
-
-
-
-void SVGAnimatedValue::init()
-{
-}
-
-
-void SVGAnimatedValue::assign(const SVGAnimatedValue &other)
-{
- baseVal = other.baseVal;
- animVal = other.animVal;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-//########################################################################
-//########################################################################
-//########################################################################
-//# D O M
-//########################################################################
-//########################################################################
-//########################################################################
-
-
-
-
-
-
-
-/*#########################################################################
-## SVGElement
-#########################################################################*/
-
-
-//####################################################################
-//# BASE METHODS FOR SVGElement
-//####################################################################
-
-/**
- * Get the value of the id attribute on the given element.
- */
-DOMString getId()
-{
-}
-
-/**
- * Set the value of the id attribute on the given element.
- */
-void setId(const DOMString &val) throw (DOMException)
-{
-}
-
-
-/**
- * Corresponds to attribute xml:base on the given element.
- */
-DOMString getXmlBase()
-{
-}
-
-
-/**
- * Corresponds to attribute xml:base on the given element.
- */
-void setXmlBase(const DOMString &val) throw (DOMException)
-{
-}
-
-/**
- * The nearest ancestor 'svg' element. Null if the given element is the
- * outermost 'svg' element.
- */
-SVGElementPtr getOwnerSVGElement()
-{
-}
-
-/**
- * The element which established the current viewport. Often, the nearest
- * ancestor 'svg' element. Null if the given element is the outermost 'svg'
- * element.
- */
-SVGElementPtr getViewportElement()
-{
-}
-
-
-//####################################################################
-//####################################################################
-//# I N T E R F A C E S
-//####################################################################
-//####################################################################
-
-//####################################################################
-//# SVGAngle
-//####################################################################
-
-/**
- *
- */
-unsigned short getUnitType()
-{
-}
-
-/**
- *
- */
-double getValue()
-{
-}
-
-/**
- *
- */
-void setValue(double val) throw (DOMException)
-{
-}
-
-/**
- *
- */
-double getValueInSpecifiedUnits()
-{
-}
-
-/**
- *
- */
-void setValueInSpecifiedUnits(double /*val*/) throw (DOMException)
-{
-}
-
-/**
- *
- */
-DOMString getValueAsString()
-{
-}
-
-/**
- *
- */
-void setValueAsString(const DOMString &/*val*/) throw (DOMException)
-{
-}
-
-
-/**
- *
- */
-void newValueSpecifiedUnits(unsigned short /*unitType*/,
- double /*valueInSpecifiedUnits*/)
-{
-}
-
-/**
- *
- */
-void convertToSpecifiedUnits(unsigned short /*unitType*/)
-{
-}
-
-//####################################################################
-//## The following animated types are rolled up into a single
-//## SVGAnimatedValue interface
-//####################################################################
-
-//####################################################################
-//## SVGAnimatedAngle
-//####################################################################
-
-//####################################################################
-//## SVGAnimatedBoolean
-//####################################################################
-
-//####################################################################
-//## SVGAnimatedEnumeration
-//####################################################################
-
-//####################################################################
-//## SVGAnimatedInteger
-//####################################################################
-
-//####################################################################
-//## SVGAnimatedLength
-//####################################################################
-
-//####################################################################
-//## SVGAnimatedLengthList
-//####################################################################
-
-//####################################################################
-//## SVGAnimatedNumber
-//####################################################################
-
-//####################################################################
-//## SVGAnimatedNumberList
-//####################################################################
-
-//####################################################################
-//## SVGAnimatedPathData
-//####################################################################
-
-//####################################################################
-//## SVGAnimatedPoints
-//####################################################################
-
-//####################################################################
-//## SVGAnimatedPreserveAspectRatio
-//####################################################################
-
-//####################################################################
-//## SVGAnimatedRect
-//####################################################################
-
-//####################################################################
-//## SVGAnimatedString
-//####################################################################
-
-//####################################################################
-//## SVGAnimatedTransformList
-//####################################################################
-
-//####################################################################
-//# SVGAnimatedValue
-//####################################################################
-
-/**
- *
- */
-SVGValue &getBaseVal()
-{
- return baseVal();
-}
-
-/**
- *
- */
-void setBaseVal(const SVGValue &val) throw (DOMException)
-{
- baseVal = val;
-}
-
-/**
- *
- */
-SVGValue &getAnimVal()
-{
- return animVal;
-}
-
-
-
-//####################################################################
-//# SVGColor
-//####################################################################
-
-/**
- * From CSSValue
- * A code defining the type of the value as defined above.
- */
-unsigned short getCssValueType()
-{
-}
-
-/**
- * From CSSValue
- * A string representation of the current value.
- */
-DOMString getCssText()
-{
-}
-
-/**
- * From CSSValue
- * A string representation of the current value.
- * Note that setting implies parsing.
- */
-void setCssText(const DOMString &val) throw (dom::DOMException)
-{
-}
-
-
-/**
- *
- */
-unsigned short getColorType()
-{
-}
-
-/**
- *
- */
-css::RGBColor getRgbColor()
-{
-}
-
-/**
- *
- */
-SVGICCColor getIccColor()
-{
-}
-
-
-/**
- *
- */
-void setRGBColor(const DOMString& /*rgbColor*/) throw (SVGException)
-{
-}
-
-/**
- *
- */
-void setRGBColorICCColor(const DOMString& /*rgbColor*/,
- const DOMString& /*iccColor*/)
- throw (SVGException)
-{
-}
-
-/**
- *
- */
-void setColor(unsigned short /*colorType*/,
- const DOMString& /*rgbColor*/,
- const DOMString& /*iccColor*/)
- throw (SVGException)
-{
-}
-
-//####################################################################
-//# SVGCSSRule
-//####################################################################
-
-/**
- * From CSSRule
- * The type of the rule, as defined above. The expectation is that
- * binding-specific casting methods can be used to cast down from an instance of
- * the CSSRule interface to the specific derived interface implied by the type.
- */
-unsigned short getType()
-{
-}
-
-/**
- * From CSSRule
- * The parsable textual representation of the rule. This reflects the current
- * state of the rule and not its initial value.
- */
-DOMString getCssText()
-{
-}
-
-/**
- * From CSSRule
- * The parsable textual representation of the rule. This reflects the current
- * state of the rule and not its initial value.
- * Note that setting involves reparsing.
- */
-void setCssText(const DOMString &val) throw (DOMException)
-{
-}
-
-/**
- * From CSSRule
- * The style sheet that contains this rule.
- */
-css::CSSStyleSheet *getParentStyleSheet()
-{
-}
-
-/**
- * From CSSRule
- * If this rule is contained inside another rule(e.g. a style rule inside an
- * @media block), this is the containing rule. If this rule is not nested inside
- * any other rules, this returns null.
- */
-css::CSSRule *getParentRule()
-{
-}
-
-//####################################################################
-//# SVGExternalResourcesRequired
-//####################################################################
-
-/**
- *
- */
-SVGAnimatedBoolean getExternalResourcesRequired()
-{
-}
-
-//####################################################################
-//# SVGFitToViewBox
-//####################################################################
-
-/**
- *
- */
-SVGAnimatedRect getViewBox()
-{
-}
-
-/**
- *
- */
-SVGAnimatedPreserveAspectRatio getPreserveAspectRatio()
-{
-}
-
-//####################################################################
-//# SVGICCColor
-//####################################################################
-
-/**
- *
- */
-DOMString getColorProfile()
-{
-}
-
-/**
- *
- */
-void setColorProfile(const DOMString &val) throw (DOMException)
-{
-}
-
-/**
- *
- */
-SVGNumberList &getColors()
-{
-}
-
-//####################################################################
-//# SVGLangSpace
-//####################################################################
-
-/**
- *
- */
-DOMString getXmllang()
-{
-}
-
-/**
- *
- */
-void setXmllang(const DOMString &val) throw (DOMException)
-{
-}
-
-/**
- *
- */
-DOMString getXmlspace()
-{
-}
-
-/**
- *
- */
-void setXmlspace(const DOMString &val) throw (DOMException)
-{
-}
-
-//####################################################################
-//# SVGLength
-//####################################################################
-
-/**
- *
- */
-unsigned short getUnitType()
-{
-}
-
-/**
- *
- */
-double getValue()
-{
-}
-
-/**
- *
- */
-void setValue(double val) throw (DOMException)
-{
-}
-
-/**
- *
- */
-double getValueInSpecifiedUnits()
-{
-}
-
-/**
- *
- */
-void setValueInSpecifiedUnits(double /*val*/) throw (DOMException)
-{
-}
-
-/**
- *
- */
-DOMString getValueAsString()
-{
-}
-
-/**
- *
- */
-void setValueAsString(const DOMString& /*val*/) throw (DOMException)
-{
-}
-
-
-/**
- *
- */
-void newValueSpecifiedUnits(unsigned short /*unitType*/, double /*val*/)
-{
-}
-
-/**
- *
- */
-void convertToSpecifiedUnits(unsigned short /*unitType*/)
-{
-}
-
-
-//####################################################################
-//## SVGLengthList - see SVGValueList
-//####################################################################
-
-
-
-//####################################################################
-//# SVGLocatable
-//####################################################################
-
-/**
- *
- */
-SVGElementPtr getNearestViewportElement()
-{
-}
-
-/**
- *
- */
-SVGElement *getFarthestViewportElement()
-{
-}
-
-/**
- *
- */
-SVGRect getBBox()
-{
-}
-
-/**
- *
- */
-SVGMatrix getCTM()
-{
-}
-
-/**
- *
- */
-SVGMatrix getScreenCTM()
-{
-}
-
-/**
- *
- */
-SVGMatrix getTransformToElement(const SVGElement &/*element*/)
- throw (SVGException)
-{
-}
-
-//####################################################################
-//# SVGNumber
-//####################################################################
-
-/**
- *
- */
-double getValue()
-{
-}
-
-/**
- *
- */
-void setValue(double val) throw (DOMException)
-{
-}
-
-//####################################################################
-//# SVGNumberList - see SVGValueList
-//####################################################################
-
-
-//####################################################################
-//# SVGRect
-//####################################################################
-
-/**
- *
- */
-double getX()
-{
-}
-
-/**
- *
- */
-void setX(double val) throw (DOMException)
-{
-}
-
-/**
- *
- */
-double getY()
-{
-}
-
-/**
- *
- */
-void setY(double val) throw (DOMException)
-{
-}
-
-/**
- *
- */
-double getWidth()
-{
-}
-
-/**
- *
- */
-void setWidth(double val) throw (DOMException)
-{
-}
-
-/**
- *
- */
-double getHeight()
-{
-}
-
-/**
- *
- */
-void setHeight(double val) throw (DOMException)
-{
-}
-
-//####################################################################
-//# SVGRenderingIntent
-//####################################################################
-
-//####################################################################
-//# SVGStringList - see SVGValueList
-//####################################################################
-
-//####################################################################
-//# SVGStylable
-//####################################################################
-
-/**
- *
- */
-SVGAnimatedString getClassName()
-{
-}
-
-/**
- *
- */
-css::CSSStyleDeclaration getStyle()
-{
-}
-
-/**
- *
- */
-css::CSSValue getPresentationAttribute(const DOMString& /*name*/)
-{
-}
-
-//####################################################################
-//# SVGTests
-//####################################################################
-
-/**
- *
- */
-SVGValueList &getRequiredFeatures()
-{
-}
-
-/**
- *
- */
-SVGValueList &getRequiredExtensions()
-{
-}
-
-/**
- *
- */
-SVGValueList &getSystemLanguage()
-{
-}
-
-/**
- *
- */
-bool hasExtension(const DOMString& /*extension*/)
-{
-}
-
-//####################################################################
-//# SVGTransformable
-//####################################################################
-
-/**
- *
- */
-SVGAnimatedList &getTransform()
-{
-}
-
-//####################################################################
-//# SVGUnitTypes
-//####################################################################
-
-//####################################################################
-//# SVGURIReference
-//####################################################################
-
-/**
- *
- */
-SVGAnimatedValue getHref()
-{
-}
-
-//####################################################################
-//## SVGValueList - consolidation of other lists
-//####################################################################
-
-/**
- *
- */
-unsigned long SVGElement::getNumberOfItems()
-{
- return items.size();
-}
-
-/**
- *
- */
-void SVGElement::clear() throw (DOMException)
-{
- items.clear();
-}
-
-/**
- *
- */
-SVGValue SVGElement::initialize(const SVGValue& newItem)
- throw (DOMException, SVGException)
-{
- items.clear();
- items.push_back(newItem);
- return newItem;
-}
-
-/**
- *
- */
-SVGValue SVGElement::getItem(unsigned long index) throw (DOMException)
-{
- if (index >= items.size())
- return "";
- return items[index];
-}
-
-/**
- *
- */
-SVGValue SVGElement::insertItemBefore(const SVGValue& newItem,
- unsigned long index)
- throw (DOMException, SVGException)
-{
- if (index>=items.size())
- {
- items.push_back(newItem);
- }
- else
- {
- std::vector<SVGValue>::iterator iter = items.begin() + index;
- items.insert(iter, newItem);
- }
- return newItem;
-}
-
-/**
- *
- */
-SVGValue SVGElement::replaceItem (const SVGValue& newItem,
- unsigned long index)
- throw (DOMException, SVGException)
-{
- if (index>=items.size())
- return "";
- std::vector<SVGValue>::iterator iter = items.begin() + index;
- *iter = newItem;
- return newItem;
-}
-
-/**
- *
- */
-SVGValue SVGElement::removeItem (unsigned long index)
- throw (DOMException)
-{
- if (index>=items.size())
- return "";
- std::vector<SVGValue>::iterator iter = items.begin() + index;
- SVGValue oldval = *iter;
- items.erase(iter);
- return oldval;
-}
-
-/**
- *
- */
-SVGValue SVGElement::appendItem (const SVGValue& newItem)
- throw (DOMException, SVGException)
-{
- items.push_back(newItem);
- return newItem;
-}
-
-
-/**
- * Matrix
- */
-SVGValue SVGElement::createSVGTransformFromMatrix(const SVGValue &matrix)
-{
-}
-
-/**
- * Matrix
- */
-SVGValue SVGElement::consolidate()
-{
-}
-
-
-//####################################################################
-//# SVGViewSpec
-//####################################################################
-
-/**
- *
- */
-//SVGTransformList getTransform()
-//{
-//}
-
-/**
- *
- */
-SVGElementPtr getViewTarget()
-{
-}
-
-/**
- *
- */
-DOMString getViewBoxString()
-{
-}
-
-/**
- *
- */
-DOMString getPreserveAspectRatioString()
-{
-}
-
-/**
- *
- */
-DOMString getTransformString()
-{
-}
-
-/**
- *
- */
-DOMString getViewTargetString()
-{
-}
-
-//####################################################################
-//# SVGZoomAndPan
-//####################################################################
-
-/**
- *
- */
-unsigned short getZoomAndPan()
-{
-}
-
-/**
- *
- */
-void setZoomAndPan(unsigned short val) throw (DOMException)
-{
-}
-
-//####################################################################
-//####################################################################
-//# E L E M E N T S
-//####################################################################
-//####################################################################
-
-//####################################################################
-//# SVGAElement
-//####################################################################
-
-
-/**
- *
- */
-SVGAnimatedString getTarget()
-{
-}
-
-
-
-//####################################################################
-//# SVGAltGlyphElement
-//####################################################################
-
-
-/**
- * Get the attribute glyphRef on the given element.
- */
-DOMString getGlyphRef()
-{
-}
-
-/**
- * Set the attribute glyphRef on the given element.
- */
-void setGlyphRef(const DOMString &val) throw (DOMException)
-{
-}
-
-/**
- * Get the attribute format on the given element.
- */
-DOMString getFormat()
-{
-}
-
-/**
- * Set the attribute format on the given element.
- */
-void setFormat(const DOMString &val) throw (DOMException)
-{
-}
-
-
-//####################################################################
-//# SVGAltGlyphDefElement
-//####################################################################
-
-//####################################################################
-//# SVGAltGlyphItemElement
-//####################################################################
-
-
-//####################################################################
-//# SVGAnimateElement
-//####################################################################
-
-
-//####################################################################
-//# SVGAnimateColorElement
-//####################################################################
-
-//####################################################################
-//# SVGAnimateMotionElement
-//####################################################################
-
-
-//####################################################################
-//# SVGAnimateTransformElement
-//####################################################################
-
-
-//####################################################################
-//# SVGAnimationElement
-//####################################################################
-
-
-/**
- *
- */
-SVGElementPtr getTargetElement()
-{
-}
-
-/**
- *
- */
-double getStartTime()
-{
-}
-
-/**
- *
- */
-double getCurrentTime()
-{
-}
-
-/**
- *
- */
-double getSimpleDuration() throw (DOMException)
-{
-}
-
-
-
-//####################################################################
-//# SVGCircleElement
-//####################################################################
-
-/**
- * Corresponds to attribute cx on the given 'circle' element.
- */
-SVGAnimatedLength getCx()
-{
-}
-
-/**
- * Corresponds to attribute cy on the given 'circle' element.
- */
-SVGAnimatedLength getCy()
-{
-}
-
-/**
- * Corresponds to attribute r on the given 'circle' element.
- */
-SVGAnimatedLength getR()
-{
-}
-
-//####################################################################
-//# SVGClipPathElement
-//####################################################################
-
-
-/**
- * Corresponds to attribute clipPathUnits on the given 'clipPath' element.
- * Takes one of the constants defined in SVGUnitTypes.
- */
-SVGAnimatedEnumeration getClipPathUnits()
-{
-}
-
-
-
-//####################################################################
-//# SVGColorProfileElement
-//####################################################################
-
-
-/**
- * Get the attribute local on the given element.
- */
-DOMString getLocal()
-{
-}
-
-/**
- * Set the attribute local on the given element.
- */
-void setLocal(const DOMString &val) throw (DOMException)
-{
-}
-
-/**
- * Get the attribute name on the given element.
- */
-DOMString getName()
-{
-}
-
-/**
- * Set the attribute name on the given element.
- */
-void setName(const DOMString &val) throw (DOMException)
-{
-}
-
-/**
- * Set the attribute rendering-intent on the given element.
- * The type of rendering intent, identified by one of the
- * SVGRenderingIntent constants.
- */
-unsigned short getRenderingIntent()
-{
-}
-
-/**
- * Get the attribute rendering-intent on the given element.
- */
-void setRenderingIntent(unsigned short val) throw (DOMException)
-{
-}
-
-
-//####################################################################
-//# SVGComponentTransferFunctionElement
-//####################################################################
-
-/**
- * Corresponds to attribute type on the given element. Takes one
- * of the Component Transfer Types.
- */
-SVGAnimatedEnumeration getType()
-{
-}
-
-/**
- * Corresponds to attribute tableValues on the given element.
- */
-SVGAnimatedNumberList getTableValues()
-{
-}
-
-/**
- * Corresponds to attribute slope on the given element.
- */
-SVGAnimatedNumber getSlope()
-{
-}
-
-/**
- * Corresponds to attribute intercept on the given element.
- */
-SVGAnimatedNumber getIntercept()
-{
-}
-
-/**
- * Corresponds to attribute amplitude on the given element.
- */
-SVGAnimatedNumber getAmplitude()
-{
-}
-
-/**
- * Corresponds to attribute exponent on the given element.
- */
-SVGAnimatedNumber getExponent()
-{
-}
-
-/**
- * Corresponds to attribute offset on the given element.
- */
-SVGAnimatedNumber getOffset()
-{
-}
-
-//####################################################################
-//# SVGCursorElement
-//####################################################################
-
-/**
- *
- */
-SVGAnimatedLength getX()
-{
-}
-
-/**
- *
- */
-SVGAnimatedLength getY()
-{
-}
-
-
-//####################################################################
-//# SVGDefinitionSrcElement
-//####################################################################
-
-//####################################################################
-//# SVGDefsElement
-//####################################################################
-
-//####################################################################
-//# SVGDescElement
-//####################################################################
-
-//####################################################################
-//# SVGEllipseElement
-//####################################################################
-
-/**
- * Corresponds to attribute cx on the given 'ellipse' element.
- */
-SVGAnimatedLength getCx()
-{
-}
-
-/**
- * Corresponds to attribute cy on the given 'ellipse' element.
- */
-SVGAnimatedLength getCy()
-{
-}
-
-/**
- * Corresponds to attribute rx on the given 'ellipse' element.
- */
-SVGAnimatedLength getRx()
-{
-}
-
-/**
- * Corresponds to attribute ry on the given 'ellipse' element.
- */
-SVGAnimatedLength getRy()
-{
-}
-
-
-//####################################################################
-//# SVGFEBlendElement
-//####################################################################
-
-/**
- * Corresponds to attribute in on the given 'feBlend' element.
- */
-SVGAnimatedString getIn1()
-{
-}
-
-/**
- * Corresponds to attribute in2 on the given 'feBlend' element.
- */
-SVGAnimatedString getIn2()
-{
-}
-
-/**
- * Corresponds to attribute mode on the given 'feBlend' element.
- * Takes one of the Blend Mode Types.
- */
-SVGAnimatedEnumeration getMode()
-{
-}
-
-
-//####################################################################
-//# SVGFEColorMatrixElement
-//####################################################################
-
-/**
- * Corresponds to attribute in on the given 'feColorMatrix' element.
- */
-SVGAnimatedString getIn1()
-{
-}
-
-/**
- * Corresponds to attribute type on the given 'feColorMatrix' element.
- * Takes one of the Color Matrix Types.
- */
-SVGAnimatedEnumeration getType()
-{
-}
-
-/**
- * Corresponds to attribute values on the given 'feColorMatrix' element.
- * Provides access to the contents of the values attribute.
- */
-SVGAnimatedNumberList getValues()
-{
-}
-
-
-//####################################################################
-//# SVGFEComponentTransferElement
-//####################################################################
-
-
-/**
- * Corresponds to attribute in on the given 'feComponentTransfer' element.
- */
-SVGAnimatedString getIn1()
-{
-}
-
-//####################################################################
-//# SVGFECompositeElement
-//####################################################################
-
-/**
- * Corresponds to attribute in on the given 'feComposite' element.
- */
-SVGAnimatedString getIn1()
-{
-}
-
-/**
- * Corresponds to attribute in2 on the given 'feComposite' element.
- */
-SVGAnimatedString getIn2()
-{
-}
-
-/**
- * Corresponds to attribute operator on the given 'feComposite' element.
- * Takes one of the Composite Operators.
- */
-SVGAnimatedEnumeration getOperator()
-{
-}
-
-/**
- * Corresponds to attribute k1 on the given 'feComposite' element.
- */
-SVGAnimatedNumber getK1()
-{
-}
-
-/**
- * Corresponds to attribute k2 on the given 'feComposite' element.
- */
-SVGAnimatedNumber getK2()
-{
-}
-
-/**
- * Corresponds to attribute k3 on the given 'feComposite' element.
- */
-SVGAnimatedNumber getK3()
-{
-}
-
-/**
- * Corresponds to attribute k4 on the given 'feComposite' element.
- */
-SVGAnimatedNumber getK4()
-{
-}
-
-
-//####################################################################
-//# SVGFEConvolveMatrixElement
-//####################################################################
-
-
-/**
- * Corresponds to attribute order on the given 'feConvolveMatrix' element.
- */
-SVGAnimatedInteger getOrderX()
-{
-}
-
-/**
- * Corresponds to attribute order on the given 'feConvolveMatrix' element.
- */
-SVGAnimatedInteger getOrderY()
-{
-}
-
-/**
- * Corresponds to attribute kernelMatrix on the given element.
- */
-SVGAnimatedNumberList getKernelMatrix()
-{
-}
-
-/**
- * Corresponds to attribute divisor on the given 'feConvolveMatrix' element.
- */
-SVGAnimatedNumber getDivisor()
-{
-}
-
-/**
- * Corresponds to attribute bias on the given 'feConvolveMatrix' element.
- */
-SVGAnimatedNumber getBias()
-{
-}
-
-/**
- * Corresponds to attribute targetX on the given 'feConvolveMatrix' element.
- */
-SVGAnimatedInteger getTargetX()
-{
-}
-
-/**
- * Corresponds to attribute targetY on the given 'feConvolveMatrix' element.
- */
-SVGAnimatedInteger getTargetY()
-{
-}
-
-/**
- * Corresponds to attribute edgeMode on the given 'feConvolveMatrix'
- * element. Takes one of the Edge Mode Types.
- */
-SVGAnimatedEnumeration getEdgeMode()
-{
-}
-
-/**
- * Corresponds to attribute kernelUnitLength on the
- * given 'feConvolveMatrix' element.
- */
-SVGAnimatedLength getKernelUnitLengthX()
-{
-}
-
-/**
- * Corresponds to attribute kernelUnitLength on the given
- * 'feConvolveMatrix' element.
- */
-SVGAnimatedLength getKernelUnitLengthY()
-{
-}
-
-/**
- * Corresponds to attribute preserveAlpha on the
- * given 'feConvolveMatrix' element.
- */
-SVGAnimatedBoolean getPreserveAlpha()
-{
-}
-
-
-
-//####################################################################
-//# SVGFEDiffuseLightingElement
-//####################################################################
-
-
-/**
- * Corresponds to attribute in on the given 'feDiffuseLighting' element.
- */
-SVGAnimatedString getIn1()
-{
-}
-
-/**
- * Corresponds to attribute surfaceScale on the given
- * 'feDiffuseLighting' element.
- */
-SVGAnimatedNumber getSurfaceScale()
-{
-}
-
-/**
- * Corresponds to attribute diffuseConstant on the given
- * 'feDiffuseLighting' element.
- */
-SVGAnimatedNumber getDiffuseConstant()
-{
-}
-
-/**
- * Corresponds to attribute kernelUnitLength on the given
- * 'feDiffuseLighting' element.
- */
-SVGAnimatedNumber getKernelUnitLengthX()
-{
-}
-
-/**
- * Corresponds to attribute kernelUnitLength on the given
- * 'feDiffuseLighting' element.
- */
-SVGAnimatedNumber getKernelUnitLengthY()
-{
-}
-
-
-
-
-//####################################################################
-//# SVGFEDisplacementMapElement
-//####################################################################
-
-/**
- *
- */
-SVGAnimatedString getIn1()
-{
-}
-
-/**
- *
- */
-SVGAnimatedString getIn2()
-{
-}
-
-
-/**
- *
- */
-SVGAnimatedNumber getScale()
-{
-}
-
-/**
- *
- */
-SVGAnimatedEnumeration getXChannelSelector()
-{
-}
-
-/**
- *
- */
-SVGAnimatedEnumeration getYChannelSelector()
-{
-}
-
-//####################################################################
-//# SVGFEDistantLightElement
-//####################################################################
-
-
-/**
- * Corresponds to attribute azimuth on the given 'feDistantLight' element.
- */
-SVGAnimatedNumber getAzimuth()
-{
-}
-
-
-/**
- * Corresponds to attribute elevation on the given 'feDistantLight'
- * element
- */
-SVGAnimatedNumber getElevation()
-{
-}
-
-
-//####################################################################
-//# SVGFEFloodElement
-//####################################################################
-
-
-/**
- *
- */
-SVGAnimatedString getIn1()
-{
-}
-
-
-//####################################################################
-//# SVGFEFuncAElement
-//####################################################################
-
-//####################################################################
-//# SVGFEFuncBElement
-//####################################################################
-
-//####################################################################
-//# SVGFEFuncGElement
-//####################################################################
-
-//####################################################################
-//# SVGFEFuncRElement
-//####################################################################
-
-
-//####################################################################
-//# SVGFEGaussianBlurElement
-//####################################################################
-
-
-/**
- *
- */
-SVGAnimatedString getIn1()
-{
-}
-
-
-/**
- *
- */
-SVGAnimatedNumber getStdDeviationX()
-{
-}
-
-/**
- *
- */
-SVGAnimatedNumber getStdDeviationY()
-{
-}
-
-
-/**
- *
- */
-void setStdDeviation(double stdDeviationX, double stdDeviationY)
-{
-}
-
-
-//####################################################################
-//# SVGFEImageElement
-//####################################################################
-
-
-//####################################################################
-//# SVGFEMergeElement
-//####################################################################
-
-//####################################################################
-//# SVGFEMergeNodeElement
-//####################################################################
-
-//####################################################################
-//# SVGFEMorphologyElement
-//####################################################################
-
-/**
- *
- */
-SVGAnimatedString getIn1()
-{
-}
-
-
-/**
- *
- */
-SVGAnimatedEnumeration getOperator()
-{
-}
-
-/**
- *
- */
-SVGAnimatedLength getRadiusX()
-{
-}
-
-/**
- *
- */
-SVGAnimatedLength getRadiusY()
-{
-}
-
-//####################################################################
-//# SVGFEOffsetElement
-//####################################################################
-
-/**
- *
- */
-SVGAnimatedString getIn1()
-{
-}
-
-/**
- *
- */
-SVGAnimatedLength getDx()
-{
-}
-
-/**
- *
- */
-SVGAnimatedLength getDy()
-{
-}
-
-
-//####################################################################
-//# SVGFEPointLightElement
-//####################################################################
-
-/**
- * Corresponds to attribute x on the given 'fePointLight' element.
- */
-SVGAnimatedNumber getX()
-{
-}
-
-/**
- * Corresponds to attribute y on the given 'fePointLight' element.
- */
-SVGAnimatedNumber getY()
-{
-}
-
-/**
- * Corresponds to attribute z on the given 'fePointLight' element.
- */
-SVGAnimatedNumber getZ()
-{
-}
-
-//####################################################################
-//# SVGFESpecularLightingElement
-//####################################################################
-
-
-/**
- *
- */
-SVGAnimatedString getIn1()
-{
-}
-
-/**
- *
- */
-SVGAnimatedNumber getSurfaceScale()
-{
-}
-
-/**
- *
- */
-SVGAnimatedNumber getSpecularConstant()
-{
-}
-
-/**
- *
- */
-SVGAnimatedNumber getSpecularExponent()
-{
-}
-
-
-//####################################################################
-//# SVGFESpotLightElement
-//####################################################################
-
-/**
- * Corresponds to attribute x on the given 'feSpotLight' element.
- */
-SVGAnimatedNumber getX()
-{
-}
-
-/**
- * Corresponds to attribute y on the given 'feSpotLight' element.
- */
-SVGAnimatedNumber getY()
-{
-}
-
-/**
- * Corresponds to attribute z on the given 'feSpotLight' element.
- */
-SVGAnimatedNumber getZ()
-{
-}
-
-/**
- * Corresponds to attribute pointsAtX on the given 'feSpotLight' element.
- */
-SVGAnimatedNumber getPointsAtX()
-{
-}
-
-/**
- * Corresponds to attribute pointsAtY on the given 'feSpotLight' element.
- */
-SVGAnimatedNumber getPointsAtY()
-{
-}
-
-/**
- * Corresponds to attribute pointsAtZ on the given 'feSpotLight' element.
- */
-SVGAnimatedNumber getPointsAtZ()
-{
-}
-
-/**
- * Corresponds to attribute specularExponent on the
- * given 'feSpotLight' element.
- */
-SVGAnimatedNumber getSpecularExponent()
-{
-}
-
-/**
- * Corresponds to attribute limitingConeAngle on the
- * given 'feSpotLight' element.
- */
-SVGAnimatedNumber getLimitingConeAngle()
-{
-}
-
-
-//####################################################################
-//# SVGFETileElement
-//####################################################################
-
-
-/**
- *
- */
-SVGAnimatedString getIn1()
-{
-}
-
-
-//####################################################################
-//# SVGFETurbulenceElement
-//####################################################################
-
-
-/**
- *
- */
-SVGAnimatedNumber getBaseFrequencyX()
-{
-}
-
-/**
- *
- */
-SVGAnimatedNumber getBaseFrequencyY()
-{
-}
-
-/**
- *
- */
-SVGAnimatedInteger getNumOctaves()
-{
-}
-
-/**
- *
- */
-SVGAnimatedNumber getSeed()
-{
-}
-
-/**
- *
- */
-SVGAnimatedEnumeration getStitchTiles()
-{
-}
-
-/**
- *
- */
-SVGAnimatedEnumeration getType()
-{
-}
-
-
-
-//####################################################################
-//# SVGFilterElement
-//####################################################################
-
-
-/**
- * Corresponds to attribute filterUnits on the given 'filter' element. Takes one
- * of the constants defined in SVGUnitTypes.
- */
-SVGAnimatedEnumeration getFilterUnits()
-{
-}
-
-/**
- * Corresponds to attribute primitiveUnits on the given 'filter' element. Takes
- * one of the constants defined in SVGUnitTypes.
- */
-SVGAnimatedEnumeration getPrimitiveUnits()
-{
-}
-
-/**
- *
- */
-SVGAnimatedLength getX()
-{
-}
-
-/**
- * Corresponds to attribute x on the given 'filter' element.
- */
-SVGAnimatedLength getY()
-{
-}
-
-/**
- * Corresponds to attribute y on the given 'filter' element.
- */
-SVGAnimatedLength getWidth()
-{
-}
-
-/**
- * Corresponds to attribute height on the given 'filter' element.
- */
-SVGAnimatedLength getHeight()
-{
-}
-
-
-/**
- * Corresponds to attribute filterRes on the given 'filter' element.
- * Contains the X component of attribute filterRes.
- */
-SVGAnimatedInteger getFilterResX()
-{
-}
-
-/**
- * Corresponds to attribute filterRes on the given 'filter' element.
- * Contains the Y component(possibly computed automatically)
- * of attribute filterRes.
- */
-SVGAnimatedInteger getFilterResY()
-{
-}
-
-/**
- * Sets the values for attribute filterRes.
- */
-void setFilterRes(unsigned long filterResX, unsigned long filterResY)
-{
-}
-
-
-//####################################################################
-//# SVGFontElement
-//####################################################################
-
-//####################################################################
-//# SVGFontFaceElement
-//####################################################################
-
-//####################################################################
-//# SVGFontFaceFormatElement
-//####################################################################
-
-//####################################################################
-//# SVGFontFaceNameElement
-//####################################################################
-
-//####################################################################
-//# SVGFontFaceSrcElement
-//####################################################################
-
-//####################################################################
-//# SVGFontFaceUriElement
-//####################################################################
-
-//####################################################################
-//# SVGForeignObjectElement
-//####################################################################
-
-/**
- *
- */
-SVGAnimatedLength getX()
-{
-}
-
-/**
- *
- */
-SVGAnimatedLength getY()
-{
-}
-
-/**
- *
- */
-SVGAnimatedLength getWidth()
-{
-}
-
-/**
- *
- */
-SVGAnimatedLength getHeight()
-{
-}
-
-
-
-//####################################################################
-//# SVGGlyphRefElement
-//####################################################################
-
-
-/**
- * Get the attribute glyphRef on the given element.
- */
-DOMString getGlyphRef()
-{
-}
-
-/**
- * Set the attribute glyphRef on the given element.
- */
-void setGlyphRef(const DOMString &val) throw (DOMException)
-{
-}
-
-/**
- * Get the attribute format on the given element.
- */
-DOMString getFormat()
-{
-}
-
-/**
- * Set the attribute format on the given element.
- */
-void setFormat(const DOMString &val) throw (DOMException)
-{
-}
-
-/**
- * Get the attribute x on the given element.
- */
-double getX()
-{
-}
-
-/**
- * Set the attribute x on the given element.
- */
-void setX(double val) throw (DOMException)
-{
-}
-
-/**
- * Get the attribute y on the given element.
- */
-double getY()
-{
-}
-
-/**
- * Set the attribute y on the given element.
- */
-void setY(double val) throw (DOMException)
-{
-}
-
-/**
- * Get the attribute dx on the given element.
- */
-double getDx()
-{
-}
-
-/**
- * Set the attribute dx on the given element.
- */
-void setDx(double val) throw (DOMException)
-{
-}
-
-/**
- * Get the attribute dy on the given element.
- */
-double getDy()
-{
-}
-
-/**
- * Set the attribute dy on the given element.
- */
-void setDy(double val) throw (DOMException)
-{
-}
-
-
-//####################################################################
-//# SVGGradientElement
-//####################################################################
-
-/**
- * Corresponds to attribute gradientUnits on the given element.
- * Takes one of the constants defined in SVGUnitTypes.
- */
-SVGAnimatedEnumeration getGradientUnits()
-{
-}
-
-/**
- * Corresponds to attribute gradientTransform on the given element.
- */
-SVGAnimatedTransformList getGradientTransform()
-{
-}
-
-/**
- * Corresponds to attribute spreadMethod on the given element.
- * One of the Spread Method Types.
- */
-SVGAnimatedEnumeration getSpreadMethod()
-{
-}
-
-
-
-//####################################################################
-//# SVGHKernElement
-//####################################################################
-
-//####################################################################
-//# SVGImageElement
-//####################################################################
-
-/**
- * Corresponds to attribute x on the given 'image' element.
- */
-SVGAnimatedLength getX()
-{
-}
-
-/**
- * Corresponds to attribute y on the given 'image' element.
- */
-SVGAnimatedLength getY()
-{
-}
-
-/**
- * Corresponds to attribute width on the given 'image' element.
- */
-SVGAnimatedLength getWidth()
-{
-}
-
-/**
- * Corresponds to attribute height on the given 'image' element.
- */
-SVGAnimatedLength getHeight()
-{
-}
-
-
-/**
- * Corresponds to attribute preserveAspectRatio on the given element.
- */
-SVGAnimatedPreserveAspectRatio getPreserveAspectRatio()
-{
-}
-
-//####################################################################
-//# SVGLinearGradientElement
-//####################################################################
-
-/**
- * Corresponds to attribute x1 on the given 'linearGradient' element.
- */
-SVGAnimatedLength getX1()
-{
-}
-
-/**
- * Corresponds to attribute y1 on the given 'linearGradient' element.
- */
-SVGAnimatedLength getY1()
-{
-}
-
-/**
- * Corresponds to attribute x2 on the given 'linearGradient' element.
- */
-SVGAnimatedLength getX2()
-{
-}
-
-/**
- * Corresponds to attribute y2 on the given 'linearGradient' element.
- */
-SVGAnimatedLength getY2()
-{
-}
-
-
-
-//####################################################################
-//# SVGLineElement
-//####################################################################
-
-/**
- * Corresponds to attribute x1 on the given 'line' element.
- */
-SVGAnimatedLength getX1()
-{
-}
-
-/**
- * Corresponds to attribute y1 on the given 'line' element.
- */
-SVGAnimatedLength getY1()
-{
-}
-
-/**
- * Corresponds to attribute x2 on the given 'line' element.
- */
-SVGAnimatedLength getX2()
-{
-}
-
-/**
- * Corresponds to attribute y2 on the given 'line' element.
- */
-SVGAnimatedLength getY2()
-{
-}
-
-
-//####################################################################
-//# SVGMarkerElement
-//####################################################################
-
-
-/**
- * Corresponds to attribute refX on the given 'marker' element.
- */
-SVGAnimatedLength getRefX()
-{
-}
-
-/**
- * Corresponds to attribute refY on the given 'marker' element.
- */
-SVGAnimatedLength getRefY()
-{
-}
-
-/**
- * Corresponds to attribute markerUnits on the given 'marker' element.
- * One of the Marker Units Types defined above.
- */
-SVGAnimatedEnumeration getMarkerUnits()
-{
-}
-
-/**
- * Corresponds to attribute markerWidth on the given 'marker' element.
- */
-SVGAnimatedLength getMarkerWidth()
-{
-}
-
-/**
- * Corresponds to attribute markerHeight on the given 'marker' element.
- */
-SVGAnimatedLength getMarkerHeight()
-{
-}
-
-/**
- * Corresponds to attribute orient on the given 'marker' element.
- * One of the Marker Orientation Types defined above.
- */
-SVGAnimatedEnumeration getOrientType()
-{
-}
-
-/**
- * Corresponds to attribute orient on the given 'marker' element.
- * If markerUnits is SVG_MARKER_ORIENT_ANGLE, the angle value for
- * attribute orient ; otherwise, it will be set to zero.
- */
-SVGAnimatedAngle getOrientAngle()
-{
-}
-
-
-/**
- * Sets the value of attribute orient to 'auto'.
- */
-void setOrientToAuto()
-{
-}
-
-/**
- * Sets the value of attribute orient to the given angle.
- */
-void setOrientToAngle(const SVGAngle &angle)
-{
-}
-
-
-//####################################################################
-//# SVGMaskElement
-//####################################################################
-
-
-/**
- * Corresponds to attribute maskUnits on the given 'mask' element. Takes one of
- * the constants defined in SVGUnitTypes.
- */
-SVGAnimatedEnumeration getMaskUnits()
-{
-}
-
-/**
- * Corresponds to attribute maskContentUnits on the given 'mask' element. Takes
- * one of the constants defined in SVGUnitTypes.
- */
-SVGAnimatedEnumeration getMaskContentUnits()
-{
-}
-
-/**
- * Corresponds to attribute x on the given 'mask' element.
- */
-SVGAnimatedLength getX()
-{
-}
-
-/**
- * Corresponds to attribute y on the given 'mask' element.
- */
-SVGAnimatedLength getY()
-{
-}
-
-/**
- * Corresponds to attribute width on the given 'mask' element.
- */
-SVGAnimatedLength getWidth()
-{
-}
-
-/**
- * Corresponds to attribute height on the given 'mask' element.
- */
-SVGAnimatedLength getHeight()
-{
-}
-
-//####################################################################
-//# SVGMetadataElement
-//####################################################################
-
-//####################################################################
-//# SVGMissingGlyphElement
-//####################################################################
-
-//####################################################################
-//# SVGMPathElement
-//####################################################################
-
-//####################################################################
-//# SVGPathElement
-//####################################################################
-
-/**
- * Corresponds to attribute pathLength on the given 'path' element.
- */
-SVGAnimatedNumber getPathLength()
-{
-}
-
-/**
- * Returns the user agent's computed value for the total length of the path using
- * the user agent's distance-along-a-path algorithm, as a distance in the current
- * user coordinate system.
- */
-double getTotalLength()
-{
-}
-
-/**
- * Returns the(x,y) coordinate in user space which is distance units along the
- * path, utilizing the user agent's distance-along-a-path algorithm.
- */
-SVGPoint getPointAtLength(double distance)
-{
-}
-
-/**
- * Returns the index into pathSegList which is distance units along the path,
- * utilizing the user agent's distance-along-a-path algorithm.
- */
-unsigned long getPathSegAtLength(double distance)
-{
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegClosePath object.
- */
-SVGPathSeg createSVGPathSegClosePath()
-{
- SVGPathSeg seg(PATHSEG_CLOSEPATH);
- return seg;
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegMovetoAbs object.
- */
-SVGPathSeg createSVGPathSegMovetoAbs(double x, double y)
-{
- SVGPathSeg seg(PATHSEG_MOVETO_ABS);
- seg.setX(x);
- seg.setY(y);
- return seg;
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegMovetoRel object.
- */
-SVGPathSeg createSVGPathSegMovetoRel(double x, double y)
-{
- SVGPathSeg seg(PATHSEG_MOVETO_REL);
- seg.setX(x);
- seg.setY(y);
- return seg;
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegLinetoAbs object.
- */
-SVGPathSeg createSVGPathSegLinetoAbs(double x, double y)
-{
- SVGPathSeg seg(PATHSEG_LINETO_ABS);
- seg.setX(x);
- seg.setY(y);
- return seg;
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegLinetoRel object.
- */
-SVGPathSeg createSVGPathSegLinetoRel(double x, double y)
-{
- SVGPathSeg seg(PATHSEG_LINETO_REL);
- seg.setX(x);
- seg.setY(y);
- return seg;
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegCurvetoCubicAbs object.
- */
-SVGPathSeg createSVGPathSegCurvetoCubicAbs(double x, double y,
- double x1, double y1, double x2, double y2)
-{
- SVGPathSeg seg(PATHSEG_CURVETO_CUBIC_ABS);
- seg.setX(x);
- seg.setY(y);
- seg.setX1(x1);
- seg.setY1(y1);
- seg.setX2(x2);
- seg.setY2(y2);
- return seg;
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegCurvetoCubicRel object.
- */
-SVGPathSeg createSVGPathSegCurvetoCubicRel(double x, double y,
- double x1, double y1, double x2, double y2)
-{
- SVGPathSeg seg(PATHSEG_CURVETO_CUBIC_REL);
- seg.setX(x);
- seg.setY(y);
- seg.setX1(x1);
- seg.setY1(y1);
- seg.setX2(x2);
- seg.setY2(y2);
- return seg;
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticAbs object.
- */
-SVGPathSeg createSVGPathSegCurvetoQuadraticAbs(double x, double y,
- double x1, double y1)
-{
- SVGPathSeg seg(PATHSEG_CURVETO_QUADRATIC_ABS);
- seg.setX(x);
- seg.setY(y);
- seg.setX1(x1);
- seg.setY1(y1);
- return seg;
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticRel object.
- */
-SVGPathSeg createSVGPathSegCurvetoQuadraticRel(double x, double y,
- double x1, double y1)
-{
- SVGPathSeg seg(PATHSEG_CURVETO_QUADRATIC_REL);
- seg.setX(x);
- seg.setY(y);
- seg.setX1(x1);
- seg.setY1(y1);
- return seg;
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegArcAbs object.
- */
-SVGPathSeg createSVGPathSegArcAbs(double x, double y,
- double r1, double r2, double angle,
- bool largeArcFlag, bool sweepFlag)
-{
- SVGPathSeg seg(PATHSEG_ARC_ABS);
- seg.setX(x);
- seg.setY(y);
- seg.setR1(r1);
- seg.setR2(r2);
- seg.setAngle(angle);
- seg.setLargeArcFlag(largeArcFlag);
- seg.setSweepFlag(sweepFlag);
- return seg;
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegArcRel object.
- */
-SVGPathSeg createSVGPathSegArcRel(double x, double y, double r1,
- double r2, double angle, bool largeArcFlag,
- bool sweepFlag)
-{
- SVGPathSeg seg(PATHSEG_ARC_REL);
- seg.setX(x);
- seg.setY(y);
- seg.setR1(r1);
- seg.setR2(r2);
- seg.setAngle(angle);
- seg.setLargeArcFlag(largeArcFlag);
- seg.setSweepFlag(sweepFlag);
- return seg;
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegLinetoHorizontalAbs object.
- */
-SVGPathSeg createSVGPathSegLinetoHorizontalAbs(double x)
-{
- SVGPathSeg seg(PATHSEG_LINETO_HORIZONTAL_ABS);
- seg.setX(x);
- return seg;
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegLinetoHorizontalRel object.
- */
-SVGPathSeg createSVGPathSegLinetoHorizontalRel(double x)
-{
- SVGPathSeg seg(PATHSEG_LINETO_HORIZONTAL_REL);
- seg.setX(x);
- return seg;
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegLinetoVerticalAbs object.
- */
-SVGPathSeg createSVGPathSegLinetoVerticalAbs(double y)
-{
- SVGPathSeg seg(PATHSEG_LINETO_VERTICAL_ABS);
- seg.setY(y);
- return seg;
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegLinetoVerticalRel object.
- */
-SVGPathSeg createSVGPathSegLinetoVerticalRel(double y)
-{
- SVGPathSeg seg(PATHSEG_LINETO_VERTICAL_REL);
- seg.setY(y);
- return seg;
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegCurvetoCubicSmoothAbs object.
- */
-SVGPathSeg createSVGPathSegCurvetoCubicSmoothAbs(double x, double y,
- double x2, double y2)
-{
- SVGPathSeg seg(PATHSEG_CURVETO_CUBIC_SMOOTH_ABS);
- seg.setX(x);
- seg.setY(y);
- seg.setX2(x2);
- seg.setY2(y2);
- return seg;
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegCurvetoCubicSmoothRel object.
- */
-SVGPathSeg createSVGPathSegCurvetoCubicSmoothRel(double x, double y,
- double x2, double y2)
-{
- SVGPathSeg seg(PATHSEG_CURVETO_CUBIC_SMOOTH_REL);
- seg.setX(x);
- seg.setY(y);
- seg.setX2(x2);
- seg.setY2(y2);
- return seg;
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothAbs
- * object.
- */
-SVGPathSeg createSVGPathSegCurvetoQuadraticSmoothAbs(double x, double y)
-{
- SVGPathSeg seg(PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS);
- seg.setX(x);
- seg.setY(y);
- return seg;
-}
-
-/**
- * Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothRel
- * object.
- */
-SVGPathSeg createSVGPathSegCurvetoQuadraticSmoothRel(double x, double y)
-{
- SVGPathSeg seg(PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL);
- seg.setX(x);
- seg.setY(y);
- return seg;
-}
-
-
-//####################################################################
-//# SVGPatternElement
-//####################################################################
-
-/**
- * Corresponds to attribute patternUnits on the given 'pattern' element.
- * Takes one of the constants defined in SVGUnitTypes.
- */
-SVGAnimatedEnumeration getPatternUnits()
-{
-}
-
-/**
- * Corresponds to attribute patternContentUnits on the given 'pattern'
- * element. Takes one of the constants defined in SVGUnitTypes.
- */
-SVGAnimatedEnumeration getPatternContentUnits()
-{
-}
-
-/**
- * Corresponds to attribute patternTransform on the given 'pattern' element.
- */
-SVGAnimatedTransformList getPatternTransform()
-{
-}
-
-/**
- * Corresponds to attribute x on the given 'pattern' element.
- */
-SVGAnimatedLength getX()
-{
-}
-
-/**
- *
- */
-SVGAnimatedLength getY()
-{
-}
-
-/**
- * Corresponds to attribute width on the given 'pattern' element.
- */
-SVGAnimatedLength getWidth()
-{
-}
-
-/**
- * Corresponds to attribute height on the given 'pattern' element.
- */
-SVGAnimatedLength getHeight()
-{
-}
-
-
-//####################################################################
-//# SVGPolyLineElement
-//####################################################################
-
-//####################################################################
-//# SVGPolygonElement
-//####################################################################
-
-
-//####################################################################
-//# SVGRadialGradientElement
-//####################################################################
-
-
-/**
- * Corresponds to attribute cx on the given 'radialGradient' element.
- */
-SVGAnimatedLength getCx()
-{
-}
-
-
-/**
- * Corresponds to attribute cy on the given 'radialGradient' element.
- */
-SVGAnimatedLength getCy()
-{
-}
-
-
-/**
- * Corresponds to attribute r on the given 'radialGradient' element.
- */
-SVGAnimatedLength getR()
-{
-}
-
-
-/**
- * Corresponds to attribute fx on the given 'radialGradient' element.
- */
-SVGAnimatedLength getFx()
-{
-}
-
-
-/**
- * Corresponds to attribute fy on the given 'radialGradient' element.
- */
-SVGAnimatedLength getFy()
-{
-}
-
-
-//####################################################################
-//# SVGRectElement
-//####################################################################
-
-/**
- * Corresponds to attribute x on the given 'rect' element.
- */
-SVGAnimatedLength getX()
-{
-}
-
-/**
- * Corresponds to attribute y on the given 'rect' element.
- */
-SVGAnimatedLength getY()
-{
-}
-
-/**
- * Corresponds to attribute width on the given 'rect' element.
- */
-SVGAnimatedLength getWidth()
-{
-}
-
-/**
- * Corresponds to attribute height on the given 'rect' element.
- */
-SVGAnimatedLength getHeight()
-{
-}
-
-
-/**
- * Corresponds to attribute rx on the given 'rect' element.
- */
-SVGAnimatedLength getRx()
-{
-}
-
-/**
- * Corresponds to attribute ry on the given 'rect' element.
- */
-SVGAnimatedLength getRy()
-{
-}
-
-
-//####################################################################
-//# SVGScriptElement
-//####################################################################
-
-/**
- *
- */
-DOMString getType()
-{
-}
-
-/**
- *
- */
-void setType(const DOMString &val) throw (DOMException)
-{
-}
-
-//####################################################################
-//# SVGSetElement
-//####################################################################
-
-//####################################################################
-//# SVGStopElement
-//####################################################################
-
-
-/**
- * Corresponds to attribute offset on the given 'stop' element.
- */
-SVGAnimatedNumber getOffset()
-{
-}
-
-
-//####################################################################
-//# SVGStyleElement
-//####################################################################
-
-/**
- * Get the attribute xml:space on the given element.
- */
-DOMString getXmlspace()
-{
-}
-
-/**
- * Set the attribute xml:space on the given element.
- */
-void setXmlspace(const DOMString &val) throw (DOMException)
-{
-}
-
-/**
- * Get the attribute type on the given 'style' element.
- */
-DOMString getType()
-{
-}
-
-/**
- * Set the attribute type on the given 'style' element.
- */
-void setType(const DOMString &val) throw (DOMException)
-{
-}
-
-/**
- * Get the attribute media on the given 'style' element.
- */
-DOMString getMedia()
-{
-}
-
-/**
- * Set the attribute media on the given 'style' element.
- */
-void setMedia(const DOMString &val) throw (DOMException)
-{
-}
-
-/**
- * Get the attribute title on the given 'style' element.
- */
-DOMString getTitle()
-{
-}
-
-/**
- * Set the attribute title on the given 'style' element.
- */
-void setTitle(const DOMString &val) throw (DOMException)
-{
-}
-
-//####################################################################
-//# SVGSymbolElement
-//####################################################################
-
-//####################################################################
-//# SVGSVGElement
-//####################################################################
-
-/**
- * Corresponds to attribute x on the given 'svg' element.
- */
-SVGAnimatedLength getX()
-{
-}
-
-/**
- * Corresponds to attribute y on the given 'svg' element.
- */
-SVGAnimatedLength getY()
-{
-}
-
-/**
- * Corresponds to attribute width on the given 'svg' element.
- */
-SVGAnimatedLength getWidth()
-{
-}
-
-/**
- * Corresponds to attribute height on the given 'svg' element.
- */
-SVGAnimatedLength getHeight()
-{
-}
-
-/**
- * Get the attribute contentScriptType on the given 'svg' element.
- */
-DOMString getContentScriptType()
-{
-}
-
-/**
- * Set the attribute contentScriptType on the given 'svg' element.
- */
-void setContentScriptType(const DOMString &val) throw (DOMException)
-{
-}
-
-
-/**
- * Get the attribute contentStyleType on the given 'svg' element.
- */
-DOMString getContentStyleType()
-{
-}
-
-/**
- * Set the attribute contentStyleType on the given 'svg' element.
- */
-void setContentStyleType(const DOMString &val) throw (DOMException)
-{
-}
-
-/**
- * The position and size of the viewport(implicit or explicit) that corresponds
- * to this 'svg' element. When the user agent is actually rendering the content,
- * then the position and size values represent the actual values when rendering.
- * The position and size values are unitless values in the coordinate system of
- * the parent element. If no parent element exists(i.e., 'svg' element
- * represents the root of the document tree), if this SVG document is embedded as
- * part of another document(e.g., via the HTML 'object' element), then the
- * position and size are unitless values in the coordinate system of the parent
- * document.(If the parent uses CSS or XSL layout, then unitless values
- * represent pixel units for the current CSS or XSL viewport, as described in the
- * CSS2 specification.) If the parent element does not have a coordinate system,
- * then the user agent should provide reasonable default values for this attribute.
- */
-SVGRect getViewport()
-{
-}
-
-/**
- * Size of a pixel units(as defined by CSS2) along the x-axis of the viewport,
- * which represents a unit somewhere in the range of 70dpi to 120dpi, and, on
- * systems that support this, might actually match the characteristics of the
- * target medium. On systems where it is impossible to know the size of a pixel,
- * a suitable default pixel size is provided.
- */
-double getPixelUnitToMillimeterX()
-{
-}
-
-/**
- * Corresponding size of a pixel unit along the y-axis of the viewport.
- */
-double getPixelUnitToMillimeterY()
-{
-}
-
-/**
- * User interface(UI) events in DOM Level 2 indicate the screen positions at
- * which the given UI event occurred. When the user agent actually knows the
- * physical size of a "screen unit", this attribute will express that information
-{
-}
- * otherwise, user agents will provide a suitable default value such as .28mm.
- */
-double getScreenPixelToMillimeterX()
-{
-}
-
-/**
- * Corresponding size of a screen pixel along the y-axis of the viewport.
- */
-double getScreenPixelToMillimeterY()
-{
-}
-
-
-/**
- * The initial view(i.e., before magnification and panning) of the current
- * innermost SVG document fragment can be either the "standard" view(i.e., based
- * on attributes on the 'svg' element such as fitBoxToViewport) or to a "custom"
- * view(i.e., a hyperlink into a particular 'view' or other element - see
- * Linking into SVG content: URI fragments and SVG views). If the initial view is
- * the "standard" view, then this attribute is false. If the initial view is a
- * "custom" view, then this attribute is true.
- */
-bool getUseCurrentView()
-{
-}
-
-/**
- * Set the value above
- */
-void setUseCurrentView(bool val) throw (DOMException)
-{
-}
-
-/**
- * The definition of the initial view(i.e., before magnification and panning) of
- * the current innermost SVG document fragment. The meaning depends on the
- * situation:
- *
- * * If the initial view was a "standard" view, then:
- * o the values for viewBox, preserveAspectRatio and zoomAndPan within
- * currentView will match the values for the corresponding DOM attributes that
- * are on SVGSVGElement directly
- * o the values for transform and viewTarget within currentView will be null
- * * If the initial view was a link into a 'view' element, then:
- * o the values for viewBox, preserveAspectRatio and zoomAndPan within
- * currentView will correspond to the corresponding attributes for the given
- * 'view' element
- * o the values for transform and viewTarget within currentView will be null
- * * If the initial view was a link into another element(i.e., other than a
- * 'view'), then:
- * o the values for viewBox, preserveAspectRatio and zoomAndPan within
- * currentView will match the values for the corresponding DOM attributes that
- * are on SVGSVGElement directly for the closest ancestor 'svg' element
- * o the values for transform within currentView will be null
- * o the viewTarget within currentView will represent the target of the link
- * * If the initial view was a link into the SVG document fragment using an SVG
- * view specification fragment identifier(i.e., #svgView(...)), then:
- * o the values for viewBox, preserveAspectRatio, zoomAndPan, transform and
- * viewTarget within currentView will correspond to the values from the SVG view
- * specification fragment identifier
- *
- */
-SVGViewSpec getCurrentView()
-{
-}
-
-
-/**
- * This attribute indicates the current scale factor relative to the initial view
- * to take into account user magnification and panning operations, as described
- * under Magnification and panning. DOM attributes currentScale and
- * currentTranslate are equivalent to the 2x3 matrix [a b c d e f] =
- * [currentScale 0 0 currentScale currentTranslate.x currentTranslate.y]. If
- * "magnification" is enabled(i.e., zoomAndPan="magnify"), then the effect is as
- * if an extra transformation were placed at the outermost level on the SVG
- * document fragment(i.e., outside the outermost 'svg' element).
- */
-double getCurrentScale()
-{
-}
-
-/**
- * Set the value above.
- */
-void setCurrentScale(double val) throw (DOMException)
-{
-}
-
-/**
- * The corresponding translation factor that takes into account
- * user "magnification".
- */
-SVGPoint getCurrentTranslate()
-{
-}
-
-/**
- * Takes a time-out value which indicates that redraw shall not occur until:(a)
- * the corresponding unsuspendRedraw(suspend_handle_id) call has been made,(b)
- * an unsuspendRedrawAll() call has been made, or(c) its timer has timed out. In
- * environments that do not support interactivity(e.g., print media), then
- * redraw shall not be suspended. suspend_handle_id =
- * suspendRedraw(max_wait_milliseconds) and unsuspendRedraw(suspend_handle_id)
- * must be packaged as balanced pairs. When you want to suspend redraw actions as
- * a collection of SVG DOM changes occur, then precede the changes to the SVG DOM
- * with a method call similar to suspend_handle_id =
- * suspendRedraw(max_wait_milliseconds) and follow the changes with a method call
- * similar to unsuspendRedraw(suspend_handle_id). Note that multiple
- * suspendRedraw calls can be used at once and that each such method call is
- * treated independently of the other suspendRedraw method calls.
- */
-unsigned long suspendRedraw(unsigned long max_wait_milliseconds)
-{
-}
-
-/**
- * Cancels a specified suspendRedraw() by providing a unique suspend_handle_id.
- */
-void unsuspendRedraw(unsigned long suspend_handle_id) throw (DOMException)
-{
-}
-
-/**
- * Cancels all currently active suspendRedraw() method calls. This method is most
- * useful at the very end of a set of SVG DOM calls to ensure that all pending
- * suspendRedraw() method calls have been cancelled.
- */
-void unsuspendRedrawAll()
-{
-}
-
-/**
- * In rendering environments supporting interactivity, forces the user agent to
- * immediately redraw all regions of the viewport that require updating.
- */
-void forceRedraw()
-{
-}
-
-/**
- * Suspends(i.e., pauses) all currently running animations that are defined
- * within the SVG document fragment corresponding to this 'svg' element, causing
- * the animation clock corresponding to this document fragment to stand still
- * until it is unpaused.
- */
-void pauseAnimations()
-{
-}
-
-/**
- * Unsuspends(i.e., unpauses) currently running animations that are defined
- * within the SVG document fragment, causing the animation clock to continue from
- * the time at which it was suspended.
- */
-void unpauseAnimations()
-{
-}
-
-/**
- * Returns true if this SVG document fragment is in a paused state.
- */
-bool animationsPaused()
-{
-}
-
-/**
- * Returns the current time in seconds relative to the start time for
- * the current SVG document fragment.
- */
-double getCurrentTime()
-{
-}
-
-/**
- * Adjusts the clock for this SVG document fragment, establishing
- * a new current time.
- */
-void setCurrentTime(double seconds)
-{
-}
-
-/**
- * Returns the list of graphics elements whose rendered content intersects the
- * supplied rectangle, honoring the 'pointer-events' property value on each
- * candidate graphics element.
- */
-NodeList getIntersectionList(const SVGRect &rect,
- const SVGElementPtr referenceElement)
-{
-}
-
-/**
- * Returns the list of graphics elements whose rendered content is entirely
- * contained within the supplied rectangle, honoring the 'pointer-events'
- * property value on each candidate graphics element.
- */
-NodeList getEnclosureList(const SVGRect &rect,
- const SVGElementPtr referenceElement)
-{
-}
-
-/**
- * Returns true if the rendered content of the given element intersects the
- * supplied rectangle, honoring the 'pointer-events' property value on each
- * candidate graphics element.
- */
-bool checkIntersection(const SVGElementPtr element, const SVGRect &rect)
-{
-}
-
-/**
- * Returns true if the rendered content of the given element is entirely
- * contained within the supplied rectangle, honoring the 'pointer-events'
- * property value on each candidate graphics element.
- */
-bool checkEnclosure(const SVGElementPtr element, const SVGRect &rect)
-{
-}
-
-/**
- * Unselects any selected objects, including any selections of text
- * strings and type-in bars.
- */
-void deselectAll()
-{
-}
-
-/**
- * Creates an SVGNumber object outside of any document trees. The object
- * is initialized to a value of zero.
- */
-SVGNumber createSVGNumber()
-{
-}
-
-/**
- * Creates an SVGLength object outside of any document trees. The object
- * is initialized to the value of 0 user units.
- */
-SVGLength createSVGLength()
-{
-}
-
-/**
- * Creates an SVGAngle object outside of any document trees. The object
- * is initialized to the value 0 degrees(unitless).
- */
-SVGAngle createSVGAngle()
-{
-}
-
-/**
- * Creates an SVGPoint object outside of any document trees. The object
- * is initialized to the point(0,0) in the user coordinate system.
- */
-SVGPoint createSVGPoint()
-{
-}
-
-/**
- * Creates an SVGMatrix object outside of any document trees. The object
- * is initialized to the identity matrix.
- */
-SVGMatrix createSVGMatrix()
-{
-}
-
-/**
- * Creates an SVGRect object outside of any document trees. The object
- * is initialized such that all values are set to 0 user units.
- */
-SVGRect createSVGRect()
-{
-}
-
-/**
- * Creates an SVGTransform object outside of any document trees.
- * The object is initialized to an identity matrix transform
- * (SVG_TRANSFORM_MATRIX).
- */
-SVGTransform createSVGTransform()
-{
-}
-
-/**
- * Creates an SVGTransform object outside of any document trees.
- * The object is initialized to the given matrix transform
- * (i.e., SVG_TRANSFORM_MATRIX).
- */
-SVGTransform createSVGTransformFromMatrix(const SVGMatrix &matrix)
-{
-}
-
-/**
- * Searches this SVG document fragment(i.e., the search is restricted to a
- * subset of the document tree) for an Element whose id is given by elementId. If
- * an Element is found, that Element is returned. If no such element exists,
- * returns null. Behavior is not defined if more than one element has this id.
- */
-ElementPtr getElementById(const DOMString& elementId)
-{
-}
-
-
-//####################################################################
-//# SVGTextElement
-//####################################################################
-
-
-//####################################################################
-//# SVGTextContentElement
-//####################################################################
-
-
-/**
- * Corresponds to attribute textLength on the given element.
- */
-SVGAnimatedLength getTextLength()
-{
-}
-
-
-/**
- * Corresponds to attribute lengthAdjust on the given element. The value must be
- * one of the length adjust constants specified above.
- */
-SVGAnimatedEnumeration getLengthAdjust()
-{
-}
-
-
-/**
- * Returns the total number of characters to be rendered within the current
- * element. Includes characters which are included via a 'tref' reference.
- */
-long getNumberOfChars()
-{
-}
-
-/**
- * The total sum of all of the advance values from rendering all of the
- * characters within this element, including the advance value on the glyphs
- *(horizontal or vertical), the effect of properties 'kerning', 'letter-spacing'
- * and 'word-spacing' and adjustments due to attributes dx and dy on 'tspan'
- * elements. For non-rendering environments, the user agent shall make reasonable
- * assumptions about glyph metrics.
- */
-double getComputedTextLength()
-{
-}
-
-/**
- * The total sum of all of the advance values from rendering the specified
- * substring of the characters, including the advance value on the glyphs
- *(horizontal or vertical), the effect of properties 'kerning', 'letter-spacing'
- * and 'word-spacing' and adjustments due to attributes dx and dy on 'tspan'
- * elements. For non-rendering environments, the user agent shall make reasonable
- * assumptions about glyph metrics.
- */
-double getSubStringLength(unsigned long charnum, unsigned long nchars)
- throw (DOMException)
-{
-}
-
-/**
- * Returns the current text position before rendering the character in the user
- * coordinate system for rendering the glyph(s) that correspond to the specified
- * character. The current text position has already taken into account the
- * effects of any inter-character adjustments due to properties 'kerning',
- * 'letter-spacing' and 'word-spacing' and adjustments due to attributes x, y, dx
- * and dy. If multiple consecutive characters are rendered inseparably(e.g., as
- * a single glyph or a sequence of glyphs), then each of the inseparable
- * characters will return the start position for the first glyph.
- */
-SVGPoint getStartPositionOfChar(unsigned long charnum) throw (DOMException)
-{
-}
-
-/**
- * Returns the current text position after rendering the character in the user
- * coordinate system for rendering the glyph(s) that correspond to the specified
- * character. This current text position does not take into account the effects
- * of any inter-character adjustments to prepare for the next character, such as
- * properties 'kerning', 'letter-spacing' and 'word-spacing' and adjustments due
- * to attributes x, y, dx and dy. If multiple consecutive characters are rendered
- * inseparably(e.g., as a single glyph or a sequence of glyphs), then each of
- * the inseparable characters will return the end position for the last glyph.
- */
-SVGPoint getEndPositionOfChar(unsigned long charnum) throw (DOMException)
-{
-}
-
-/**
- * Returns a tightest rectangle which defines the minimum and maximum X and Y
- * values in the user coordinate system for rendering the glyph(s) that
- * correspond to the specified character. The calculations assume that all glyphs
- * occupy the full standard glyph cell for the font. If multiple consecutive
- * characters are rendered inseparably(e.g., as a single glyph or a sequence of
- * glyphs), then each of the inseparable characters will return the same extent.
- */
-SVGRect getExtentOfChar(unsigned long charnum) throw (DOMException)
-{
-}
-
-/**
- * Returns the rotation value relative to the current user coordinate system used
- * to render the glyph(s) corresponding to the specified character. If multiple
- * glyph(s) are used to render the given character and the glyphs each have
- * different rotations(e.g., due to text-on-a-path), the user agent shall return
- * an average value(e.g., the rotation angle at the midpoint along the path for
- * all glyphs used to render this character). The rotation value represents the
- * rotation that is supplemental to any rotation due to properties
- * 'glyph-orientation-horizontal' and 'glyph-orientation-vertical'; thus, any
- * glyph rotations due to these properties are not included into the returned
- * rotation value. If multiple consecutive characters are rendered inseparably
- *(e.g., as a single glyph or a sequence of glyphs), then each of the
- * inseparable characters will return the same rotation value.
- */
-double getRotationOfChar(unsigned long charnum) throw (DOMException)
-{
-}
-
-/**
- * Returns the index of the character whose corresponding glyph cell bounding box
- * contains the specified point. The calculations assume that all glyphs occupy
- * the full standard glyph cell for the font. If no such character exists, a
- * value of -1 is returned. If multiple such characters exist, the character
- * within the element whose glyphs were rendered last(i.e., take into account
- * any reordering such as for bidirectional text) is used. If multiple
- * consecutive characters are rendered inseparably(e.g., as a single glyph or a
- * sequence of glyphs), then the user agent shall allocate an equal percentage of
- * the text advance amount to each of the contributing characters in determining
- * which of the characters is chosen.
- */
-long getCharNumAtPosition(const SVGPoint &point)
-{
-}
-
-/**
- * Causes the specified substring to be selected just as if the user
- * selected the substring interactively.
- */
-void selectSubString(unsigned long charnum, unsigned long nchars)
- throw (DOMException)
-{
-}
-
-
-
-
-
-//####################################################################
-//# SVGTextPathElement
-//####################################################################
-
-
-/**
- * Corresponds to attribute startOffset on the given 'textPath' element.
- */
-SVGAnimatedLength getStartOffset()
-{
-}
-
-/**
- * Corresponds to attribute method on the given 'textPath' element. The value
- * must be one of the method type constants specified above.
- */
-SVGAnimatedEnumeration getMethod()
-{
-}
-
-/**
- * Corresponds to attribute spacing on the given 'textPath' element.
- * The value must be one of the spacing type constants specified above.
- */
-SVGAnimatedEnumeration getSpacing()
-{
-}
-
-
-//####################################################################
-//# SVGTextPositioningElement
-//####################################################################
-
-
-/**
- * Corresponds to attribute x on the given element.
- */
-SVGAnimatedLength getX()
-{
-}
-
-/**
- * Corresponds to attribute y on the given element.
- */
-SVGAnimatedLength getY()
-{
-}
-
-/**
- * Corresponds to attribute dx on the given element.
- */
-SVGAnimatedLength getDx()
-{
-}
-
-/**
- * Corresponds to attribute dy on the given element.
- */
-SVGAnimatedLength getDy()
-{
-}
-
-
-/**
- * Corresponds to attribute rotate on the given element.
- */
-SVGAnimatedNumberList getRotate()
-{
-}
-
-
-//####################################################################
-//# SVGTitleElement
-//####################################################################
-
-//####################################################################
-//# SVGTRefElement
-//####################################################################
-
-//####################################################################
-//# SVGTSpanElement
-//####################################################################
-
-//####################################################################
-//# SVGSwitchElement
-//####################################################################
-
-//####################################################################
-//# SVGUseElement
-//####################################################################
-
-/**
- * Corresponds to attribute x on the given 'use' element.
- */
-SVGAnimatedLength getX()
-{
-}
-
-/**
- * Corresponds to attribute y on the given 'use' element.
- */
-SVGAnimatedLength getY()
-{
-}
-
-/**
- * Corresponds to attribute width on the given 'use' element.
- */
-SVGAnimatedLength getWidth()
-{
-}
-
-/**
- * Corresponds to attribute height on the given 'use' element.
- */
-SVGAnimatedLength getHeight()
-{
-}
-
-/**
- * The root of the "instance tree". See description of SVGElementInstance for
- * a discussion on the instance tree.
- * */
-SVGElementInstance getInstanceRoot()
-{
-}
-
-/**
- * If the 'href' attribute is being animated, contains the current animated root
- * of the "instance tree". If the 'href' attribute is not currently being
- * animated, contains the same value as 'instanceRoot'. The root of the "instance
- * tree". See description of SVGElementInstance for a discussion on the instance
- * tree.
- */
-SVGElementInstance getAnimatedInstanceRoot()
-{
-}
-
-
-//####################################################################
-//# SVGVKernElement
-//####################################################################
-
-//####################################################################
-//# SVGViewElement
-//####################################################################
-
-
-/**
- *
- */
-SVGStringList getViewTarget();
-
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-
-/**
- *
- */
-SVGElement::~SVGElement()
-{
-}
-
-
-
-
-/*#########################################################################
-## SVGDocument
-#########################################################################*/
-
-
-/**
- * The title of a document as specified by the title sub-element of the 'svg'
- * root element(i.e., <svg><title>Here is the title</title>...</svg>)
- */
-DOMString SVGDocument::getTitle()
-{
-}
-
-/**
- * Returns the URI of the page that linked to this page. The value is an empty
- * string if the user navigated to the page directly(not through a link, but,
- * for example, via a bookmark).
- */
-DOMString SVGDocument::getReferrer()
-{
-}
-
-
-/**
- * The domain name of the server that served the document, or a null string if
- * the server cannot be identified by a domain name.
- */
-DOMString SVGDocument::getDomain()
-{
-}
-
-
-/**
- * The complete URI of the document.
- */
-DOMString SVGDocument::getURL()
-{
-}
-
-
-/**
- * The root 'svg' element in the document hierarchy.
- */
-SVGElementPtr SVGDocument::getRootElement()
-{
-}
-
-
-/**
- * Overloaded from Document
- *
- */
-ElementPtr SVGDocument::createElement(const DOMString &tagName)
-{
- ElementPtr ptr;
- return ptr;
-}
-
-
-/**
- * Overloaded from Document
- *
- */
-ElementPtr SVGDocument::createElementNS(const DOMString &tagName,
- const DOMString &namespaceURI)
-{
- ElementPtr ptr;
- return ptr;
-}
-
-
-/**
- * The root 'svg' element in the document hierarchy.
- */
-SVGElementPtr SVGDocument::getRootElement()
-{
-}
-
-
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-SVGDocument::~SVGDocument()
-{
-}
-
-
-
-/*#########################################################################
-## GetSVGDocument
-#########################################################################*/
-
-
-/**
- * Returns the SVGDocument object for the referenced SVG document.
- */
-SVGDocumentPtr GetSVGDocument::getSVGDocument()
- throw (DOMException)
-{
- SVGDocumentPtr ptr;
- return ptr;
-}
-
-//##################
-//# Non-API methods
-//##################
-
-/**
- *
- */
-GetSVGDocument::~GetSVGDocument()
-{
-}
-
-
-
-
-
-
-
-} //namespace svg
-} //namespace dom
-} //namespace w3c
-} //namespace org
-
-#endif // __SVG_H__
-/*#########################################################################
-## E N D O F F I L E
-#########################################################################*/
-
diff --git a/src/dom/work/testdom.cpp b/src/dom/work/testdom.cpp
deleted file mode 100644
index 41a831aaa..000000000
--- a/src/dom/work/testdom.cpp
+++ /dev/null
@@ -1,107 +0,0 @@
-/**
- * Phoebe DOM Implementation.
- *
- * This is a C++ approximation of the W3C DOM model, which follows
- * fairly closely the specifications in the various .idl files, copies of
- * which are provided for reference. Most important is this one:
- *
- * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html
- *
- * Authors:
- * Bob Jamison
- *
- * Copyright (C) 2005-2008 Bob Jamison
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-
-
-#include "lsimpl.h"
-
-using namespace org::w3c::dom;
-
-
-bool doTest(char *filename)
-{
-
- ls::DOMImplementationLSImpl domImpl;
- ls::LSInput input = domImpl.createLSInput();
- ls::LSParser &parser = domImpl.createLSParser(0, "");
-
- DOMString buf;
- FILE *f = fopen(filename, "rb");
- if (!f)
- {
- printf("Cannot open %s for reading\n", filename);
- return false;
- }
- while (!feof(f))
- {
- int ch = fgetc(f);
- buf.push_back(ch);
- }
- fclose(f);
- input.setStringData(buf);
-
- printf("######## PARSE ######################################\n");
- DocumentPtr doc = parser.parse(input);
-
- if (!doc)
- {
- printf("parsing failed\n");
- return 0;
- }
-
- //### OUTPUT
- printf("######## SERIALIZE ##################################\n");
- ls::LSSerializer &serializer = domImpl.createLSSerializer();
- ls::LSOutput output = domImpl.createLSOutput();
- io::StdWriter writer;
- output.setCharacterStream(&writer);
- serializer.write(doc, output);
-
- printf("####### Namespace check\n");
- DOMString svgNamespace = "http://www.w3.org/2000/svg";
- NodeList list = doc->getElementsByTagNameNS(svgNamespace, "svg");
- int nodeCount = list.getLength();
- printf("Nodes:%d\n", nodeCount);
- for (int i=0; i<nodeCount ; i++)
- {
- NodePtr node = list.item(i);
- serializer.write(node, output);
- }
-
-
- return 1;
-}
-
-
-
-
-
-int main(int argc, char **argv)
-{
- if (argc!=2)
- {
- printf("usage: %s xmlfile\n", argv[0]);
- return 0;
- }
- doTest(argv[1]);
- return 0;
-}
-
-
-
diff --git a/src/dom/work/testhttp.cpp b/src/dom/work/testhttp.cpp
deleted file mode 100644
index b40cc86be..000000000
--- a/src/dom/work/testhttp.cpp
+++ /dev/null
@@ -1,82 +0,0 @@
-/**
- * Phoebe DOM Implementation.
- *
- * This is a C++ approximation of the W3C DOM model, which follows
- * fairly closely the specifications in the various .idl files, copies of
- * which are provided for reference. Most important is this one:
- *
- * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html
- *
- * Authors:
- * Bob Jamison
- *
- * Copyright (C) 2005 Bob Jamison
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-
-
-#include "io/uristream.h"
-
-using namespace org::w3c::dom;
-
-
-bool doTest1(char *filename)
-{
- return true;
-}
-
-bool doTest2()
-{
- io::UriInputStream instream("http://www.mit.edu");
-
- DOMString res;
-
- while (true)
- {
- int ch = instream.get();
- if (ch<0)
- break;
- res.push_back(ch);
- }
-
- instream.close();
-
- printf("result: %s\n", res.c_str());
-
- return true;
-}
-
-
-
-
-
-int main(int argc, char **argv)
-{
- /*
- if (argc!=2)
- {
- printf("usage: %s xmlfile\n", argv[0]);
- return 0;
- }
- doTest1(argv[1]);
- */
- doTest2();
- return 0;
-}
-
-
-
diff --git a/src/dom/work/testjs.cpp b/src/dom/work/testjs.cpp
deleted file mode 100644
index aba4ce97c..000000000
--- a/src/dom/work/testjs.cpp
+++ /dev/null
@@ -1,128 +0,0 @@
-/**
- * Phoebe DOM Implementation.
- *
- * This is a C++ approximation of the W3C DOM model, which follows
- * fairly closely the specifications in the various .idl files, copies of
- * which are provided for reference. Most important is this one:
- *
- * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html
- *
- * Authors:
- * Bob Jamison
- *
- * Copyright (C) 2005 Bob Jamison
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-
-
-#include "jsengine.h"
-#include "lsimpl.h"
-
-using namespace org::w3c::dom;
-
-
-bool doTest1()
-{
-
- char *filename = "test.xml";
- ls::DOMImplementationLSImpl domImpl;
- ls::LSInput input = domImpl.createLSInput();
- ls::LSParser &parser = domImpl.createLSParser(0, "");
-
- DOMString buf;
- FILE *f = fopen(filename, "rb");
- if (!f)
- {
- printf("Cannot open %s for reading\n", filename);
- return false;
- }
- while (!feof(f))
- {
- int ch = fgetc(f);
- buf.push_back(ch);
- }
- fclose(f);
- input.setStringData(buf);
-
- printf("######## PARSE ######################################\n");
- DocumentPtr doc = parser.parse(input);
-
- if (!doc)
- {
- printf("parsing failed\n");
- return 0;
- }
-
- //### OUTPUT
- printf("######## SERIALIZE ##################################\n");
- ls::LSSerializer &serializer = domImpl.createLSSerializer();
- ls::LSOutput output = domImpl.createLSOutput();
- io::StdWriter writer;
- output.setCharacterStream(&writer);
- serializer.write(doc, output);
-
- printf("####### Namespace check\n");
- DOMString svgNamespace = "http://www.w3.org/2000/svg";
- NodeList list = doc->getElementsByTagNameNS(svgNamespace, "svg");
- int nodeCount = list.getLength();
- printf("Nodes:%d\n", nodeCount);
- for (int i=0; i<nodeCount ; i++)
- {
- NodePtr node = list.item(i);
- serializer.write(node, output);
- }
-
- return true;
-}
-
-
-bool doTest2()
-{
- JavascriptEngine js;
- bool ret = js.evaluate("print(3 * 5);");
- if (!ret)
- return false;
-
- ret = js.evaluate("var s = new CDATASection();");
- if (!ret)
- return false;
-
- return true;
-}
-
-
-
-
-bool doTests()
-{
- //if (!doTest1())
- // return false;
- if (!doTest2())
- return false;
- return true;
-}
-
-
-int main(int argc, char **argv)
-{
- if (!doTests())
- return 1;
- return 0;
-}
-
-
-
diff --git a/src/dom/work/testodf.cpp b/src/dom/work/testodf.cpp
deleted file mode 100644
index 17098d9e6..000000000
--- a/src/dom/work/testodf.cpp
+++ /dev/null
@@ -1,98 +0,0 @@
-/**
- * Phoebe DOM Implementation.
- *
- * This is a C++ approximation of the W3C DOM model, which follows
- * fairly closely the specifications in the various .idl files, copies of
- * which are provided for reference. Most important is this one:
- *
- * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html
- *
- * Authors:
- * Bob Jamison
- *
- * Copyright (C) 2005-2006 Bob Jamison
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-
-
-#include "lsimpl.h"
-#include "io/uristream.h"
-
-
-using namespace org::w3c::dom;
-
-
-bool doTest(char *filename)
-{
-
- ls::DOMImplementationLSImpl domImpl;
- ls::LSInput input = domImpl.createLSInput();
- ls::LSParser &parser = domImpl.createLSParser(0, "");
-
-
- printf("######## PARSE ######################################\n");
- Document *doc;
- try
- {
- io::UriInputStream ins(filename);
- input.setByteStream(&ins);
- doc = parser.parse(input);
- ins.close();
- }
- catch (io::StreamException &e)
- {
- printf("could not open input stream %s\n", filename);
- return false;
- }
-
- if (!doc)
- {
- printf("parsing failed\n");
- return false;
- }
-
- return true;
- //### OUTPUT
- printf("######## SERIALIZE ##################################\n");
- ls::LSSerializer &serializer = domImpl.createLSSerializer();
- ls::LSOutput output = domImpl.createLSOutput();
- io::StdWriter writer;
- output.setCharacterStream(&writer);
- serializer.write(doc, output);
-
-
- delete doc;
- return true;
-}
-
-
-
-
-
-int main(int argc, char **argv)
-{
- if (argc!=2)
- {
- printf("usage: %s xmlfile\n", argv[0]);
- return 0;
- }
- doTest(argv[1]);
- return 0;
-}
-
-
-
diff --git a/src/dom/work/testsvg.cpp b/src/dom/work/testsvg.cpp
deleted file mode 100644
index 56d8108b0..000000000
--- a/src/dom/work/testsvg.cpp
+++ /dev/null
@@ -1,80 +0,0 @@
-/**
- * Phoebe DOM Implementation.
- *
- * This is a C++ approximation of the W3C DOM model, which follows
- * fairly closely the specifications in the various .idl files, copies of
- * which are provided for reference. Most important is this one:
- *
- * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html
- *
- * Authors:
- * Bob Jamison
- *
- * Copyright (C) 2005-2008 Bob Jamison
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-
-
-#include "svgreader.h"
-#include "lsimpl.h"
-
-using namespace org::w3c::dom;
-
-
-bool doTest(char *fileName)
-{
-
- printf("######## PARSE ######################################\n");
- svg::SVGReader parser;
- svg::SVGDocumentPtr doc = parser.parseFile(fileName);
-
- if (!doc)
- {
- printf("parsing failed\n");
- return 0;
- }
-
- //### OUTPUT
- printf("######## SERIALIZE ##################################\n");
- ls::DOMImplementationLSImpl domImpl;
- ls::LSSerializer &serializer = domImpl.createLSSerializer();
- ls::LSOutput output = domImpl.createLSOutput();
- io::StdWriter writer;
- output.setCharacterStream(&writer);
- serializer.write(doc, output);
-
-
- return 1;
-}
-
-
-
-
-
-int main(int argc, char **argv)
-{
- if (argc!=2)
- {
- printf("usage: %s xmlfile\n", argv[0]);
- return 0;
- }
- doTest(argv[1]);
- return 0;
-}
-
-
-
diff --git a/src/dom/work/testuri.cpp b/src/dom/work/testuri.cpp
deleted file mode 100644
index cd412fd51..000000000
--- a/src/dom/work/testuri.cpp
+++ /dev/null
@@ -1,117 +0,0 @@
-/**
- * Phoebe DOM Implementation.
- *
- * This is a C++ approximation of the W3C DOM model, which follows
- * fairly closely the specifications in the various .idl files, copies of
- * which are provided for reference. Most important is this one:
- *
- * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html
- *
- * Authors:
- * Bob Jamison
- *
- * Copyright (C) 2006-2008 Bob Jamison
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#include "io/uristream.h"
-
-
-typedef org::w3c::dom::URI URI;
-
-static bool doURI(const char *uristr)
-{
- org::w3c::dom::URI uri(uristr);
- printf("##################################\n");
- printf("String : '%s'\n", uristr);
- printf("URI : '%s'\n", uri.toString().c_str());
- printf("scheme : '%s'\n", uri.getSchemeStr().c_str());
- printf("auth : '%s'\n", uri.getAuthority().c_str());
- printf("path : '%s'\n", uri.getPath().c_str());
- printf("query : '%s'\n", uri.getQuery().c_str());
- printf("fragment: '%s'\n", uri.getFragment().c_str());
- printf("absolute: '%d'\n", uri.isAbsolute());
- printf("opaque : '%d'\n", uri.isOpaque());
-
- return true;
-}
-
-
-
-static bool test1()
-{
- printf("########################################\n");
- printf("## TEST 1\n");
- printf("########################################\n");
- const char *uristr = "http://www.mit.edu:80/index.html?test=good#hello";
- doURI(uristr);
- uristr = "http://www.mit.edu:80";
- doURI(uristr);
- uristr = "http://r&#xE9;sum&#xE9;.example.org";
- doURI(uristr);
-
- printf("\n\n");
- return true;
-}
-
-static bool test2()
-{
- printf("########################################\n");
- printf("## TEST 2\n");
- printf("########################################\n");
- printf("############ uri.resolve() #######\n");
- URI absUri("file:/this/is/an/./absolute/path.sfx");
- printf("absUri:%s\n", absUri.getPath().c_str());
- URI relUri("../this/is/a/./relative/path.sfx");
- printf("relUri:%s\n", relUri.getPath().c_str());
- URI resUri = absUri.resolve(relUri);
- printf("resUri:%s\n", resUri.getPath().c_str());
-
- printf("\n\n");
- return true;
-}
-
-static bool test3()
-{
- printf("########################################\n");
- printf("## TEST 3\n");
- printf("########################################\n");
- printf("############ windows-style uri.resolve() #######\n");
- URI absUri("file:C:\\this\\is\\an\\.\\absolute/path.sfx");
- printf("absUri:%s\n", absUri.getPath().c_str());
- printf("absUri:%s\n", absUri.getNativePath().c_str());
- URI relUri("..\\this\\is\\a\\.\\relative\\path.sfx");
- printf("relUri:%s\n", relUri.getPath().c_str());
- printf("relUri:%s\n", relUri.getNativePath().c_str());
- URI resUri = absUri.resolve(relUri);
- printf("resUri:%s\n", resUri.getPath().c_str());
- printf("resUri:%s\n", resUri.getNativePath().c_str());
-
- printf("\n\n");
- return true;
-}
-
-
-int main(int argc, char **argv)
-{
- if (!test1())
- return 1;
- if (!test2())
- return 1;
- if (!test3())
- return 1;
- return 0;
-}
diff --git a/src/dom/work/testxpath.cpp b/src/dom/work/testxpath.cpp
deleted file mode 100644
index 1014d4742..000000000
--- a/src/dom/work/testxpath.cpp
+++ /dev/null
@@ -1,1434 +0,0 @@
-/**
- * Phoebe DOM Implementation.
- *
- * This is a C++ approximation of the W3C DOM model, which follows
- * fairly closely the specifications in the various .idl files, copies of
- * which are provided for reference. Most important is this one:
- *
- * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html
- *
- * Authors:
- * Bob Jamison
- *
- * Copyright (C) 2006-2008 Bob Jamison
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-
-
-#include "dom.h"
-#include "lsimpl.h"
-#include "xpathparser.h"
-
-#include <stdio.h>
-
-
-typedef org::w3c::dom::Node Node;
-typedef org::w3c::dom::NodePtr NodePtr;
-typedef org::w3c::dom::NodeList NodeList;
-typedef org::w3c::dom::DOMString DOMString;
-typedef org::w3c::dom::Document Document;
-typedef org::w3c::dom::DocumentPtr DocumentPtr;
-typedef org::w3c::dom::io::StdWriter StdWriter;
-typedef org::w3c::dom::ls::DOMImplementationLSImpl DOMImplementationLSImpl;
-typedef org::w3c::dom::ls::LSSerializer LSSerializer;
-typedef org::w3c::dom::ls::LSOutput LSOutput;
-typedef org::w3c::dom::ls::LSInput LSInput;
-typedef org::w3c::dom::ls::LSParser LSParser;
-typedef org::w3c::dom::xpath::XPathParser XPathParser;
-
-
-
-typedef struct
-{
- const char *xpathStr;
- const char *desc;
- const char *xml;
-} XpathTest;
-
-XpathTest xpathTests[] =
-{
-
-{
-"/AAA",
-"Select the root element AAA",
-" <AAA>\n"
-" <BBB/>\n"
-" <CCC/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <DDD>\n"
-" <BBB/>\n"
-" </DDD>\n"
-" <CCC/>\n"
-" </AAA>\n"
-},
-
-{
-"/AAA/CCC",
-"Select all elements CCC which are children of the root element AAA",
-" <AAA>\n"
-" <BBB/>\n"
-" <CCC/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <DDD>\n"
-" <BBB/>\n"
-" </DDD>\n"
-" <CCC/>\n"
-" </AAA>\n"
-},
-
-{
-"/AAA/DDD/BBB",
-"Select all elements BBB which are children of DDD which are children of the root element AAA",
-" <AAA>\n"
-" <BBB/>\n"
-" <CCC/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <DDD>\n"
-" <BBB/>\n"
-" </DDD>\n"
-" <CCC/>\n"
-" </AAA>\n"
-},
-
-{
-"//BBB",
-"Select all elements BBB",
-" <AAA>\n"
-" <BBB/>\n"
-" <CCC/>\n"
-" <BBB/>\n"
-" <DDD>\n"
-" <BBB/>\n"
-" </DDD>\n"
-" <CCC>\n"
-" <DDD>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" </DDD>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//DDD/BBB",
-"Select all elements BBB which are children of DDD",
-" <AAA>\n"
-" <BBB/>\n"
-" <CCC/>\n"
-" <BBB/>\n"
-" <DDD>\n"
-" <BBB/>\n"
-" </DDD>\n"
-" <CCC>\n"
-" <DDD>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" </DDD>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"/AAA/CCC/DDD/*",
-"Select all elements enclosed by elements /AAA/CCC/DDD",
-" <AAA>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <EEE/>\n"
-" <FFF/>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <EEE/>\n"
-" <FFF/>\n"
-" </DDD>\n"
-" </CCC>\n"
-" <CCC>\n"
-" <BBB>\n"
-" <BBB>\n"
-" <BBB/>\n"
-" </BBB>\n"
-" </BBB>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"/*/*/*/BBB",
-"Select all elements BBB which have 3 ancestors",
-" <AAA>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <EEE/>\n"
-" <FFF/>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <EEE/>\n"
-" <FFF/>\n"
-" </DDD>\n"
-" </CCC>\n"
-" <CCC>\n"
-" <BBB>\n"
-" <BBB>\n"
-" <BBB/>\n"
-" </BBB>\n"
-" </BBB>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//*",
-"Select all elements",
-" <AAA>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <EEE/>\n"
-" <FFF/>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <EEE/>\n"
-" <FFF/>\n"
-" </DDD>\n"
-" </CCC>\n"
-" <CCC>\n"
-" <BBB>\n"
-" <BBB>\n"
-" <BBB/>\n"
-" </BBB>\n"
-" </BBB>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"/AAA/BBB[1]",
-"Select the first BBB child of element AAA",
-" <AAA>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" </AAA>\n"
-},
-
-{
-"/AAA/BBB[last()]",
-"Select the last BBB child of element AAA",
-" <AAA>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" </AAA>\n"
-},
-
-{
-"//@id",
-"Select all attributes @id",
-" <AAA>\n"
-" <BBB id = 'b1'/>\n"
-" <BBB id = 'b2'/>\n"
-" <BBB name = 'bbb'/>\n"
-" <BBB/>\n"
-" </AAA>\n"
-},
-
-{
-"//BBB[@id]",
-"Select BBB elements which have attribute id",
-" <AAA>\n"
-" <BBB id = 'b1'/>\n"
-" <BBB id = 'b2'/>\n"
-" <BBB name = 'bbb'/>\n"
-" <BBB/>\n"
-" </AAA>\n"
-},
-
-{
-"//BBB[@name]",
-"Select BBB elements which have attribute name",
-" <AAA>\n"
-" <BBB id = 'b1'/>\n"
-" <BBB id = 'b2'/>\n"
-" <BBB name = 'bbb'/>\n"
-" <BBB/>\n"
-" </AAA>\n"
-},
-
-{
-"//BBB[@*]",
-"Select BBB elements which have any attribute",
-" <AAA>\n"
-" <BBB id = 'b1'/>\n"
-" <BBB id = 'b2'/>\n"
-" <BBB name = 'bbb'/>\n"
-" <BBB/>\n"
-" </AAA>\n"
-},
-
-{
-"//BBB[not(@*)]",
-"Select BBB elements without an attribute",
-" <AAA>\n"
-" <BBB id = 'b1'/>\n"
-" <BBB id = 'b2'/>\n"
-" <BBB name = 'bbb'/>\n"
-" <BBB/>\n"
-" </AAA>\n"
-},
-
-{
-"//BBB[@id='b1']",
-"Select BBB elements which have attribute id with value b1",
-" <AAA>\n"
-" <BBB id = 'b1'/>\n"
-" <BBB name = ' bbb '/>\n"
-" <BBB name = 'bbb'/>\n"
-" </AAA>\n"
-},
-
-{
-"//BBB[@name='bbb']",
-"Select BBB elements which have attribute name with value 'bbb'",
-" <AAA>\n"
-" <BBB id = 'b1'/>\n"
-" <BBB name = ' bbb '/>\n"
-" <BBB name = 'bbb'/>\n"
-" </AAA>\n"
-},
-
-{
-"//BBB[normalize-space(@name)='bbb']",
-"Select BBB elements which have attribute name with value bbb, leading and trailing spaces are removed before comparison",
-" <AAA>\n"
-" <BBB id = 'b1'/>\n"
-" <BBB name = ' bbb '/>\n"
-" <BBB name = 'bbb'/>\n"
-" </AAA>\n"
-},
-
-{
-"//*[count(BBB)=2]",
-"Select elements which have two children BBB",
-" <AAA>\n"
-" <CCC>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" </CCC>\n"
-" <DDD>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" </DDD>\n"
-" <EEE>\n"
-" <CCC/>\n"
-" <DDD/>\n"
-" </EEE>\n"
-" </AAA>\n"
-},
-
-{
-"//*[count(*)=2]",
-"Select elements which have 2 children",
-" <AAA>\n"
-" <CCC>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" </CCC>\n"
-" <DDD>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" </DDD>\n"
-" <EEE>\n"
-" <CCC/>\n"
-" <DDD/>\n"
-" </EEE>\n"
-" </AAA>\n"
-},
-
-{
-"//*[count(*)=3]",
-"Select elements which have 3 children",
-" <AAA>\n"
-" <CCC>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" </CCC>\n"
-" <DDD>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" </DDD>\n"
-" <EEE>\n"
-" <CCC/>\n"
-" <DDD/>\n"
-" </EEE>\n"
-" </AAA>\n"
-},
-
-{
-"//*[name()='BBB']",
-"Select all elements with name BBB, equivalent with //BBB",
-" <AAA>\n"
-" <BCC>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" </BCC>\n"
-" <DDB>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" </DDB>\n"
-" <BEC>\n"
-" <CCC/>\n"
-" <DBD/>\n"
-" </BEC>\n"
-" </AAA>\n"
-},
-
-{
-"//*[starts-with(name(),'B')]",
-"Select all elements name of which starts with letter B",
-" <AAA>\n"
-" <BCC>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" </BCC>\n"
-" <DDB>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" </DDB>\n"
-" <BEC>\n"
-" <CCC/>\n"
-" <DBD/>\n"
-" </BEC>\n"
-" </AAA>\n"
-},
-
-{
-"//*[contains(name(),'C')]",
-"Select all elements name of which contain letter C",
-" <AAA>\n"
-" <BCC>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" </BCC>\n"
-" <DDB>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" </DDB>\n"
-" <BEC>\n"
-" <CCC/>\n"
-" <DBD/>\n"
-" </BEC>\n"
-" </AAA>\n"
-},
-
-{
-"//*[string-length(name()) = 3]",
-"Select elements with three-letter name",
-" <AAA>\n"
-" <Q/>\n"
-" <SSSS/>\n"
-" <BB/>\n"
-" <CCC/>\n"
-" <DDDDDDDD/>\n"
-" <EEEE/>\n"
-" </AAA>\n"
-},
-
-{
-"//*[string-length(name()) < 3]",
-"Select elements name of which has one or two characters",
-" <AAA>\n"
-" <Q/>\n"
-" <SSSS/>\n"
-" <BB/>\n"
-" <CCC/>\n"
-" <DDDDDDDD/>\n"
-" <EEEE/>\n"
-" </AAA>\n"
-},
-
-{
-"//*[string-length(name()) > 3]",
-"Select elements with name longer than three characters",
-" <AAA>\n"
-" <Q/>\n"
-" <SSSS/>\n"
-" <BB/>\n"
-" <CCC/>\n"
-" <DDDDDDDD/>\n"
-" <EEEE/>\n"
-" </AAA>\n"
-},
-
-{
-"//CCC | //BBB",
-"Select all elements CCC and BBB",
-" <AAA>\n"
-" <BBB/>\n"
-" <CCC/>\n"
-" <DDD>\n"
-" <CCC/>\n"
-" </DDD>\n"
-" <EEE/>\n"
-" </AAA>\n"
-},
-
-{
-"/AAA/EEE | //BBB",
-"Select all elements BBB and elements EEE which are children of root element AAA",
-" <AAA>\n"
-" <BBB/>\n"
-" <CCC/>\n"
-" <DDD>\n"
-" <CCC/>\n"
-" </DDD>\n"
-" <EEE/>\n"
-" </AAA>\n"
-},
-
-{
-"/AAA/EEE | //DDD/CCC | /AAA | //BBB",
-"Number of combinations is not restricted",
-" <AAA>\n"
-" <BBB/>\n"
-" <CCC/>\n"
-" <DDD>\n"
-" <CCC/>\n"
-" </DDD>\n"
-" <EEE/>\n"
-" </AAA>\n"
-},
-
-{
-"/AAA",
-"Equivalent of /child::AAA",
-" <AAA>\n"
-" <BBB/>\n"
-" <CCC/>\n"
-" </AAA>\n"
-},
-
-{
-"/child::AAA",
-"Equivalent of /AAA",
-" <AAA>\n"
-" <BBB/>\n"
-" <CCC/>\n"
-" </AAA>\n"
-},
-
-{
-"/AAA/BBB",
-"Equivalent of /child::AAA/child::BBB",
-" <AAA>\n"
-" <BBB/>\n"
-" <CCC/>\n"
-" </AAA>\n"
-},
-
-{
-"/child::AAA/child::BBB",
-"Equivalent of /AAA/BBB",
-" <AAA>\n"
-" <BBB/>\n"
-" <CCC/>\n"
-" </AAA>\n"
-},
-
-{
-"/child::AAA/BBB",
-"Both possibilities can be combined",
-" <AAA>\n"
-" <BBB/>\n"
-" <CCC/>\n"
-" </AAA>\n"
-},
-
-{
-"/descendant::*",
-"Select all descendants of document root and therefore all elements",
-" <AAA>\n"
-" <BBB>\n"
-" <DDD>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" <EEE/>\n"
-" </CCC>\n"
-" </DDD>\n"
-" </BBB>\n"
-" <CCC>\n"
-" <DDD>\n"
-" <EEE>\n"
-" <DDD>\n"
-" <FFF/>\n"
-" </DDD>\n"
-" </EEE>\n"
-" </DDD>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"/AAA/BBB/descendant::*",
-"Select all descendants of /AAA/BBB",
-" <AAA>\n"
-" <BBB>\n"
-" <DDD>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" <EEE/>\n"
-" </CCC>\n"
-" </DDD>\n"
-" </BBB>\n"
-" <CCC>\n"
-" <DDD>\n"
-" <EEE>\n"
-" <DDD>\n"
-" <FFF/>\n"
-" </DDD>\n"
-" </EEE>\n"
-" </DDD>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//CCC/descendant::*",
-"Select all elements which have CCC among its ancestors",
-" <AAA>\n"
-" <BBB>\n"
-" <DDD>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" <EEE/>\n"
-" </CCC>\n"
-" </DDD>\n"
-" </BBB>\n"
-" <CCC>\n"
-" <DDD>\n"
-" <EEE>\n"
-" <DDD>\n"
-" <FFF/>\n"
-" </DDD>\n"
-" </EEE>\n"
-" </DDD>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//CCC/descendant::DDD",
-"Select elements DDD which have CCC among its ancestors",
-" <AAA>\n"
-" <BBB>\n"
-" <DDD>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" <EEE/>\n"
-" </CCC>\n"
-" </DDD>\n"
-" </BBB>\n"
-" <CCC>\n"
-" <DDD>\n"
-" <EEE>\n"
-" <DDD>\n"
-" <FFF/>\n"
-" </DDD>\n"
-" </EEE>\n"
-" </DDD>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//DDD/parent::*",
-"Select all parents of DDD element",
-" <AAA>\n"
-" <BBB>\n"
-" <DDD>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" <EEE/>\n"
-" </CCC>\n"
-" </DDD>\n"
-" </BBB>\n"
-" <CCC>\n"
-" <DDD>\n"
-" <EEE>\n"
-" <DDD>\n"
-" <FFF/>\n"
-" </DDD>\n"
-" </EEE>\n"
-" </DDD>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"/AAA/BBB/DDD/CCC/EEE/ancestor::*",
-"Select all elements given in this absolute path",
-" <AAA>\n"
-" <BBB>\n"
-" <DDD>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" <EEE/>\n"
-" </CCC>\n"
-" </DDD>\n"
-" </BBB>\n"
-" <CCC>\n"
-" <DDD>\n"
-" <EEE>\n"
-" <DDD>\n"
-" <FFF/>\n"
-" </DDD>\n"
-" </EEE>\n"
-" </DDD>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//FFF/ancestor::*",
-"Select ancestors of FFF element",
-" <AAA>\n"
-" <BBB>\n"
-" <DDD>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" <EEE/>\n"
-" </CCC>\n"
-" </DDD>\n"
-" </BBB>\n"
-" <CCC>\n"
-" <DDD>\n"
-" <EEE>\n"
-" <DDD>\n"
-" <FFF/>\n"
-" </DDD>\n"
-" </EEE>\n"
-" </DDD>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"/AAA/BBB/following-sibling::*",
-"The following-sibling axis contains all the following siblings of the context node.",
-" <AAA>\n"
-" <BBB>\n"
-" <CCC/>\n"
-" <DDD/>\n"
-" </BBB>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" <DDD/>\n"
-" <CCC/>\n"
-" <FFF/>\n"
-" <FFF>\n"
-" <GGG/>\n"
-" </FFF>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//CCC/following-sibling::*",
-"The following-sibling axis contains all the following siblings of the context node.",
-" <AAA>\n"
-" <BBB>\n"
-" <CCC/>\n"
-" <DDD/>\n"
-" </BBB>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" <DDD/>\n"
-" <CCC/>\n"
-" <FFF/>\n"
-" <FFF>\n"
-" <GGG/>\n"
-" </FFF>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"/AAA/XXX/preceding-sibling::*",
-"The preceding-sibling axis contains all the preceding siblings of the context node.",
-" <AAA>\n"
-" <BBB>\n"
-" <CCC/>\n"
-" <DDD/>\n"
-" </BBB>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" <DDD/>\n"
-" <CCC/>\n"
-" <FFF/>\n"
-" <FFF>\n"
-" <GGG/>\n"
-" </FFF>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//CCC/preceding-sibling::*",
-"The preceding-sibling axis contains all the preceding siblings of the context node",
-" <AAA>\n"
-" <BBB>\n"
-" <CCC/>\n"
-" <DDD/>\n"
-" </BBB>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" <DDD/>\n"
-" <CCC/>\n"
-" <FFF/>\n"
-" <FFF>\n"
-" <GGG/>\n"
-" </FFF>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"/AAA/XXX/following::*",
-"The following axis contains all nodes in the same document as the context "
-"node that are after the context node in document order, "
-"excluding any descendants and excluding attribute nodes and namespace nodes.",
-" <AAA>\n"
-" <BBB>\n"
-" <CCC/>\n"
-" <ZZZ>\n"
-" <DDD/>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" </DDD>\n"
-" </ZZZ>\n"
-" <FFF>\n"
-" <GGG/>\n"
-" </FFF>\n"
-" </BBB>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" <DDD/>\n"
-" <CCC/>\n"
-" <FFF/>\n"
-" <FFF>\n"
-" <GGG/>\n"
-" </FFF>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//ZZZ/following::*",
-"The following axis contains all nodes in the same document as the context "
-"node that are after the context node in document order, "
-"excluding any descendants and excluding attribute nodes and namespace nodes.",
-" <AAA>\n"
-" <BBB>\n"
-" <CCC/>\n"
-" <ZZZ>\n"
-" <DDD/>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" </DDD>\n"
-" </ZZZ>\n"
-" <FFF>\n"
-" <GGG/>\n"
-" </FFF>\n"
-" </BBB>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" <DDD/>\n"
-" <CCC/>\n"
-" <FFF/>\n"
-" <FFF>\n"
-" <GGG/>\n"
-" </FFF>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"/AAA/XXX/preceding::*",
-"The preceding axis contains all nodes in the same document as the "
-"context node that are before the context node in document order, "
-"excluding any ancestors and excluding attribute nodes and namespace nodes",
-" <AAA>\n"
-" <BBB>\n"
-" <CCC/>\n"
-" <ZZZ>\n"
-" <DDD/>\n"
-" </ZZZ>\n"
-" </BBB>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" <DDD/>\n"
-" <CCC/>\n"
-" <FFF/>\n"
-" <FFF>\n"
-" <GGG/>\n"
-" </FFF>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//GGG/preceding::*",
-"The preceding axis contains all nodes in the same document as the "
-"context node that are before the context node in document order, "
-"excluding any ancestors and excluding attribute nodes and namespace nodes",
-" <AAA>\n"
-" <BBB>\n"
-" <CCC/>\n"
-" <ZZZ>\n"
-" <DDD/>\n"
-" </ZZZ>\n"
-" </BBB>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" <DDD/>\n"
-" <CCC/>\n"
-" <FFF/>\n"
-" <FFF>\n"
-" <GGG/>\n"
-" </FFF>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"/AAA/XXX/descendant-or-self::*",
-"The descendant-or-self axis contains the "
-"context node and the descendants of the context node",
-" <AAA>\n"
-" <BBB>\n"
-" <CCC/>\n"
-" <ZZZ>\n"
-" <DDD/>\n"
-" </ZZZ>\n"
-" </BBB>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" <DDD/>\n"
-" <CCC/>\n"
-" <FFF/>\n"
-" <FFF>\n"
-" <GGG/>\n"
-" </FFF>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//CCC/descendant-or-self::*",
-"The descendant-or-self axis contains the "
-"context node and the descendants of the context node",
-" <AAA>\n"
-" <BBB>\n"
-" <CCC/>\n"
-" <ZZZ>\n"
-" <DDD/>\n"
-" </ZZZ>\n"
-" </BBB>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" <DDD/>\n"
-" <CCC/>\n"
-" <FFF/>\n"
-" <FFF>\n"
-" <GGG/>\n"
-" </FFF>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"/AAA/XXX/DDD/EEE/ancestor-or-self::*",
-"The ancestor-or-self axis contains the context node and the "
-"ancestors of the context node; thus, the ancestor-or-self axis "
-"will always include the root node.",
-" <AAA>\n"
-" <BBB>\n"
-" <CCC/>\n"
-" <ZZZ>\n"
-" <DDD/>\n"
-" </ZZZ>\n"
-" </BBB>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" <DDD/>\n"
-" <CCC/>\n"
-" <FFF/>\n"
-" <FFF>\n"
-" <GGG/>\n"
-" </FFF>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//GGG/ancestor-or-self::*",
-"The ancestor-or-self axis contains the context node and the "
-"ancestors of the context node; thus, the ancestor-or-self axis "
-"will always include the root node.",
-" <AAA>\n"
-" <BBB>\n"
-" <CCC/>\n"
-" <ZZZ>\n"
-" <DDD/>\n"
-" </ZZZ>\n"
-" </BBB>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" <DDD/>\n"
-" <CCC/>\n"
-" <FFF/>\n"
-" <FFF>\n"
-" <GGG/>\n"
-" </FFF>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//GGG/ancestor::*",
-"The ancestor, descendant, following, preceding and self axes partition a document",
-" <AAA>\n"
-" <BBB>\n"
-" <CCC/>\n"
-" <ZZZ/>\n"
-" </BBB>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" <FFF>\n"
-" <HHH/>\n"
-" <GGG>\n"
-" <JJJ>\n"
-" <QQQ/>\n"
-" </JJJ>\n"
-" <JJJ/>\n"
-" </GGG>\n"
-" <HHH/>\n"
-" </FFF>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//GGG/descendant::*",
-"The ancestor, descendant, following, preceding and self axes partition a document",
-" <AAA>\n"
-" <BBB>\n"
-" <CCC/>\n"
-" <ZZZ/>\n"
-" </BBB>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" <FFF>\n"
-" <HHH/>\n"
-" <GGG>\n"
-" <JJJ>\n"
-" <QQQ/>\n"
-" </JJJ>\n"
-" <JJJ/>\n"
-" </GGG>\n"
-" <HHH/>\n"
-" </FFF>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//GGG/following::*",
-"The ancestor, descendant, following, preceding and self axes partition a document",
-" <AAA>\n"
-" <BBB>\n"
-" <CCC/>\n"
-" <ZZZ/>\n"
-" </BBB>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" <FFF>\n"
-" <HHH/>\n"
-" <GGG>\n"
-" <JJJ>\n"
-" <QQQ/>\n"
-" </JJJ>\n"
-" <JJJ/>\n"
-" </GGG>\n"
-" <HHH/>\n"
-" </FFF>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//GGG/preceding::*",
-"The ancestor, descendant, following, preceding and self axes partition a document",
-" <AAA>\n"
-" <BBB>\n"
-" <CCC/>\n"
-" <ZZZ/>\n"
-" </BBB>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" <FFF>\n"
-" <HHH/>\n"
-" <GGG>\n"
-" <JJJ>\n"
-" <QQQ/>\n"
-" </JJJ>\n"
-" <JJJ/>\n"
-" </GGG>\n"
-" <HHH/>\n"
-" </FFF>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//GGG/self::*",
-"The ancestor, descendant, following, preceding and self axes partition a document",
-" <AAA>\n"
-" <BBB>\n"
-" <CCC/>\n"
-" <ZZZ/>\n"
-" </BBB>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" <FFF>\n"
-" <HHH/>\n"
-" <GGG>\n"
-" <JJJ>\n"
-" <QQQ/>\n"
-" </JJJ>\n"
-" <JJJ/>\n"
-" </GGG>\n"
-" <HHH/>\n"
-" </FFF>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//GGG/ancestor::* | //GGG/descendant::* | //GGG/following::* | //GGG/preceding::* | //GGG/self::*",
-"The ancestor, descendant, following, preceding and self axes partition a document",
-" <AAA>\n"
-" <BBB>\n"
-" <CCC/>\n"
-" <ZZZ/>\n"
-" </BBB>\n"
-" <XXX>\n"
-" <DDD>\n"
-" <EEE/>\n"
-" <FFF>\n"
-" <HHH/>\n"
-" <GGG>\n"
-" <JJJ>\n"
-" <QQQ/>\n"
-" </JJJ>\n"
-" <JJJ/>\n"
-" </GGG>\n"
-" <HHH/>\n"
-" </FFF>\n"
-" </DDD>\n"
-" </XXX>\n"
-" <CCC>\n"
-" <DDD/>\n"
-" </CCC>\n"
-" </AAA>\n"
-},
-
-{
-"//BBB[position() mod 2 = 0 ]",
-"Select even BBB elements",
-" <AAA>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <CCC/>\n"
-" <CCC/>\n"
-" <CCC/>\n"
-" </AAA>\n"
-},
-
-{
-"//BBB[ position() = floor(last() div 2 + 0.5) or position() = ceiling(last() div 2 + 0.5) ]",
-"Select middle BBB element(s)",
-" <AAA>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <CCC/>\n"
-" <CCC/>\n"
-" <CCC/>\n"
-" </AAA>\n"
-},
-
-{
-"//CCC[ position() = floor(last() div 2 + 0.5) or position() = ceiling(last() div 2 + 0.5) ]",
-"Select middle CCC element(s)",
-" <AAA>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <BBB/>\n"
-" <CCC/>\n"
-" <CCC/>\n"
-" <CCC/>\n"
-" </AAA>\n"
-},
-
-{ //end data
-NULL,
-NULL,
-NULL,
-}
-
-};
-
-
-
-bool doStringTest(const char *str)
-{
- XPathParser xp;
- xp.setDebug(true);
-
- if (!xp.parse(str))
- return false;
-
-
- return true;
-}
-
-
-
-bool doStringTests()
-{
- for (XpathTest *xpt = xpathTests ; xpt->xpathStr ; xpt++)
- {
- if (!doStringTest(xpt->xpathStr))
- return false;
- }
- return true;
-}
-
-bool dumpDoc(DocumentPtr doc)
-{
- DOMImplementationLSImpl domImpl;
- LSSerializer &serializer = domImpl.createLSSerializer();
- LSOutput output = domImpl.createLSOutput();
- StdWriter writer;
- output.setCharacterStream(&writer);
- serializer.write(doc, output);
-
- return true;
-}
-
-
-bool doXmlTest(XpathTest *xpt)
-{
- printf("################################################################\n");
-
- //### READ
- DOMImplementationLSImpl domImpl;
- LSInput input = domImpl.createLSInput();
- LSParser &parser = domImpl.createLSParser(0, "");
- input.setStringData(xpt->xml);
- DocumentPtr doc = parser.parse(input);
-
- //### XPATH
- XPathParser xp;
- xp.setDebug(true);
-
- DOMString xpathStr = xpt->xpathStr;
- NodeList list = xp.evaluate(doc, xpathStr);
- for (unsigned int i=0 ; i<list.getLength() ; i++)
- {
- NodePtr n = list.item(i);
- printf("@@ node: %s\n", n->getNodeName().c_str());
- }
-
- //dumpDoc(doc);
-
- return true;
-}
-
-bool doXmlTests()
-{
- for (XpathTest *xpt = xpathTests ; xpt->xpathStr ; xpt++)
- {
- if (!doXmlTest(xpt))
- return false;
- }
- return true;
-}
-
-bool doTests()
-{
- /*
- if (!doStringTests())
- {
- printf("## Failed string tests\n");
- return false;
- }
- */
- if (!doXmlTests())
- {
- printf("## Failed xml tests\n");
- return false;
- }
- return true;
-}
-
-
-
-int main(int argc, char **argv)
-{
- doTests();
- return 0;
-}
diff --git a/src/dom/work/testzip.cpp b/src/dom/work/testzip.cpp
deleted file mode 100644
index 9281d37ce..000000000
--- a/src/dom/work/testzip.cpp
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- * Phoebe DOM Implementation.
- *
- * This is a C++ approximation of the W3C DOM model, which follows
- * fairly closely the specifications in the various .idl files, copies of
- * which are provided for reference. Most important is this one:
- *
- * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html
- *
- * Authors:
- * Bob Jamison
- *
- * Copyright (C) 2006 Bob Jamison
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#include <stdio.h>
-
-
-#include "io/uristream.h"
-#include "util/ziptool.h"
-
-
-
-bool doTest()
-{
- org::w3c::dom::io::UriInputStream ins("file:work/test.odg");
-
- std::vector<unsigned char>inbuf;
-
- while (true)
- {
- int ch = ins.get();
- if (ch < 0)
- break;
- inbuf.push_back(ch);
- }
- ZipFile zf;
- if (!zf.readBuffer(inbuf))
- {
- return false;
- }
- return true;
-}
-
-
-int main(int argc, char **argv)
-{
- doTest();
-}
-
-
diff --git a/src/dom/work/traversal.idl b/src/dom/work/traversal.idl
deleted file mode 100644
index 660f4577d..000000000
--- a/src/dom/work/traversal.idl
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- * Copyright (c) 2000 World Wide Web Consortium,
- * (Massachusetts Institute of Technology, Institut National de
- * Recherche en Informatique et en Automatique, Keio University). All
- * Rights Reserved. This program is distributed under the W3C's Software
- * Intellectual Property License. This program is distributed in the
- * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
- * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE.
- * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
- */
-
-// File: http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113/traversal.idl
-
-#ifndef _TRAVERSAL_IDL_
-#define _TRAVERSAL_IDL_
-
-#include "dom.idl"
-
-#pragma prefix "dom.w3c.org"
-module traversal
-{
-
- typedef dom::Node Node;
-
- interface NodeFilter;
-
- // Introduced in DOM Level 2:
- interface NodeIterator {
- readonly attribute Node root;
- readonly attribute unsigned long whatToShow;
- readonly attribute NodeFilter filter;
- readonly attribute boolean expandEntityReferences;
- Node nextNode()
- raises(dom::DOMException);
- Node previousNode()
- raises(dom::DOMException);
- void detach();
- };
-
- // Introduced in DOM Level 2:
- interface NodeFilter {
-
- // Constants returned by acceptNode
- const short FILTER_ACCEPT = 1;
- const short FILTER_REJECT = 2;
- const short FILTER_SKIP = 3;
-
-
- // Constants for whatToShow
- const unsigned long SHOW_ALL = 0xFFFFFFFF;
- const unsigned long SHOW_ELEMENT = 0x00000001;
- const unsigned long SHOW_ATTRIBUTE = 0x00000002;
- const unsigned long SHOW_TEXT = 0x00000004;
- const unsigned long SHOW_CDATA_SECTION = 0x00000008;
- const unsigned long SHOW_ENTITY_REFERENCE = 0x00000010;
- const unsigned long SHOW_ENTITY = 0x00000020;
- const unsigned long SHOW_PROCESSING_INSTRUCTION = 0x00000040;
- const unsigned long SHOW_COMMENT = 0x00000080;
- const unsigned long SHOW_DOCUMENT = 0x00000100;
- const unsigned long SHOW_DOCUMENT_TYPE = 0x00000200;
- const unsigned long SHOW_DOCUMENT_FRAGMENT = 0x00000400;
- const unsigned long SHOW_NOTATION = 0x00000800;
-
- short acceptNode(in Node n);
- };
-
- // Introduced in DOM Level 2:
- interface TreeWalker {
- readonly attribute Node root;
- readonly attribute unsigned long whatToShow;
- readonly attribute NodeFilter filter;
- readonly attribute boolean expandEntityReferences;
- attribute Node currentNode;
- // raises(dom::DOMException) on setting
-
- Node parentNode();
- Node firstChild();
- Node lastChild();
- Node previousSibling();
- Node nextSibling();
- Node previousNode();
- Node nextNode();
- };
-
- // Introduced in DOM Level 2:
- interface DocumentTraversal {
- NodeIterator createNodeIterator(in Node root,
- in unsigned long whatToShow,
- in NodeFilter filter,
- in boolean entityReferenceExpansion)
- raises(dom::DOMException);
- TreeWalker createTreeWalker(in Node root,
- in unsigned long whatToShow,
- in NodeFilter filter,
- in boolean entityReferenceExpansion)
- raises(dom::DOMException);
- };
-};
-
-#endif // _TRAVERSAL_IDL_
-
diff --git a/src/dom/work/views.idl b/src/dom/work/views.idl
deleted file mode 100644
index 7ae0c50a7..000000000
--- a/src/dom/work/views.idl
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (c) 2000 World Wide Web Consortium,
- * (Massachusetts Institute of Technology, Institut National de
- * Recherche en Informatique et en Automatique, Keio University). All
- * Rights Reserved. This program is distributed under the W3C's Software
- * Intellectual Property License. This program is distributed in the
- * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
- * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE.
- * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
- */
-
-// File: http://www.w3.org/TR/2000/REC-DOM-Level-2-Views-20001113/views.idl
-
-#ifndef _VIEWS_IDL_
-#define _VIEWS_IDL_
-
-#include "dom.idl"
-
-#pragma prefix "dom.w3c.org"
-module views
-{
-
- interface DocumentView;
-
- // Introduced in DOM Level 2:
- interface AbstractView {
- readonly attribute DocumentView document;
- };
-
- // Introduced in DOM Level 2:
- interface DocumentView {
- readonly attribute AbstractView defaultView;
- };
-};
-
-#endif // _VIEWS_IDL_
-
diff --git a/src/dom/work/xpath.idl b/src/dom/work/xpath.idl
deleted file mode 100644
index 066f064b0..000000000
--- a/src/dom/work/xpath.idl
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
- * Copyright (c) 2004 World Wide Web Consortium,
- *
- * (Massachusetts Institute of Technology, European Research Consortium for
- * Informatics and Mathematics, Keio University). All Rights Reserved. This
- * work is distributed under the W3C(r) Software License [1] in the hope that
- * it will be useful, but WITHOUT ANY WARRANTY; without even the implied
- * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
- */
-
-// File: http://www.w3.org/TR/2004/NOTE-DOM-Level-3-XPath-20040226/xpath.idl
-
-#ifndef _XPATH_IDL_
-#define _XPATH_IDL_
-
-#include "dom.idl"
-
-#pragma prefix "dom.w3c.org"
-module xpath
-{
-
- typedef dom::DOMString DOMString;
- typedef dom::Node Node;
- typedef dom::DOMObject DOMObject;
- typedef dom::Element Element;
-
- interface XPathNSResolver;
- interface XPathExpression;
-
- exception XPathException {
- unsigned short code;
- };
- // XPathExceptionCode
- const unsigned short INVALID_EXPRESSION_ERR = 51;
- const unsigned short TYPE_ERR = 52;
-
-
- interface XPathEvaluator {
- XPathExpression createExpression(in DOMString expression,
- in XPathNSResolver resolver)
- raises(XPathException,
- dom::DOMException);
- XPathNSResolver createNSResolver(in Node nodeResolver);
- DOMObject evaluate(in DOMString expression,
- in Node contextNode,
- in XPathNSResolver resolver,
- in unsigned short type,
- in DOMObject result)
- raises(XPathException,
- dom::DOMException);
- };
-
- interface XPathExpression {
- DOMObject evaluate(in Node contextNode,
- in unsigned short type,
- in DOMObject result)
- raises(XPathException,
- dom::DOMException);
- };
-
- interface XPathNSResolver {
- DOMString lookupNamespaceURI(in DOMString prefix);
- };
-
- interface XPathResult {
-
- // XPathResultType
- const unsigned short ANY_TYPE = 0;
- const unsigned short NUMBER_TYPE = 1;
- const unsigned short STRING_TYPE = 2;
- const unsigned short BOOLEAN_TYPE = 3;
- const unsigned short UNORDERED_NODE_ITERATOR_TYPE = 4;
- const unsigned short ORDERED_NODE_ITERATOR_TYPE = 5;
- const unsigned short UNORDERED_NODE_SNAPSHOT_TYPE = 6;
- const unsigned short ORDERED_NODE_SNAPSHOT_TYPE = 7;
- const unsigned short ANY_UNORDERED_NODE_TYPE = 8;
- const unsigned short FIRST_ORDERED_NODE_TYPE = 9;
-
- readonly attribute unsigned short resultType;
- readonly attribute double numberValue;
- // raises(XPathException) on retrieval
-
- readonly attribute DOMString stringValue;
- // raises(XPathException) on retrieval
-
- readonly attribute boolean booleanValue;
- // raises(XPathException) on retrieval
-
- readonly attribute Node singleNodeValue;
- // raises(XPathException) on retrieval
-
- readonly attribute boolean invalidIteratorState;
- readonly attribute unsigned long snapshotLength;
- // raises(XPathException) on retrieval
-
- Node iterateNext()
- raises(XPathException,
- dom::DOMException);
- Node snapshotItem(in unsigned long index)
- raises(XPathException);
- };
-
- interface XPathNamespace : Node {
-
- // XPathNodeType
- const unsigned short XPATH_NAMESPACE_NODE = 13;
-
- readonly attribute Element ownerElement;
- };
-};
-
-#endif // _XPATH_IDL_
-
diff --git a/src/dom/work/xpathtests.cpp b/src/dom/work/xpathtests.cpp
deleted file mode 100644
index f34c62c80..000000000
--- a/src/dom/work/xpathtests.cpp
+++ /dev/null
@@ -1,1290 +0,0 @@
-/**
- * Phoebe DOM Implementation.
- *
- * This is a C++ approximation of the W3C DOM model, which follows
- * fairly closely the specifications in the various .idl files, copies of
- * which are provided for reference. Most important is this one:
- *
- * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html
- *
- * Authors:
- * Bob Jamison
- *
- * Copyright (C) 2005 Bob Jamison
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-
-
-typedef struct
-{
- char *xpathStr;
- char *desc;
- char *xml;
-} XpathTest;
-
-XpathTest xpathTests[] =
-{
-
-{
-"/AAA",
-"Select the root element AAA",
-" <AAA>"
-" <BBB/>"
-" <CCC/>"
-" <BBB/>"
-" <BBB/>"
-" <DDD>"
-" <BBB/>"
-" </DDD>"
-" <CCC/>"
-" </AAA>"
-},
-
-{
-"/AAA/CCC",
-"Select all elements CCC which are children of the root element AAA",
-" <AAA>"
-" <BBB/>"
-" <CCC/>"
-" <BBB/>"
-" <BBB/>"
-" <DDD>"
-" <BBB/>"
-" </DDD>"
-" <CCC/>"
-" </AAA>"
-},
-
-{
-"/AAA/DDD/BBB",
-"Select all elements BBB which are children of DDD which are children of the root element AAA",
-" <AAA>"
-" <BBB/>"
-" <CCC/>"
-" <BBB/>"
-" <BBB/>"
-" <DDD>"
-" <BBB/>"
-" </DDD>"
-" <CCC/>"
-" </AAA>"
-"//BBB",
-},
-
-{
-"Select all elements BBB",
-" <AAA>"
-" <BBB/>"
-" <CCC/>"
-" <BBB/>"
-" <DDD>"
-" <BBB/>"
-" </DDD>"
-" <CCC>"
-" <DDD>"
-" <BBB/>"
-" <BBB/>"
-" </DDD>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//DDD/BBB",
-"Select all elements BBB which are children of DDD",
-" <AAA>"
-" <BBB/>"
-" <CCC/>"
-" <BBB/>"
-" <DDD>"
-" <BBB/>"
-" </DDD>"
-" <CCC>"
-" <DDD>"
-" <BBB/>"
-" <BBB/>"
-" </DDD>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"/AAA/CCC/DDD/*",
-"Select all elements enclosed by elements /AAA/CCC/DDD",
-" <AAA>"
-" <XXX>"
-" <DDD>"
-" <BBB/>"
-" <BBB/>"
-" <EEE/>"
-" <FFF/>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD>"
-" <BBB/>"
-" <BBB/>"
-" <EEE/>"
-" <FFF/>"
-" </DDD>"
-" </CCC>"
-" <CCC>"
-" <BBB>"
-" <BBB>"
-" <BBB/>"
-" </BBB>"
-" </BBB>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"/*/*/*/BBB",
-"Select all elements BBB which have 3 ancestors",
-" <AAA>"
-" <XXX>"
-" <DDD>"
-" <BBB/>"
-" <BBB/>"
-" <EEE/>"
-" <FFF/>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD>"
-" <BBB/>"
-" <BBB/>"
-" <EEE/>"
-" <FFF/>"
-" </DDD>"
-" </CCC>"
-" <CCC>"
-" <BBB>"
-" <BBB>"
-" <BBB/>"
-" </BBB>"
-" </BBB>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//*",
-"Select all elements",
-" <AAA>"
-" <XXX>"
-" <DDD>"
-" <BBB/>"
-" <BBB/>"
-" <EEE/>"
-" <FFF/>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD>"
-" <BBB/>"
-" <BBB/>"
-" <EEE/>"
-" <FFF/>"
-" </DDD>"
-" </CCC>"
-" <CCC>"
-" <BBB>"
-" <BBB>"
-" <BBB/>"
-" </BBB>"
-" </BBB>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"/AAA/BBB[1]",
-"Select the first BBB child of element AAA",
-" <AAA>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" </AAA>"
-},
-
-{
-"/AAA/BBB[last()]",
-"Select the last BBB child of element AAA",
-" <AAA>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" </AAA>"
-},
-
-{
-"//@id",
-"Select all attributes @id",
-" <AAA>"
-" <BBB id = 'b1'/>"
-" <BBB id = 'b2'/>"
-" <BBB name = 'bbb'/>"
-" <BBB/>"
-" </AAA>"
-},
-
-{
-"//BBB[@id]",
-"Select BBB elements which have attribute id",
-" <AAA>"
-" <BBB id = 'b1'/>"
-" <BBB id = 'b2'/>"
-" <BBB name = 'bbb'/>"
-" <BBB/>"
-" </AAA>"
-},
-
-{
-"//BBB[@name]",
-"Select BBB elements which have attribute name",
-" <AAA>"
-" <BBB id = 'b1'/>"
-" <BBB id = 'b2'/>"
-" <BBB name = 'bbb'/>"
-" <BBB/>"
-" </AAA>"
-},
-
-{
-"//BBB[@*]",
-"Select BBB elements which have any attribute",
-" <AAA>"
-" <BBB id = 'b1'/>"
-" <BBB id = 'b2'/>"
-" <BBB name = 'bbb'/>"
-" <BBB/>"
-" </AAA>"
-},
-
-{
-"//BBB[not(@*)]",
-"Select BBB elements without an attribute",
-" <AAA>"
-" <BBB id = 'b1'/>"
-" <BBB id = 'b2'/>"
-" <BBB name = 'bbb'/>"
-" <BBB/>"
-" </AAA>"
-},
-
-{
-"//BBB[@id='b1']",
-"Select BBB elements which have attribute id with value b1",
-" <AAA>"
-" <BBB id = 'b1'/>"
-" <BBB name = ' bbb '/>"
-" <BBB name = 'bbb'/>"
-" </AAA>"
-},
-
-{
-"//BBB[@name='bbb']",
-"Select BBB elements which have attribute name with value 'bbb'",
-" <AAA>"
-" <BBB id = 'b1'/>"
-" <BBB name = ' bbb '/>"
-" <BBB name = 'bbb'/>"
-" </AAA>"
-},
-
-{
-"//BBB[normalize-space(@name)='bbb']",
-"Select BBB elements which have attribute name with value bbb, leading and trailing spaces are removed before comparison",
-" <AAA>"
-" <BBB id = 'b1'/>"
-" <BBB name = ' bbb '/>"
-" <BBB name = 'bbb'/>"
-" </AAA>"
-},
-
-{
-"//*[count(BBB)=2]",
-"Select elements which have two children BBB",
-" <AAA>"
-" <CCC>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" </CCC>"
-" <DDD>"
-" <BBB/>"
-" <BBB/>"
-" </DDD>"
-" <EEE>"
-" <CCC/>"
-" <DDD/>"
-" </EEE>"
-" </AAA>"
-},
-
-{
-"//*[count(*)=2]",
-"Select elements which have 2 children",
-" <AAA>"
-" <CCC>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" </CCC>"
-" <DDD>"
-" <BBB/>"
-" <BBB/>"
-" </DDD>"
-" <EEE>"
-" <CCC/>"
-" <DDD/>"
-" </EEE>"
-" </AAA>"
-},
-
-{
-"//*[count(*)=3]",
-"Select elements which have 3 children",
-" <AAA>"
-" <CCC>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" </CCC>"
-" <DDD>"
-" <BBB/>"
-" <BBB/>"
-" </DDD>"
-" <EEE>"
-" <CCC/>"
-" <DDD/>"
-" </EEE>"
-" </AAA>"
-},
-
-{
-"//*[name()='BBB']",
-"Select all elements with name BBB, equivalent with //BBB",
-" <AAA>"
-" <BCC>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" </BCC>"
-" <DDB>"
-" <BBB/>"
-" <BBB/>"
-" </DDB>"
-" <BEC>"
-" <CCC/>"
-" <DBD/>"
-" </BEC>"
-" </AAA>"
-},
-
-{
-"//*[starts-with(name(),'B')]",
-"Select all elements name of which starts with letter B",
-" <AAA>"
-" <BCC>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" </BCC>"
-" <DDB>"
-" <BBB/>"
-" <BBB/>"
-" </DDB>"
-" <BEC>"
-" <CCC/>"
-" <DBD/>"
-" </BEC>"
-" </AAA>"
-},
-
-{
-"//*[contains(name(),'C')]",
-"Select all elements name of which contain letter C",
-" <AAA>"
-" <BCC>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" </BCC>"
-" <DDB>"
-" <BBB/>"
-" <BBB/>"
-" </DDB>"
-" <BEC>"
-" <CCC/>"
-" <DBD/>"
-" </BEC>"
-" </AAA>"
-},
-
-{
-"//*[string-length(name()) = 3]",
-"Select elements with three-letter name",
-" <AAA>"
-" <Q/>"
-" <SSSS/>"
-" <BB/>"
-" <CCC/>"
-" <DDDDDDDD/>"
-" <EEEE/>"
-" </AAA>"
-},
-
-{
-"//*[string-length(name()) < 3]",
-"Select elements name of which has one or two characters",
-" <AAA>"
-" <Q/>"
-" <SSSS/>"
-" <BB/>"
-" <CCC/>"
-" <DDDDDDDD/>"
-" <EEEE/>"
-" </AAA>"
-},
-
-{
-"//*[string-length(name()) > 3]",
-"Select elements with name longer than three characters",
-" <AAA>"
-" <Q/>"
-" <SSSS/>"
-" <BB/>"
-" <CCC/>"
-" <DDDDDDDD/>"
-" <EEEE/>"
-" </AAA>"
-},
-
-{
-"//CCC | //BBB",
-"Select all elements CCC and BBB",
-" <AAA>"
-" <BBB/>"
-" <CCC/>"
-" <DDD>"
-" <CCC/>"
-" </DDD>"
-" <EEE/>"
-" </AAA>"
-},
-
-{
-"/AAA/EEE | //BBB",
-"Select all elements BBB and elements EEE which are children of root element AAA",
-" <AAA>"
-" <BBB/>"
-" <CCC/>"
-" <DDD>"
-" <CCC/>"
-" </DDD>"
-" <EEE/>"
-" </AAA>"
-},
-
-{
-"/AAA/EEE | //DDD/CCC | /AAA | //BBB",
-"Number of combinations is not restricted",
-" <AAA>"
-" <BBB/>"
-" <CCC/>"
-" <DDD>"
-" <CCC/>"
-" </DDD>"
-" <EEE/>"
-" </AAA>"
-},
-
-{
-"/AAA",
-"Equivalent of /child::AAA",
-" <AAA>"
-" <BBB/>"
-" <CCC/>"
-" </AAA>"
-},
-
-{
-"/child::AAA",
-"Equivalent of /AAA",
-" <AAA>"
-" <BBB/>"
-" <CCC/>"
-" </AAA>"
-},
-
-{
-"/AAA/BBB",
-"Equivalent of /child::AAA/child::BBB",
-" <AAA>"
-" <BBB/>"
-" <CCC/>"
-" </AAA>"
-},
-
-{
-"/child::AAA/child::BBB",
-"Equivalent of /AAA/BBB",
-" <AAA>"
-" <BBB/>"
-" <CCC/>"
-" </AAA>"
-},
-
-{
-"/child::AAA/BBB",
-"Both possibilities can be combined",
-" <AAA>"
-" <BBB/>"
-" <CCC/>"
-" </AAA>"
-},
-
-{
-"/descendant::*",
-"Select all descendants of document root and therefore all elements",
-" <AAA>"
-" <BBB>"
-" <DDD>"
-" <CCC>"
-" <DDD/>"
-" <EEE/>"
-" </CCC>"
-" </DDD>"
-" </BBB>"
-" <CCC>"
-" <DDD>"
-" <EEE>"
-" <DDD>"
-" <FFF/>"
-" </DDD>"
-" </EEE>"
-" </DDD>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"/AAA/BBB/descendant::*",
-"Select all descendants of /AAA/BBB",
-" <AAA>"
-" <BBB>"
-" <DDD>"
-" <CCC>"
-" <DDD/>"
-" <EEE/>"
-" </CCC>"
-" </DDD>"
-" </BBB>"
-" <CCC>"
-" <DDD>"
-" <EEE>"
-" <DDD>"
-" <FFF/>"
-" </DDD>"
-" </EEE>"
-" </DDD>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//CCC/descendant::*",
-"Select all elements which have CCC among its ancestors",
-" <AAA>"
-" <BBB>"
-" <DDD>"
-" <CCC>"
-" <DDD/>"
-" <EEE/>"
-" </CCC>"
-" </DDD>"
-" </BBB>"
-" <CCC>"
-" <DDD>"
-" <EEE>"
-" <DDD>"
-" <FFF/>"
-" </DDD>"
-" </EEE>"
-" </DDD>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//CCC/descendant::DDD",
-"Select elements DDD which have CCC among its ancestors",
-" <AAA>"
-" <BBB>"
-" <DDD>"
-" <CCC>"
-" <DDD/>"
-" <EEE/>"
-" </CCC>"
-" </DDD>"
-" </BBB>"
-" <CCC>"
-" <DDD>"
-" <EEE>"
-" <DDD>"
-" <FFF/>"
-" </DDD>"
-" </EEE>"
-" </DDD>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//DDD/parent::*",
-"Select all parents of DDD element",
-" <AAA>"
-" <BBB>"
-" <DDD>"
-" <CCC>"
-" <DDD/>"
-" <EEE/>"
-" </CCC>"
-" </DDD>"
-" </BBB>"
-" <CCC>"
-" <DDD>"
-" <EEE>"
-" <DDD>"
-" <FFF/>"
-" </DDD>"
-" </EEE>"
-" </DDD>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"/AAA/BBB/DDD/CCC/EEE/ancestor::*",
-"Select all elements given in this absolute path",
-" <AAA>"
-" <BBB>"
-" <DDD>"
-" <CCC>"
-" <DDD/>"
-" <EEE/>"
-" </CCC>"
-" </DDD>"
-" </BBB>"
-" <CCC>"
-" <DDD>"
-" <EEE>"
-" <DDD>"
-" <FFF/>"
-" </DDD>"
-" </EEE>"
-" </DDD>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//FFF/ancestor::*",
-"Select ancestors of FFF element",
-" <AAA>"
-" <BBB>"
-" <DDD>"
-" <CCC>"
-" <DDD/>"
-" <EEE/>"
-" </CCC>"
-" </DDD>"
-" </BBB>"
-" <CCC>"
-" <DDD>"
-" <EEE>"
-" <DDD>"
-" <FFF/>"
-" </DDD>"
-" </EEE>"
-" </DDD>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"/AAA/BBB/following-sibling::*",
-"The following-sibling axis contains all the following siblings of the context node.",
-" <AAA>"
-" <BBB>"
-" <CCC/>"
-" <DDD/>"
-" </BBB>"
-" <XXX>"
-" <DDD>"
-" <EEE/>"
-" <DDD/>"
-" <CCC/>"
-" <FFF/>"
-" <FFF>"
-" <GGG/>"
-" </FFF>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD/>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//CCC/following-sibling::*",
-"The following-sibling axis contains all the following siblings of the context node.",
-" <AAA>"
-" <BBB>"
-" <CCC/>"
-" <DDD/>"
-" </BBB>"
-" <XXX>"
-" <DDD>"
-" <EEE/>"
-" <DDD/>"
-" <CCC/>"
-" <FFF/>"
-" <FFF>"
-" <GGG/>"
-" </FFF>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD/>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"/AAA/XXX/preceding-sibling::*",
-"The preceding-sibling axis contains all the preceding siblings of the context node.",
-" <AAA>"
-" <BBB>"
-" <CCC/>"
-" <DDD/>"
-" </BBB>"
-" <XXX>"
-" <DDD>"
-" <EEE/>"
-" <DDD/>"
-" <CCC/>"
-" <FFF/>"
-" <FFF>"
-" <GGG/>"
-" </FFF>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD/>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//CCC/preceding-sibling::*",
-" <AAA>"
-" <BBB>"
-" <CCC/>"
-" <DDD/>"
-" </BBB>"
-" <XXX>"
-" <DDD>"
-" <EEE/>"
-" <DDD/>"
-" <CCC/>"
-" <FFF/>"
-" <FFF>"
-" <GGG/>"
-" </FFF>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD/>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"/AAA/XXX/following::*",
-"Description",
-" <AAA>"
-" <BBB>"
-" <CCC/>"
-" <ZZZ>"
-" <DDD/>"
-" <DDD>"
-" <EEE/>"
-" </DDD>"
-" </ZZZ>"
-" <FFF>"
-" <GGG/>"
-" </FFF>"
-" </BBB>"
-" <XXX>"
-" <DDD>"
-" <EEE/>"
-" <DDD/>"
-" <CCC/>"
-" <FFF/>"
-" <FFF>"
-" <GGG/>"
-" </FFF>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD/>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//ZZZ/following::*",
-"Description",
-" <AAA>"
-" <BBB>"
-" <CCC/>"
-" <ZZZ>"
-" <DDD/>"
-" <DDD>"
-" <EEE/>"
-" </DDD>"
-" </ZZZ>"
-" <FFF>"
-" <GGG/>"
-" </FFF>"
-" </BBB>"
-" <XXX>"
-" <DDD>"
-" <EEE/>"
-" <DDD/>"
-" <CCC/>"
-" <FFF/>"
-" <FFF>"
-" <GGG/>"
-" </FFF>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD/>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"/AAA/XXX/preceding::*",
-"Description",
-" <AAA>"
-" <BBB>"
-" <CCC/>"
-" <ZZZ>"
-" <DDD/>"
-" </ZZZ>"
-" </BBB>"
-" <XXX>"
-" <DDD>"
-" <EEE/>"
-" <DDD/>"
-" <CCC/>"
-" <FFF/>"
-" <FFF>"
-" <GGG/>"
-" </FFF>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD/>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//GGG/preceding::*",
-"Description",
-" <AAA>"
-" <BBB>"
-" <CCC/>"
-" <ZZZ>"
-" <DDD/>"
-" </ZZZ>"
-" </BBB>"
-" <XXX>"
-" <DDD>"
-" <EEE/>"
-" <DDD/>"
-" <CCC/>"
-" <FFF/>"
-" <FFF>"
-" <GGG/>"
-" </FFF>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD/>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"/AAA/XXX/descendant-or-self::*",
-"Description",
-" <AAA>"
-" <BBB>"
-" <CCC/>"
-" <ZZZ>"
-" <DDD/>"
-" </ZZZ>"
-" </BBB>"
-" <XXX>"
-" <DDD>"
-" <EEE/>"
-" <DDD/>"
-" <CCC/>"
-" <FFF/>"
-" <FFF>"
-" <GGG/>"
-" </FFF>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD/>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//CCC/descendant-or-self::*",
-"Description",
-" <AAA>"
-" <BBB>"
-" <CCC/>"
-" <ZZZ>"
-" <DDD/>"
-" </ZZZ>"
-" </BBB>"
-" <XXX>"
-" <DDD>"
-" <EEE/>"
-" <DDD/>"
-" <CCC/>"
-" <FFF/>"
-" <FFF>"
-" <GGG/>"
-" </FFF>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD/>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"/AAA/XXX/DDD/EEE/ancestor-or-self::*",
-"Description",
-" <AAA>"
-" <BBB>"
-" <CCC/>"
-" <ZZZ>"
-" <DDD/>"
-" </ZZZ>"
-" </BBB>"
-" <XXX>"
-" <DDD>"
-" <EEE/>"
-" <DDD/>"
-" <CCC/>"
-" <FFF/>"
-" <FFF>"
-" <GGG/>"
-" </FFF>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD/>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//GGG/ancestor-or-self::*",
-"Description",
-" <AAA>"
-" <BBB>"
-" <CCC/>"
-" <ZZZ>"
-" <DDD/>"
-" </ZZZ>"
-" </BBB>"
-" <XXX>"
-" <DDD>"
-" <EEE/>"
-" <DDD/>"
-" <CCC/>"
-" <FFF/>"
-" <FFF>"
-" <GGG/>"
-" </FFF>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD/>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//GGG/ancestor::*",
-"Description",
-" <AAA>"
-" <BBB>"
-" <CCC/>"
-" <ZZZ/>"
-" </BBB>"
-" <XXX>"
-" <DDD>"
-" <EEE/>"
-" <FFF>"
-" <HHH/>"
-" <GGG>"
-" <JJJ>"
-" <QQQ/>"
-" </JJJ>"
-" <JJJ/>"
-" </GGG>"
-" <HHH/>"
-" </FFF>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD/>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//GGG/descendant::*",
-"Description",
-" <AAA>"
-" <BBB>"
-" <CCC/>"
-" <ZZZ/>"
-" </BBB>"
-" <XXX>"
-" <DDD>"
-" <EEE/>"
-" <FFF>"
-" <HHH/>"
-" <GGG>"
-" <JJJ>"
-" <QQQ/>"
-" </JJJ>"
-" <JJJ/>"
-" </GGG>"
-" <HHH/>"
-" </FFF>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD/>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//GGG/following::*",
-"Description",
-" <AAA>"
-" <BBB>"
-" <CCC/>"
-" <ZZZ/>"
-" </BBB>"
-" <XXX>"
-" <DDD>"
-" <EEE/>"
-" <FFF>"
-" <HHH/>"
-" <GGG>"
-" <JJJ>"
-" <QQQ/>"
-" </JJJ>"
-" <JJJ/>"
-" </GGG>"
-" <HHH/>"
-" </FFF>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD/>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//GGG/preceding::*",
-"Description",
-" <AAA>"
-" <BBB>"
-" <CCC/>"
-" <ZZZ/>"
-" </BBB>"
-" <XXX>"
-" <DDD>"
-" <EEE/>"
-" <FFF>"
-" <HHH/>"
-" <GGG>"
-" <JJJ>"
-" <QQQ/>"
-" </JJJ>"
-" <JJJ/>"
-" </GGG>"
-" <HHH/>"
-" </FFF>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD/>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//GGG/self::*",
-"Description",
-" <AAA>"
-" <BBB>"
-" <CCC/>"
-" <ZZZ/>"
-" </BBB>"
-" <XXX>"
-" <DDD>"
-" <EEE/>"
-" <FFF>"
-" <HHH/>"
-" <GGG>"
-" <JJJ>"
-" <QQQ/>"
-" </JJJ>"
-" <JJJ/>"
-" </GGG>"
-" <HHH/>"
-" </FFF>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD/>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//GGG/ancestor::* | //GGG/descendant::* | //GGG/following::* | //GGG/preceding::* | //GGG/self::*",
-"description",
-" <AAA>"
-" <BBB>"
-" <CCC/>"
-" <ZZZ/>"
-" </BBB>"
-" <XXX>"
-" <DDD>"
-" <EEE/>"
-" <FFF>"
-" <HHH/>"
-" <GGG>"
-" <JJJ>"
-" <QQQ/>"
-" </JJJ>"
-" <JJJ/>"
-" </GGG>"
-" <HHH/>"
-" </FFF>"
-" </DDD>"
-" </XXX>"
-" <CCC>"
-" <DDD/>"
-" </CCC>"
-" </AAA>"
-},
-
-{
-"//BBB[position() mod 2 = 0 ]",
-"Select even BBB elements",
-" <AAA>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <CCC/>"
-" <CCC/>"
-" <CCC/>"
-" </AAA>"
-},
-
-{
-"//BBB[ position() = floor(last() div 2 + 0.5) or position() = ceiling(last() div 2 + 0.5) ]",
-"Select middle BBB element(s)",
-" <AAA>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <CCC/>"
-" <CCC/>"
-" <CCC/>"
-" </AAA>"
-},
-
-{
-"//CCC[ position() = floor(last() div 2 + 0.5) or position() = ceiling(last() div 2 + 0.5) ]",
-"Select middle CCC element(s)",
-" <AAA>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <BBB/>"
-" <CCC/>"
-" <CCC/>"
-" <CCC/>"
-" </AAA>"
-}
-
-}; //end
-
-