1 | // <developer>niklas@protocol7.com</developer>
|
---|
2 | // <completed>90</completed>
|
---|
3 |
|
---|
4 | namespace SharpVectors.Dom.Svg
|
---|
5 | {
|
---|
6 | /// <summary>
|
---|
7 | /// The root object in the document object hierarchy of an Svg document.
|
---|
8 | /// </summary>
|
---|
9 | /// <remarks>
|
---|
10 | /// <p>
|
---|
11 | /// When an 'svg' element is embedded inline as a component of a
|
---|
12 | /// document from another namespace, such as when an 'svg' element is
|
---|
13 | /// embedded inline within an XHTML document
|
---|
14 | /// [<a href="http://www.w3.org/TR/SVG/refs.html#ref-XHTML">XHTML</a>],
|
---|
15 | /// then an
|
---|
16 | /// <see cref="ISvgDocument">ISvgDocument</see> object will not exist;
|
---|
17 | /// instead, the root object in the
|
---|
18 | /// document object hierarchy will be a Document object of a different
|
---|
19 | /// type, such as an HTMLDocument object.
|
---|
20 | /// </p>
|
---|
21 | /// <p>
|
---|
22 | /// However, an <see cref="ISvgDocument">ISvgDocument</see> object will
|
---|
23 | /// indeed exist when the root
|
---|
24 | /// element of the XML document hierarchy is an 'svg' element, such as
|
---|
25 | /// when viewing a stand-alone SVG file (i.e., a file with MIME type
|
---|
26 | /// "image/svg+xml"). In this case, the
|
---|
27 | /// <see cref="ISvgDocument">ISvgDocument</see> object will be the
|
---|
28 | /// root object of the document object model hierarchy.
|
---|
29 | /// </p>
|
---|
30 | /// <p>
|
---|
31 | /// In the case where an SVG document is embedded by reference, such as
|
---|
32 | /// when an XHTML document has an 'object' element whose href attribute
|
---|
33 | /// references an SVG document (i.e., a document whose MIME type is
|
---|
34 | /// "image/svg+xml" and whose root element is thus an 'svg' element),
|
---|
35 | /// there will exist two distinct DOM hierarchies. The first DOM hierarchy
|
---|
36 | /// will be for the referencing document (e.g., an XHTML document). The
|
---|
37 | /// second DOM hierarchy will be for the referenced SVG document. In this
|
---|
38 | /// second DOM hierarchy, the root object of the document object model
|
---|
39 | /// hierarchy is an <see cref="ISvgDocument">ISvgDocument</see> object.
|
---|
40 | /// </p>
|
---|
41 | /// <p>
|
---|
42 | /// The <see cref="ISvgDocument">ISvgDocument</see> interface contains a
|
---|
43 | /// similar list of attributes and
|
---|
44 | /// methods to the HTMLDocument interface described in the
|
---|
45 | /// <a href="http://www.w3.org/TR/REC-DOM-Level-1/level-one-html.html">Document
|
---|
46 | /// Object Model (HTML) Level 1</a> chapter of the
|
---|
47 | /// [<a href="http://www.w3.org/TR/SVG/refs.html#ref-DOM1">DOM1</a>] specification.
|
---|
48 | /// </p>
|
---|
49 | /// </remarks>
|
---|
50 | public interface ISvgDocument : IDocument
|
---|
51 | {
|
---|
52 | /// <summary>
|
---|
53 | /// The title of a document as specified by the title sub-element of
|
---|
54 | /// the 'svg' root element.
|
---|
55 | /// </summary>
|
---|
56 | string Title
|
---|
57 | {
|
---|
58 | get;
|
---|
59 | }
|
---|
60 |
|
---|
61 | /// <summary>
|
---|
62 | /// Returns the URI of the page that linked to this page. The value
|
---|
63 | /// is an empty string if the user navigated to the page directly
|
---|
64 | /// (not through a link, but, for example, via a bookmark).
|
---|
65 | /// </summary>
|
---|
66 | string Referrer
|
---|
67 | {
|
---|
68 | get;
|
---|
69 | }
|
---|
70 |
|
---|
71 | /// <summary>
|
---|
72 | /// The domain name of the server that served the document, or a
|
---|
73 | /// null string if the server cannot be identified by a domain name.
|
---|
74 | /// </summary>
|
---|
75 | string Domain
|
---|
76 | {
|
---|
77 | get;
|
---|
78 | }
|
---|
79 |
|
---|
80 | /// <summary>
|
---|
81 | /// The complete URI of the document.
|
---|
82 | /// </summary>
|
---|
83 | string Url
|
---|
84 | {
|
---|
85 | get;
|
---|
86 | }
|
---|
87 |
|
---|
88 | /// <summary>
|
---|
89 | /// The root 'svg' element in the document hierarchy.
|
---|
90 | /// </summary>
|
---|
91 | ISvgSvgElement RootElement
|
---|
92 | {
|
---|
93 | get;
|
---|
94 | }
|
---|
95 |
|
---|
96 | /// <summary>
|
---|
97 | /// The window object of the Svg document.
|
---|
98 | /// </summary>
|
---|
99 | ISvgWindow Window
|
---|
100 | {
|
---|
101 | get;
|
---|
102 | }
|
---|
103 | }
|
---|
104 | }
|
---|