|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric5.E4XML.TemplatesHandler</title> |
|
6 <style> |
|
7 b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n' |
|
8 </style> |
|
9 </head> |
|
10 <body><a NAME="top" ID="top"></a> |
|
11 <h1>eric5.E4XML.TemplatesHandler</h1> |
|
12 <p> |
|
13 Module implementing the handler class for reading an XML templates file. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#TemplatesHandler">TemplatesHandler</a></td> |
|
23 <td>Class implementing a sax handler to read an XML templates file.</td> |
|
24 </tr> |
|
25 </table> |
|
26 <h3>Functions</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <hr /><hr /> |
|
31 <a NAME="TemplatesHandler" ID="TemplatesHandler"></a> |
|
32 <h2>TemplatesHandler</h2> |
|
33 <p> |
|
34 Class implementing a sax handler to read an XML templates file. |
|
35 </p> |
|
36 <h3>Derived from</h3> |
|
37 XMLHandlerBase |
|
38 <h3>Class Attributes</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <h3>Methods</h3> |
|
43 <table> |
|
44 <tr> |
|
45 <td><a href="#TemplatesHandler.__init__">TemplatesHandler</a></td> |
|
46 <td>Constructor</td> |
|
47 </tr><tr> |
|
48 <td><a href="#TemplatesHandler.endTemplate">endTemplate</a></td> |
|
49 <td>Handler method for the "Template" end tag.</td> |
|
50 </tr><tr> |
|
51 <td><a href="#TemplatesHandler.endTemplateDescription">endTemplateDescription</a></td> |
|
52 <td>Handler method for the "TemplateDescription" end tag.</td> |
|
53 </tr><tr> |
|
54 <td><a href="#TemplatesHandler.endTemplateText">endTemplateText</a></td> |
|
55 <td>Handler method for the "TemplateText" end tag.</td> |
|
56 </tr><tr> |
|
57 <td><a href="#TemplatesHandler.getVersion">getVersion</a></td> |
|
58 <td>Public method to retrieve the version of the templates.</td> |
|
59 </tr><tr> |
|
60 <td><a href="#TemplatesHandler.startDocumentTemplates">startDocumentTemplates</a></td> |
|
61 <td>Handler called, when the document parsing is started.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#TemplatesHandler.startTemplate">startTemplate</a></td> |
|
64 <td>Handler method for the "Template" start tag.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#TemplatesHandler.startTemplateGroup">startTemplateGroup</a></td> |
|
67 <td>Handler method for the "TemplateGroup" start tag.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#TemplatesHandler.startTemplates">startTemplates</a></td> |
|
70 <td>Handler method for the "Templates" start tag.</td> |
|
71 </tr> |
|
72 </table> |
|
73 <a NAME="TemplatesHandler.__init__" ID="TemplatesHandler.__init__"></a> |
|
74 <h4>TemplatesHandler (Constructor)</h4> |
|
75 <b>TemplatesHandler</b>(<i>templateViewer=None</i>) |
|
76 <p> |
|
77 Constructor |
|
78 </p><dl> |
|
79 <dt><i>templateViewer</i></dt> |
|
80 <dd> |
|
81 reference to the template viewer object |
|
82 </dd> |
|
83 </dl><a NAME="TemplatesHandler.endTemplate" ID="TemplatesHandler.endTemplate"></a> |
|
84 <h4>TemplatesHandler.endTemplate</h4> |
|
85 <b>endTemplate</b>(<i></i>) |
|
86 <p> |
|
87 Handler method for the "Template" end tag. |
|
88 </p><a NAME="TemplatesHandler.endTemplateDescription" ID="TemplatesHandler.endTemplateDescription"></a> |
|
89 <h4>TemplatesHandler.endTemplateDescription</h4> |
|
90 <b>endTemplateDescription</b>(<i></i>) |
|
91 <p> |
|
92 Handler method for the "TemplateDescription" end tag. |
|
93 </p><a NAME="TemplatesHandler.endTemplateText" ID="TemplatesHandler.endTemplateText"></a> |
|
94 <h4>TemplatesHandler.endTemplateText</h4> |
|
95 <b>endTemplateText</b>(<i></i>) |
|
96 <p> |
|
97 Handler method for the "TemplateText" end tag. |
|
98 </p><a NAME="TemplatesHandler.getVersion" ID="TemplatesHandler.getVersion"></a> |
|
99 <h4>TemplatesHandler.getVersion</h4> |
|
100 <b>getVersion</b>(<i></i>) |
|
101 <p> |
|
102 Public method to retrieve the version of the templates. |
|
103 </p><dl> |
|
104 <dt>Returns:</dt> |
|
105 <dd> |
|
106 String containing the version number. |
|
107 </dd> |
|
108 </dl><a NAME="TemplatesHandler.startDocumentTemplates" ID="TemplatesHandler.startDocumentTemplates"></a> |
|
109 <h4>TemplatesHandler.startDocumentTemplates</h4> |
|
110 <b>startDocumentTemplates</b>(<i></i>) |
|
111 <p> |
|
112 Handler called, when the document parsing is started. |
|
113 </p><a NAME="TemplatesHandler.startTemplate" ID="TemplatesHandler.startTemplate"></a> |
|
114 <h4>TemplatesHandler.startTemplate</h4> |
|
115 <b>startTemplate</b>(<i>attrs</i>) |
|
116 <p> |
|
117 Handler method for the "Template" start tag. |
|
118 </p><dl> |
|
119 <dt><i>attrs</i></dt> |
|
120 <dd> |
|
121 list of tag attributes |
|
122 </dd> |
|
123 </dl><a NAME="TemplatesHandler.startTemplateGroup" ID="TemplatesHandler.startTemplateGroup"></a> |
|
124 <h4>TemplatesHandler.startTemplateGroup</h4> |
|
125 <b>startTemplateGroup</b>(<i>attrs</i>) |
|
126 <p> |
|
127 Handler method for the "TemplateGroup" start tag. |
|
128 </p><dl> |
|
129 <dt><i>attrs</i></dt> |
|
130 <dd> |
|
131 list of tag attributes |
|
132 </dd> |
|
133 </dl><a NAME="TemplatesHandler.startTemplates" ID="TemplatesHandler.startTemplates"></a> |
|
134 <h4>TemplatesHandler.startTemplates</h4> |
|
135 <b>startTemplates</b>(<i>attrs</i>) |
|
136 <p> |
|
137 Handler method for the "Templates" start tag. |
|
138 </p><dl> |
|
139 <dt><i>attrs</i></dt> |
|
140 <dd> |
|
141 list of tag attributes |
|
142 </dd> |
|
143 </dl> |
|
144 <div align="right"><a href="#top">Up</a></div> |
|
145 <hr /> |
|
146 </body></html> |