DOMCore.idl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829
  1. /*
  2. * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. * 1. Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * 2. Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. *
  13. * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
  14. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  15. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  16. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
  17. * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  18. * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  19. * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  20. * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  21. * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  22. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  23. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  24. */
  25. #ifndef DO_NO_IMPORTS
  26. import "oaidl.idl";
  27. import "ocidl.idl";
  28. import "IWebScriptObject.idl";
  29. #endif
  30. interface IWebScriptObject;
  31. interface IDOMNodeList;
  32. interface IDOMNamedNodeMap;
  33. interface IDOMDocumentType;
  34. interface IDOMElement;
  35. interface IDOMDocumentFragment;
  36. interface IDOMText;
  37. interface IDOMComment;
  38. interface IDOMCDATASection;
  39. interface IDOMProcessingInstruction;
  40. interface IDOMAttr;
  41. interface IDOMEntityReference;
  42. interface IDOMDocument;
  43. interface IDOMCSSStyleDeclaration;
  44. /*
  45. @interface DOMObject : WebScriptObject <NSCopying>
  46. */
  47. [
  48. object,
  49. oleautomation,
  50. uuid(A27FA225-F34E-425d-88EB-A35BD105A527),
  51. pointer_default(unique)
  52. ]
  53. interface IDOMObject : IWebScriptObject
  54. {
  55. }
  56. /*
  57. @interface DOMImplementation : DOMObject
  58. */
  59. [
  60. object,
  61. oleautomation,
  62. uuid(6E48C25D-E542-4d1a-BC73-ACDC21E39C56),
  63. pointer_default(unique)
  64. ]
  65. interface IDOMImplementation : IDOMObject
  66. {
  67. /*
  68. - (BOOL)hasFeature:(NSString *)feature :(NSString *)version;
  69. */
  70. HRESULT hasFeature([in] BSTR feature, [in] BSTR version, [out, retval] BOOL* result);
  71. /*
  72. - (DOMDocumentType *)createDocumentType:(NSString *)qualifiedName :(NSString *)publicId :(NSString *)systemId;
  73. */
  74. HRESULT createDocumentType([in] BSTR qualifiedName, [in] BSTR publicId, [in] BSTR systemId, [out, retval] IDOMDocumentType** result);
  75. /*
  76. - (DOMDocument *)createDocument:(NSString *)namespaceURI :(NSString *)qualifiedName :(DOMDocumentType *)doctype;
  77. */
  78. HRESULT createDocument([in] BSTR namespaceURI, [in] BSTR qualifiedName, [in] IDOMDocumentType* doctype, [out, retval] IDOMDocument** result);
  79. }
  80. /*
  81. @interface DOMNode : DOMObject <DOMEventTarget>
  82. */
  83. [
  84. object,
  85. oleautomation,
  86. uuid(3EEA3E20-72DA-4be7-954F-79B5A14AD726),
  87. pointer_default(unique)
  88. ]
  89. interface IDOMNode : IDOMObject
  90. {
  91. /*
  92. - (NSString *)nodeName;
  93. */
  94. HRESULT nodeName([out, retval] BSTR* result);
  95. /*
  96. - (NSString *)nodeValue;
  97. */
  98. HRESULT nodeValue([out, retval] BSTR* result);
  99. /*
  100. - (void)setNodeValue:(NSString *)string;
  101. */
  102. HRESULT setNodeValue([in] BSTR value);
  103. /*
  104. - (unsigned short)nodeType;
  105. */
  106. HRESULT nodeType([out, retval] unsigned short* result);
  107. /*
  108. - (DOMNode *)parentNode;
  109. */
  110. HRESULT parentNode([out, retval] IDOMNode** result);
  111. /*
  112. - (DOMNodeList *)childNodes;
  113. */
  114. HRESULT childNodes([out, retval] IDOMNodeList** result);
  115. /*
  116. - (DOMNode *)firstChild;
  117. */
  118. HRESULT firstChild([out, retval] IDOMNode** result);
  119. /*
  120. - (DOMNode *)lastChild;
  121. */
  122. HRESULT lastChild([out, retval] IDOMNode** result);
  123. /*
  124. - (DOMNode *)previousSibling;
  125. */
  126. HRESULT previousSibling([out, retval] IDOMNode** result);
  127. /*
  128. - (DOMNode *)nextSibling;
  129. */
  130. HRESULT nextSibling([out, retval] IDOMNode** result);
  131. /*
  132. - (DOMNamedNodeMap *)attributes;
  133. */
  134. HRESULT attributes([out, retval] IDOMNamedNodeMap** result);
  135. /*
  136. - (DOMDocument *)ownerDocument;
  137. */
  138. HRESULT ownerDocument([out, retval] IDOMDocument** result);
  139. /*
  140. - (DOMNode *)insertBefore:(DOMNode *)newChild :(DOMNode *)refChild;
  141. */
  142. HRESULT insertBefore([in] IDOMNode* newChild, [in] IDOMNode* refChild, [out, retval] IDOMNode** result);
  143. /*
  144. - (DOMNode *)replaceChild:(DOMNode *)newChild :(DOMNode *)oldChild;
  145. */
  146. HRESULT replaceChild([in] IDOMNode* newChild, [in] IDOMNode* oldChild, [out, retval] IDOMNode** result);
  147. /*
  148. - (DOMNode *)removeChild:(DOMNode *)oldChild;
  149. */
  150. HRESULT removeChild([in] IDOMNode* oldChild, [out, retval] IDOMNode** result);
  151. /*
  152. - (DOMNode *)appendChild:(DOMNode *)newChild;
  153. */
  154. HRESULT appendChild([in] IDOMNode* oldChild, [out, retval] IDOMNode** result);
  155. /*
  156. - (BOOL)hasChildNodes;
  157. */
  158. HRESULT hasChildNodes([out, retval] BOOL* result);
  159. /*
  160. - (DOMNode *)cloneNode:(BOOL)deep;
  161. */
  162. HRESULT cloneNode([in] BOOL deep, [out, retval] IDOMNode** result);
  163. /*
  164. - (void)normalize;
  165. */
  166. HRESULT normalize();
  167. /*
  168. - (BOOL)isSupported:(NSString *)feature :(NSString *)version;
  169. */
  170. HRESULT isSupported([in] BSTR feature, [in] BSTR version, [out, retval] BOOL* result);
  171. /*
  172. - (NSString *)namespaceURI;
  173. */
  174. HRESULT namespaceURI([out, retval] BSTR* result);
  175. /*
  176. - (NSString *)prefix;
  177. */
  178. HRESULT prefix([out, retval] BSTR* result);
  179. /*
  180. - (void)setPrefix:(NSString *)prefix;
  181. */
  182. HRESULT setPrefix([in] BSTR prefix);
  183. /*
  184. - (NSString *)localName;
  185. */
  186. HRESULT localName([out, retval] BSTR* result);
  187. /*
  188. - (BOOL)hasAttributes;
  189. */
  190. HRESULT hasAttributes([out, retval] BOOL* result);
  191. /*
  192. - (BOOL)isSameNode:(DOMNode *)other;
  193. */
  194. HRESULT isSameNode([in] IDOMNode* other, [out, retval] BOOL* result);
  195. /*
  196. - (BOOL)isEqualNode:(DOMNode *)other;
  197. */
  198. HRESULT isEqualNode([in] IDOMNode* other, [out, retval] BOOL* result);
  199. /*
  200. - (NSString *)textContent;
  201. */
  202. HRESULT textContent([out, retval] BSTR* result);
  203. /*
  204. - (void)setTextContent:(NSString *)text;
  205. */
  206. HRESULT setTextContent([in] BSTR text);
  207. }
  208. /*
  209. @interface DOMNodeList : DOMObject
  210. */
  211. [
  212. object,
  213. oleautomation,
  214. uuid(10A05A96-CBD9-4493-83AD-FAFB952615CE),
  215. pointer_default(unique)
  216. ]
  217. interface IDOMNodeList : IDOMObject
  218. {
  219. /*
  220. - (DOMNode *)item:(unsigned)index;
  221. */
  222. HRESULT item([in] UINT index, [out, retval] IDOMNode** result);
  223. /*
  224. - (unsigned)length;
  225. */
  226. HRESULT length([out, retval] UINT* result);
  227. }
  228. /*
  229. @interface DOMNamedNodeMap : DOMObject
  230. */
  231. [
  232. object,
  233. oleautomation,
  234. uuid(E6CBF396-C9F9-431b-A8D6-BCB525067E9F),
  235. pointer_default(unique)
  236. ]
  237. interface IDOMNamedNodeMap : IDOMObject
  238. {
  239. /*
  240. - (DOMNode *)getNamedItem:(NSString *)name;
  241. */
  242. HRESULT getNamedItem([in] BSTR name, [out, retval] IDOMNode** result);
  243. /*
  244. - (DOMNode *)setNamedItem:(DOMNode *)arg;
  245. */
  246. HRESULT setNamedItem([in] IDOMNode* arg, [out, retval] IDOMNode** result);
  247. /*
  248. - (DOMNode *)removeNamedItem:(NSString *)name;
  249. */
  250. HRESULT removeNamedItem([in] BSTR name, [out, retval] IDOMNode** result);
  251. /*
  252. - (DOMNode *)item:(unsigned)index;
  253. */
  254. HRESULT item([in] UINT index, [out, retval] IDOMNode** result);
  255. /*
  256. - (unsigned)length;
  257. */
  258. HRESULT length([out, retval] UINT* result);
  259. /*
  260. - (DOMNode *)getNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
  261. */
  262. HRESULT getNamedItemNS([in] BSTR namespaceURI, [in] BSTR localName, [out, retval] IDOMNode** result);
  263. /*
  264. - (DOMNode *)setNamedItemNS:(DOMNode *)arg;
  265. */
  266. HRESULT setNamedItemNS([in] IDOMNode* arg, [out, retval] IDOMNode** result);
  267. /*
  268. - (DOMNode *)removeNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
  269. */
  270. HRESULT removeNamedItemNS([in] BSTR namespaceURI, [in] BSTR localName, [out, retval] IDOMNode** result);
  271. }
  272. /*
  273. @interface DOMDocument : IDOMNode
  274. */
  275. [
  276. object,
  277. oleautomation,
  278. uuid(A83C2C44-0BAC-45c7-8E17-6A49975D5CCA),
  279. pointer_default(unique)
  280. ]
  281. interface IDOMDocument : IDOMNode
  282. {
  283. /*
  284. - (DOMDocumentType *)doctype;
  285. */
  286. HRESULT doctype([out, retval] IDOMDocumentType** result);
  287. /*
  288. - (DOMImplementation *)implementation;
  289. */
  290. HRESULT implementation([out, retval] IDOMImplementation** result);
  291. /*
  292. - (DOMElement *)documentElement;
  293. */
  294. HRESULT documentElement([out, retval] IDOMElement** result);
  295. /*
  296. - (DOMElement *)createElement:(NSString *)tagName;
  297. */
  298. HRESULT createElement([in] BSTR tagName, [out, retval] IDOMElement** result);
  299. /*
  300. - (DOMDocumentFragment *)createDocumentFragment;
  301. */
  302. HRESULT createDocumentFragment([out, retval] IDOMDocumentFragment** result);
  303. /*
  304. - (DOMText *)createTextNode:(NSString *)data;
  305. */
  306. HRESULT createTextNode([in] BSTR data, [out, retval] IDOMText** result);
  307. /*
  308. - (DOMComment *)createComment:(NSString *)data;
  309. */
  310. HRESULT createComment([in] BSTR data, [out, retval] IDOMComment** result);
  311. /*
  312. - (DOMCDATASection *)createCDATASection:(NSString *)data;
  313. */
  314. HRESULT createCDATASection([in] BSTR data, [out, retval] IDOMCDATASection** result);
  315. /*
  316. - (DOMProcessingInstruction *)createProcessingInstruction:(NSString *)target :(NSString *)data;
  317. */
  318. HRESULT createProcessingInstruction([in] BSTR target, [in] BSTR data, [out, retval] IDOMProcessingInstruction** result);
  319. /*
  320. - (DOMAttr *)createAttribute:(NSString *)name;
  321. */
  322. HRESULT createAttribute([in] BSTR name, [out, retval] IDOMAttr** result);
  323. /*
  324. - (DOMEntityReference *)createEntityReference:(NSString *)name;
  325. */
  326. HRESULT createEntityReference([in] BSTR name, [out, retval] IDOMEntityReference** result);
  327. /*
  328. - (DOMNodeList *)getElementsByTagName:(NSString *)tagname;
  329. */
  330. HRESULT getElementsByTagName([in] BSTR tagName, [out, retval] IDOMNodeList** result);
  331. /*
  332. - (DOMNode *)importNode:(DOMNode *)importedNode :(BOOL)deep;
  333. */
  334. HRESULT importNode([in] IDOMNode* importedNode, [in] BOOL deep, [out, retval] IDOMNode** result);
  335. /*
  336. - (DOMElement *)createElementNS:(NSString *)namespaceURI :(NSString *)qualifiedName;
  337. */
  338. HRESULT createElementNS([in] BSTR namespaceURI, [in] BSTR qualifiedName, [out, retval] IDOMElement** result);
  339. /*
  340. - (DOMAttr *)createAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName;
  341. */
  342. HRESULT createAttributeNS([in] BSTR namespaceURI, [in] BSTR qualifiedName, [out, retval] IDOMAttr** result);
  343. /*
  344. - (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;
  345. */
  346. HRESULT getElementsByTagNameNS([in] BSTR namespaceURI, [in] BSTR localName, [out, retval] IDOMNodeList** result);
  347. /*
  348. - (DOMElement *)getElementById:(NSString *)elementId;
  349. */
  350. HRESULT getElementById([in] BSTR elementId, [out, retval] IDOMElement** result);
  351. }
  352. /*
  353. @interface DOMCharacterData : IDOMNode
  354. */
  355. [
  356. object,
  357. oleautomation,
  358. uuid(F4DED047-FE61-461a-BDBD-BB87F79DB713),
  359. pointer_default(unique)
  360. ]
  361. interface IDOMCharacterData : IDOMNode
  362. {
  363. /*
  364. - (NSString *)data;
  365. */
  366. HRESULT data([out, retval] BSTR* result);
  367. /*
  368. - (void)setData:(NSString *)data;
  369. */
  370. HRESULT setData([in] BSTR data);
  371. /*
  372. - (unsigned)length;
  373. */
  374. HRESULT length([out, retval] UINT* result);
  375. /*
  376. - (NSString *)substringData:(unsigned)offset :(unsigned)count;
  377. */
  378. HRESULT substringData([in] UINT offset, [in] UINT count, [out, retval] BSTR* result);
  379. /*
  380. - (void)appendData:(NSString *)arg;
  381. */
  382. HRESULT appendData([in] BSTR arg);
  383. /*
  384. - (void)insertData:(unsigned)offset :(NSString *)arg;
  385. */
  386. HRESULT insertData([in] UINT offset, [in] BSTR arg);
  387. /*
  388. - (void)deleteData:(unsigned)offset :(unsigned) count;
  389. */
  390. HRESULT deleteData([in] UINT offset, [in] UINT count);
  391. /*
  392. - (void)replaceData:(unsigned)offset :(unsigned)count :(NSString *)arg;
  393. */
  394. HRESULT replaceData([in] UINT offset, [in] UINT count, [in] BSTR arg);
  395. }
  396. /*
  397. @interface DOMAttr : IDOMNode
  398. */
  399. [
  400. object,
  401. oleautomation,
  402. uuid(B587E098-8206-4b5a-A7DB-422F218571A0),
  403. pointer_default(unique)
  404. ]
  405. interface IDOMAttr : IDOMNode
  406. {
  407. /*
  408. - (NSString *)name;
  409. */
  410. HRESULT name([out, retval] BSTR* result);
  411. /*
  412. - (BOOL)specified;
  413. */
  414. HRESULT specified([out, retval] BOOL* result);
  415. /*
  416. - (NSString *)value;
  417. */
  418. HRESULT value([out, retval] BSTR* value);
  419. /*
  420. - (void)setValue:(NSString *)value;
  421. */
  422. HRESULT setValue([in] BSTR value);
  423. /*
  424. - (DOMElement *)ownerElement;
  425. */
  426. HRESULT ownerElement([out, retval] IDOMElement** result);
  427. }
  428. /*
  429. @interface DOMElement : IDOMNode
  430. */
  431. [
  432. object,
  433. oleautomation,
  434. uuid(E053A35B-7775-4859-80EA-C35D02D145A2),
  435. pointer_default(unique)
  436. ]
  437. interface IDOMElement : IDOMNode
  438. {
  439. /*
  440. - (NSString *)tagName;
  441. */
  442. HRESULT tagName([out, retval] BSTR* result);
  443. /*
  444. - (NSString *)getAttribute:(NSString *)name;
  445. */
  446. HRESULT getAttribute([in] BSTR name, [out, retval] BSTR* result);
  447. /*
  448. - (void)setAttribute:(NSString *)name :(NSString *)value;
  449. */
  450. HRESULT setAttribute([in] BSTR name, [in] BSTR value);
  451. /*
  452. - (void)removeAttribute:(NSString *)name;
  453. */
  454. HRESULT removeAttribute([in] BSTR name);
  455. /*
  456. - (DOMAttr *)getAttributeNode:(NSString *)name;
  457. */
  458. HRESULT getAttributeNode([in] BSTR name, [out, retval] IDOMAttr** result);
  459. /*
  460. - (DOMAttr *)setAttributeNode:(DOMAttr *)newAttr;
  461. */
  462. HRESULT setAttributeNode([in] IDOMAttr* newAttr, [out, retval] IDOMAttr** result);
  463. /*
  464. - (DOMAttr *)removeAttributeNode:(DOMAttr *)oldAttr;
  465. */
  466. HRESULT removeAttributeNode([in] IDOMAttr* oldAttr, [out, retval] IDOMAttr** result);
  467. /*
  468. - (DOMNodeList *)getElementsByTagName:(NSString *)name;
  469. */
  470. HRESULT getElementsByTagName([in] BSTR name, [out, retval] IDOMNodeList** result);
  471. /*
  472. - (NSString *)getAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
  473. */
  474. HRESULT getAttributeNS([in] BSTR namespaceURI, [in] BSTR localName, [out, retval] BSTR* result);
  475. /*
  476. - (void)setAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName :(NSString *)value;
  477. */
  478. HRESULT setAttributeNS([in] BSTR namespaceURI, [in] BSTR qualifiedName, [in] BSTR value);
  479. /*
  480. - (void)removeAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
  481. */
  482. HRESULT removeAttributeNS([in] BSTR namespaceURI, [in] BSTR localName);
  483. /*
  484. - (DOMAttr *)getAttributeNodeNS:(NSString *)namespaceURI :(NSString *)localName;
  485. */
  486. HRESULT getAttributeNodeNS([in] BSTR namespaceURI, [in] BSTR localName, [out, retval] IDOMAttr** result);
  487. /*
  488. - (DOMAttr *)setAttributeNodeNS:(DOMAttr *)newAttr;
  489. */
  490. HRESULT setAttributeNodeNS([in] IDOMAttr* newAttr, [out, retval] IDOMAttr** result);
  491. /*
  492. - (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;
  493. */
  494. HRESULT getElementsByTagNameNS([in] BSTR namespaceURI, [in] BSTR localName, [out, retval] IDOMNodeList** result);
  495. /*
  496. - (BOOL)hasAttribute:(NSString *)name;
  497. */
  498. HRESULT hasAttribute([in] BSTR name, [out, retval] BOOL* result);
  499. /*
  500. - (BOOL)hasAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
  501. */
  502. HRESULT hasAttributeNS([in] BSTR namespaceURI, [in] BSTR localName, [out, retval] BOOL* result);
  503. /*
  504. - (void)focus;
  505. */
  506. HRESULT focus();
  507. /*
  508. - (void)blur;
  509. */
  510. HRESULT blur();
  511. }
  512. /*
  513. @interface DOMElement (DOMElementExtensions)
  514. */
  515. [
  516. object,
  517. oleautomation,
  518. uuid(98E481F5-4405-4c2a-BF77-1CE95FE5F992),
  519. pointer_default(unique)
  520. ]
  521. interface IDOMElementExtensions : IUnknown
  522. {
  523. /*
  524. - (int)offsetLeft;
  525. */
  526. HRESULT offsetLeft([out, retval] int* result);
  527. /*
  528. - (int)offsetTop;
  529. */
  530. HRESULT offsetTop([out, retval] int* result);
  531. /*
  532. - (int)offsetWidth;
  533. */
  534. HRESULT offsetWidth([out, retval] int* result);
  535. /*
  536. - (int)offsetHeight;
  537. */
  538. HRESULT offsetHeight([out, retval] int* result);
  539. /*
  540. - (DOMElement *)offsetParent;
  541. */
  542. HRESULT offsetParent([out, retval] IDOMElement** result);
  543. /*
  544. - (int)clientWidth;
  545. */
  546. HRESULT clientWidth([out, retval] int* result);
  547. /*
  548. - (int)clientHeight;
  549. */
  550. HRESULT clientHeight([out, retval] int* result);
  551. /*
  552. - (int)scrollLeft;
  553. */
  554. HRESULT scrollLeft([out, retval] int* result);
  555. /*
  556. - (void)setScrollLeft:(int)newScrollLeft;
  557. */
  558. HRESULT setScrollLeft([in] int newScrollLeft);
  559. /*
  560. - (int)scrollTop;
  561. */
  562. HRESULT scrollTop([out, retval] int* result);
  563. /*
  564. - (void)setScrollTop:(int)newScrollTop;
  565. */
  566. HRESULT setScrollTop([in] int newScrollTop);
  567. /*
  568. - (int)scrollWidth;
  569. */
  570. HRESULT scrollWidth([out, retval] int* result);
  571. /*
  572. - (int)scrollHeight;
  573. */
  574. HRESULT scrollHeight([out, retval] int* result);
  575. /*
  576. - (void)scrollIntoView:(BOOL)alignWithTop;
  577. */
  578. HRESULT scrollIntoView([in] BOOL alignWithTop);
  579. /*
  580. - (void)scrollIntoViewIfNeeded:(BOOL)centerIfNeeded;
  581. */
  582. HRESULT scrollIntoViewIfNeeded([in] BOOL centerIfNeeded);
  583. }
  584. /*
  585. @interface DOMText : DOMCharacterData
  586. */
  587. [
  588. object,
  589. oleautomation,
  590. uuid(74638F45-1AA0-4db5-958C-82066E00BD2B),
  591. pointer_default(unique)
  592. ]
  593. interface IDOMText : IDOMCharacterData
  594. {
  595. /*
  596. - (DOMText *)splitText:(unsigned)offset;
  597. */
  598. HRESULT splitText([in] UINT offset, [out, retval] IDOMText** result);
  599. }
  600. /*
  601. @interface DOMComment : DOMCharacterData
  602. */
  603. [
  604. object,
  605. oleautomation,
  606. uuid(118002E8-847F-4b1a-968C-B25A6AC7B128),
  607. pointer_default(unique)
  608. ]
  609. interface IDOMComment : IDOMCharacterData
  610. {
  611. }
  612. /*
  613. @interface DOMCDATASection : DOMText
  614. */
  615. [
  616. object,
  617. oleautomation,
  618. uuid(31B506C1-45A3-4d72-815A-311B0A897E58),
  619. pointer_default(unique)
  620. ]
  621. interface IDOMCDATASection : IDOMText
  622. {
  623. }
  624. /*
  625. @interface DOMDocumentType : IDOMNode
  626. */
  627. [
  628. object,
  629. oleautomation,
  630. uuid(17FCE6EA-4164-4bd4-9DBF-0395FBF37FD3),
  631. pointer_default(unique)
  632. ]
  633. interface IDOMDocumentType : IDOMNode
  634. {
  635. /*
  636. - (NSString *)name;
  637. */
  638. HRESULT name([out, retval] BSTR* result);
  639. /*
  640. - (DOMNamedNodeMap *)entities;
  641. */
  642. HRESULT entities([out, retval] IDOMNamedNodeMap** result);
  643. /*
  644. - (DOMNamedNodeMap *)notations;
  645. */
  646. HRESULT notations([out, retval] IDOMNamedNodeMap** result);
  647. /*
  648. - (NSString *)publicId;
  649. */
  650. HRESULT publicId([out, retval] BSTR* result);
  651. /*
  652. - (NSString *)systemId;
  653. */
  654. HRESULT systemId([out, retval] BSTR* result);
  655. /*
  656. - (NSString *)internalSubset;
  657. */
  658. HRESULT internalSubset([out, retval] BSTR* result);
  659. }
  660. /*
  661. @interface DOMEntityReference : IDOMNode
  662. */
  663. [
  664. object,
  665. oleautomation,
  666. uuid(0593CE45-15B2-44af-BBD0-5A1654F8240E),
  667. pointer_default(unique)
  668. ]
  669. interface IDOMEntityReference : IDOMNode
  670. {
  671. }
  672. /*
  673. @interface DOMProcessingInstruction : IDOMNode
  674. */
  675. [
  676. object,
  677. oleautomation,
  678. uuid(D99D2F48-ABF3-426a-9339-54681E1AFCA9),
  679. pointer_default(unique)
  680. ]
  681. interface IDOMProcessingInstruction : IDOMNode
  682. {
  683. /*
  684. - (NSString *)target;
  685. */
  686. HRESULT target([out, retval] BSTR* result);
  687. /*
  688. - (NSString *)data;
  689. */
  690. HRESULT data([out, retval] BSTR* result);
  691. /*
  692. - (void)setData:(NSString *)data;
  693. */
  694. HRESULT setData([in] BSTR data);
  695. }
  696. /*
  697. @interface DOMDocumentFragment : IDOMNode
  698. */
  699. [
  700. object,
  701. oleautomation,
  702. uuid(09D35665-8396-4868-949E-8AA2407A6E10),
  703. pointer_default(unique)
  704. ]
  705. interface IDOMDocumentFragment : IDOMNode
  706. {
  707. }