XPSEDAPI
 All Classes Namespaces Files Functions Variables Typedefs
MathML_content_APISPEC.idl
Go to the documentation of this file.
1 // This file has been modified to only support content MathML, and to make
2 // MathMLContainer derive from XPCOM::IObject
3 
4 // File: mathml-dom.idl
5 #ifndef _MATHMLDOM_IDL_
6 #define _MATHMLDOM_IDL_
7 
8 #include "xpcom.idl"
9 #include "DOM_APISPEC.idl"
10 
20 module mathml_dom
21 {
22  interface MathMLDocument;
23  interface MathMLMathElement;
24  interface MathMLBvarElement;
25  interface MathMLConditionElement;
26  interface MathMLDeclareElement;
27  interface MathMLMatrixrowElement;
28  interface MathMLCaseElement;
29 
31  {
32  MathMLDocument createMathMLDocument();
33  };
34 #pragma terminal-interface
35 
37  {
38  readonly attribute dom::DOMString referrer;
39  readonly attribute dom::DOMString domain;
40  readonly attribute dom::DOMString URI;
41  };
42 #pragma terminal-interface
43 
45  {
46  };
47 #pragma terminal-interface
48 
50  {
53  attribute dom::DOMString id;
54  attribute dom::DOMString xref;
55  attribute dom::DOMString href;
56  readonly attribute MathMLMathElement ownerMathElement;
57  };
58 
60  {
61  readonly attribute unsigned long nArguments;
62  readonly attribute MathMLNodeList arguments;
63  readonly attribute MathMLNodeList declarations;
64  MathMLElement getArgument(in unsigned long index)
65  raises(dom::DOMException);
66  MathMLElement setArgument(in MathMLElement newArgument,
67  in unsigned long index)
68  raises(dom::DOMException);
69  MathMLElement insertArgument(in MathMLElement newArgument,
70  in unsigned long index)
71  raises(dom::DOMException);
72  void deleteArgument(in unsigned long index)
73  raises(dom::DOMException);
74  MathMLElement removeArgument(in unsigned long index)
75  raises(dom::DOMException);
76  MathMLDeclareElement getDeclaration(in unsigned long index)
77  raises(dom::DOMException);
78  MathMLDeclareElement setDeclaration(in MathMLDeclareElement newDeclaration,
79  in unsigned long index)
80  raises(dom::DOMException);
81  MathMLDeclareElement insertDeclaration(in MathMLDeclareElement newDeclaration,
82  in unsigned long index)
83  raises(dom::DOMException);
84  MathMLDeclareElement removeDeclaration(in unsigned long index)
85  raises(dom::DOMException);
86  void deleteDeclaration(in unsigned long index)
87  raises(dom::DOMException);
88  };
89 
91  {
94  };
95 #pragma terminal-interface
96 
98  {
99  };
100 
102  {
103  readonly attribute MathMLNodeList arguments;
106  dom::Node getArgument(in unsigned long index);
107  dom::Node insertArgument(in dom::Node newArgument,
108  in unsigned long index);
109  dom::Node setArgument(in dom::Node newArgument,
110  in unsigned long index);
111  void deleteArgument(in unsigned long index);
112  dom::Node removeArgument(in unsigned long index);
113  };
114 
116  {
117  attribute dom::DOMString type;
118  attribute dom::DOMString base;
119  readonly attribute unsigned long nargs;
120  };
121 #pragma terminal-interface
122 
124  {
125  attribute dom::DOMString type;
126  };
127 #pragma terminal-interface
128 
130  {
131  };
132 #pragma terminal-interface
133 
135  {
136  readonly attribute unsigned long nBoundVariables;
138  // raises(dom::DOMException) on setting
140  // raises(dom::DOMException) on setting
142  // raises(dom::DOMException) on setting
144  // raises(dom::DOMException) on setting
145  MathMLBvarElement getBoundVariable(in unsigned long index);
146  MathMLBvarElement insertBoundVariable(in MathMLBvarElement newBVar,
147  in unsigned long index)
148  raises(dom::DOMException);
149  MathMLBvarElement setBoundVariable(in MathMLBvarElement newBVar,
150  in unsigned long index)
151  raises(dom::DOMException);
152  void deleteBoundVariable(in unsigned long index);
153  MathMLBvarElement removeBoundVariable(in unsigned long index);
154  };
155 
157  {
158  attribute MathMLElement operator;
160  // raises(dom::DOMException) on setting
162  // raises(dom::DOMException) on setting
163  };
164 #pragma terminal-interface
165 
167  {
170  };
171 #pragma terminal-interface
172 
174  {
176  };
177 #pragma terminal-interface
178 
180  {
181  readonly attribute boolean isExplicit;
182  attribute dom::DOMString type;
183  };
184 #pragma terminal-interface
185 
187  {
188  readonly attribute boolean isExplicit;
190  };
191 #pragma terminal-interface
192 
194  {
195  };
196 #pragma terminal-interface
197 
199  {
202  readonly attribute dom::DOMString arity;
203  readonly attribute dom::DOMString symbolName;
204  };
205 
207  {
208  attribute dom::DOMString type;
209  };
210 #pragma terminal-interface
211 
213  {
217  };
218 #pragma terminal-interface
219 
221  {
223  };
224 #pragma terminal-interface
225 
227  {
228  attribute dom::DOMString type;
229  attribute unsigned long nargs;
235  };
236 #pragma terminal-interface
237 
239  {
240  readonly attribute unsigned long ncomponents;
241  MathMLContentElement getComponent(in unsigned long index);
242  MathMLContentElement insertComponent(in MathMLContentElement newComponent,
243  in unsigned long index)
244  raises(dom::DOMException);
245  MathMLContentElement setComponent(in MathMLContentElement newComponent,
246  in unsigned long index)
247  raises(dom::DOMException);
248  void deleteComponent(in unsigned long index)
249  raises(dom::DOMException);
250  MathMLContentElement removeComponent(in unsigned long index);
251  };
252 #pragma terminal-interface
253 
255  {
256  readonly attribute unsigned long nrows;
257  readonly attribute unsigned long ncols;
258  readonly attribute MathMLNodeList rows;
259  MathMLMatrixrowElement getRow(in unsigned long index)
260  raises(dom::DOMException);
262  in unsigned long index)
263  raises(dom::DOMException);
265  in unsigned long index)
266  raises(dom::DOMException);
267  void deleteRow(in unsigned long index)
268  raises(dom::DOMException);
269  MathMLMatrixrowElement removeRow(in unsigned long index)
270  raises(dom::DOMException);
271  };
272 #pragma terminal-interface
273 
275  {
276  readonly attribute unsigned long nEntries;
277  MathMLContentElement getEntry(in unsigned long index)
278  raises(dom::DOMException);
279  MathMLContentElement insertEntry(in MathMLContentElement newEntry,
280  in unsigned long index)
281  raises(dom::DOMException);
282  MathMLContentElement setEntry(in MathMLContentElement newEntry,
283  in unsigned long index)
284  raises(dom::DOMException);
285  void deleteEntry(in unsigned long index)
286  raises(dom::DOMException);
287  MathMLContentElement removeEntry(in unsigned long index)
288  raises(dom::DOMException);
289  };
290 #pragma terminal-interface
291 
293  {
294  readonly attribute MathMLNodeList pieces;
296  MathMLCaseElement getCase(in unsigned long index);
297  MathMLCaseElement setCase(in unsigned long index,
298  in MathMLCaseElement caseEl)
299  raises(dom::DOMException);
300  void deleteCase(in unsigned long index)
301  raises(dom::DOMException);
302  MathMLCaseElement removeCase(in unsigned long index)
303  raises(dom::DOMException);
304  MathMLCaseElement insertCase(in unsigned long index,
305  in MathMLCaseElement newCase)
306  raises(dom::DOMException);
307  MathMLContentElement getCaseValue(in unsigned long index)
308  raises(dom::DOMException);
309  MathMLContentElement setCaseValue(in unsigned long index,
310  in MathMLContentElement value)
311  raises(dom::DOMException);
312  MathMLContentElement getCaseCondition(in unsigned long index)
313  raises(dom::DOMException);
314  MathMLContentElement setCaseCondition(in unsigned long index,
315  in MathMLContentElement condition)
316  raises(dom::DOMException);
317  };
318 #pragma terminal-interface
319 
321  {
324  };
325 #pragma terminal-interface
326 };
327 
328 #endif