/usr/include/thunderbird-11.0.1/nsIDOMHTMLDocument.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mozilla/dom/interfaces/html/nsIDOMHTMLDocument.idl
*/
#ifndef __gen_nsIDOMHTMLDocument_h__
#define __gen_nsIDOMHTMLDocument_h__
#ifndef __gen_nsIDOMDocument_h__
#include "nsIDOMDocument.h"
#endif
#include "jspubtd.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsISelection; /* forward declaration */
/* starting interface: nsIDOMHTMLDocument */
#define NS_IDOMHTMLDOCUMENT_IID_STR "cc1af020-6543-429c-82d7-840cda3be0b9"
#define NS_IDOMHTMLDOCUMENT_IID \
{0xcc1af020, 0x6543, 0x429c, \
{ 0x82, 0xd7, 0x84, 0x0c, 0xda, 0x3b, 0xe0, 0xb9 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMHTMLDocument : public nsIDOMDocument {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLDOCUMENT_IID)
/* readonly attribute DOMString URL; */
NS_SCRIPTABLE NS_IMETHOD GetURL(nsAString & aURL) = 0;
/* attribute DOMString domain; */
NS_SCRIPTABLE NS_IMETHOD GetDomain(nsAString & aDomain) = 0;
NS_SCRIPTABLE NS_IMETHOD SetDomain(const nsAString & aDomain) = 0;
/* attribute DOMString cookie; */
NS_SCRIPTABLE NS_IMETHOD GetCookie(nsAString & aCookie) = 0;
NS_SCRIPTABLE NS_IMETHOD SetCookie(const nsAString & aCookie) = 0;
/* readonly attribute DOMString compatMode; */
NS_SCRIPTABLE NS_IMETHOD GetCompatMode(nsAString & aCompatMode) = 0;
/* readonly attribute nsIDOMHTMLHeadElement head; */
NS_SCRIPTABLE NS_IMETHOD GetHead(nsIDOMHTMLHeadElement * *aHead) = 0;
/* attribute nsIDOMHTMLElement body; */
NS_SCRIPTABLE NS_IMETHOD GetBody(nsIDOMHTMLElement * *aBody) = 0;
NS_SCRIPTABLE NS_IMETHOD SetBody(nsIDOMHTMLElement *aBody) = 0;
/* readonly attribute nsIDOMHTMLCollection images; */
NS_SCRIPTABLE NS_IMETHOD GetImages(nsIDOMHTMLCollection * *aImages) = 0;
/* readonly attribute nsIDOMHTMLCollection embeds; */
NS_SCRIPTABLE NS_IMETHOD GetEmbeds(nsIDOMHTMLCollection * *aEmbeds) = 0;
/* readonly attribute nsIDOMHTMLCollection plugins; */
NS_SCRIPTABLE NS_IMETHOD GetPlugins(nsIDOMHTMLCollection * *aPlugins) = 0;
/* readonly attribute nsIDOMHTMLCollection links; */
NS_SCRIPTABLE NS_IMETHOD GetLinks(nsIDOMHTMLCollection * *aLinks) = 0;
/* readonly attribute nsIDOMHTMLCollection forms; */
NS_SCRIPTABLE NS_IMETHOD GetForms(nsIDOMHTMLCollection * *aForms) = 0;
/* readonly attribute nsIDOMHTMLCollection scripts; */
NS_SCRIPTABLE NS_IMETHOD GetScripts(nsIDOMHTMLCollection * *aScripts) = 0;
/* nsIDOMNodeList getElementsByName (in DOMString elementName); */
NS_SCRIPTABLE NS_IMETHOD GetElementsByName(const nsAString & elementName, nsIDOMNodeList * *_retval NS_OUTPARAM) = 0;
/* [implicit_jscontext,optional_argc] nsISupports open ([optional] in DOMString aContentTypeOrUrl, [optional] in DOMString aReplaceOrName, [optional] in DOMString aFeatures); */
NS_SCRIPTABLE NS_IMETHOD Open(const nsAString & aContentTypeOrUrl, const nsAString & aReplaceOrName, const nsAString & aFeatures, JSContext* cx, PRUint8 _argc, nsISupports * *_retval NS_OUTPARAM) = 0;
/* void close (); */
NS_SCRIPTABLE NS_IMETHOD Close(void) = 0;
/* [implicit_jscontext] void write ([optional, Null (Stringify)] in DOMString text); */
NS_SCRIPTABLE NS_IMETHOD Write(const nsAString & text, JSContext* cx) = 0;
/* [implicit_jscontext] void writeln ([optional, Null (Stringify)] in DOMString text); */
NS_SCRIPTABLE NS_IMETHOD Writeln(const nsAString & text, JSContext* cx) = 0;
/* attribute DOMString designMode; */
NS_SCRIPTABLE NS_IMETHOD GetDesignMode(nsAString & aDesignMode) = 0;
NS_SCRIPTABLE NS_IMETHOD SetDesignMode(const nsAString & aDesignMode) = 0;
/* boolean execCommand (in DOMString commandID, in boolean doShowUI, in DOMString value); */
NS_SCRIPTABLE NS_IMETHOD ExecCommand(const nsAString & commandID, bool doShowUI, const nsAString & value, bool *_retval NS_OUTPARAM) = 0;
/* boolean execCommandShowHelp (in DOMString commandID); */
NS_SCRIPTABLE NS_IMETHOD ExecCommandShowHelp(const nsAString & commandID, bool *_retval NS_OUTPARAM) = 0;
/* boolean queryCommandEnabled (in DOMString commandID); */
NS_SCRIPTABLE NS_IMETHOD QueryCommandEnabled(const nsAString & commandID, bool *_retval NS_OUTPARAM) = 0;
/* boolean queryCommandIndeterm (in DOMString commandID); */
NS_SCRIPTABLE NS_IMETHOD QueryCommandIndeterm(const nsAString & commandID, bool *_retval NS_OUTPARAM) = 0;
/* boolean queryCommandState (in DOMString commandID); */
NS_SCRIPTABLE NS_IMETHOD QueryCommandState(const nsAString & commandID, bool *_retval NS_OUTPARAM) = 0;
/* boolean queryCommandSupported (in DOMString commandID); */
NS_SCRIPTABLE NS_IMETHOD QueryCommandSupported(const nsAString & commandID, bool *_retval NS_OUTPARAM) = 0;
/* DOMString queryCommandText (in DOMString commandID); */
NS_SCRIPTABLE NS_IMETHOD QueryCommandText(const nsAString & commandID, nsAString & _retval NS_OUTPARAM) = 0;
/* DOMString queryCommandValue (in DOMString commandID); */
NS_SCRIPTABLE NS_IMETHOD QueryCommandValue(const nsAString & commandID, nsAString & _retval NS_OUTPARAM) = 0;
/* attribute DOMString fgColor; */
NS_SCRIPTABLE NS_IMETHOD GetFgColor(nsAString & aFgColor) = 0;
NS_SCRIPTABLE NS_IMETHOD SetFgColor(const nsAString & aFgColor) = 0;
/* attribute DOMString bgColor; */
NS_SCRIPTABLE NS_IMETHOD GetBgColor(nsAString & aBgColor) = 0;
NS_SCRIPTABLE NS_IMETHOD SetBgColor(const nsAString & aBgColor) = 0;
/* attribute DOMString linkColor; */
NS_SCRIPTABLE NS_IMETHOD GetLinkColor(nsAString & aLinkColor) = 0;
NS_SCRIPTABLE NS_IMETHOD SetLinkColor(const nsAString & aLinkColor) = 0;
/* attribute DOMString vlinkColor; */
NS_SCRIPTABLE NS_IMETHOD GetVlinkColor(nsAString & aVlinkColor) = 0;
NS_SCRIPTABLE NS_IMETHOD SetVlinkColor(const nsAString & aVlinkColor) = 0;
/* attribute DOMString alinkColor; */
NS_SCRIPTABLE NS_IMETHOD GetAlinkColor(nsAString & aAlinkColor) = 0;
NS_SCRIPTABLE NS_IMETHOD SetAlinkColor(const nsAString & aAlinkColor) = 0;
/* readonly attribute nsIDOMHTMLCollection anchors; */
NS_SCRIPTABLE NS_IMETHOD GetAnchors(nsIDOMHTMLCollection * *aAnchors) = 0;
/* readonly attribute nsIDOMHTMLCollection applets; */
NS_SCRIPTABLE NS_IMETHOD GetApplets(nsIDOMHTMLCollection * *aApplets) = 0;
/* void clear (); */
NS_SCRIPTABLE NS_IMETHOD Clear(void) = 0;
/* nsISelection getSelection (); */
NS_SCRIPTABLE NS_IMETHOD GetSelection(nsISelection * *_retval NS_OUTPARAM) = 0;
/* void captureEvents (in long eventFlags); */
NS_SCRIPTABLE NS_IMETHOD CaptureEvents(PRInt32 eventFlags) = 0;
/* void releaseEvents (in long eventFlags); */
NS_SCRIPTABLE NS_IMETHOD ReleaseEvents(PRInt32 eventFlags) = 0;
/* void routeEvent (in nsIDOMEvent evt); */
NS_SCRIPTABLE NS_IMETHOD RouteEvent(nsIDOMEvent *evt) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLDocument, NS_IDOMHTMLDOCUMENT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMHTMLDOCUMENT \
NS_SCRIPTABLE NS_IMETHOD GetURL(nsAString & aURL); \
NS_SCRIPTABLE NS_IMETHOD GetDomain(nsAString & aDomain); \
NS_SCRIPTABLE NS_IMETHOD SetDomain(const nsAString & aDomain); \
NS_SCRIPTABLE NS_IMETHOD GetCookie(nsAString & aCookie); \
NS_SCRIPTABLE NS_IMETHOD SetCookie(const nsAString & aCookie); \
NS_SCRIPTABLE NS_IMETHOD GetCompatMode(nsAString & aCompatMode); \
NS_SCRIPTABLE NS_IMETHOD GetHead(nsIDOMHTMLHeadElement * *aHead); \
NS_SCRIPTABLE NS_IMETHOD GetBody(nsIDOMHTMLElement * *aBody); \
NS_SCRIPTABLE NS_IMETHOD SetBody(nsIDOMHTMLElement *aBody); \
NS_SCRIPTABLE NS_IMETHOD GetImages(nsIDOMHTMLCollection * *aImages); \
NS_SCRIPTABLE NS_IMETHOD GetEmbeds(nsIDOMHTMLCollection * *aEmbeds); \
NS_SCRIPTABLE NS_IMETHOD GetPlugins(nsIDOMHTMLCollection * *aPlugins); \
NS_SCRIPTABLE NS_IMETHOD GetLinks(nsIDOMHTMLCollection * *aLinks); \
NS_SCRIPTABLE NS_IMETHOD GetForms(nsIDOMHTMLCollection * *aForms); \
NS_SCRIPTABLE NS_IMETHOD GetScripts(nsIDOMHTMLCollection * *aScripts); \
NS_SCRIPTABLE NS_IMETHOD GetElementsByName(const nsAString & elementName, nsIDOMNodeList * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD Open(const nsAString & aContentTypeOrUrl, const nsAString & aReplaceOrName, const nsAString & aFeatures, JSContext* cx, PRUint8 _argc, nsISupports * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD Close(void); \
NS_SCRIPTABLE NS_IMETHOD Write(const nsAString & text, JSContext* cx); \
NS_SCRIPTABLE NS_IMETHOD Writeln(const nsAString & text, JSContext* cx); \
NS_SCRIPTABLE NS_IMETHOD GetDesignMode(nsAString & aDesignMode); \
NS_SCRIPTABLE NS_IMETHOD SetDesignMode(const nsAString & aDesignMode); \
NS_SCRIPTABLE NS_IMETHOD ExecCommand(const nsAString & commandID, bool doShowUI, const nsAString & value, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD ExecCommandShowHelp(const nsAString & commandID, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD QueryCommandEnabled(const nsAString & commandID, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD QueryCommandIndeterm(const nsAString & commandID, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD QueryCommandState(const nsAString & commandID, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD QueryCommandSupported(const nsAString & commandID, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD QueryCommandText(const nsAString & commandID, nsAString & _retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD QueryCommandValue(const nsAString & commandID, nsAString & _retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetFgColor(nsAString & aFgColor); \
NS_SCRIPTABLE NS_IMETHOD SetFgColor(const nsAString & aFgColor); \
NS_SCRIPTABLE NS_IMETHOD GetBgColor(nsAString & aBgColor); \
NS_SCRIPTABLE NS_IMETHOD SetBgColor(const nsAString & aBgColor); \
NS_SCRIPTABLE NS_IMETHOD GetLinkColor(nsAString & aLinkColor); \
NS_SCRIPTABLE NS_IMETHOD SetLinkColor(const nsAString & aLinkColor); \
NS_SCRIPTABLE NS_IMETHOD GetVlinkColor(nsAString & aVlinkColor); \
NS_SCRIPTABLE NS_IMETHOD SetVlinkColor(const nsAString & aVlinkColor); \
NS_SCRIPTABLE NS_IMETHOD GetAlinkColor(nsAString & aAlinkColor); \
NS_SCRIPTABLE NS_IMETHOD SetAlinkColor(const nsAString & aAlinkColor); \
NS_SCRIPTABLE NS_IMETHOD GetAnchors(nsIDOMHTMLCollection * *aAnchors); \
NS_SCRIPTABLE NS_IMETHOD GetApplets(nsIDOMHTMLCollection * *aApplets); \
NS_SCRIPTABLE NS_IMETHOD Clear(void); \
NS_SCRIPTABLE NS_IMETHOD GetSelection(nsISelection * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD CaptureEvents(PRInt32 eventFlags); \
NS_SCRIPTABLE NS_IMETHOD ReleaseEvents(PRInt32 eventFlags); \
NS_SCRIPTABLE NS_IMETHOD RouteEvent(nsIDOMEvent *evt);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMHTMLDOCUMENT(_to) \
NS_SCRIPTABLE NS_IMETHOD GetURL(nsAString & aURL) { return _to GetURL(aURL); } \
NS_SCRIPTABLE NS_IMETHOD GetDomain(nsAString & aDomain) { return _to GetDomain(aDomain); } \
NS_SCRIPTABLE NS_IMETHOD SetDomain(const nsAString & aDomain) { return _to SetDomain(aDomain); } \
NS_SCRIPTABLE NS_IMETHOD GetCookie(nsAString & aCookie) { return _to GetCookie(aCookie); } \
NS_SCRIPTABLE NS_IMETHOD SetCookie(const nsAString & aCookie) { return _to SetCookie(aCookie); } \
NS_SCRIPTABLE NS_IMETHOD GetCompatMode(nsAString & aCompatMode) { return _to GetCompatMode(aCompatMode); } \
NS_SCRIPTABLE NS_IMETHOD GetHead(nsIDOMHTMLHeadElement * *aHead) { return _to GetHead(aHead); } \
NS_SCRIPTABLE NS_IMETHOD GetBody(nsIDOMHTMLElement * *aBody) { return _to GetBody(aBody); } \
NS_SCRIPTABLE NS_IMETHOD SetBody(nsIDOMHTMLElement *aBody) { return _to SetBody(aBody); } \
NS_SCRIPTABLE NS_IMETHOD GetImages(nsIDOMHTMLCollection * *aImages) { return _to GetImages(aImages); } \
NS_SCRIPTABLE NS_IMETHOD GetEmbeds(nsIDOMHTMLCollection * *aEmbeds) { return _to GetEmbeds(aEmbeds); } \
NS_SCRIPTABLE NS_IMETHOD GetPlugins(nsIDOMHTMLCollection * *aPlugins) { return _to GetPlugins(aPlugins); } \
NS_SCRIPTABLE NS_IMETHOD GetLinks(nsIDOMHTMLCollection * *aLinks) { return _to GetLinks(aLinks); } \
NS_SCRIPTABLE NS_IMETHOD GetForms(nsIDOMHTMLCollection * *aForms) { return _to GetForms(aForms); } \
NS_SCRIPTABLE NS_IMETHOD GetScripts(nsIDOMHTMLCollection * *aScripts) { return _to GetScripts(aScripts); } \
NS_SCRIPTABLE NS_IMETHOD GetElementsByName(const nsAString & elementName, nsIDOMNodeList * *_retval NS_OUTPARAM) { return _to GetElementsByName(elementName, _retval); } \
NS_SCRIPTABLE NS_IMETHOD Open(const nsAString & aContentTypeOrUrl, const nsAString & aReplaceOrName, const nsAString & aFeatures, JSContext* cx, PRUint8 _argc, nsISupports * *_retval NS_OUTPARAM) { return _to Open(aContentTypeOrUrl, aReplaceOrName, aFeatures, cx, _argc, _retval); } \
NS_SCRIPTABLE NS_IMETHOD Close(void) { return _to Close(); } \
NS_SCRIPTABLE NS_IMETHOD Write(const nsAString & text, JSContext* cx) { return _to Write(text, cx); } \
NS_SCRIPTABLE NS_IMETHOD Writeln(const nsAString & text, JSContext* cx) { return _to Writeln(text, cx); } \
NS_SCRIPTABLE NS_IMETHOD GetDesignMode(nsAString & aDesignMode) { return _to GetDesignMode(aDesignMode); } \
NS_SCRIPTABLE NS_IMETHOD SetDesignMode(const nsAString & aDesignMode) { return _to SetDesignMode(aDesignMode); } \
NS_SCRIPTABLE NS_IMETHOD ExecCommand(const nsAString & commandID, bool doShowUI, const nsAString & value, bool *_retval NS_OUTPARAM) { return _to ExecCommand(commandID, doShowUI, value, _retval); } \
NS_SCRIPTABLE NS_IMETHOD ExecCommandShowHelp(const nsAString & commandID, bool *_retval NS_OUTPARAM) { return _to ExecCommandShowHelp(commandID, _retval); } \
NS_SCRIPTABLE NS_IMETHOD QueryCommandEnabled(const nsAString & commandID, bool *_retval NS_OUTPARAM) { return _to QueryCommandEnabled(commandID, _retval); } \
NS_SCRIPTABLE NS_IMETHOD QueryCommandIndeterm(const nsAString & commandID, bool *_retval NS_OUTPARAM) { return _to QueryCommandIndeterm(commandID, _retval); } \
NS_SCRIPTABLE NS_IMETHOD QueryCommandState(const nsAString & commandID, bool *_retval NS_OUTPARAM) { return _to QueryCommandState(commandID, _retval); } \
NS_SCRIPTABLE NS_IMETHOD QueryCommandSupported(const nsAString & commandID, bool *_retval NS_OUTPARAM) { return _to QueryCommandSupported(commandID, _retval); } \
NS_SCRIPTABLE NS_IMETHOD QueryCommandText(const nsAString & commandID, nsAString & _retval NS_OUTPARAM) { return _to QueryCommandText(commandID, _retval); } \
NS_SCRIPTABLE NS_IMETHOD QueryCommandValue(const nsAString & commandID, nsAString & _retval NS_OUTPARAM) { return _to QueryCommandValue(commandID, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetFgColor(nsAString & aFgColor) { return _to GetFgColor(aFgColor); } \
NS_SCRIPTABLE NS_IMETHOD SetFgColor(const nsAString & aFgColor) { return _to SetFgColor(aFgColor); } \
NS_SCRIPTABLE NS_IMETHOD GetBgColor(nsAString & aBgColor) { return _to GetBgColor(aBgColor); } \
NS_SCRIPTABLE NS_IMETHOD SetBgColor(const nsAString & aBgColor) { return _to SetBgColor(aBgColor); } \
NS_SCRIPTABLE NS_IMETHOD GetLinkColor(nsAString & aLinkColor) { return _to GetLinkColor(aLinkColor); } \
NS_SCRIPTABLE NS_IMETHOD SetLinkColor(const nsAString & aLinkColor) { return _to SetLinkColor(aLinkColor); } \
NS_SCRIPTABLE NS_IMETHOD GetVlinkColor(nsAString & aVlinkColor) { return _to GetVlinkColor(aVlinkColor); } \
NS_SCRIPTABLE NS_IMETHOD SetVlinkColor(const nsAString & aVlinkColor) { return _to SetVlinkColor(aVlinkColor); } \
NS_SCRIPTABLE NS_IMETHOD GetAlinkColor(nsAString & aAlinkColor) { return _to GetAlinkColor(aAlinkColor); } \
NS_SCRIPTABLE NS_IMETHOD SetAlinkColor(const nsAString & aAlinkColor) { return _to SetAlinkColor(aAlinkColor); } \
NS_SCRIPTABLE NS_IMETHOD GetAnchors(nsIDOMHTMLCollection * *aAnchors) { return _to GetAnchors(aAnchors); } \
NS_SCRIPTABLE NS_IMETHOD GetApplets(nsIDOMHTMLCollection * *aApplets) { return _to GetApplets(aApplets); } \
NS_SCRIPTABLE NS_IMETHOD Clear(void) { return _to Clear(); } \
NS_SCRIPTABLE NS_IMETHOD GetSelection(nsISelection * *_retval NS_OUTPARAM) { return _to GetSelection(_retval); } \
NS_SCRIPTABLE NS_IMETHOD CaptureEvents(PRInt32 eventFlags) { return _to CaptureEvents(eventFlags); } \
NS_SCRIPTABLE NS_IMETHOD ReleaseEvents(PRInt32 eventFlags) { return _to ReleaseEvents(eventFlags); } \
NS_SCRIPTABLE NS_IMETHOD RouteEvent(nsIDOMEvent *evt) { return _to RouteEvent(evt); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMHTMLDOCUMENT(_to) \
NS_SCRIPTABLE NS_IMETHOD GetURL(nsAString & aURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURL(aURL); } \
NS_SCRIPTABLE NS_IMETHOD GetDomain(nsAString & aDomain) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDomain(aDomain); } \
NS_SCRIPTABLE NS_IMETHOD SetDomain(const nsAString & aDomain) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDomain(aDomain); } \
NS_SCRIPTABLE NS_IMETHOD GetCookie(nsAString & aCookie) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCookie(aCookie); } \
NS_SCRIPTABLE NS_IMETHOD SetCookie(const nsAString & aCookie) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCookie(aCookie); } \
NS_SCRIPTABLE NS_IMETHOD GetCompatMode(nsAString & aCompatMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCompatMode(aCompatMode); } \
NS_SCRIPTABLE NS_IMETHOD GetHead(nsIDOMHTMLHeadElement * *aHead) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHead(aHead); } \
NS_SCRIPTABLE NS_IMETHOD GetBody(nsIDOMHTMLElement * *aBody) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBody(aBody); } \
NS_SCRIPTABLE NS_IMETHOD SetBody(nsIDOMHTMLElement *aBody) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBody(aBody); } \
NS_SCRIPTABLE NS_IMETHOD GetImages(nsIDOMHTMLCollection * *aImages) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImages(aImages); } \
NS_SCRIPTABLE NS_IMETHOD GetEmbeds(nsIDOMHTMLCollection * *aEmbeds) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEmbeds(aEmbeds); } \
NS_SCRIPTABLE NS_IMETHOD GetPlugins(nsIDOMHTMLCollection * *aPlugins) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPlugins(aPlugins); } \
NS_SCRIPTABLE NS_IMETHOD GetLinks(nsIDOMHTMLCollection * *aLinks) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLinks(aLinks); } \
NS_SCRIPTABLE NS_IMETHOD GetForms(nsIDOMHTMLCollection * *aForms) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForms(aForms); } \
NS_SCRIPTABLE NS_IMETHOD GetScripts(nsIDOMHTMLCollection * *aScripts) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScripts(aScripts); } \
NS_SCRIPTABLE NS_IMETHOD GetElementsByName(const nsAString & elementName, nsIDOMNodeList * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElementsByName(elementName, _retval); } \
NS_SCRIPTABLE NS_IMETHOD Open(const nsAString & aContentTypeOrUrl, const nsAString & aReplaceOrName, const nsAString & aFeatures, JSContext* cx, PRUint8 _argc, nsISupports * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(aContentTypeOrUrl, aReplaceOrName, aFeatures, cx, _argc, _retval); } \
NS_SCRIPTABLE NS_IMETHOD Close(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } \
NS_SCRIPTABLE NS_IMETHOD Write(const nsAString & text, JSContext* cx) { return !_to ? NS_ERROR_NULL_POINTER : _to->Write(text, cx); } \
NS_SCRIPTABLE NS_IMETHOD Writeln(const nsAString & text, JSContext* cx) { return !_to ? NS_ERROR_NULL_POINTER : _to->Writeln(text, cx); } \
NS_SCRIPTABLE NS_IMETHOD GetDesignMode(nsAString & aDesignMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDesignMode(aDesignMode); } \
NS_SCRIPTABLE NS_IMETHOD SetDesignMode(const nsAString & aDesignMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDesignMode(aDesignMode); } \
NS_SCRIPTABLE NS_IMETHOD ExecCommand(const nsAString & commandID, bool doShowUI, const nsAString & value, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExecCommand(commandID, doShowUI, value, _retval); } \
NS_SCRIPTABLE NS_IMETHOD ExecCommandShowHelp(const nsAString & commandID, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExecCommandShowHelp(commandID, _retval); } \
NS_SCRIPTABLE NS_IMETHOD QueryCommandEnabled(const nsAString & commandID, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->QueryCommandEnabled(commandID, _retval); } \
NS_SCRIPTABLE NS_IMETHOD QueryCommandIndeterm(const nsAString & commandID, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->QueryCommandIndeterm(commandID, _retval); } \
NS_SCRIPTABLE NS_IMETHOD QueryCommandState(const nsAString & commandID, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->QueryCommandState(commandID, _retval); } \
NS_SCRIPTABLE NS_IMETHOD QueryCommandSupported(const nsAString & commandID, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->QueryCommandSupported(commandID, _retval); } \
NS_SCRIPTABLE NS_IMETHOD QueryCommandText(const nsAString & commandID, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->QueryCommandText(commandID, _retval); } \
NS_SCRIPTABLE NS_IMETHOD QueryCommandValue(const nsAString & commandID, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->QueryCommandValue(commandID, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetFgColor(nsAString & aFgColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFgColor(aFgColor); } \
NS_SCRIPTABLE NS_IMETHOD SetFgColor(const nsAString & aFgColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFgColor(aFgColor); } \
NS_SCRIPTABLE NS_IMETHOD GetBgColor(nsAString & aBgColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBgColor(aBgColor); } \
NS_SCRIPTABLE NS_IMETHOD SetBgColor(const nsAString & aBgColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBgColor(aBgColor); } \
NS_SCRIPTABLE NS_IMETHOD GetLinkColor(nsAString & aLinkColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLinkColor(aLinkColor); } \
NS_SCRIPTABLE NS_IMETHOD SetLinkColor(const nsAString & aLinkColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLinkColor(aLinkColor); } \
NS_SCRIPTABLE NS_IMETHOD GetVlinkColor(nsAString & aVlinkColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVlinkColor(aVlinkColor); } \
NS_SCRIPTABLE NS_IMETHOD SetVlinkColor(const nsAString & aVlinkColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVlinkColor(aVlinkColor); } \
NS_SCRIPTABLE NS_IMETHOD GetAlinkColor(nsAString & aAlinkColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlinkColor(aAlinkColor); } \
NS_SCRIPTABLE NS_IMETHOD SetAlinkColor(const nsAString & aAlinkColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlinkColor(aAlinkColor); } \
NS_SCRIPTABLE NS_IMETHOD GetAnchors(nsIDOMHTMLCollection * *aAnchors) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnchors(aAnchors); } \
NS_SCRIPTABLE NS_IMETHOD GetApplets(nsIDOMHTMLCollection * *aApplets) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetApplets(aApplets); } \
NS_SCRIPTABLE NS_IMETHOD Clear(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clear(); } \
NS_SCRIPTABLE NS_IMETHOD GetSelection(nsISelection * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelection(_retval); } \
NS_SCRIPTABLE NS_IMETHOD CaptureEvents(PRInt32 eventFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->CaptureEvents(eventFlags); } \
NS_SCRIPTABLE NS_IMETHOD ReleaseEvents(PRInt32 eventFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReleaseEvents(eventFlags); } \
NS_SCRIPTABLE NS_IMETHOD RouteEvent(nsIDOMEvent *evt) { return !_to ? NS_ERROR_NULL_POINTER : _to->RouteEvent(evt); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDOMHTMLDocument : public nsIDOMHTMLDocument
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMHTMLDOCUMENT
nsDOMHTMLDocument();
private:
~nsDOMHTMLDocument();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMHTMLDocument, nsIDOMHTMLDocument)
nsDOMHTMLDocument::nsDOMHTMLDocument()
{
/* member initializers and constructor code */
}
nsDOMHTMLDocument::~nsDOMHTMLDocument()
{
/* destructor code */
}
/* readonly attribute DOMString URL; */
NS_IMETHODIMP nsDOMHTMLDocument::GetURL(nsAString & aURL)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString domain; */
NS_IMETHODIMP nsDOMHTMLDocument::GetDomain(nsAString & aDomain)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMHTMLDocument::SetDomain(const nsAString & aDomain)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString cookie; */
NS_IMETHODIMP nsDOMHTMLDocument::GetCookie(nsAString & aCookie)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMHTMLDocument::SetCookie(const nsAString & aCookie)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute DOMString compatMode; */
NS_IMETHODIMP nsDOMHTMLDocument::GetCompatMode(nsAString & aCompatMode)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMHTMLHeadElement head; */
NS_IMETHODIMP nsDOMHTMLDocument::GetHead(nsIDOMHTMLHeadElement * *aHead)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIDOMHTMLElement body; */
NS_IMETHODIMP nsDOMHTMLDocument::GetBody(nsIDOMHTMLElement * *aBody)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMHTMLDocument::SetBody(nsIDOMHTMLElement *aBody)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMHTMLCollection images; */
NS_IMETHODIMP nsDOMHTMLDocument::GetImages(nsIDOMHTMLCollection * *aImages)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMHTMLCollection embeds; */
NS_IMETHODIMP nsDOMHTMLDocument::GetEmbeds(nsIDOMHTMLCollection * *aEmbeds)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMHTMLCollection plugins; */
NS_IMETHODIMP nsDOMHTMLDocument::GetPlugins(nsIDOMHTMLCollection * *aPlugins)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMHTMLCollection links; */
NS_IMETHODIMP nsDOMHTMLDocument::GetLinks(nsIDOMHTMLCollection * *aLinks)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMHTMLCollection forms; */
NS_IMETHODIMP nsDOMHTMLDocument::GetForms(nsIDOMHTMLCollection * *aForms)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMHTMLCollection scripts; */
NS_IMETHODIMP nsDOMHTMLDocument::GetScripts(nsIDOMHTMLCollection * *aScripts)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMNodeList getElementsByName (in DOMString elementName); */
NS_IMETHODIMP nsDOMHTMLDocument::GetElementsByName(const nsAString & elementName, nsIDOMNodeList * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext,optional_argc] nsISupports open ([optional] in DOMString aContentTypeOrUrl, [optional] in DOMString aReplaceOrName, [optional] in DOMString aFeatures); */
NS_IMETHODIMP nsDOMHTMLDocument::Open(const nsAString & aContentTypeOrUrl, const nsAString & aReplaceOrName, const nsAString & aFeatures, JSContext* cx, PRUint8 _argc, nsISupports * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void close (); */
NS_IMETHODIMP nsDOMHTMLDocument::Close()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void write ([optional, Null (Stringify)] in DOMString text); */
NS_IMETHODIMP nsDOMHTMLDocument::Write(const nsAString & text, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void writeln ([optional, Null (Stringify)] in DOMString text); */
NS_IMETHODIMP nsDOMHTMLDocument::Writeln(const nsAString & text, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString designMode; */
NS_IMETHODIMP nsDOMHTMLDocument::GetDesignMode(nsAString & aDesignMode)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMHTMLDocument::SetDesignMode(const nsAString & aDesignMode)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean execCommand (in DOMString commandID, in boolean doShowUI, in DOMString value); */
NS_IMETHODIMP nsDOMHTMLDocument::ExecCommand(const nsAString & commandID, bool doShowUI, const nsAString & value, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean execCommandShowHelp (in DOMString commandID); */
NS_IMETHODIMP nsDOMHTMLDocument::ExecCommandShowHelp(const nsAString & commandID, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean queryCommandEnabled (in DOMString commandID); */
NS_IMETHODIMP nsDOMHTMLDocument::QueryCommandEnabled(const nsAString & commandID, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean queryCommandIndeterm (in DOMString commandID); */
NS_IMETHODIMP nsDOMHTMLDocument::QueryCommandIndeterm(const nsAString & commandID, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean queryCommandState (in DOMString commandID); */
NS_IMETHODIMP nsDOMHTMLDocument::QueryCommandState(const nsAString & commandID, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean queryCommandSupported (in DOMString commandID); */
NS_IMETHODIMP nsDOMHTMLDocument::QueryCommandSupported(const nsAString & commandID, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* DOMString queryCommandText (in DOMString commandID); */
NS_IMETHODIMP nsDOMHTMLDocument::QueryCommandText(const nsAString & commandID, nsAString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* DOMString queryCommandValue (in DOMString commandID); */
NS_IMETHODIMP nsDOMHTMLDocument::QueryCommandValue(const nsAString & commandID, nsAString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString fgColor; */
NS_IMETHODIMP nsDOMHTMLDocument::GetFgColor(nsAString & aFgColor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMHTMLDocument::SetFgColor(const nsAString & aFgColor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString bgColor; */
NS_IMETHODIMP nsDOMHTMLDocument::GetBgColor(nsAString & aBgColor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMHTMLDocument::SetBgColor(const nsAString & aBgColor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString linkColor; */
NS_IMETHODIMP nsDOMHTMLDocument::GetLinkColor(nsAString & aLinkColor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMHTMLDocument::SetLinkColor(const nsAString & aLinkColor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString vlinkColor; */
NS_IMETHODIMP nsDOMHTMLDocument::GetVlinkColor(nsAString & aVlinkColor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMHTMLDocument::SetVlinkColor(const nsAString & aVlinkColor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString alinkColor; */
NS_IMETHODIMP nsDOMHTMLDocument::GetAlinkColor(nsAString & aAlinkColor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMHTMLDocument::SetAlinkColor(const nsAString & aAlinkColor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMHTMLCollection anchors; */
NS_IMETHODIMP nsDOMHTMLDocument::GetAnchors(nsIDOMHTMLCollection * *aAnchors)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMHTMLCollection applets; */
NS_IMETHODIMP nsDOMHTMLDocument::GetApplets(nsIDOMHTMLCollection * *aApplets)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void clear (); */
NS_IMETHODIMP nsDOMHTMLDocument::Clear()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISelection getSelection (); */
NS_IMETHODIMP nsDOMHTMLDocument::GetSelection(nsISelection * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void captureEvents (in long eventFlags); */
NS_IMETHODIMP nsDOMHTMLDocument::CaptureEvents(PRInt32 eventFlags)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void releaseEvents (in long eventFlags); */
NS_IMETHODIMP nsDOMHTMLDocument::ReleaseEvents(PRInt32 eventFlags)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void routeEvent (in nsIDOMEvent evt); */
NS_IMETHODIMP nsDOMHTMLDocument::RouteEvent(nsIDOMEvent *evt)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIDOMHTMLDocument_h__ */
|