nsIDOMDocumentView.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/views/nsIDOMDocumentView.idl
  3. */
  4. #ifndef __gen_nsIDOMDocumentView_h__
  5. #define __gen_nsIDOMDocumentView_h__
  6. #ifndef __gen_domstubs_h__
  7. #include "domstubs.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. /* starting interface: nsIDOMDocumentView */
  14. #define NS_IDOMDOCUMENTVIEW_IID_STR "1acdb2ba-1dd2-11b2-95bc-9542495d2569"
  15. #define NS_IDOMDOCUMENTVIEW_IID \
  16. {0x1acdb2ba, 0x1dd2, 0x11b2, \
  17. { 0x95, 0xbc, 0x95, 0x42, 0x49, 0x5d, 0x25, 0x69 }}
  18. class NS_NO_VTABLE nsIDOMDocumentView : public nsISupports {
  19. public:
  20. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMDOCUMENTVIEW_IID)
  21. /**
  22. * The nsIDOMDocumentView interface is a datatype for a document that
  23. * supports views in the Document Object Model.
  24. *
  25. * For more information on this interface please see
  26. * http://www.w3.org/TR/DOM-Level-2-Views
  27. *
  28. * @status FROZEN
  29. */
  30. /* readonly attribute nsIDOMAbstractView defaultView; */
  31. NS_IMETHOD GetDefaultView(nsIDOMAbstractView * *aDefaultView) = 0;
  32. };
  33. /* Use this macro when declaring classes that implement this interface. */
  34. #define NS_DECL_NSIDOMDOCUMENTVIEW \
  35. NS_IMETHOD GetDefaultView(nsIDOMAbstractView * *aDefaultView);
  36. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  37. #define NS_FORWARD_NSIDOMDOCUMENTVIEW(_to) \
  38. NS_IMETHOD GetDefaultView(nsIDOMAbstractView * *aDefaultView) { return _to GetDefaultView(aDefaultView); }
  39. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  40. #define NS_FORWARD_SAFE_NSIDOMDOCUMENTVIEW(_to) \
  41. NS_IMETHOD GetDefaultView(nsIDOMAbstractView * *aDefaultView) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultView(aDefaultView); }
  42. #if 0
  43. /* Use the code below as a template for the implementation class for this interface. */
  44. /* Header file */
  45. class nsDOMDocumentView : public nsIDOMDocumentView
  46. {
  47. public:
  48. NS_DECL_ISUPPORTS
  49. NS_DECL_NSIDOMDOCUMENTVIEW
  50. nsDOMDocumentView();
  51. private:
  52. ~nsDOMDocumentView();
  53. protected:
  54. /* additional members */
  55. };
  56. /* Implementation file */
  57. NS_IMPL_ISUPPORTS1(nsDOMDocumentView, nsIDOMDocumentView)
  58. nsDOMDocumentView::nsDOMDocumentView()
  59. {
  60. /* member initializers and constructor code */
  61. }
  62. nsDOMDocumentView::~nsDOMDocumentView()
  63. {
  64. /* destructor code */
  65. }
  66. /* readonly attribute nsIDOMAbstractView defaultView; */
  67. NS_IMETHODIMP nsDOMDocumentView::GetDefaultView(nsIDOMAbstractView * *aDefaultView)
  68. {
  69. return NS_ERROR_NOT_IMPLEMENTED;
  70. }
  71. /* End of implementation class template. */
  72. #endif
  73. #endif /* __gen_nsIDOMDocumentView_h__ */