PageRenderTime 343ms CodeModel.GetById 141ms app.highlight 2ms RepoModel.GetById 199ms app.codeStats 0ms

/gecko_api/include/nsIDOMDocumentView.h

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