| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
using System; |
| 29 |
using System.Runtime.InteropServices; |
| 30 |
using System.Runtime.CompilerServices; |
| 31 |
using System.Text; |
| 32 |
|
| 33 |
namespace Mono.Mozilla { |
| 34 |
|
| 35 |
[Guid ("a6cf9070-15b3-11d2-932e-00805f8add32")] |
| 36 |
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)] |
| 37 |
[ComImport ()] |
| 38 |
internal interface nsIDOMAttr : nsIDOMNode { |
| 39 |
#region nsIDOMNode |
| 40 |
[PreserveSigAttribute] |
| 41 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 42 |
int getNodeName ( HandleRef ret); |
| 43 |
|
| 44 |
[PreserveSigAttribute] |
| 45 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 46 |
int getNodeValue ( HandleRef ret); |
| 47 |
|
| 48 |
[PreserveSigAttribute] |
| 49 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 50 |
int setNodeValue ( HandleRef value); |
| 51 |
|
| 52 |
[PreserveSigAttribute] |
| 53 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 54 |
int getNodeType ( out ushort ret); |
| 55 |
|
| 56 |
[PreserveSigAttribute] |
| 57 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 58 |
int getParentNode ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret); |
| 59 |
|
| 60 |
[PreserveSigAttribute] |
| 61 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 62 |
int getChildNodes ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNodeList ret); |
| 63 |
|
| 64 |
[PreserveSigAttribute] |
| 65 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 66 |
int getFirstChild ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret); |
| 67 |
|
| 68 |
[PreserveSigAttribute] |
| 69 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 70 |
int getLastChild ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret); |
| 71 |
|
| 72 |
[PreserveSigAttribute] |
| 73 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 74 |
int getPreviousSibling ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret); |
| 75 |
|
| 76 |
[PreserveSigAttribute] |
| 77 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 78 |
int getNextSibling ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret); |
| 79 |
|
| 80 |
[PreserveSigAttribute] |
| 81 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 82 |
int getAttributes ([MarshalAs (UnmanagedType.Interface)] out nsIDOMNamedNodeMap ret); |
| 83 |
|
| 84 |
[PreserveSigAttribute] |
| 85 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 86 |
int getOwnerDocument ([MarshalAs (UnmanagedType.Interface)] out nsIDOMDocument ret); |
| 87 |
|
| 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); |
| 93 |
|
| 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); |
| 99 |
|
| 100 |
[PreserveSigAttribute] |
| 101 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 102 |
int removeChild ( |
| 103 |
[MarshalAs (UnmanagedType.Interface)] nsIDOMNode oldChild,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret); |
| 104 |
|
| 105 |
[PreserveSigAttribute] |
| 106 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 107 |
int appendChild ( |
| 108 |
[MarshalAs (UnmanagedType.Interface)] nsIDOMNode newChild,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret); |
| 109 |
|
| 110 |
[PreserveSigAttribute] |
| 111 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 112 |
int hasChildNodes ( out bool ret); |
| 113 |
|
| 114 |
[PreserveSigAttribute] |
| 115 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 116 |
int cloneNode ( |
| 117 |
bool deep,[MarshalAs (UnmanagedType.Interface)] out nsIDOMNode ret); |
| 118 |
|
| 119 |
[PreserveSigAttribute] |
| 120 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 121 |
int normalize (); |
| 122 |
|
| 123 |
[PreserveSigAttribute] |
| 124 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 125 |
int isSupported ( |
| 126 |
HandleRef feature, |
| 127 |
HandleRef version, out bool ret); |
| 128 |
|
| 129 |
[PreserveSigAttribute] |
| 130 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 131 |
int getNamespaceURI ( HandleRef ret); |
| 132 |
|
| 133 |
[PreserveSigAttribute] |
| 134 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 135 |
int getPrefix ( HandleRef ret); |
| 136 |
|
| 137 |
[PreserveSigAttribute] |
| 138 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 139 |
int setPrefix ( HandleRef value); |
| 140 |
|
| 141 |
[PreserveSigAttribute] |
| 142 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 143 |
int getLocalName ( HandleRef ret); |
| 144 |
|
| 145 |
[PreserveSigAttribute] |
| 146 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 147 |
int hasAttributes ( out bool ret); |
| 148 |
|
| 149 |
#endregion |
| 150 |
|
| 151 |
#region nsIDOMAttr |
| 152 |
[PreserveSigAttribute] |
| 153 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 154 |
int getName ( HandleRef ret); |
| 155 |
|
| 156 |
[PreserveSigAttribute] |
| 157 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 158 |
int getSpecified ( out bool ret); |
| 159 |
|
| 160 |
[PreserveSigAttribute] |
| 161 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 162 |
int getValue ( HandleRef ret); |
| 163 |
|
| 164 |
[PreserveSigAttribute] |
| 165 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 166 |
int setValue ( HandleRef value); |
| 167 |
|
| 168 |
[PreserveSigAttribute] |
| 169 |
[MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 170 |
int getOwnerElement ([MarshalAs (UnmanagedType.Interface)] out nsIDOMElement ret); |
| 171 |
|
| 172 |
#endregion |
| 173 |
} |
| 174 |
|
| 175 |
|
| 176 |
internal class nsDOMAttr { |
| 177 |
public static nsIDOMAttr GetProxy (Mono.WebBrowser.IWebBrowser control, nsIDOMAttr obj) |
| 178 |
{ |
| 179 |
object o = Base.GetProxyForObject (control, typeof(nsIDOMAttr).GUID, obj); |
| 180 |
return o as nsIDOMAttr; |
| 181 |
} |
| 182 |
} |
| 183 |
} |