Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2951 lines
105 KiB

  1. // Created by Microsoft (R) C/C++ Compiler Version 13.00.9176 (a63ade41).
  2. //
  3. // d:\fus6\base\win32\fusion\shims\obj\i386\msxml3.tli
  4. //
  5. // Wrapper implementations for Win32 type library msxml3.dll
  6. // compiler-generated file created 08/08/01 at 15:10:30 - DO NOT EDIT!
  7. #pragma once
  8. //
  9. // interface IXMLElementCollection wrapper method implementations
  10. //
  11. inline void IXMLElementCollection::Putlength ( long p ) {
  12. HRESULT _hr = put_length(p);
  13. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  14. }
  15. inline long IXMLElementCollection::Getlength ( ) {
  16. long _result = 0;
  17. HRESULT _hr = get_length(&_result);
  18. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  19. return _result;
  20. }
  21. inline IUnknownPtr IXMLElementCollection::Get_newEnum ( ) {
  22. IUnknown * _result = 0;
  23. HRESULT _hr = get__newEnum(&_result);
  24. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  25. return IUnknownPtr(_result, false);
  26. }
  27. inline IDispatchPtr IXMLElementCollection::item ( const _variant_t & var1, const _variant_t & var2 ) {
  28. IDispatch * _result = 0;
  29. HRESULT _hr = raw_item(var1, var2, &_result);
  30. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  31. return IDispatchPtr(_result, false);
  32. }
  33. //
  34. // interface IXMLElement wrapper method implementations
  35. //
  36. inline _bstr_t IXMLElement::GettagName ( ) {
  37. BSTR _result = 0;
  38. HRESULT _hr = get_tagName(&_result);
  39. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  40. return _bstr_t(_result, false);
  41. }
  42. inline void IXMLElement::PuttagName ( _bstr_t p ) {
  43. HRESULT _hr = put_tagName(p);
  44. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  45. }
  46. inline IXMLElementPtr IXMLElement::Getparent ( ) {
  47. struct IXMLElement * _result = 0;
  48. HRESULT _hr = get_parent(&_result);
  49. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  50. return IXMLElementPtr(_result, false);
  51. }
  52. inline HRESULT IXMLElement::setAttribute ( _bstr_t strPropertyName, const _variant_t & PropertyValue ) {
  53. HRESULT _hr = raw_setAttribute(strPropertyName, PropertyValue);
  54. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  55. return _hr;
  56. }
  57. inline _variant_t IXMLElement::getAttribute ( _bstr_t strPropertyName ) {
  58. VARIANT _result;
  59. VariantInit(&_result);
  60. HRESULT _hr = raw_getAttribute(strPropertyName, &_result);
  61. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  62. return _variant_t(_result, false);
  63. }
  64. inline HRESULT IXMLElement::removeAttribute ( _bstr_t strPropertyName ) {
  65. HRESULT _hr = raw_removeAttribute(strPropertyName);
  66. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  67. return _hr;
  68. }
  69. inline IXMLElementCollectionPtr IXMLElement::Getchildren ( ) {
  70. struct IXMLElementCollection * _result = 0;
  71. HRESULT _hr = get_children(&_result);
  72. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  73. return IXMLElementCollectionPtr(_result, false);
  74. }
  75. inline long IXMLElement::Gettype ( ) {
  76. long _result = 0;
  77. HRESULT _hr = get_type(&_result);
  78. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  79. return _result;
  80. }
  81. inline _bstr_t IXMLElement::Gettext ( ) {
  82. BSTR _result = 0;
  83. HRESULT _hr = get_text(&_result);
  84. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  85. return _bstr_t(_result, false);
  86. }
  87. inline void IXMLElement::Puttext ( _bstr_t p ) {
  88. HRESULT _hr = put_text(p);
  89. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  90. }
  91. inline HRESULT IXMLElement::addChild ( struct IXMLElement * pChildElem, long lIndex, long lReserved ) {
  92. HRESULT _hr = raw_addChild(pChildElem, lIndex, lReserved);
  93. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  94. return _hr;
  95. }
  96. inline HRESULT IXMLElement::removeChild ( struct IXMLElement * pChildElem ) {
  97. HRESULT _hr = raw_removeChild(pChildElem);
  98. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  99. return _hr;
  100. }
  101. //
  102. // interface IXMLDocument wrapper method implementations
  103. //
  104. inline IXMLElementPtr IXMLDocument::Getroot ( ) {
  105. struct IXMLElement * _result = 0;
  106. HRESULT _hr = get_root(&_result);
  107. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  108. return IXMLElementPtr(_result, false);
  109. }
  110. inline _bstr_t IXMLDocument::GetfileSize ( ) {
  111. BSTR _result = 0;
  112. HRESULT _hr = get_fileSize(&_result);
  113. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  114. return _bstr_t(_result, false);
  115. }
  116. inline _bstr_t IXMLDocument::GetfileModifiedDate ( ) {
  117. BSTR _result = 0;
  118. HRESULT _hr = get_fileModifiedDate(&_result);
  119. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  120. return _bstr_t(_result, false);
  121. }
  122. inline _bstr_t IXMLDocument::GetfileUpdatedDate ( ) {
  123. BSTR _result = 0;
  124. HRESULT _hr = get_fileUpdatedDate(&_result);
  125. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  126. return _bstr_t(_result, false);
  127. }
  128. inline _bstr_t IXMLDocument::GetURL ( ) {
  129. BSTR _result = 0;
  130. HRESULT _hr = get_URL(&_result);
  131. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  132. return _bstr_t(_result, false);
  133. }
  134. inline void IXMLDocument::PutURL ( _bstr_t p ) {
  135. HRESULT _hr = put_URL(p);
  136. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  137. }
  138. inline _bstr_t IXMLDocument::GetmimeType ( ) {
  139. BSTR _result = 0;
  140. HRESULT _hr = get_mimeType(&_result);
  141. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  142. return _bstr_t(_result, false);
  143. }
  144. inline long IXMLDocument::GetreadyState ( ) {
  145. long _result = 0;
  146. HRESULT _hr = get_readyState(&_result);
  147. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  148. return _result;
  149. }
  150. inline _bstr_t IXMLDocument::Getcharset ( ) {
  151. BSTR _result = 0;
  152. HRESULT _hr = get_charset(&_result);
  153. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  154. return _bstr_t(_result, false);
  155. }
  156. inline void IXMLDocument::Putcharset ( _bstr_t p ) {
  157. HRESULT _hr = put_charset(p);
  158. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  159. }
  160. inline _bstr_t IXMLDocument::Getversion ( ) {
  161. BSTR _result = 0;
  162. HRESULT _hr = get_version(&_result);
  163. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  164. return _bstr_t(_result, false);
  165. }
  166. inline _bstr_t IXMLDocument::Getdoctype ( ) {
  167. BSTR _result = 0;
  168. HRESULT _hr = get_doctype(&_result);
  169. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  170. return _bstr_t(_result, false);
  171. }
  172. inline _bstr_t IXMLDocument::GetdtdURL ( ) {
  173. BSTR _result = 0;
  174. HRESULT _hr = get_dtdURL(&_result);
  175. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  176. return _bstr_t(_result, false);
  177. }
  178. inline IXMLElementPtr IXMLDocument::createElement ( const _variant_t & vType, const _variant_t & var1 ) {
  179. struct IXMLElement * _result = 0;
  180. HRESULT _hr = raw_createElement(vType, var1, &_result);
  181. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  182. return IXMLElementPtr(_result, false);
  183. }
  184. //
  185. // interface IXMLElement2 wrapper method implementations
  186. //
  187. inline _bstr_t IXMLElement2::GettagName ( ) {
  188. BSTR _result = 0;
  189. HRESULT _hr = get_tagName(&_result);
  190. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  191. return _bstr_t(_result, false);
  192. }
  193. inline void IXMLElement2::PuttagName ( _bstr_t p ) {
  194. HRESULT _hr = put_tagName(p);
  195. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  196. }
  197. inline IXMLElement2Ptr IXMLElement2::Getparent ( ) {
  198. struct IXMLElement2 * _result = 0;
  199. HRESULT _hr = get_parent(&_result);
  200. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  201. return IXMLElement2Ptr(_result, false);
  202. }
  203. inline HRESULT IXMLElement2::setAttribute ( _bstr_t strPropertyName, const _variant_t & PropertyValue ) {
  204. HRESULT _hr = raw_setAttribute(strPropertyName, PropertyValue);
  205. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  206. return _hr;
  207. }
  208. inline _variant_t IXMLElement2::getAttribute ( _bstr_t strPropertyName ) {
  209. VARIANT _result;
  210. VariantInit(&_result);
  211. HRESULT _hr = raw_getAttribute(strPropertyName, &_result);
  212. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  213. return _variant_t(_result, false);
  214. }
  215. inline HRESULT IXMLElement2::removeAttribute ( _bstr_t strPropertyName ) {
  216. HRESULT _hr = raw_removeAttribute(strPropertyName);
  217. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  218. return _hr;
  219. }
  220. inline IXMLElementCollectionPtr IXMLElement2::Getchildren ( ) {
  221. struct IXMLElementCollection * _result = 0;
  222. HRESULT _hr = get_children(&_result);
  223. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  224. return IXMLElementCollectionPtr(_result, false);
  225. }
  226. inline long IXMLElement2::Gettype ( ) {
  227. long _result = 0;
  228. HRESULT _hr = get_type(&_result);
  229. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  230. return _result;
  231. }
  232. inline _bstr_t IXMLElement2::Gettext ( ) {
  233. BSTR _result = 0;
  234. HRESULT _hr = get_text(&_result);
  235. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  236. return _bstr_t(_result, false);
  237. }
  238. inline void IXMLElement2::Puttext ( _bstr_t p ) {
  239. HRESULT _hr = put_text(p);
  240. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  241. }
  242. inline HRESULT IXMLElement2::addChild ( struct IXMLElement2 * pChildElem, long lIndex, long lReserved ) {
  243. HRESULT _hr = raw_addChild(pChildElem, lIndex, lReserved);
  244. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  245. return _hr;
  246. }
  247. inline HRESULT IXMLElement2::removeChild ( struct IXMLElement2 * pChildElem ) {
  248. HRESULT _hr = raw_removeChild(pChildElem);
  249. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  250. return _hr;
  251. }
  252. inline IXMLElementCollectionPtr IXMLElement2::Getattributes ( ) {
  253. struct IXMLElementCollection * _result = 0;
  254. HRESULT _hr = get_attributes(&_result);
  255. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  256. return IXMLElementCollectionPtr(_result, false);
  257. }
  258. //
  259. // interface IXMLDocument2 wrapper method implementations
  260. //
  261. inline IXMLElement2Ptr IXMLDocument2::Getroot ( ) {
  262. struct IXMLElement2 * _result = 0;
  263. HRESULT _hr = get_root(&_result);
  264. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  265. return IXMLElement2Ptr(_result, false);
  266. }
  267. inline _bstr_t IXMLDocument2::GetfileSize ( ) {
  268. BSTR _result = 0;
  269. HRESULT _hr = get_fileSize(&_result);
  270. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  271. return _bstr_t(_result, false);
  272. }
  273. inline _bstr_t IXMLDocument2::GetfileModifiedDate ( ) {
  274. BSTR _result = 0;
  275. HRESULT _hr = get_fileModifiedDate(&_result);
  276. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  277. return _bstr_t(_result, false);
  278. }
  279. inline _bstr_t IXMLDocument2::GetfileUpdatedDate ( ) {
  280. BSTR _result = 0;
  281. HRESULT _hr = get_fileUpdatedDate(&_result);
  282. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  283. return _bstr_t(_result, false);
  284. }
  285. inline _bstr_t IXMLDocument2::GetURL ( ) {
  286. BSTR _result = 0;
  287. HRESULT _hr = get_URL(&_result);
  288. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  289. return _bstr_t(_result, false);
  290. }
  291. inline void IXMLDocument2::PutURL ( _bstr_t p ) {
  292. HRESULT _hr = put_URL(p);
  293. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  294. }
  295. inline _bstr_t IXMLDocument2::GetmimeType ( ) {
  296. BSTR _result = 0;
  297. HRESULT _hr = get_mimeType(&_result);
  298. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  299. return _bstr_t(_result, false);
  300. }
  301. inline long IXMLDocument2::GetreadyState ( ) {
  302. long _result = 0;
  303. HRESULT _hr = get_readyState(&_result);
  304. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  305. return _result;
  306. }
  307. inline _bstr_t IXMLDocument2::Getcharset ( ) {
  308. BSTR _result = 0;
  309. HRESULT _hr = get_charset(&_result);
  310. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  311. return _bstr_t(_result, false);
  312. }
  313. inline void IXMLDocument2::Putcharset ( _bstr_t p ) {
  314. HRESULT _hr = put_charset(p);
  315. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  316. }
  317. inline _bstr_t IXMLDocument2::Getversion ( ) {
  318. BSTR _result = 0;
  319. HRESULT _hr = get_version(&_result);
  320. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  321. return _bstr_t(_result, false);
  322. }
  323. inline _bstr_t IXMLDocument2::Getdoctype ( ) {
  324. BSTR _result = 0;
  325. HRESULT _hr = get_doctype(&_result);
  326. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  327. return _bstr_t(_result, false);
  328. }
  329. inline _bstr_t IXMLDocument2::GetdtdURL ( ) {
  330. BSTR _result = 0;
  331. HRESULT _hr = get_dtdURL(&_result);
  332. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  333. return _bstr_t(_result, false);
  334. }
  335. inline IXMLElement2Ptr IXMLDocument2::createElement ( const _variant_t & vType, const _variant_t & var1 ) {
  336. struct IXMLElement2 * _result = 0;
  337. HRESULT _hr = raw_createElement(vType, var1, &_result);
  338. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  339. return IXMLElement2Ptr(_result, false);
  340. }
  341. inline VARIANT_BOOL IXMLDocument2::Getasync ( ) {
  342. VARIANT_BOOL _result = 0;
  343. HRESULT _hr = get_async(&_result);
  344. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  345. return _result;
  346. }
  347. inline void IXMLDocument2::Putasync ( VARIANT_BOOL pf ) {
  348. HRESULT _hr = put_async(pf);
  349. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  350. }
  351. //
  352. // interface IXMLAttribute wrapper method implementations
  353. //
  354. inline _bstr_t IXMLAttribute::Getname ( ) {
  355. BSTR _result = 0;
  356. HRESULT _hr = get_name(&_result);
  357. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  358. return _bstr_t(_result, false);
  359. }
  360. inline _bstr_t IXMLAttribute::Getvalue ( ) {
  361. BSTR _result = 0;
  362. HRESULT _hr = get_value(&_result);
  363. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  364. return _bstr_t(_result, false);
  365. }
  366. //
  367. // interface IXMLError wrapper method implementations
  368. //
  369. inline HRESULT IXMLError::GetErrorInfo ( struct _xml_error * pErrorReturn ) {
  370. HRESULT _hr = raw_GetErrorInfo(pErrorReturn);
  371. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  372. return _hr;
  373. }
  374. //
  375. // interface IXMLDOMImplementation wrapper method implementations
  376. //
  377. inline VARIANT_BOOL IXMLDOMImplementation::hasFeature ( _bstr_t feature, _bstr_t version ) {
  378. VARIANT_BOOL _result = 0;
  379. HRESULT _hr = raw_hasFeature(feature, version, &_result);
  380. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  381. return _result;
  382. }
  383. //
  384. // interface IXMLDOMParseError wrapper method implementations
  385. //
  386. inline long IXMLDOMParseError::GeterrorCode ( ) {
  387. long _result = 0;
  388. HRESULT _hr = get_errorCode(&_result);
  389. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  390. return _result;
  391. }
  392. inline _bstr_t IXMLDOMParseError::GetURL ( ) {
  393. BSTR _result = 0;
  394. HRESULT _hr = get_URL(&_result);
  395. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  396. return _bstr_t(_result, false);
  397. }
  398. inline _bstr_t IXMLDOMParseError::Getreason ( ) {
  399. BSTR _result = 0;
  400. HRESULT _hr = get_reason(&_result);
  401. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  402. return _bstr_t(_result, false);
  403. }
  404. inline _bstr_t IXMLDOMParseError::GetsrcText ( ) {
  405. BSTR _result = 0;
  406. HRESULT _hr = get_srcText(&_result);
  407. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  408. return _bstr_t(_result, false);
  409. }
  410. inline long IXMLDOMParseError::Getline ( ) {
  411. long _result = 0;
  412. HRESULT _hr = get_line(&_result);
  413. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  414. return _result;
  415. }
  416. inline long IXMLDOMParseError::Getlinepos ( ) {
  417. long _result = 0;
  418. HRESULT _hr = get_linepos(&_result);
  419. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  420. return _result;
  421. }
  422. inline long IXMLDOMParseError::Getfilepos ( ) {
  423. long _result = 0;
  424. HRESULT _hr = get_filepos(&_result);
  425. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  426. return _result;
  427. }
  428. //
  429. // interface ISAXEntityResolver wrapper method implementations
  430. //
  431. inline _variant_t ISAXEntityResolver::resolveEntity ( const wchar_t * pwchPublicId, const wchar_t * pwchSystemId ) {
  432. VARIANT _result;
  433. VariantInit(&_result);
  434. HRESULT _hr = raw_resolveEntity(pwchPublicId, pwchSystemId, &_result);
  435. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  436. return _variant_t(_result, false);
  437. }
  438. //
  439. // interface ISAXLocator wrapper method implementations
  440. //
  441. inline int ISAXLocator::getColumnNumber ( ) {
  442. int _result = 0;
  443. HRESULT _hr = raw_getColumnNumber(&_result);
  444. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  445. return _result;
  446. }
  447. inline int ISAXLocator::getLineNumber ( ) {
  448. int _result = 0;
  449. HRESULT _hr = raw_getLineNumber(&_result);
  450. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  451. return _result;
  452. }
  453. inline const wchar_t * ISAXLocator::getPublicId ( ) {
  454. const wchar_t * _result = 0;
  455. HRESULT _hr = raw_getPublicId(&_result);
  456. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  457. return _result;
  458. }
  459. inline const wchar_t * ISAXLocator::getSystemId ( ) {
  460. const wchar_t * _result = 0;
  461. HRESULT _hr = raw_getSystemId(&_result);
  462. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  463. return _result;
  464. }
  465. //
  466. // interface ISAXAttributes wrapper method implementations
  467. //
  468. inline int ISAXAttributes::getLength ( ) {
  469. int _result = 0;
  470. HRESULT _hr = raw_getLength(&_result);
  471. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  472. return _result;
  473. }
  474. inline HRESULT ISAXAttributes::getURI ( int nIndex, const wchar_t * * ppwchUri, int * pcchUri ) {
  475. HRESULT _hr = raw_getURI(nIndex, ppwchUri, pcchUri);
  476. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  477. return _hr;
  478. }
  479. inline HRESULT ISAXAttributes::getLocalName ( int nIndex, const wchar_t * * ppwchLocalName, int * pcchLocalName ) {
  480. HRESULT _hr = raw_getLocalName(nIndex, ppwchLocalName, pcchLocalName);
  481. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  482. return _hr;
  483. }
  484. inline HRESULT ISAXAttributes::getQName ( int nIndex, const wchar_t * * ppwchQName, int * pcchQName ) {
  485. HRESULT _hr = raw_getQName(nIndex, ppwchQName, pcchQName);
  486. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  487. return _hr;
  488. }
  489. inline HRESULT ISAXAttributes::getName ( int nIndex, const wchar_t * * ppwchUri, int * pcchUri, const wchar_t * * ppwchLocalName, int * pcchLocalName, const wchar_t * * ppwchQName, int * pcchQName ) {
  490. HRESULT _hr = raw_getName(nIndex, ppwchUri, pcchUri, ppwchLocalName, pcchLocalName, ppwchQName, pcchQName);
  491. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  492. return _hr;
  493. }
  494. inline int ISAXAttributes::getIndexFromName ( const wchar_t * pwchUri, int cchUri, const wchar_t * pwchLocalName, int cchLocalName ) {
  495. int _result = 0;
  496. HRESULT _hr = raw_getIndexFromName(pwchUri, cchUri, pwchLocalName, cchLocalName, &_result);
  497. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  498. return _result;
  499. }
  500. inline int ISAXAttributes::getIndexFromQName ( const wchar_t * pwchQName, int cchQName ) {
  501. int _result = 0;
  502. HRESULT _hr = raw_getIndexFromQName(pwchQName, cchQName, &_result);
  503. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  504. return _result;
  505. }
  506. inline HRESULT ISAXAttributes::getType ( int nIndex, const wchar_t * * ppwchType, int * pcchType ) {
  507. HRESULT _hr = raw_getType(nIndex, ppwchType, pcchType);
  508. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  509. return _hr;
  510. }
  511. inline HRESULT ISAXAttributes::getTypeFromName ( const wchar_t * pwchUri, int cchUri, const wchar_t * pwchLocalName, int cchLocalName, const wchar_t * * ppwchType, int * pcchType ) {
  512. HRESULT _hr = raw_getTypeFromName(pwchUri, cchUri, pwchLocalName, cchLocalName, ppwchType, pcchType);
  513. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  514. return _hr;
  515. }
  516. inline HRESULT ISAXAttributes::getTypeFromQName ( const wchar_t * pwchQName, int cchQName, const wchar_t * * ppwchType, int * pcchType ) {
  517. HRESULT _hr = raw_getTypeFromQName(pwchQName, cchQName, ppwchType, pcchType);
  518. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  519. return _hr;
  520. }
  521. inline HRESULT ISAXAttributes::getValue ( int nIndex, const wchar_t * * ppwchValue, int * pcchValue ) {
  522. HRESULT _hr = raw_getValue(nIndex, ppwchValue, pcchValue);
  523. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  524. return _hr;
  525. }
  526. inline HRESULT ISAXAttributes::getValueFromName ( const wchar_t * pwchUri, int cchUri, const wchar_t * pwchLocalName, int cchLocalName, const wchar_t * * ppwchValue, int * pcchValue ) {
  527. HRESULT _hr = raw_getValueFromName(pwchUri, cchUri, pwchLocalName, cchLocalName, ppwchValue, pcchValue);
  528. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  529. return _hr;
  530. }
  531. inline HRESULT ISAXAttributes::getValueFromQName ( const wchar_t * pwchQName, int cchQName, const wchar_t * * ppwchValue, int * pcchValue ) {
  532. HRESULT _hr = raw_getValueFromQName(pwchQName, cchQName, ppwchValue, pcchValue);
  533. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  534. return _hr;
  535. }
  536. //
  537. // interface ISAXContentHandler wrapper method implementations
  538. //
  539. inline HRESULT ISAXContentHandler::putDocumentLocator ( struct ISAXLocator * pLocator ) {
  540. HRESULT _hr = raw_putDocumentLocator(pLocator);
  541. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  542. return _hr;
  543. }
  544. inline HRESULT ISAXContentHandler::startDocument ( ) {
  545. HRESULT _hr = raw_startDocument();
  546. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  547. return _hr;
  548. }
  549. inline HRESULT ISAXContentHandler::endDocument ( ) {
  550. HRESULT _hr = raw_endDocument();
  551. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  552. return _hr;
  553. }
  554. inline HRESULT ISAXContentHandler::startPrefixMapping ( const wchar_t * pwchPrefix, int cchPrefix, const wchar_t * pwchUri, int cchUri ) {
  555. HRESULT _hr = raw_startPrefixMapping(pwchPrefix, cchPrefix, pwchUri, cchUri);
  556. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  557. return _hr;
  558. }
  559. inline HRESULT ISAXContentHandler::endPrefixMapping ( const wchar_t * pwchPrefix, int cchPrefix ) {
  560. HRESULT _hr = raw_endPrefixMapping(pwchPrefix, cchPrefix);
  561. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  562. return _hr;
  563. }
  564. inline HRESULT ISAXContentHandler::startElement ( const wchar_t * pwchNamespaceUri, int cchNamespaceUri, const wchar_t * pwchLocalName, int cchLocalName, const wchar_t * pwchQName, int cchQName, struct ISAXAttributes * pAttributes ) {
  565. HRESULT _hr = raw_startElement(pwchNamespaceUri, cchNamespaceUri, pwchLocalName, cchLocalName, pwchQName, cchQName, pAttributes);
  566. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  567. return _hr;
  568. }
  569. inline HRESULT ISAXContentHandler::endElement ( const wchar_t * pwchNamespaceUri, int cchNamespaceUri, const wchar_t * pwchLocalName, int cchLocalName, const wchar_t * pwchQName, int cchQName ) {
  570. HRESULT _hr = raw_endElement(pwchNamespaceUri, cchNamespaceUri, pwchLocalName, cchLocalName, pwchQName, cchQName);
  571. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  572. return _hr;
  573. }
  574. inline HRESULT ISAXContentHandler::characters ( const wchar_t * pwchChars, int cchChars ) {
  575. HRESULT _hr = raw_characters(pwchChars, cchChars);
  576. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  577. return _hr;
  578. }
  579. inline HRESULT ISAXContentHandler::ignorableWhitespace ( const wchar_t * pwchChars, int cchChars ) {
  580. HRESULT _hr = raw_ignorableWhitespace(pwchChars, cchChars);
  581. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  582. return _hr;
  583. }
  584. inline HRESULT ISAXContentHandler::processingInstruction ( const wchar_t * pwchTarget, int cchTarget, const wchar_t * pwchData, int cchData ) {
  585. HRESULT _hr = raw_processingInstruction(pwchTarget, cchTarget, pwchData, cchData);
  586. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  587. return _hr;
  588. }
  589. inline HRESULT ISAXContentHandler::skippedEntity ( const wchar_t * pwchName, int cchName ) {
  590. HRESULT _hr = raw_skippedEntity(pwchName, cchName);
  591. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  592. return _hr;
  593. }
  594. //
  595. // interface ISAXDTDHandler wrapper method implementations
  596. //
  597. inline HRESULT ISAXDTDHandler::notationDecl ( const wchar_t * pwchName, int cchName, const wchar_t * pwchPublicId, int cchPublicId, const wchar_t * pwchSystemId, int cchSystemId ) {
  598. HRESULT _hr = raw_notationDecl(pwchName, cchName, pwchPublicId, cchPublicId, pwchSystemId, cchSystemId);
  599. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  600. return _hr;
  601. }
  602. inline HRESULT ISAXDTDHandler::unparsedEntityDecl ( const wchar_t * pwchName, int cchName, const wchar_t * pwchPublicId, int cchPublicId, const wchar_t * pwchSystemId, int cchSystemId, const wchar_t * pwchNotationName, int cchNotationName ) {
  603. HRESULT _hr = raw_unparsedEntityDecl(pwchName, cchName, pwchPublicId, cchPublicId, pwchSystemId, cchSystemId, pwchNotationName, cchNotationName);
  604. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  605. return _hr;
  606. }
  607. //
  608. // interface ISAXErrorHandler wrapper method implementations
  609. //
  610. inline HRESULT ISAXErrorHandler::error ( struct ISAXLocator * pLocator, struct IErrorInfo * pErrorInfo, HRESULT hrErrorCode ) {
  611. HRESULT _hr = raw_error(pLocator, pErrorInfo, hrErrorCode);
  612. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  613. return _hr;
  614. }
  615. inline HRESULT ISAXErrorHandler::fatalError ( struct ISAXLocator * pLocator, struct IErrorInfo * pErrorInfo, HRESULT hrErrorCode ) {
  616. HRESULT _hr = raw_fatalError(pLocator, pErrorInfo, hrErrorCode);
  617. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  618. return _hr;
  619. }
  620. inline HRESULT ISAXErrorHandler::warning ( struct ISAXLocator * pLocator, struct IErrorInfo * pErrorInfo, HRESULT hrErrorCode ) {
  621. HRESULT _hr = raw_warning(pLocator, pErrorInfo, hrErrorCode);
  622. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  623. return _hr;
  624. }
  625. //
  626. // interface ISAXXMLReader wrapper method implementations
  627. //
  628. inline VARIANT_BOOL ISAXXMLReader::getFeature ( const wchar_t * pwchName ) {
  629. VARIANT_BOOL _result = 0;
  630. HRESULT _hr = raw_getFeature(pwchName, &_result);
  631. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  632. return _result;
  633. }
  634. inline HRESULT ISAXXMLReader::putFeature ( const wchar_t * pwchName, VARIANT_BOOL vfValue ) {
  635. HRESULT _hr = raw_putFeature(pwchName, vfValue);
  636. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  637. return _hr;
  638. }
  639. inline _variant_t ISAXXMLReader::getProperty ( const wchar_t * pwchName ) {
  640. VARIANT _result;
  641. VariantInit(&_result);
  642. HRESULT _hr = raw_getProperty(pwchName, &_result);
  643. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  644. return _variant_t(_result, false);
  645. }
  646. inline HRESULT ISAXXMLReader::putProperty ( const wchar_t * pwchName, const _variant_t & varValue ) {
  647. HRESULT _hr = raw_putProperty(pwchName, varValue);
  648. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  649. return _hr;
  650. }
  651. inline ISAXEntityResolverPtr ISAXXMLReader::getEntityResolver ( ) {
  652. struct ISAXEntityResolver * _result = 0;
  653. HRESULT _hr = raw_getEntityResolver(&_result);
  654. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  655. return ISAXEntityResolverPtr(_result, false);
  656. }
  657. inline HRESULT ISAXXMLReader::putEntityResolver ( struct ISAXEntityResolver * pResolver ) {
  658. HRESULT _hr = raw_putEntityResolver(pResolver);
  659. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  660. return _hr;
  661. }
  662. inline ISAXContentHandlerPtr ISAXXMLReader::getContentHandler ( ) {
  663. struct ISAXContentHandler * _result = 0;
  664. HRESULT _hr = raw_getContentHandler(&_result);
  665. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  666. return ISAXContentHandlerPtr(_result, false);
  667. }
  668. inline HRESULT ISAXXMLReader::putContentHandler ( struct ISAXContentHandler * pHandler ) {
  669. HRESULT _hr = raw_putContentHandler(pHandler);
  670. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  671. return _hr;
  672. }
  673. inline ISAXDTDHandlerPtr ISAXXMLReader::getDTDHandler ( ) {
  674. struct ISAXDTDHandler * _result = 0;
  675. HRESULT _hr = raw_getDTDHandler(&_result);
  676. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  677. return ISAXDTDHandlerPtr(_result, false);
  678. }
  679. inline HRESULT ISAXXMLReader::putDTDHandler ( struct ISAXDTDHandler * pHandler ) {
  680. HRESULT _hr = raw_putDTDHandler(pHandler);
  681. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  682. return _hr;
  683. }
  684. inline ISAXErrorHandlerPtr ISAXXMLReader::getErrorHandler ( ) {
  685. struct ISAXErrorHandler * _result = 0;
  686. HRESULT _hr = raw_getErrorHandler(&_result);
  687. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  688. return ISAXErrorHandlerPtr(_result, false);
  689. }
  690. inline HRESULT ISAXXMLReader::putErrorHandler ( struct ISAXErrorHandler * pHandler ) {
  691. HRESULT _hr = raw_putErrorHandler(pHandler);
  692. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  693. return _hr;
  694. }
  695. inline const wchar_t * ISAXXMLReader::getBaseURL ( ) {
  696. const wchar_t * _result = 0;
  697. HRESULT _hr = raw_getBaseURL(&_result);
  698. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  699. return _result;
  700. }
  701. inline HRESULT ISAXXMLReader::putBaseURL ( const wchar_t * pwchBaseUrl ) {
  702. HRESULT _hr = raw_putBaseURL(pwchBaseUrl);
  703. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  704. return _hr;
  705. }
  706. inline const wchar_t * ISAXXMLReader::getSecureBaseURL ( ) {
  707. const wchar_t * _result = 0;
  708. HRESULT _hr = raw_getSecureBaseURL(&_result);
  709. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  710. return _result;
  711. }
  712. inline HRESULT ISAXXMLReader::putSecureBaseURL ( const wchar_t * pwchSecureBaseUrl ) {
  713. HRESULT _hr = raw_putSecureBaseURL(pwchSecureBaseUrl);
  714. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  715. return _hr;
  716. }
  717. inline HRESULT ISAXXMLReader::parse ( const _variant_t & varInput ) {
  718. HRESULT _hr = raw_parse(varInput);
  719. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  720. return _hr;
  721. }
  722. inline HRESULT ISAXXMLReader::parseURL ( const wchar_t * pwchUrl ) {
  723. HRESULT _hr = raw_parseURL(pwchUrl);
  724. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  725. return _hr;
  726. }
  727. //
  728. // interface ISAXXMLFilter wrapper method implementations
  729. //
  730. inline ISAXXMLReaderPtr ISAXXMLFilter::getParent ( ) {
  731. struct ISAXXMLReader * _result = 0;
  732. HRESULT _hr = raw_getParent(&_result);
  733. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  734. return ISAXXMLReaderPtr(_result, false);
  735. }
  736. inline HRESULT ISAXXMLFilter::putParent ( struct ISAXXMLReader * pReader ) {
  737. HRESULT _hr = raw_putParent(pReader);
  738. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  739. return _hr;
  740. }
  741. //
  742. // interface ISAXLexicalHandler wrapper method implementations
  743. //
  744. inline HRESULT ISAXLexicalHandler::startDTD ( const wchar_t * pwchName, int cchName, const wchar_t * pwchPublicId, int cchPublicId, const wchar_t * pwchSystemId, int cchSystemId ) {
  745. HRESULT _hr = raw_startDTD(pwchName, cchName, pwchPublicId, cchPublicId, pwchSystemId, cchSystemId);
  746. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  747. return _hr;
  748. }
  749. inline HRESULT ISAXLexicalHandler::endDTD ( ) {
  750. HRESULT _hr = raw_endDTD();
  751. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  752. return _hr;
  753. }
  754. inline HRESULT ISAXLexicalHandler::startEntity ( const wchar_t * pwchName, int cchName ) {
  755. HRESULT _hr = raw_startEntity(pwchName, cchName);
  756. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  757. return _hr;
  758. }
  759. inline HRESULT ISAXLexicalHandler::endEntity ( const wchar_t * pwchName, int cchName ) {
  760. HRESULT _hr = raw_endEntity(pwchName, cchName);
  761. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  762. return _hr;
  763. }
  764. inline HRESULT ISAXLexicalHandler::startCDATA ( ) {
  765. HRESULT _hr = raw_startCDATA();
  766. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  767. return _hr;
  768. }
  769. inline HRESULT ISAXLexicalHandler::endCDATA ( ) {
  770. HRESULT _hr = raw_endCDATA();
  771. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  772. return _hr;
  773. }
  774. inline HRESULT ISAXLexicalHandler::comment ( const wchar_t * pwchChars, int cchChars ) {
  775. HRESULT _hr = raw_comment(pwchChars, cchChars);
  776. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  777. return _hr;
  778. }
  779. //
  780. // interface ISAXDeclHandler wrapper method implementations
  781. //
  782. inline HRESULT ISAXDeclHandler::elementDecl ( const wchar_t * pwchName, int cchName, const wchar_t * pwchModel, int cchModel ) {
  783. HRESULT _hr = raw_elementDecl(pwchName, cchName, pwchModel, cchModel);
  784. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  785. return _hr;
  786. }
  787. inline HRESULT ISAXDeclHandler::attributeDecl ( const wchar_t * pwchElementName, int cchElementName, const wchar_t * pwchAttributeName, int cchAttributeName, const wchar_t * pwchType, int cchType, const wchar_t * pwchValueDefault, int cchValueDefault, const wchar_t * pwchValue, int cchValue ) {
  788. HRESULT _hr = raw_attributeDecl(pwchElementName, cchElementName, pwchAttributeName, cchAttributeName, pwchType, cchType, pwchValueDefault, cchValueDefault, pwchValue, cchValue);
  789. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  790. return _hr;
  791. }
  792. inline HRESULT ISAXDeclHandler::internalEntityDecl ( const wchar_t * pwchName, int cchName, const wchar_t * pwchValue, int cchValue ) {
  793. HRESULT _hr = raw_internalEntityDecl(pwchName, cchName, pwchValue, cchValue);
  794. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  795. return _hr;
  796. }
  797. inline HRESULT ISAXDeclHandler::externalEntityDecl ( const wchar_t * pwchName, int cchName, const wchar_t * pwchPublicId, int cchPublicId, const wchar_t * pwchSystemId, int cchSystemId ) {
  798. HRESULT _hr = raw_externalEntityDecl(pwchName, cchName, pwchPublicId, cchPublicId, pwchSystemId, cchSystemId);
  799. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  800. return _hr;
  801. }
  802. //
  803. // interface IVBSAXEntityResolver wrapper method implementations
  804. //
  805. inline _variant_t IVBSAXEntityResolver::resolveEntity ( BSTR * strPublicId, BSTR * strSystemId ) {
  806. VARIANT _result;
  807. VariantInit(&_result);
  808. HRESULT _hr = raw_resolveEntity(strPublicId, strSystemId, &_result);
  809. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  810. return _variant_t(_result, false);
  811. }
  812. //
  813. // interface IVBSAXLocator wrapper method implementations
  814. //
  815. inline int IVBSAXLocator::GetcolumnNumber ( ) {
  816. int _result = 0;
  817. HRESULT _hr = get_columnNumber(&_result);
  818. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  819. return _result;
  820. }
  821. inline int IVBSAXLocator::GetlineNumber ( ) {
  822. int _result = 0;
  823. HRESULT _hr = get_lineNumber(&_result);
  824. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  825. return _result;
  826. }
  827. inline _bstr_t IVBSAXLocator::GetpublicId ( ) {
  828. BSTR _result = 0;
  829. HRESULT _hr = get_publicId(&_result);
  830. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  831. return _bstr_t(_result, false);
  832. }
  833. inline _bstr_t IVBSAXLocator::GetsystemId ( ) {
  834. BSTR _result = 0;
  835. HRESULT _hr = get_systemId(&_result);
  836. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  837. return _bstr_t(_result, false);
  838. }
  839. //
  840. // interface IVBSAXAttributes wrapper method implementations
  841. //
  842. inline int IVBSAXAttributes::Getlength ( ) {
  843. int _result = 0;
  844. HRESULT _hr = get_length(&_result);
  845. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  846. return _result;
  847. }
  848. inline _bstr_t IVBSAXAttributes::getURI ( int nIndex ) {
  849. BSTR _result = 0;
  850. HRESULT _hr = raw_getURI(nIndex, &_result);
  851. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  852. return _bstr_t(_result, false);
  853. }
  854. inline _bstr_t IVBSAXAttributes::getLocalName ( int nIndex ) {
  855. BSTR _result = 0;
  856. HRESULT _hr = raw_getLocalName(nIndex, &_result);
  857. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  858. return _bstr_t(_result, false);
  859. }
  860. inline _bstr_t IVBSAXAttributes::getQName ( int nIndex ) {
  861. BSTR _result = 0;
  862. HRESULT _hr = raw_getQName(nIndex, &_result);
  863. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  864. return _bstr_t(_result, false);
  865. }
  866. inline int IVBSAXAttributes::getIndexFromName ( _bstr_t strURI, _bstr_t strLocalName ) {
  867. int _result = 0;
  868. HRESULT _hr = raw_getIndexFromName(strURI, strLocalName, &_result);
  869. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  870. return _result;
  871. }
  872. inline int IVBSAXAttributes::getIndexFromQName ( _bstr_t strQName ) {
  873. int _result = 0;
  874. HRESULT _hr = raw_getIndexFromQName(strQName, &_result);
  875. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  876. return _result;
  877. }
  878. inline _bstr_t IVBSAXAttributes::getType ( int nIndex ) {
  879. BSTR _result = 0;
  880. HRESULT _hr = raw_getType(nIndex, &_result);
  881. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  882. return _bstr_t(_result, false);
  883. }
  884. inline _bstr_t IVBSAXAttributes::getTypeFromName ( _bstr_t strURI, _bstr_t strLocalName ) {
  885. BSTR _result = 0;
  886. HRESULT _hr = raw_getTypeFromName(strURI, strLocalName, &_result);
  887. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  888. return _bstr_t(_result, false);
  889. }
  890. inline _bstr_t IVBSAXAttributes::getTypeFromQName ( _bstr_t strQName ) {
  891. BSTR _result = 0;
  892. HRESULT _hr = raw_getTypeFromQName(strQName, &_result);
  893. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  894. return _bstr_t(_result, false);
  895. }
  896. inline _bstr_t IVBSAXAttributes::getValue ( int nIndex ) {
  897. BSTR _result = 0;
  898. HRESULT _hr = raw_getValue(nIndex, &_result);
  899. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  900. return _bstr_t(_result, false);
  901. }
  902. inline _bstr_t IVBSAXAttributes::getValueFromName ( _bstr_t strURI, _bstr_t strLocalName ) {
  903. BSTR _result = 0;
  904. HRESULT _hr = raw_getValueFromName(strURI, strLocalName, &_result);
  905. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  906. return _bstr_t(_result, false);
  907. }
  908. inline _bstr_t IVBSAXAttributes::getValueFromQName ( _bstr_t strQName ) {
  909. BSTR _result = 0;
  910. HRESULT _hr = raw_getValueFromQName(strQName, &_result);
  911. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  912. return _bstr_t(_result, false);
  913. }
  914. //
  915. // interface IVBSAXContentHandler wrapper method implementations
  916. //
  917. inline void IVBSAXContentHandler::PutRefdocumentLocator ( struct IVBSAXLocator * _arg1 ) {
  918. HRESULT _hr = putref_documentLocator(_arg1);
  919. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  920. }
  921. inline HRESULT IVBSAXContentHandler::startDocument ( ) {
  922. HRESULT _hr = raw_startDocument();
  923. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  924. return _hr;
  925. }
  926. inline HRESULT IVBSAXContentHandler::endDocument ( ) {
  927. HRESULT _hr = raw_endDocument();
  928. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  929. return _hr;
  930. }
  931. inline HRESULT IVBSAXContentHandler::startPrefixMapping ( BSTR * strPrefix, BSTR * strURI ) {
  932. HRESULT _hr = raw_startPrefixMapping(strPrefix, strURI);
  933. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  934. return _hr;
  935. }
  936. inline HRESULT IVBSAXContentHandler::endPrefixMapping ( BSTR * strPrefix ) {
  937. HRESULT _hr = raw_endPrefixMapping(strPrefix);
  938. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  939. return _hr;
  940. }
  941. inline HRESULT IVBSAXContentHandler::startElement ( BSTR * strNamespaceURI, BSTR * strLocalName, BSTR * strQName, struct IVBSAXAttributes * oAttributes ) {
  942. HRESULT _hr = raw_startElement(strNamespaceURI, strLocalName, strQName, oAttributes);
  943. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  944. return _hr;
  945. }
  946. inline HRESULT IVBSAXContentHandler::endElement ( BSTR * strNamespaceURI, BSTR * strLocalName, BSTR * strQName ) {
  947. HRESULT _hr = raw_endElement(strNamespaceURI, strLocalName, strQName);
  948. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  949. return _hr;
  950. }
  951. inline HRESULT IVBSAXContentHandler::characters ( BSTR * strChars ) {
  952. HRESULT _hr = raw_characters(strChars);
  953. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  954. return _hr;
  955. }
  956. inline HRESULT IVBSAXContentHandler::ignorableWhitespace ( BSTR * strChars ) {
  957. HRESULT _hr = raw_ignorableWhitespace(strChars);
  958. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  959. return _hr;
  960. }
  961. inline HRESULT IVBSAXContentHandler::processingInstruction ( BSTR * strTarget, BSTR * strData ) {
  962. HRESULT _hr = raw_processingInstruction(strTarget, strData);
  963. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  964. return _hr;
  965. }
  966. inline HRESULT IVBSAXContentHandler::skippedEntity ( BSTR * strName ) {
  967. HRESULT _hr = raw_skippedEntity(strName);
  968. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  969. return _hr;
  970. }
  971. //
  972. // interface IVBSAXDTDHandler wrapper method implementations
  973. //
  974. inline HRESULT IVBSAXDTDHandler::notationDecl ( BSTR * strName, BSTR * strPublicId, BSTR * strSystemId ) {
  975. HRESULT _hr = raw_notationDecl(strName, strPublicId, strSystemId);
  976. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  977. return _hr;
  978. }
  979. inline HRESULT IVBSAXDTDHandler::unparsedEntityDecl ( BSTR * strName, BSTR * strPublicId, BSTR * strSystemId, BSTR * strNotationName ) {
  980. HRESULT _hr = raw_unparsedEntityDecl(strName, strPublicId, strSystemId, strNotationName);
  981. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  982. return _hr;
  983. }
  984. //
  985. // interface IVBSAXErrorHandler wrapper method implementations
  986. //
  987. inline HRESULT IVBSAXErrorHandler::error ( struct IVBSAXLocator * oLocator, BSTR * strError, long nErrorCode ) {
  988. HRESULT _hr = raw_error(oLocator, strError, nErrorCode);
  989. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  990. return _hr;
  991. }
  992. inline HRESULT IVBSAXErrorHandler::fatalError ( struct IVBSAXLocator * oLocator, BSTR * strError, long nErrorCode ) {
  993. HRESULT _hr = raw_fatalError(oLocator, strError, nErrorCode);
  994. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  995. return _hr;
  996. }
  997. inline HRESULT IVBSAXErrorHandler::warning ( struct IVBSAXLocator * oLocator, BSTR * strError, long nErrorCode ) {
  998. HRESULT _hr = raw_warning(oLocator, strError, nErrorCode);
  999. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1000. return _hr;
  1001. }
  1002. //
  1003. // interface IVBSAXXMLReader wrapper method implementations
  1004. //
  1005. inline VARIANT_BOOL IVBSAXXMLReader::getFeature ( _bstr_t strName ) {
  1006. VARIANT_BOOL _result = 0;
  1007. HRESULT _hr = raw_getFeature(strName, &_result);
  1008. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1009. return _result;
  1010. }
  1011. inline HRESULT IVBSAXXMLReader::putFeature ( _bstr_t strName, VARIANT_BOOL fValue ) {
  1012. HRESULT _hr = raw_putFeature(strName, fValue);
  1013. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1014. return _hr;
  1015. }
  1016. inline _variant_t IVBSAXXMLReader::getProperty ( _bstr_t strName ) {
  1017. VARIANT _result;
  1018. VariantInit(&_result);
  1019. HRESULT _hr = raw_getProperty(strName, &_result);
  1020. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1021. return _variant_t(_result, false);
  1022. }
  1023. inline HRESULT IVBSAXXMLReader::putProperty ( _bstr_t strName, const _variant_t & varValue ) {
  1024. HRESULT _hr = raw_putProperty(strName, varValue);
  1025. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1026. return _hr;
  1027. }
  1028. inline IVBSAXEntityResolverPtr IVBSAXXMLReader::GetentityResolver ( ) {
  1029. struct IVBSAXEntityResolver * _result = 0;
  1030. HRESULT _hr = get_entityResolver(&_result);
  1031. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1032. return IVBSAXEntityResolverPtr(_result, false);
  1033. }
  1034. inline void IVBSAXXMLReader::PutRefentityResolver ( struct IVBSAXEntityResolver * oResolver ) {
  1035. HRESULT _hr = putref_entityResolver(oResolver);
  1036. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1037. }
  1038. inline IVBSAXContentHandlerPtr IVBSAXXMLReader::GetcontentHandler ( ) {
  1039. struct IVBSAXContentHandler * _result = 0;
  1040. HRESULT _hr = get_contentHandler(&_result);
  1041. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1042. return IVBSAXContentHandlerPtr(_result, false);
  1043. }
  1044. inline void IVBSAXXMLReader::PutRefcontentHandler ( struct IVBSAXContentHandler * oHandler ) {
  1045. HRESULT _hr = putref_contentHandler(oHandler);
  1046. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1047. }
  1048. inline IVBSAXDTDHandlerPtr IVBSAXXMLReader::GetdtdHandler ( ) {
  1049. struct IVBSAXDTDHandler * _result = 0;
  1050. HRESULT _hr = get_dtdHandler(&_result);
  1051. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1052. return IVBSAXDTDHandlerPtr(_result, false);
  1053. }
  1054. inline void IVBSAXXMLReader::PutRefdtdHandler ( struct IVBSAXDTDHandler * oHandler ) {
  1055. HRESULT _hr = putref_dtdHandler(oHandler);
  1056. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1057. }
  1058. inline IVBSAXErrorHandlerPtr IVBSAXXMLReader::GeterrorHandler ( ) {
  1059. struct IVBSAXErrorHandler * _result = 0;
  1060. HRESULT _hr = get_errorHandler(&_result);
  1061. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1062. return IVBSAXErrorHandlerPtr(_result, false);
  1063. }
  1064. inline void IVBSAXXMLReader::PutReferrorHandler ( struct IVBSAXErrorHandler * oHandler ) {
  1065. HRESULT _hr = putref_errorHandler(oHandler);
  1066. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1067. }
  1068. inline _bstr_t IVBSAXXMLReader::GetbaseURL ( ) {
  1069. BSTR _result = 0;
  1070. HRESULT _hr = get_baseURL(&_result);
  1071. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1072. return _bstr_t(_result, false);
  1073. }
  1074. inline void IVBSAXXMLReader::PutbaseURL ( _bstr_t strBaseURL ) {
  1075. HRESULT _hr = put_baseURL(strBaseURL);
  1076. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1077. }
  1078. inline _bstr_t IVBSAXXMLReader::GetsecureBaseURL ( ) {
  1079. BSTR _result = 0;
  1080. HRESULT _hr = get_secureBaseURL(&_result);
  1081. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1082. return _bstr_t(_result, false);
  1083. }
  1084. inline void IVBSAXXMLReader::PutsecureBaseURL ( _bstr_t strSecureBaseURL ) {
  1085. HRESULT _hr = put_secureBaseURL(strSecureBaseURL);
  1086. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1087. }
  1088. inline HRESULT IVBSAXXMLReader::parse ( const _variant_t & varInput ) {
  1089. HRESULT _hr = raw_parse(varInput);
  1090. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1091. return _hr;
  1092. }
  1093. inline HRESULT IVBSAXXMLReader::parseURL ( _bstr_t strURL ) {
  1094. HRESULT _hr = raw_parseURL(strURL);
  1095. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1096. return _hr;
  1097. }
  1098. //
  1099. // interface IVBSAXXMLFilter wrapper method implementations
  1100. //
  1101. inline IVBSAXXMLReaderPtr IVBSAXXMLFilter::Getparent ( ) {
  1102. struct IVBSAXXMLReader * _result = 0;
  1103. HRESULT _hr = get_parent(&_result);
  1104. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1105. return IVBSAXXMLReaderPtr(_result, false);
  1106. }
  1107. inline void IVBSAXXMLFilter::PutRefparent ( struct IVBSAXXMLReader * oReader ) {
  1108. HRESULT _hr = putref_parent(oReader);
  1109. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1110. }
  1111. //
  1112. // interface IVBSAXLexicalHandler wrapper method implementations
  1113. //
  1114. inline HRESULT IVBSAXLexicalHandler::startDTD ( BSTR * strName, BSTR * strPublicId, BSTR * strSystemId ) {
  1115. HRESULT _hr = raw_startDTD(strName, strPublicId, strSystemId);
  1116. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1117. return _hr;
  1118. }
  1119. inline HRESULT IVBSAXLexicalHandler::endDTD ( ) {
  1120. HRESULT _hr = raw_endDTD();
  1121. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1122. return _hr;
  1123. }
  1124. inline HRESULT IVBSAXLexicalHandler::startEntity ( BSTR * strName ) {
  1125. HRESULT _hr = raw_startEntity(strName);
  1126. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1127. return _hr;
  1128. }
  1129. inline HRESULT IVBSAXLexicalHandler::endEntity ( BSTR * strName ) {
  1130. HRESULT _hr = raw_endEntity(strName);
  1131. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1132. return _hr;
  1133. }
  1134. inline HRESULT IVBSAXLexicalHandler::startCDATA ( ) {
  1135. HRESULT _hr = raw_startCDATA();
  1136. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1137. return _hr;
  1138. }
  1139. inline HRESULT IVBSAXLexicalHandler::endCDATA ( ) {
  1140. HRESULT _hr = raw_endCDATA();
  1141. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1142. return _hr;
  1143. }
  1144. inline HRESULT IVBSAXLexicalHandler::comment ( BSTR * strChars ) {
  1145. HRESULT _hr = raw_comment(strChars);
  1146. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1147. return _hr;
  1148. }
  1149. //
  1150. // interface IVBSAXDeclHandler wrapper method implementations
  1151. //
  1152. inline HRESULT IVBSAXDeclHandler::elementDecl ( BSTR * strName, BSTR * strModel ) {
  1153. HRESULT _hr = raw_elementDecl(strName, strModel);
  1154. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1155. return _hr;
  1156. }
  1157. inline HRESULT IVBSAXDeclHandler::attributeDecl ( BSTR * strElementName, BSTR * strAttributeName, BSTR * strType, BSTR * strValueDefault, BSTR * strValue ) {
  1158. HRESULT _hr = raw_attributeDecl(strElementName, strAttributeName, strType, strValueDefault, strValue);
  1159. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1160. return _hr;
  1161. }
  1162. inline HRESULT IVBSAXDeclHandler::internalEntityDecl ( BSTR * strName, BSTR * strValue ) {
  1163. HRESULT _hr = raw_internalEntityDecl(strName, strValue);
  1164. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1165. return _hr;
  1166. }
  1167. inline HRESULT IVBSAXDeclHandler::externalEntityDecl ( BSTR * strName, BSTR * strPublicId, BSTR * strSystemId ) {
  1168. HRESULT _hr = raw_externalEntityDecl(strName, strPublicId, strSystemId);
  1169. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1170. return _hr;
  1171. }
  1172. //
  1173. // interface IMXWriter wrapper method implementations
  1174. //
  1175. inline void IMXWriter::Putoutput ( const _variant_t & varDestination ) {
  1176. HRESULT _hr = put_output(varDestination);
  1177. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1178. }
  1179. inline _variant_t IMXWriter::Getoutput ( ) {
  1180. VARIANT _result;
  1181. VariantInit(&_result);
  1182. HRESULT _hr = get_output(&_result);
  1183. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1184. return _variant_t(_result, false);
  1185. }
  1186. inline void IMXWriter::Putencoding ( _bstr_t strEncoding ) {
  1187. HRESULT _hr = put_encoding(strEncoding);
  1188. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1189. }
  1190. inline _bstr_t IMXWriter::Getencoding ( ) {
  1191. BSTR _result = 0;
  1192. HRESULT _hr = get_encoding(&_result);
  1193. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1194. return _bstr_t(_result, false);
  1195. }
  1196. inline void IMXWriter::PutbyteOrderMark ( VARIANT_BOOL fWriteByteOrderMark ) {
  1197. HRESULT _hr = put_byteOrderMark(fWriteByteOrderMark);
  1198. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1199. }
  1200. inline VARIANT_BOOL IMXWriter::GetbyteOrderMark ( ) {
  1201. VARIANT_BOOL _result = 0;
  1202. HRESULT _hr = get_byteOrderMark(&_result);
  1203. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1204. return _result;
  1205. }
  1206. inline void IMXWriter::Putindent ( VARIANT_BOOL fIndentMode ) {
  1207. HRESULT _hr = put_indent(fIndentMode);
  1208. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1209. }
  1210. inline VARIANT_BOOL IMXWriter::Getindent ( ) {
  1211. VARIANT_BOOL _result = 0;
  1212. HRESULT _hr = get_indent(&_result);
  1213. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1214. return _result;
  1215. }
  1216. inline void IMXWriter::Putstandalone ( VARIANT_BOOL fValue ) {
  1217. HRESULT _hr = put_standalone(fValue);
  1218. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1219. }
  1220. inline VARIANT_BOOL IMXWriter::Getstandalone ( ) {
  1221. VARIANT_BOOL _result = 0;
  1222. HRESULT _hr = get_standalone(&_result);
  1223. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1224. return _result;
  1225. }
  1226. inline void IMXWriter::PutomitXMLDeclaration ( VARIANT_BOOL fValue ) {
  1227. HRESULT _hr = put_omitXMLDeclaration(fValue);
  1228. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1229. }
  1230. inline VARIANT_BOOL IMXWriter::GetomitXMLDeclaration ( ) {
  1231. VARIANT_BOOL _result = 0;
  1232. HRESULT _hr = get_omitXMLDeclaration(&_result);
  1233. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1234. return _result;
  1235. }
  1236. inline void IMXWriter::Putversion ( _bstr_t strVersion ) {
  1237. HRESULT _hr = put_version(strVersion);
  1238. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1239. }
  1240. inline _bstr_t IMXWriter::Getversion ( ) {
  1241. BSTR _result = 0;
  1242. HRESULT _hr = get_version(&_result);
  1243. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1244. return _bstr_t(_result, false);
  1245. }
  1246. inline void IMXWriter::PutdisableOutputEscaping ( VARIANT_BOOL fValue ) {
  1247. HRESULT _hr = put_disableOutputEscaping(fValue);
  1248. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1249. }
  1250. inline VARIANT_BOOL IMXWriter::GetdisableOutputEscaping ( ) {
  1251. VARIANT_BOOL _result = 0;
  1252. HRESULT _hr = get_disableOutputEscaping(&_result);
  1253. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1254. return _result;
  1255. }
  1256. inline HRESULT IMXWriter::flush ( ) {
  1257. HRESULT _hr = raw_flush();
  1258. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1259. return _hr;
  1260. }
  1261. inline HRESULT IMXWriter::reset ( ) {
  1262. HRESULT _hr = raw_reset();
  1263. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1264. return _hr;
  1265. }
  1266. //
  1267. // interface IMXAttributes wrapper method implementations
  1268. //
  1269. inline HRESULT IMXAttributes::addAttribute ( _bstr_t strURI, _bstr_t strLocalName, _bstr_t strQName, _bstr_t strType, _bstr_t strValue ) {
  1270. HRESULT _hr = raw_addAttribute(strURI, strLocalName, strQName, strType, strValue);
  1271. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1272. return _hr;
  1273. }
  1274. inline HRESULT IMXAttributes::addAttributeFromIndex ( const _variant_t & varAtts, int nIndex ) {
  1275. HRESULT _hr = raw_addAttributeFromIndex(varAtts, nIndex);
  1276. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1277. return _hr;
  1278. }
  1279. inline HRESULT IMXAttributes::clear ( ) {
  1280. HRESULT _hr = raw_clear();
  1281. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1282. return _hr;
  1283. }
  1284. inline HRESULT IMXAttributes::removeAttribute ( int nIndex ) {
  1285. HRESULT _hr = raw_removeAttribute(nIndex);
  1286. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1287. return _hr;
  1288. }
  1289. inline HRESULT IMXAttributes::setAttribute ( int nIndex, _bstr_t strURI, _bstr_t strLocalName, _bstr_t strQName, _bstr_t strType, _bstr_t strValue ) {
  1290. HRESULT _hr = raw_setAttribute(nIndex, strURI, strLocalName, strQName, strType, strValue);
  1291. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1292. return _hr;
  1293. }
  1294. inline HRESULT IMXAttributes::setAttributes ( const _variant_t & varAtts ) {
  1295. HRESULT _hr = raw_setAttributes(varAtts);
  1296. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1297. return _hr;
  1298. }
  1299. inline HRESULT IMXAttributes::setLocalName ( int nIndex, _bstr_t strLocalName ) {
  1300. HRESULT _hr = raw_setLocalName(nIndex, strLocalName);
  1301. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1302. return _hr;
  1303. }
  1304. inline HRESULT IMXAttributes::setQName ( int nIndex, _bstr_t strQName ) {
  1305. HRESULT _hr = raw_setQName(nIndex, strQName);
  1306. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1307. return _hr;
  1308. }
  1309. inline HRESULT IMXAttributes::setType ( int nIndex, _bstr_t strType ) {
  1310. HRESULT _hr = raw_setType(nIndex, strType);
  1311. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1312. return _hr;
  1313. }
  1314. inline HRESULT IMXAttributes::setURI ( int nIndex, _bstr_t strURI ) {
  1315. HRESULT _hr = raw_setURI(nIndex, strURI);
  1316. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1317. return _hr;
  1318. }
  1319. inline HRESULT IMXAttributes::setValue ( int nIndex, _bstr_t strValue ) {
  1320. HRESULT _hr = raw_setValue(nIndex, strValue);
  1321. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1322. return _hr;
  1323. }
  1324. //
  1325. // interface IMXReaderControl wrapper method implementations
  1326. //
  1327. inline HRESULT IMXReaderControl::abort ( ) {
  1328. HRESULT _hr = raw_abort();
  1329. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1330. return _hr;
  1331. }
  1332. inline HRESULT IMXReaderControl::resume ( ) {
  1333. HRESULT _hr = raw_resume();
  1334. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1335. return _hr;
  1336. }
  1337. inline HRESULT IMXReaderControl::suspend ( ) {
  1338. HRESULT _hr = raw_suspend();
  1339. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1340. return _hr;
  1341. }
  1342. //
  1343. // dispinterface XMLDOMDocumentEvents wrapper method implementations
  1344. //
  1345. inline HRESULT XMLDOMDocumentEvents::ondataavailable ( ) {
  1346. return _com_dispatch_method(this, 0xc6, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1347. }
  1348. inline HRESULT XMLDOMDocumentEvents::onreadystatechange ( ) {
  1349. return _com_dispatch_method(this, DISPID_READYSTATECHANGE, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1350. }
  1351. //
  1352. // interface IXMLHTTPRequest wrapper method implementations
  1353. //
  1354. inline HRESULT IXMLHTTPRequest::open ( _bstr_t bstrMethod, _bstr_t bstrUrl, const _variant_t & varAsync, const _variant_t & bstrUser, const _variant_t & bstrPassword ) {
  1355. HRESULT _hr = raw_open(bstrMethod, bstrUrl, varAsync, bstrUser, bstrPassword);
  1356. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1357. return _hr;
  1358. }
  1359. inline HRESULT IXMLHTTPRequest::setRequestHeader ( _bstr_t bstrHeader, _bstr_t bstrValue ) {
  1360. HRESULT _hr = raw_setRequestHeader(bstrHeader, bstrValue);
  1361. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1362. return _hr;
  1363. }
  1364. inline _bstr_t IXMLHTTPRequest::getResponseHeader ( _bstr_t bstrHeader ) {
  1365. BSTR _result = 0;
  1366. HRESULT _hr = raw_getResponseHeader(bstrHeader, &_result);
  1367. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1368. return _bstr_t(_result, false);
  1369. }
  1370. inline _bstr_t IXMLHTTPRequest::getAllResponseHeaders ( ) {
  1371. BSTR _result = 0;
  1372. HRESULT _hr = raw_getAllResponseHeaders(&_result);
  1373. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1374. return _bstr_t(_result, false);
  1375. }
  1376. inline HRESULT IXMLHTTPRequest::send ( const _variant_t & varBody ) {
  1377. HRESULT _hr = raw_send(varBody);
  1378. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1379. return _hr;
  1380. }
  1381. inline HRESULT IXMLHTTPRequest::abort ( ) {
  1382. HRESULT _hr = raw_abort();
  1383. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1384. return _hr;
  1385. }
  1386. inline long IXMLHTTPRequest::Getstatus ( ) {
  1387. long _result = 0;
  1388. HRESULT _hr = get_status(&_result);
  1389. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1390. return _result;
  1391. }
  1392. inline _bstr_t IXMLHTTPRequest::GetstatusText ( ) {
  1393. BSTR _result = 0;
  1394. HRESULT _hr = get_statusText(&_result);
  1395. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1396. return _bstr_t(_result, false);
  1397. }
  1398. inline IDispatchPtr IXMLHTTPRequest::GetresponseXML ( ) {
  1399. IDispatch * _result = 0;
  1400. HRESULT _hr = get_responseXML(&_result);
  1401. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1402. return IDispatchPtr(_result, false);
  1403. }
  1404. inline _bstr_t IXMLHTTPRequest::GetresponseText ( ) {
  1405. BSTR _result = 0;
  1406. HRESULT _hr = get_responseText(&_result);
  1407. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1408. return _bstr_t(_result, false);
  1409. }
  1410. inline _variant_t IXMLHTTPRequest::GetresponseBody ( ) {
  1411. VARIANT _result;
  1412. VariantInit(&_result);
  1413. HRESULT _hr = get_responseBody(&_result);
  1414. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1415. return _variant_t(_result, false);
  1416. }
  1417. inline _variant_t IXMLHTTPRequest::GetresponseStream ( ) {
  1418. VARIANT _result;
  1419. VariantInit(&_result);
  1420. HRESULT _hr = get_responseStream(&_result);
  1421. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1422. return _variant_t(_result, false);
  1423. }
  1424. inline long IXMLHTTPRequest::GetreadyState ( ) {
  1425. long _result = 0;
  1426. HRESULT _hr = get_readyState(&_result);
  1427. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1428. return _result;
  1429. }
  1430. inline void IXMLHTTPRequest::Putonreadystatechange ( IDispatch * _arg1 ) {
  1431. HRESULT _hr = put_onreadystatechange(_arg1);
  1432. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1433. }
  1434. //
  1435. // interface IServerXMLHTTPRequest wrapper method implementations
  1436. //
  1437. inline HRESULT IServerXMLHTTPRequest::setTimeouts ( long resolveTimeout, long connectTimeout, long sendTimeout, long receiveTimeout ) {
  1438. HRESULT _hr = raw_setTimeouts(resolveTimeout, connectTimeout, sendTimeout, receiveTimeout);
  1439. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1440. return _hr;
  1441. }
  1442. inline VARIANT_BOOL IServerXMLHTTPRequest::waitForResponse ( const _variant_t & timeoutInSeconds ) {
  1443. VARIANT_BOOL _result = 0;
  1444. HRESULT _hr = raw_waitForResponse(timeoutInSeconds, &_result);
  1445. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1446. return _result;
  1447. }
  1448. //
  1449. // interface IXMLDOMNode wrapper method implementations
  1450. //
  1451. inline _bstr_t IXMLDOMNode::GetnodeName ( ) {
  1452. BSTR _result = 0;
  1453. HRESULT _hr = get_nodeName(&_result);
  1454. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1455. return _bstr_t(_result, false);
  1456. }
  1457. inline _variant_t IXMLDOMNode::GetnodeValue ( ) {
  1458. VARIANT _result;
  1459. VariantInit(&_result);
  1460. HRESULT _hr = get_nodeValue(&_result);
  1461. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1462. return _variant_t(_result, false);
  1463. }
  1464. inline void IXMLDOMNode::PutnodeValue ( const _variant_t & value ) {
  1465. HRESULT _hr = put_nodeValue(value);
  1466. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1467. }
  1468. inline DOMNodeType IXMLDOMNode::GetnodeType ( ) {
  1469. DOMNodeType _result;
  1470. HRESULT _hr = get_nodeType(&_result);
  1471. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1472. return _result;
  1473. }
  1474. inline IXMLDOMNodePtr IXMLDOMNode::GetparentNode ( ) {
  1475. struct IXMLDOMNode * _result = 0;
  1476. HRESULT _hr = get_parentNode(&_result);
  1477. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1478. return IXMLDOMNodePtr(_result, false);
  1479. }
  1480. inline IXMLDOMNodeListPtr IXMLDOMNode::GetchildNodes ( ) {
  1481. struct IXMLDOMNodeList * _result = 0;
  1482. HRESULT _hr = get_childNodes(&_result);
  1483. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1484. return IXMLDOMNodeListPtr(_result, false);
  1485. }
  1486. inline IXMLDOMNodePtr IXMLDOMNode::GetfirstChild ( ) {
  1487. struct IXMLDOMNode * _result = 0;
  1488. HRESULT _hr = get_firstChild(&_result);
  1489. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1490. return IXMLDOMNodePtr(_result, false);
  1491. }
  1492. inline IXMLDOMNodePtr IXMLDOMNode::GetlastChild ( ) {
  1493. struct IXMLDOMNode * _result = 0;
  1494. HRESULT _hr = get_lastChild(&_result);
  1495. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1496. return IXMLDOMNodePtr(_result, false);
  1497. }
  1498. inline IXMLDOMNodePtr IXMLDOMNode::GetpreviousSibling ( ) {
  1499. struct IXMLDOMNode * _result = 0;
  1500. HRESULT _hr = get_previousSibling(&_result);
  1501. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1502. return IXMLDOMNodePtr(_result, false);
  1503. }
  1504. inline IXMLDOMNodePtr IXMLDOMNode::GetnextSibling ( ) {
  1505. struct IXMLDOMNode * _result = 0;
  1506. HRESULT _hr = get_nextSibling(&_result);
  1507. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1508. return IXMLDOMNodePtr(_result, false);
  1509. }
  1510. inline IXMLDOMNamedNodeMapPtr IXMLDOMNode::Getattributes ( ) {
  1511. struct IXMLDOMNamedNodeMap * _result = 0;
  1512. HRESULT _hr = get_attributes(&_result);
  1513. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1514. return IXMLDOMNamedNodeMapPtr(_result, false);
  1515. }
  1516. inline IXMLDOMNodePtr IXMLDOMNode::insertBefore ( struct IXMLDOMNode * newChild, const _variant_t & refChild ) {
  1517. struct IXMLDOMNode * _result = 0;
  1518. HRESULT _hr = raw_insertBefore(newChild, refChild, &_result);
  1519. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1520. return IXMLDOMNodePtr(_result, false);
  1521. }
  1522. inline IXMLDOMNodePtr IXMLDOMNode::replaceChild ( struct IXMLDOMNode * newChild, struct IXMLDOMNode * oldChild ) {
  1523. struct IXMLDOMNode * _result = 0;
  1524. HRESULT _hr = raw_replaceChild(newChild, oldChild, &_result);
  1525. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1526. return IXMLDOMNodePtr(_result, false);
  1527. }
  1528. inline IXMLDOMNodePtr IXMLDOMNode::removeChild ( struct IXMLDOMNode * childNode ) {
  1529. struct IXMLDOMNode * _result = 0;
  1530. HRESULT _hr = raw_removeChild(childNode, &_result);
  1531. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1532. return IXMLDOMNodePtr(_result, false);
  1533. }
  1534. inline IXMLDOMNodePtr IXMLDOMNode::appendChild ( struct IXMLDOMNode * newChild ) {
  1535. struct IXMLDOMNode * _result = 0;
  1536. HRESULT _hr = raw_appendChild(newChild, &_result);
  1537. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1538. return IXMLDOMNodePtr(_result, false);
  1539. }
  1540. inline VARIANT_BOOL IXMLDOMNode::hasChildNodes ( ) {
  1541. VARIANT_BOOL _result = 0;
  1542. HRESULT _hr = raw_hasChildNodes(&_result);
  1543. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1544. return _result;
  1545. }
  1546. inline IXMLDOMDocumentPtr IXMLDOMNode::GetownerDocument ( ) {
  1547. struct IXMLDOMDocument * _result = 0;
  1548. HRESULT _hr = get_ownerDocument(&_result);
  1549. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1550. return IXMLDOMDocumentPtr(_result, false);
  1551. }
  1552. inline IXMLDOMNodePtr IXMLDOMNode::cloneNode ( VARIANT_BOOL deep ) {
  1553. struct IXMLDOMNode * _result = 0;
  1554. HRESULT _hr = raw_cloneNode(deep, &_result);
  1555. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1556. return IXMLDOMNodePtr(_result, false);
  1557. }
  1558. inline _bstr_t IXMLDOMNode::GetnodeTypeString ( ) {
  1559. BSTR _result = 0;
  1560. HRESULT _hr = get_nodeTypeString(&_result);
  1561. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1562. return _bstr_t(_result, false);
  1563. }
  1564. inline _bstr_t IXMLDOMNode::Gettext ( ) {
  1565. BSTR _result = 0;
  1566. HRESULT _hr = get_text(&_result);
  1567. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1568. return _bstr_t(_result, false);
  1569. }
  1570. inline void IXMLDOMNode::Puttext ( _bstr_t text ) {
  1571. HRESULT _hr = put_text(text);
  1572. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1573. }
  1574. inline VARIANT_BOOL IXMLDOMNode::Getspecified ( ) {
  1575. VARIANT_BOOL _result = 0;
  1576. HRESULT _hr = get_specified(&_result);
  1577. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1578. return _result;
  1579. }
  1580. inline IXMLDOMNodePtr IXMLDOMNode::Getdefinition ( ) {
  1581. struct IXMLDOMNode * _result = 0;
  1582. HRESULT _hr = get_definition(&_result);
  1583. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1584. return IXMLDOMNodePtr(_result, false);
  1585. }
  1586. inline _variant_t IXMLDOMNode::GetnodeTypedValue ( ) {
  1587. VARIANT _result;
  1588. VariantInit(&_result);
  1589. HRESULT _hr = get_nodeTypedValue(&_result);
  1590. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1591. return _variant_t(_result, false);
  1592. }
  1593. inline void IXMLDOMNode::PutnodeTypedValue ( const _variant_t & typedValue ) {
  1594. HRESULT _hr = put_nodeTypedValue(typedValue);
  1595. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1596. }
  1597. inline _variant_t IXMLDOMNode::GetdataType ( ) {
  1598. VARIANT _result;
  1599. VariantInit(&_result);
  1600. HRESULT _hr = get_dataType(&_result);
  1601. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1602. return _variant_t(_result, false);
  1603. }
  1604. inline void IXMLDOMNode::PutdataType ( _bstr_t dataTypeName ) {
  1605. HRESULT _hr = put_dataType(dataTypeName);
  1606. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1607. }
  1608. inline _bstr_t IXMLDOMNode::Getxml ( ) {
  1609. BSTR _result = 0;
  1610. HRESULT _hr = get_xml(&_result);
  1611. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1612. return _bstr_t(_result, false);
  1613. }
  1614. inline _bstr_t IXMLDOMNode::transformNode ( struct IXMLDOMNode * stylesheet ) {
  1615. BSTR _result = 0;
  1616. HRESULT _hr = raw_transformNode(stylesheet, &_result);
  1617. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1618. return _bstr_t(_result, false);
  1619. }
  1620. inline IXMLDOMNodeListPtr IXMLDOMNode::selectNodes ( _bstr_t queryString ) {
  1621. struct IXMLDOMNodeList * _result = 0;
  1622. HRESULT _hr = raw_selectNodes(queryString, &_result);
  1623. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1624. return IXMLDOMNodeListPtr(_result, false);
  1625. }
  1626. inline IXMLDOMNodePtr IXMLDOMNode::selectSingleNode ( _bstr_t queryString ) {
  1627. struct IXMLDOMNode * _result = 0;
  1628. HRESULT _hr = raw_selectSingleNode(queryString, &_result);
  1629. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1630. return IXMLDOMNodePtr(_result, false);
  1631. }
  1632. inline VARIANT_BOOL IXMLDOMNode::Getparsed ( ) {
  1633. VARIANT_BOOL _result = 0;
  1634. HRESULT _hr = get_parsed(&_result);
  1635. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1636. return _result;
  1637. }
  1638. inline _bstr_t IXMLDOMNode::GetnamespaceURI ( ) {
  1639. BSTR _result = 0;
  1640. HRESULT _hr = get_namespaceURI(&_result);
  1641. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1642. return _bstr_t(_result, false);
  1643. }
  1644. inline _bstr_t IXMLDOMNode::Getprefix ( ) {
  1645. BSTR _result = 0;
  1646. HRESULT _hr = get_prefix(&_result);
  1647. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1648. return _bstr_t(_result, false);
  1649. }
  1650. inline _bstr_t IXMLDOMNode::GetbaseName ( ) {
  1651. BSTR _result = 0;
  1652. HRESULT _hr = get_baseName(&_result);
  1653. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1654. return _bstr_t(_result, false);
  1655. }
  1656. inline HRESULT IXMLDOMNode::transformNodeToObject ( struct IXMLDOMNode * stylesheet, const _variant_t & outputObject ) {
  1657. HRESULT _hr = raw_transformNodeToObject(stylesheet, outputObject);
  1658. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1659. return _hr;
  1660. }
  1661. //
  1662. // interface IXMLDOMNodeList wrapper method implementations
  1663. //
  1664. inline IXMLDOMNodePtr IXMLDOMNodeList::Getitem ( long index ) {
  1665. struct IXMLDOMNode * _result = 0;
  1666. HRESULT _hr = get_item(index, &_result);
  1667. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1668. return IXMLDOMNodePtr(_result, false);
  1669. }
  1670. inline long IXMLDOMNodeList::Getlength ( ) {
  1671. long _result = 0;
  1672. HRESULT _hr = get_length(&_result);
  1673. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1674. return _result;
  1675. }
  1676. inline IXMLDOMNodePtr IXMLDOMNodeList::nextNode ( ) {
  1677. struct IXMLDOMNode * _result = 0;
  1678. HRESULT _hr = raw_nextNode(&_result);
  1679. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1680. return IXMLDOMNodePtr(_result, false);
  1681. }
  1682. inline HRESULT IXMLDOMNodeList::reset ( ) {
  1683. HRESULT _hr = raw_reset();
  1684. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1685. return _hr;
  1686. }
  1687. inline IUnknownPtr IXMLDOMNodeList::Get_newEnum ( ) {
  1688. IUnknown * _result = 0;
  1689. HRESULT _hr = get__newEnum(&_result);
  1690. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1691. return IUnknownPtr(_result, false);
  1692. }
  1693. //
  1694. // interface IXMLDOMNamedNodeMap wrapper method implementations
  1695. //
  1696. inline IXMLDOMNodePtr IXMLDOMNamedNodeMap::getNamedItem ( _bstr_t name ) {
  1697. struct IXMLDOMNode * _result = 0;
  1698. HRESULT _hr = raw_getNamedItem(name, &_result);
  1699. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1700. return IXMLDOMNodePtr(_result, false);
  1701. }
  1702. inline IXMLDOMNodePtr IXMLDOMNamedNodeMap::setNamedItem ( struct IXMLDOMNode * newItem ) {
  1703. struct IXMLDOMNode * _result = 0;
  1704. HRESULT _hr = raw_setNamedItem(newItem, &_result);
  1705. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1706. return IXMLDOMNodePtr(_result, false);
  1707. }
  1708. inline IXMLDOMNodePtr IXMLDOMNamedNodeMap::removeNamedItem ( _bstr_t name ) {
  1709. struct IXMLDOMNode * _result = 0;
  1710. HRESULT _hr = raw_removeNamedItem(name, &_result);
  1711. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1712. return IXMLDOMNodePtr(_result, false);
  1713. }
  1714. inline IXMLDOMNodePtr IXMLDOMNamedNodeMap::Getitem ( long index ) {
  1715. struct IXMLDOMNode * _result = 0;
  1716. HRESULT _hr = get_item(index, &_result);
  1717. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1718. return IXMLDOMNodePtr(_result, false);
  1719. }
  1720. inline long IXMLDOMNamedNodeMap::Getlength ( ) {
  1721. long _result = 0;
  1722. HRESULT _hr = get_length(&_result);
  1723. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1724. return _result;
  1725. }
  1726. inline IXMLDOMNodePtr IXMLDOMNamedNodeMap::getQualifiedItem ( _bstr_t baseName, _bstr_t namespaceURI ) {
  1727. struct IXMLDOMNode * _result = 0;
  1728. HRESULT _hr = raw_getQualifiedItem(baseName, namespaceURI, &_result);
  1729. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1730. return IXMLDOMNodePtr(_result, false);
  1731. }
  1732. inline IXMLDOMNodePtr IXMLDOMNamedNodeMap::removeQualifiedItem ( _bstr_t baseName, _bstr_t namespaceURI ) {
  1733. struct IXMLDOMNode * _result = 0;
  1734. HRESULT _hr = raw_removeQualifiedItem(baseName, namespaceURI, &_result);
  1735. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1736. return IXMLDOMNodePtr(_result, false);
  1737. }
  1738. inline IXMLDOMNodePtr IXMLDOMNamedNodeMap::nextNode ( ) {
  1739. struct IXMLDOMNode * _result = 0;
  1740. HRESULT _hr = raw_nextNode(&_result);
  1741. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1742. return IXMLDOMNodePtr(_result, false);
  1743. }
  1744. inline HRESULT IXMLDOMNamedNodeMap::reset ( ) {
  1745. HRESULT _hr = raw_reset();
  1746. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1747. return _hr;
  1748. }
  1749. inline IUnknownPtr IXMLDOMNamedNodeMap::Get_newEnum ( ) {
  1750. IUnknown * _result = 0;
  1751. HRESULT _hr = get__newEnum(&_result);
  1752. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1753. return IUnknownPtr(_result, false);
  1754. }
  1755. //
  1756. // interface IXMLDOMDocumentType wrapper method implementations
  1757. //
  1758. inline _bstr_t IXMLDOMDocumentType::Getname ( ) {
  1759. BSTR _result = 0;
  1760. HRESULT _hr = get_name(&_result);
  1761. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1762. return _bstr_t(_result, false);
  1763. }
  1764. inline IXMLDOMNamedNodeMapPtr IXMLDOMDocumentType::Getentities ( ) {
  1765. struct IXMLDOMNamedNodeMap * _result = 0;
  1766. HRESULT _hr = get_entities(&_result);
  1767. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1768. return IXMLDOMNamedNodeMapPtr(_result, false);
  1769. }
  1770. inline IXMLDOMNamedNodeMapPtr IXMLDOMDocumentType::Getnotations ( ) {
  1771. struct IXMLDOMNamedNodeMap * _result = 0;
  1772. HRESULT _hr = get_notations(&_result);
  1773. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1774. return IXMLDOMNamedNodeMapPtr(_result, false);
  1775. }
  1776. //
  1777. // interface IXMLDOMAttribute wrapper method implementations
  1778. //
  1779. inline _bstr_t IXMLDOMAttribute::Getname ( ) {
  1780. BSTR _result = 0;
  1781. HRESULT _hr = get_name(&_result);
  1782. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1783. return _bstr_t(_result, false);
  1784. }
  1785. inline _variant_t IXMLDOMAttribute::Getvalue ( ) {
  1786. VARIANT _result;
  1787. VariantInit(&_result);
  1788. HRESULT _hr = get_value(&_result);
  1789. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1790. return _variant_t(_result, false);
  1791. }
  1792. inline void IXMLDOMAttribute::Putvalue ( const _variant_t & attributeValue ) {
  1793. HRESULT _hr = put_value(attributeValue);
  1794. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1795. }
  1796. //
  1797. // interface IXMLDOMElement wrapper method implementations
  1798. //
  1799. inline _bstr_t IXMLDOMElement::GettagName ( ) {
  1800. BSTR _result = 0;
  1801. HRESULT _hr = get_tagName(&_result);
  1802. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1803. return _bstr_t(_result, false);
  1804. }
  1805. inline _variant_t IXMLDOMElement::getAttribute ( _bstr_t name ) {
  1806. VARIANT _result;
  1807. VariantInit(&_result);
  1808. HRESULT _hr = raw_getAttribute(name, &_result);
  1809. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1810. return _variant_t(_result, false);
  1811. }
  1812. inline HRESULT IXMLDOMElement::setAttribute ( _bstr_t name, const _variant_t & value ) {
  1813. HRESULT _hr = raw_setAttribute(name, value);
  1814. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1815. return _hr;
  1816. }
  1817. inline HRESULT IXMLDOMElement::removeAttribute ( _bstr_t name ) {
  1818. HRESULT _hr = raw_removeAttribute(name);
  1819. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1820. return _hr;
  1821. }
  1822. inline IXMLDOMAttributePtr IXMLDOMElement::getAttributeNode ( _bstr_t name ) {
  1823. struct IXMLDOMAttribute * _result = 0;
  1824. HRESULT _hr = raw_getAttributeNode(name, &_result);
  1825. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1826. return IXMLDOMAttributePtr(_result, false);
  1827. }
  1828. inline IXMLDOMAttributePtr IXMLDOMElement::setAttributeNode ( struct IXMLDOMAttribute * DOMAttribute ) {
  1829. struct IXMLDOMAttribute * _result = 0;
  1830. HRESULT _hr = raw_setAttributeNode(DOMAttribute, &_result);
  1831. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1832. return IXMLDOMAttributePtr(_result, false);
  1833. }
  1834. inline IXMLDOMAttributePtr IXMLDOMElement::removeAttributeNode ( struct IXMLDOMAttribute * DOMAttribute ) {
  1835. struct IXMLDOMAttribute * _result = 0;
  1836. HRESULT _hr = raw_removeAttributeNode(DOMAttribute, &_result);
  1837. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1838. return IXMLDOMAttributePtr(_result, false);
  1839. }
  1840. inline IXMLDOMNodeListPtr IXMLDOMElement::getElementsByTagName ( _bstr_t tagName ) {
  1841. struct IXMLDOMNodeList * _result = 0;
  1842. HRESULT _hr = raw_getElementsByTagName(tagName, &_result);
  1843. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1844. return IXMLDOMNodeListPtr(_result, false);
  1845. }
  1846. inline HRESULT IXMLDOMElement::normalize ( ) {
  1847. HRESULT _hr = raw_normalize();
  1848. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1849. return _hr;
  1850. }
  1851. //
  1852. // interface IXMLDOMCharacterData wrapper method implementations
  1853. //
  1854. inline _bstr_t IXMLDOMCharacterData::Getdata ( ) {
  1855. BSTR _result = 0;
  1856. HRESULT _hr = get_data(&_result);
  1857. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1858. return _bstr_t(_result, false);
  1859. }
  1860. inline void IXMLDOMCharacterData::Putdata ( _bstr_t data ) {
  1861. HRESULT _hr = put_data(data);
  1862. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1863. }
  1864. inline long IXMLDOMCharacterData::Getlength ( ) {
  1865. long _result = 0;
  1866. HRESULT _hr = get_length(&_result);
  1867. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1868. return _result;
  1869. }
  1870. inline _bstr_t IXMLDOMCharacterData::substringData ( long offset, long count ) {
  1871. BSTR _result = 0;
  1872. HRESULT _hr = raw_substringData(offset, count, &_result);
  1873. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1874. return _bstr_t(_result, false);
  1875. }
  1876. inline HRESULT IXMLDOMCharacterData::appendData ( _bstr_t data ) {
  1877. HRESULT _hr = raw_appendData(data);
  1878. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1879. return _hr;
  1880. }
  1881. inline HRESULT IXMLDOMCharacterData::insertData ( long offset, _bstr_t data ) {
  1882. HRESULT _hr = raw_insertData(offset, data);
  1883. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1884. return _hr;
  1885. }
  1886. inline HRESULT IXMLDOMCharacterData::deleteData ( long offset, long count ) {
  1887. HRESULT _hr = raw_deleteData(offset, count);
  1888. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1889. return _hr;
  1890. }
  1891. inline HRESULT IXMLDOMCharacterData::replaceData ( long offset, long count, _bstr_t data ) {
  1892. HRESULT _hr = raw_replaceData(offset, count, data);
  1893. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1894. return _hr;
  1895. }
  1896. //
  1897. // interface IXMLDOMText wrapper method implementations
  1898. //
  1899. inline IXMLDOMTextPtr IXMLDOMText::splitText ( long offset ) {
  1900. struct IXMLDOMText * _result = 0;
  1901. HRESULT _hr = raw_splitText(offset, &_result);
  1902. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1903. return IXMLDOMTextPtr(_result, false);
  1904. }
  1905. //
  1906. // interface IXMLDOMProcessingInstruction wrapper method implementations
  1907. //
  1908. inline _bstr_t IXMLDOMProcessingInstruction::Gettarget ( ) {
  1909. BSTR _result = 0;
  1910. HRESULT _hr = get_target(&_result);
  1911. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1912. return _bstr_t(_result, false);
  1913. }
  1914. inline _bstr_t IXMLDOMProcessingInstruction::Getdata ( ) {
  1915. BSTR _result = 0;
  1916. HRESULT _hr = get_data(&_result);
  1917. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1918. return _bstr_t(_result, false);
  1919. }
  1920. inline void IXMLDOMProcessingInstruction::Putdata ( _bstr_t value ) {
  1921. HRESULT _hr = put_data(value);
  1922. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1923. }
  1924. //
  1925. // interface IXMLDOMDocument wrapper method implementations
  1926. //
  1927. inline IXMLDOMDocumentTypePtr IXMLDOMDocument::Getdoctype ( ) {
  1928. struct IXMLDOMDocumentType * _result = 0;
  1929. HRESULT _hr = get_doctype(&_result);
  1930. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1931. return IXMLDOMDocumentTypePtr(_result, false);
  1932. }
  1933. inline IXMLDOMImplementationPtr IXMLDOMDocument::Getimplementation ( ) {
  1934. struct IXMLDOMImplementation * _result = 0;
  1935. HRESULT _hr = get_implementation(&_result);
  1936. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1937. return IXMLDOMImplementationPtr(_result, false);
  1938. }
  1939. inline IXMLDOMElementPtr IXMLDOMDocument::GetdocumentElement ( ) {
  1940. struct IXMLDOMElement * _result = 0;
  1941. HRESULT _hr = get_documentElement(&_result);
  1942. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1943. return IXMLDOMElementPtr(_result, false);
  1944. }
  1945. inline void IXMLDOMDocument::PutRefdocumentElement ( struct IXMLDOMElement * DOMElement ) {
  1946. HRESULT _hr = putref_documentElement(DOMElement);
  1947. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1948. }
  1949. inline IXMLDOMElementPtr IXMLDOMDocument::createElement ( _bstr_t tagName ) {
  1950. struct IXMLDOMElement * _result = 0;
  1951. HRESULT _hr = raw_createElement(tagName, &_result);
  1952. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1953. return IXMLDOMElementPtr(_result, false);
  1954. }
  1955. inline IXMLDOMDocumentFragmentPtr IXMLDOMDocument::createDocumentFragment ( ) {
  1956. struct IXMLDOMDocumentFragment * _result = 0;
  1957. HRESULT _hr = raw_createDocumentFragment(&_result);
  1958. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1959. return IXMLDOMDocumentFragmentPtr(_result, false);
  1960. }
  1961. inline IXMLDOMTextPtr IXMLDOMDocument::createTextNode ( _bstr_t data ) {
  1962. struct IXMLDOMText * _result = 0;
  1963. HRESULT _hr = raw_createTextNode(data, &_result);
  1964. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1965. return IXMLDOMTextPtr(_result, false);
  1966. }
  1967. inline IXMLDOMCommentPtr IXMLDOMDocument::createComment ( _bstr_t data ) {
  1968. struct IXMLDOMComment * _result = 0;
  1969. HRESULT _hr = raw_createComment(data, &_result);
  1970. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1971. return IXMLDOMCommentPtr(_result, false);
  1972. }
  1973. inline IXMLDOMCDATASectionPtr IXMLDOMDocument::createCDATASection ( _bstr_t data ) {
  1974. struct IXMLDOMCDATASection * _result = 0;
  1975. HRESULT _hr = raw_createCDATASection(data, &_result);
  1976. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1977. return IXMLDOMCDATASectionPtr(_result, false);
  1978. }
  1979. inline IXMLDOMProcessingInstructionPtr IXMLDOMDocument::createProcessingInstruction ( _bstr_t target, _bstr_t data ) {
  1980. struct IXMLDOMProcessingInstruction * _result = 0;
  1981. HRESULT _hr = raw_createProcessingInstruction(target, data, &_result);
  1982. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1983. return IXMLDOMProcessingInstructionPtr(_result, false);
  1984. }
  1985. inline IXMLDOMAttributePtr IXMLDOMDocument::createAttribute ( _bstr_t name ) {
  1986. struct IXMLDOMAttribute * _result = 0;
  1987. HRESULT _hr = raw_createAttribute(name, &_result);
  1988. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1989. return IXMLDOMAttributePtr(_result, false);
  1990. }
  1991. inline IXMLDOMEntityReferencePtr IXMLDOMDocument::createEntityReference ( _bstr_t name ) {
  1992. struct IXMLDOMEntityReference * _result = 0;
  1993. HRESULT _hr = raw_createEntityReference(name, &_result);
  1994. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1995. return IXMLDOMEntityReferencePtr(_result, false);
  1996. }
  1997. inline IXMLDOMNodeListPtr IXMLDOMDocument::getElementsByTagName ( _bstr_t tagName ) {
  1998. struct IXMLDOMNodeList * _result = 0;
  1999. HRESULT _hr = raw_getElementsByTagName(tagName, &_result);
  2000. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2001. return IXMLDOMNodeListPtr(_result, false);
  2002. }
  2003. inline IXMLDOMNodePtr IXMLDOMDocument::createNode ( const _variant_t & type, _bstr_t name, _bstr_t namespaceURI ) {
  2004. struct IXMLDOMNode * _result = 0;
  2005. HRESULT _hr = raw_createNode(type, name, namespaceURI, &_result);
  2006. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2007. return IXMLDOMNodePtr(_result, false);
  2008. }
  2009. inline IXMLDOMNodePtr IXMLDOMDocument::nodeFromID ( _bstr_t idString ) {
  2010. struct IXMLDOMNode * _result = 0;
  2011. HRESULT _hr = raw_nodeFromID(idString, &_result);
  2012. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2013. return IXMLDOMNodePtr(_result, false);
  2014. }
  2015. inline VARIANT_BOOL IXMLDOMDocument::load ( const _variant_t & xmlSource ) {
  2016. VARIANT_BOOL _result = 0;
  2017. HRESULT _hr = raw_load(xmlSource, &_result);
  2018. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2019. return _result;
  2020. }
  2021. inline long IXMLDOMDocument::GetreadyState ( ) {
  2022. long _result = 0;
  2023. HRESULT _hr = get_readyState(&_result);
  2024. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2025. return _result;
  2026. }
  2027. inline IXMLDOMParseErrorPtr IXMLDOMDocument::GetparseError ( ) {
  2028. struct IXMLDOMParseError * _result = 0;
  2029. HRESULT _hr = get_parseError(&_result);
  2030. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2031. return IXMLDOMParseErrorPtr(_result, false);
  2032. }
  2033. inline _bstr_t IXMLDOMDocument::GetURL ( ) {
  2034. BSTR _result = 0;
  2035. HRESULT _hr = get_URL(&_result);
  2036. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2037. return _bstr_t(_result, false);
  2038. }
  2039. inline VARIANT_BOOL IXMLDOMDocument::Getasync ( ) {
  2040. VARIANT_BOOL _result = 0;
  2041. HRESULT _hr = get_async(&_result);
  2042. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2043. return _result;
  2044. }
  2045. inline void IXMLDOMDocument::Putasync ( VARIANT_BOOL isAsync ) {
  2046. HRESULT _hr = put_async(isAsync);
  2047. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2048. }
  2049. inline HRESULT IXMLDOMDocument::abort ( ) {
  2050. HRESULT _hr = raw_abort();
  2051. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2052. return _hr;
  2053. }
  2054. inline VARIANT_BOOL IXMLDOMDocument::loadXML ( _bstr_t bstrXML ) {
  2055. VARIANT_BOOL _result = 0;
  2056. HRESULT _hr = raw_loadXML(bstrXML, &_result);
  2057. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2058. return _result;
  2059. }
  2060. inline HRESULT IXMLDOMDocument::save ( const _variant_t & destination ) {
  2061. HRESULT _hr = raw_save(destination);
  2062. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2063. return _hr;
  2064. }
  2065. inline VARIANT_BOOL IXMLDOMDocument::GetvalidateOnParse ( ) {
  2066. VARIANT_BOOL _result = 0;
  2067. HRESULT _hr = get_validateOnParse(&_result);
  2068. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2069. return _result;
  2070. }
  2071. inline void IXMLDOMDocument::PutvalidateOnParse ( VARIANT_BOOL isValidating ) {
  2072. HRESULT _hr = put_validateOnParse(isValidating);
  2073. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2074. }
  2075. inline VARIANT_BOOL IXMLDOMDocument::GetresolveExternals ( ) {
  2076. VARIANT_BOOL _result = 0;
  2077. HRESULT _hr = get_resolveExternals(&_result);
  2078. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2079. return _result;
  2080. }
  2081. inline void IXMLDOMDocument::PutresolveExternals ( VARIANT_BOOL isResolving ) {
  2082. HRESULT _hr = put_resolveExternals(isResolving);
  2083. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2084. }
  2085. inline VARIANT_BOOL IXMLDOMDocument::GetpreserveWhiteSpace ( ) {
  2086. VARIANT_BOOL _result = 0;
  2087. HRESULT _hr = get_preserveWhiteSpace(&_result);
  2088. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2089. return _result;
  2090. }
  2091. inline void IXMLDOMDocument::PutpreserveWhiteSpace ( VARIANT_BOOL isPreserving ) {
  2092. HRESULT _hr = put_preserveWhiteSpace(isPreserving);
  2093. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2094. }
  2095. inline void IXMLDOMDocument::Putonreadystatechange ( const _variant_t & _arg1 ) {
  2096. HRESULT _hr = put_onreadystatechange(_arg1);
  2097. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2098. }
  2099. inline void IXMLDOMDocument::Putondataavailable ( const _variant_t & _arg1 ) {
  2100. HRESULT _hr = put_ondataavailable(_arg1);
  2101. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2102. }
  2103. inline void IXMLDOMDocument::Putontransformnode ( const _variant_t & _arg1 ) {
  2104. HRESULT _hr = put_ontransformnode(_arg1);
  2105. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2106. }
  2107. //
  2108. // interface IXMLDOMSchemaCollection wrapper method implementations
  2109. //
  2110. inline HRESULT IXMLDOMSchemaCollection::add ( _bstr_t namespaceURI, const _variant_t & var ) {
  2111. HRESULT _hr = raw_add(namespaceURI, var);
  2112. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2113. return _hr;
  2114. }
  2115. inline IXMLDOMNodePtr IXMLDOMSchemaCollection::get ( _bstr_t namespaceURI ) {
  2116. struct IXMLDOMNode * _result = 0;
  2117. HRESULT _hr = raw_get(namespaceURI, &_result);
  2118. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2119. return IXMLDOMNodePtr(_result, false);
  2120. }
  2121. inline HRESULT IXMLDOMSchemaCollection::remove ( _bstr_t namespaceURI ) {
  2122. HRESULT _hr = raw_remove(namespaceURI);
  2123. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2124. return _hr;
  2125. }
  2126. inline long IXMLDOMSchemaCollection::Getlength ( ) {
  2127. long _result = 0;
  2128. HRESULT _hr = get_length(&_result);
  2129. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2130. return _result;
  2131. }
  2132. inline _bstr_t IXMLDOMSchemaCollection::GetnamespaceURI ( long index ) {
  2133. BSTR _result = 0;
  2134. HRESULT _hr = get_namespaceURI(index, &_result);
  2135. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2136. return _bstr_t(_result, false);
  2137. }
  2138. inline HRESULT IXMLDOMSchemaCollection::addCollection ( struct IXMLDOMSchemaCollection * otherCollection ) {
  2139. HRESULT _hr = raw_addCollection(otherCollection);
  2140. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2141. return _hr;
  2142. }
  2143. inline IUnknownPtr IXMLDOMSchemaCollection::Get_newEnum ( ) {
  2144. IUnknown * _result = 0;
  2145. HRESULT _hr = get__newEnum(&_result);
  2146. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2147. return IUnknownPtr(_result, false);
  2148. }
  2149. //
  2150. // interface IXMLDOMDocument2 wrapper method implementations
  2151. //
  2152. inline IXMLDOMSchemaCollectionPtr IXMLDOMDocument2::Getnamespaces ( ) {
  2153. struct IXMLDOMSchemaCollection * _result = 0;
  2154. HRESULT _hr = get_namespaces(&_result);
  2155. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2156. return IXMLDOMSchemaCollectionPtr(_result, false);
  2157. }
  2158. inline _variant_t IXMLDOMDocument2::Getschemas ( ) {
  2159. VARIANT _result;
  2160. VariantInit(&_result);
  2161. HRESULT _hr = get_schemas(&_result);
  2162. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2163. return _variant_t(_result, false);
  2164. }
  2165. inline void IXMLDOMDocument2::PutRefschemas ( const _variant_t & otherCollection ) {
  2166. HRESULT _hr = putref_schemas(otherCollection);
  2167. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2168. }
  2169. inline IXMLDOMParseErrorPtr IXMLDOMDocument2::validate ( ) {
  2170. struct IXMLDOMParseError * _result = 0;
  2171. HRESULT _hr = raw_validate(&_result);
  2172. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2173. return IXMLDOMParseErrorPtr(_result, false);
  2174. }
  2175. inline HRESULT IXMLDOMDocument2::setProperty ( _bstr_t name, const _variant_t & value ) {
  2176. HRESULT _hr = raw_setProperty(name, value);
  2177. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2178. return _hr;
  2179. }
  2180. inline _variant_t IXMLDOMDocument2::getProperty ( _bstr_t name ) {
  2181. VARIANT _result;
  2182. VariantInit(&_result);
  2183. HRESULT _hr = raw_getProperty(name, &_result);
  2184. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2185. return _variant_t(_result, false);
  2186. }
  2187. //
  2188. // interface IXMLDOMNotation wrapper method implementations
  2189. //
  2190. inline _variant_t IXMLDOMNotation::GetpublicId ( ) {
  2191. VARIANT _result;
  2192. VariantInit(&_result);
  2193. HRESULT _hr = get_publicId(&_result);
  2194. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2195. return _variant_t(_result, false);
  2196. }
  2197. inline _variant_t IXMLDOMNotation::GetsystemId ( ) {
  2198. VARIANT _result;
  2199. VariantInit(&_result);
  2200. HRESULT _hr = get_systemId(&_result);
  2201. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2202. return _variant_t(_result, false);
  2203. }
  2204. //
  2205. // interface IXMLDOMEntity wrapper method implementations
  2206. //
  2207. inline _variant_t IXMLDOMEntity::GetpublicId ( ) {
  2208. VARIANT _result;
  2209. VariantInit(&_result);
  2210. HRESULT _hr = get_publicId(&_result);
  2211. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2212. return _variant_t(_result, false);
  2213. }
  2214. inline _variant_t IXMLDOMEntity::GetsystemId ( ) {
  2215. VARIANT _result;
  2216. VariantInit(&_result);
  2217. HRESULT _hr = get_systemId(&_result);
  2218. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2219. return _variant_t(_result, false);
  2220. }
  2221. inline _bstr_t IXMLDOMEntity::GetnotationName ( ) {
  2222. BSTR _result = 0;
  2223. HRESULT _hr = get_notationName(&_result);
  2224. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2225. return _bstr_t(_result, false);
  2226. }
  2227. //
  2228. // interface IXTLRuntime wrapper method implementations
  2229. //
  2230. inline long IXTLRuntime::uniqueID ( struct IXMLDOMNode * pNode ) {
  2231. long _result = 0;
  2232. HRESULT _hr = raw_uniqueID(pNode, &_result);
  2233. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2234. return _result;
  2235. }
  2236. inline long IXTLRuntime::depth ( struct IXMLDOMNode * pNode ) {
  2237. long _result = 0;
  2238. HRESULT _hr = raw_depth(pNode, &_result);
  2239. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2240. return _result;
  2241. }
  2242. inline long IXTLRuntime::childNumber ( struct IXMLDOMNode * pNode ) {
  2243. long _result = 0;
  2244. HRESULT _hr = raw_childNumber(pNode, &_result);
  2245. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2246. return _result;
  2247. }
  2248. inline long IXTLRuntime::ancestorChildNumber ( _bstr_t bstrNodeName, struct IXMLDOMNode * pNode ) {
  2249. long _result = 0;
  2250. HRESULT _hr = raw_ancestorChildNumber(bstrNodeName, pNode, &_result);
  2251. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2252. return _result;
  2253. }
  2254. inline long IXTLRuntime::absoluteChildNumber ( struct IXMLDOMNode * pNode ) {
  2255. long _result = 0;
  2256. HRESULT _hr = raw_absoluteChildNumber(pNode, &_result);
  2257. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2258. return _result;
  2259. }
  2260. inline _bstr_t IXTLRuntime::formatIndex ( long lIndex, _bstr_t bstrFormat ) {
  2261. BSTR _result = 0;
  2262. HRESULT _hr = raw_formatIndex(lIndex, bstrFormat, &_result);
  2263. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2264. return _bstr_t(_result, false);
  2265. }
  2266. inline _bstr_t IXTLRuntime::formatNumber ( double dblNumber, _bstr_t bstrFormat ) {
  2267. BSTR _result = 0;
  2268. HRESULT _hr = raw_formatNumber(dblNumber, bstrFormat, &_result);
  2269. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2270. return _bstr_t(_result, false);
  2271. }
  2272. inline _bstr_t IXTLRuntime::formatDate ( const _variant_t & varDate, _bstr_t bstrFormat, const _variant_t & varDestLocale ) {
  2273. BSTR _result = 0;
  2274. HRESULT _hr = raw_formatDate(varDate, bstrFormat, varDestLocale, &_result);
  2275. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2276. return _bstr_t(_result, false);
  2277. }
  2278. inline _bstr_t IXTLRuntime::formatTime ( const _variant_t & varTime, _bstr_t bstrFormat, const _variant_t & varDestLocale ) {
  2279. BSTR _result = 0;
  2280. HRESULT _hr = raw_formatTime(varTime, bstrFormat, varDestLocale, &_result);
  2281. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2282. return _bstr_t(_result, false);
  2283. }
  2284. //
  2285. // interface IXMLDOMSelection wrapper method implementations
  2286. //
  2287. inline _bstr_t IXMLDOMSelection::Getexpr ( ) {
  2288. BSTR _result = 0;
  2289. HRESULT _hr = get_expr(&_result);
  2290. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2291. return _bstr_t(_result, false);
  2292. }
  2293. inline void IXMLDOMSelection::Putexpr ( _bstr_t expression ) {
  2294. HRESULT _hr = put_expr(expression);
  2295. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2296. }
  2297. inline IXMLDOMNodePtr IXMLDOMSelection::Getcontext ( ) {
  2298. struct IXMLDOMNode * _result = 0;
  2299. HRESULT _hr = get_context(&_result);
  2300. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2301. return IXMLDOMNodePtr(_result, false);
  2302. }
  2303. inline void IXMLDOMSelection::PutRefcontext ( struct IXMLDOMNode * ppNode ) {
  2304. HRESULT _hr = putref_context(ppNode);
  2305. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2306. }
  2307. inline IXMLDOMNodePtr IXMLDOMSelection::peekNode ( ) {
  2308. struct IXMLDOMNode * _result = 0;
  2309. HRESULT _hr = raw_peekNode(&_result);
  2310. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2311. return IXMLDOMNodePtr(_result, false);
  2312. }
  2313. inline IXMLDOMNodePtr IXMLDOMSelection::matches ( struct IXMLDOMNode * pNode ) {
  2314. struct IXMLDOMNode * _result = 0;
  2315. HRESULT _hr = raw_matches(pNode, &_result);
  2316. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2317. return IXMLDOMNodePtr(_result, false);
  2318. }
  2319. inline IXMLDOMNodePtr IXMLDOMSelection::removeNext ( ) {
  2320. struct IXMLDOMNode * _result = 0;
  2321. HRESULT _hr = raw_removeNext(&_result);
  2322. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2323. return IXMLDOMNodePtr(_result, false);
  2324. }
  2325. inline HRESULT IXMLDOMSelection::removeAll ( ) {
  2326. HRESULT _hr = raw_removeAll();
  2327. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2328. return _hr;
  2329. }
  2330. inline IXMLDOMSelectionPtr IXMLDOMSelection::clone ( ) {
  2331. struct IXMLDOMSelection * _result = 0;
  2332. HRESULT _hr = raw_clone(&_result);
  2333. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2334. return IXMLDOMSelectionPtr(_result, false);
  2335. }
  2336. inline _variant_t IXMLDOMSelection::getProperty ( _bstr_t name ) {
  2337. VARIANT _result;
  2338. VariantInit(&_result);
  2339. HRESULT _hr = raw_getProperty(name, &_result);
  2340. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2341. return _variant_t(_result, false);
  2342. }
  2343. inline HRESULT IXMLDOMSelection::setProperty ( _bstr_t name, const _variant_t & value ) {
  2344. HRESULT _hr = raw_setProperty(name, value);
  2345. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2346. return _hr;
  2347. }
  2348. //
  2349. // interface IDSOControl wrapper method implementations
  2350. //
  2351. inline IXMLDOMDocumentPtr IDSOControl::GetXMLDocument ( ) {
  2352. struct IXMLDOMDocument * _result = 0;
  2353. HRESULT _hr = get_XMLDocument(&_result);
  2354. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2355. return IXMLDOMDocumentPtr(_result, false);
  2356. }
  2357. inline void IDSOControl::PutXMLDocument ( struct IXMLDOMDocument * ppDoc ) {
  2358. HRESULT _hr = put_XMLDocument(ppDoc);
  2359. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2360. }
  2361. inline long IDSOControl::GetJavaDSOCompatible ( ) {
  2362. long _result = 0;
  2363. HRESULT _hr = get_JavaDSOCompatible(&_result);
  2364. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2365. return _result;
  2366. }
  2367. inline void IDSOControl::PutJavaDSOCompatible ( long fJavaDSOCompatible ) {
  2368. HRESULT _hr = put_JavaDSOCompatible(fJavaDSOCompatible);
  2369. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2370. }
  2371. inline long IDSOControl::GetreadyState ( ) {
  2372. long _result = 0;
  2373. HRESULT _hr = get_readyState(&_result);
  2374. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2375. return _result;
  2376. }
  2377. //
  2378. // interface IXSLTemplate wrapper method implementations
  2379. //
  2380. inline void IXSLTemplate::PutRefstylesheet ( struct IXMLDOMNode * stylesheet ) {
  2381. HRESULT _hr = putref_stylesheet(stylesheet);
  2382. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2383. }
  2384. inline IXMLDOMNodePtr IXSLTemplate::Getstylesheet ( ) {
  2385. struct IXMLDOMNode * _result = 0;
  2386. HRESULT _hr = get_stylesheet(&_result);
  2387. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2388. return IXMLDOMNodePtr(_result, false);
  2389. }
  2390. inline IXSLProcessorPtr IXSLTemplate::createProcessor ( ) {
  2391. struct IXSLProcessor * _result = 0;
  2392. HRESULT _hr = raw_createProcessor(&_result);
  2393. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2394. return IXSLProcessorPtr(_result, false);
  2395. }
  2396. //
  2397. // interface IXSLProcessor wrapper method implementations
  2398. //
  2399. inline void IXSLProcessor::Putinput ( const _variant_t & pVar ) {
  2400. HRESULT _hr = put_input(pVar);
  2401. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2402. }
  2403. inline _variant_t IXSLProcessor::Getinput ( ) {
  2404. VARIANT _result;
  2405. VariantInit(&_result);
  2406. HRESULT _hr = get_input(&_result);
  2407. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2408. return _variant_t(_result, false);
  2409. }
  2410. inline IXSLTemplatePtr IXSLProcessor::GetownerTemplate ( ) {
  2411. struct IXSLTemplate * _result = 0;
  2412. HRESULT _hr = get_ownerTemplate(&_result);
  2413. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2414. return IXSLTemplatePtr(_result, false);
  2415. }
  2416. inline HRESULT IXSLProcessor::setStartMode ( _bstr_t mode, _bstr_t namespaceURI ) {
  2417. HRESULT _hr = raw_setStartMode(mode, namespaceURI);
  2418. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2419. return _hr;
  2420. }
  2421. inline _bstr_t IXSLProcessor::GetstartMode ( ) {
  2422. BSTR _result = 0;
  2423. HRESULT _hr = get_startMode(&_result);
  2424. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2425. return _bstr_t(_result, false);
  2426. }
  2427. inline _bstr_t IXSLProcessor::GetstartModeURI ( ) {
  2428. BSTR _result = 0;
  2429. HRESULT _hr = get_startModeURI(&_result);
  2430. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2431. return _bstr_t(_result, false);
  2432. }
  2433. inline void IXSLProcessor::Putoutput ( const _variant_t & pOutput ) {
  2434. HRESULT _hr = put_output(pOutput);
  2435. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2436. }
  2437. inline _variant_t IXSLProcessor::Getoutput ( ) {
  2438. VARIANT _result;
  2439. VariantInit(&_result);
  2440. HRESULT _hr = get_output(&_result);
  2441. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2442. return _variant_t(_result, false);
  2443. }
  2444. inline VARIANT_BOOL IXSLProcessor::transform ( ) {
  2445. VARIANT_BOOL _result = 0;
  2446. HRESULT _hr = raw_transform(&_result);
  2447. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2448. return _result;
  2449. }
  2450. inline HRESULT IXSLProcessor::reset ( ) {
  2451. HRESULT _hr = raw_reset();
  2452. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2453. return _hr;
  2454. }
  2455. inline long IXSLProcessor::GetreadyState ( ) {
  2456. long _result = 0;
  2457. HRESULT _hr = get_readyState(&_result);
  2458. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2459. return _result;
  2460. }
  2461. inline HRESULT IXSLProcessor::addParameter ( _bstr_t baseName, const _variant_t & parameter, _bstr_t namespaceURI ) {
  2462. HRESULT _hr = raw_addParameter(baseName, parameter, namespaceURI);
  2463. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2464. return _hr;
  2465. }
  2466. inline HRESULT IXSLProcessor::addObject ( IDispatch * obj, _bstr_t namespaceURI ) {
  2467. HRESULT _hr = raw_addObject(obj, namespaceURI);
  2468. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2469. return _hr;
  2470. }
  2471. inline IXMLDOMNodePtr IXSLProcessor::Getstylesheet ( ) {
  2472. struct IXMLDOMNode * _result = 0;
  2473. HRESULT _hr = get_stylesheet(&_result);
  2474. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2475. return IXMLDOMNodePtr(_result, false);
  2476. }