2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git] / class / Mono.WebBrowser / Mono.Mozilla / interfaces / nsIDOMHTMLStyleElement.cs
blob1c0a3b8f0839dac4555a5b5b30c3e9873d519cd5
1 // THIS FILE AUTOMATICALLY GENERATED BY xpidl2cs.pl
2 // EDITING IS PROBABLY UNWISE
3 // Permission is hereby granted, free of charge, to any person obtaining
4 // a copy of this software and associated documentation files (the
5 // "Software"), to deal in the Software without restriction, including
6 // without limitation the rights to use, copy, modify, merge, publish,
7 // distribute, sublicense, and/or sell copies of the Software, and to
8 // permit persons to whom the Software is furnished to do so, subject to
9 // the following conditions:
10 //
11 // The above copyright notice and this permission notice shall be
12 // included in all copies or substantial portions of the Software.
13 //
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 // Copyright (c) 2007, 2008 Novell, Inc.
24 // Authors:
25 // Andreia Gaita (avidigal@novell.com)
28 using System;
29 using System.Runtime.InteropServices;
30 using System.Runtime.CompilerServices;
31 using System.Text;
33 namespace Mono.Mozilla {
35 [Guid ("a6cf908d-15b3-11d2-932e-00805f8add32")]
36 [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
37 [ComImport ()]
38 internal interface nsIDOMHTMLStyleElement : nsIDOMHTMLElement {
39 #region nsIDOMNode
40 [PreserveSigAttribute]
41 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
42 int getNodeName ( /*DOMString*/ HandleRef ret);
44 [PreserveSigAttribute]
45 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
46 int getNodeValue ( /*DOMString*/ HandleRef ret);
48 [PreserveSigAttribute]
49 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
50 int setNodeValue ( /*DOMString*/ HandleRef value);
52 [PreserveSigAttribute]
53 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
54 int getNodeType ( out ushort ret);
56 [PreserveSigAttribute]
57 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
58 int getParentNode ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
60 [PreserveSigAttribute]
61 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
62 int getChildNodes ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNodeList ret);
64 [PreserveSigAttribute]
65 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
66 int getFirstChild ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
68 [PreserveSigAttribute]
69 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
70 int getLastChild ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
72 [PreserveSigAttribute]
73 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
74 int getPreviousSibling ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
76 [PreserveSigAttribute]
77 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
78 int getNextSibling ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
80 [PreserveSigAttribute]
81 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
82 int getAttributes ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNamedNodeMap ret);
84 [PreserveSigAttribute]
85 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
86 int getOwnerDocument ([MarshalAs (UnmanagedType.Interface)] out nsIDOMDocument ret);
88 [PreserveSigAttribute]
89 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
90 int insertBefore (
91 [MarshalAs (UnmanagedType.Interface)] nsIDOMNode newChild,
92 [MarshalAs (UnmanagedType.Interface)] nsIDOMNode refChild,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
94 [PreserveSigAttribute]
95 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
96 int replaceChild (
97 [MarshalAs (UnmanagedType.Interface)] nsIDOMNode newChild,
98 [MarshalAs (UnmanagedType.Interface)] nsIDOMNode oldChild,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
100 [PreserveSigAttribute]
101 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
102 int removeChild (
103 [MarshalAs (UnmanagedType.Interface)] nsIDOMNode oldChild,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
105 [PreserveSigAttribute]
106 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
107 int appendChild (
108 [MarshalAs (UnmanagedType.Interface)] nsIDOMNode newChild,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
110 [PreserveSigAttribute]
111 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
112 int hasChildNodes ( out bool ret);
114 [PreserveSigAttribute]
115 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
116 int cloneNode (
117 bool deep,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret);
119 [PreserveSigAttribute]
120 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
121 int normalize ();
123 [PreserveSigAttribute]
124 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
125 int isSupported (
126 /*DOMString*/ HandleRef feature,
127 /*DOMString*/ HandleRef version, out bool ret);
129 [PreserveSigAttribute]
130 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
131 int getNamespaceURI ( /*DOMString*/ HandleRef ret);
133 [PreserveSigAttribute]
134 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
135 int getPrefix ( /*DOMString*/ HandleRef ret);
137 [PreserveSigAttribute]
138 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
139 int setPrefix ( /*DOMString*/ HandleRef value);
141 [PreserveSigAttribute]
142 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
143 int getLocalName ( /*DOMString*/ HandleRef ret);
145 [PreserveSigAttribute]
146 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
147 int hasAttributes ( out bool ret);
149 #endregion
151 #region nsIDOMElement
152 [PreserveSigAttribute]
153 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
154 int getTagName ( /*DOMString*/ HandleRef ret);
156 [PreserveSigAttribute]
157 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
158 int getAttribute (
159 /*DOMString*/ HandleRef name, /*DOMString*/ HandleRef ret);
161 [PreserveSigAttribute]
162 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
163 int setAttribute (
164 /*DOMString*/ HandleRef name,
165 /*DOMString*/ HandleRef value);
167 [PreserveSigAttribute]
168 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
169 int removeAttribute (
170 /*DOMString*/ HandleRef name);
172 [PreserveSigAttribute]
173 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
174 int getAttributeNode (
175 /*DOMString*/ HandleRef name,[MarshalAs (UnmanagedType.Interface)] out nsIDOMAttr ret);
177 [PreserveSigAttribute]
178 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
179 int setAttributeNode (
180 [MarshalAs (UnmanagedType.Interface)] nsIDOMAttr newAttr,[MarshalAs (UnmanagedType.Interface)] out nsIDOMAttr ret);
182 [PreserveSigAttribute]
183 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
184 int removeAttributeNode (
185 [MarshalAs (UnmanagedType.Interface)] nsIDOMAttr oldAttr,[MarshalAs (UnmanagedType.Interface)] out nsIDOMAttr ret);
187 [PreserveSigAttribute]
188 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
189 int getElementsByTagName (
190 /*DOMString*/ HandleRef name,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNodeList ret);
192 [PreserveSigAttribute]
193 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
194 int getAttributeNS (
195 /*DOMString*/ HandleRef namespaceURI,
196 /*DOMString*/ HandleRef localName, /*DOMString*/ HandleRef ret);
198 [PreserveSigAttribute]
199 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
200 int setAttributeNS (
201 /*DOMString*/ HandleRef namespaceURI,
202 /*DOMString*/ HandleRef qualifiedName,
203 /*DOMString*/ HandleRef value);
205 [PreserveSigAttribute]
206 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
207 int removeAttributeNS (
208 /*DOMString*/ HandleRef namespaceURI,
209 /*DOMString*/ HandleRef localName);
211 [PreserveSigAttribute]
212 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
213 int getAttributeNodeNS (
214 /*DOMString*/ HandleRef namespaceURI,
215 /*DOMString*/ HandleRef localName,[MarshalAs (UnmanagedType.Interface)] out nsIDOMAttr ret);
217 [PreserveSigAttribute]
218 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
219 int setAttributeNodeNS (
220 [MarshalAs (UnmanagedType.Interface)] nsIDOMAttr newAttr,[MarshalAs (UnmanagedType.Interface)] out nsIDOMAttr ret);
222 [PreserveSigAttribute]
223 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
224 int getElementsByTagNameNS (
225 /*DOMString*/ HandleRef namespaceURI,
226 /*DOMString*/ HandleRef localName,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNodeList ret);
228 [PreserveSigAttribute]
229 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
230 int hasAttribute (
231 /*DOMString*/ HandleRef name, out bool ret);
233 [PreserveSigAttribute]
234 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
235 int hasAttributeNS (
236 /*DOMString*/ HandleRef namespaceURI,
237 /*DOMString*/ HandleRef localName, out bool ret);
239 #endregion
241 #region nsIDOMHTMLElement
242 [PreserveSigAttribute]
243 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
244 int getId ( /*DOMString*/ HandleRef ret);
246 [PreserveSigAttribute]
247 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
248 int setId ( /*DOMString*/ HandleRef value);
250 [PreserveSigAttribute]
251 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
252 int getTitle ( /*DOMString*/ HandleRef ret);
254 [PreserveSigAttribute]
255 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
256 int setTitle ( /*DOMString*/ HandleRef value);
258 [PreserveSigAttribute]
259 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
260 int getLang ( /*DOMString*/ HandleRef ret);
262 [PreserveSigAttribute]
263 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
264 int setLang ( /*DOMString*/ HandleRef value);
266 [PreserveSigAttribute]
267 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
268 int getDir ( /*DOMString*/ HandleRef ret);
270 [PreserveSigAttribute]
271 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
272 int setDir ( /*DOMString*/ HandleRef value);
274 [PreserveSigAttribute]
275 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
276 int getClassName ( /*DOMString*/ HandleRef ret);
278 [PreserveSigAttribute]
279 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
280 int setClassName ( /*DOMString*/ HandleRef value);
282 #endregion
284 #region nsIDOMHTMLStyleElement
285 [PreserveSigAttribute]
286 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
287 int getDisabled ( out bool ret);
289 [PreserveSigAttribute]
290 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
291 int setDisabled ( bool value);
293 [PreserveSigAttribute]
294 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
295 int getMedia ( /*DOMString*/ HandleRef ret);
297 [PreserveSigAttribute]
298 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
299 int setMedia ( /*DOMString*/ HandleRef value);
301 [PreserveSigAttribute]
302 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
303 int getType ( /*DOMString*/ HandleRef ret);
305 [PreserveSigAttribute]
306 [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
307 int setType ( /*DOMString*/ HandleRef value);
309 #endregion
313 internal class nsDOMHTMLStyleElement {
314 public static nsIDOMHTMLStyleElement GetProxy (Mono.WebBrowser.IWebBrowser control, nsIDOMHTMLStyleElement obj)
316 object o = Base.GetProxyForObject (control, typeof(nsIDOMHTMLStyleElement).GUID, obj);
317 return o as nsIDOMHTMLStyleElement;