PageRenderTime 163ms CodeModel.GetById 80ms app.highlight 5ms RepoModel.GetById 76ms app.codeStats 0ms

/gecko_api/include/nsIDOMDOMImplementation.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 125 lines | 64 code | 30 blank | 31 comment | 0 complexity | f9e57377b54bb7064055f4f4335c7e14 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/core/nsIDOMDOMImplementation.idl
  3 */
  4
  5#ifndef __gen_nsIDOMDOMImplementation_h__
  6#define __gen_nsIDOMDOMImplementation_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:    nsIDOMDOMImplementation */
 19#define NS_IDOMDOMIMPLEMENTATION_IID_STR "a6cf9074-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMDOMIMPLEMENTATION_IID \
 22  {0xa6cf9074, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMDOMImplementation : public nsISupports {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDOMIMPLEMENTATION_IID)
 29
 30  /**
 31 * The nsIDOMDOMImplementation interface provides a number of methods for 
 32 * performing operations that are independent of any particular instance 
 33 * of the document object model.
 34 *
 35 * For more information on this interface please see 
 36 * http://www.w3.org/TR/DOM-Level-2-Core/
 37 *
 38 * @status FROZEN
 39 */
 40  /* boolean hasFeature (in DOMString feature, in DOMString version); */
 41  NS_SCRIPTABLE NS_IMETHOD HasFeature(const nsAString & feature, const nsAString & version, PRBool *_retval) = 0;
 42
 43  /* nsIDOMDocumentType createDocumentType (in DOMString qualifiedName, in DOMString publicId, in DOMString systemId)  raises (DOMException); */
 44  NS_SCRIPTABLE NS_IMETHOD CreateDocumentType(const nsAString & qualifiedName, const nsAString & publicId, const nsAString & systemId, nsIDOMDocumentType **_retval) = 0;
 45
 46  /* nsIDOMDocument createDocument (in DOMString namespaceURI, in DOMString qualifiedName, in nsIDOMDocumentType doctype)  raises (DOMException); */
 47  NS_SCRIPTABLE NS_IMETHOD CreateDocument(const nsAString & namespaceURI, const nsAString & qualifiedName, nsIDOMDocumentType *doctype, nsIDOMDocument **_retval) = 0;
 48
 49};
 50
 51  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDOMImplementation, NS_IDOMDOMIMPLEMENTATION_IID)
 52
 53/* Use this macro when declaring classes that implement this interface. */
 54#define NS_DECL_NSIDOMDOMIMPLEMENTATION \
 55  NS_SCRIPTABLE NS_IMETHOD HasFeature(const nsAString & feature, const nsAString & version, PRBool *_retval); \
 56  NS_SCRIPTABLE NS_IMETHOD CreateDocumentType(const nsAString & qualifiedName, const nsAString & publicId, const nsAString & systemId, nsIDOMDocumentType **_retval); \
 57  NS_SCRIPTABLE NS_IMETHOD CreateDocument(const nsAString & namespaceURI, const nsAString & qualifiedName, nsIDOMDocumentType *doctype, nsIDOMDocument **_retval); 
 58
 59/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 60#define NS_FORWARD_NSIDOMDOMIMPLEMENTATION(_to) \
 61  NS_SCRIPTABLE NS_IMETHOD HasFeature(const nsAString & feature, const nsAString & version, PRBool *_retval) { return _to HasFeature(feature, version, _retval); } \
 62  NS_SCRIPTABLE NS_IMETHOD CreateDocumentType(const nsAString & qualifiedName, const nsAString & publicId, const nsAString & systemId, nsIDOMDocumentType **_retval) { return _to CreateDocumentType(qualifiedName, publicId, systemId, _retval); } \
 63  NS_SCRIPTABLE NS_IMETHOD CreateDocument(const nsAString & namespaceURI, const nsAString & qualifiedName, nsIDOMDocumentType *doctype, nsIDOMDocument **_retval) { return _to CreateDocument(namespaceURI, qualifiedName, doctype, _retval); } 
 64
 65/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 66#define NS_FORWARD_SAFE_NSIDOMDOMIMPLEMENTATION(_to) \
 67  NS_SCRIPTABLE NS_IMETHOD HasFeature(const nsAString & feature, const nsAString & version, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasFeature(feature, version, _retval); } \
 68  NS_SCRIPTABLE NS_IMETHOD CreateDocumentType(const nsAString & qualifiedName, const nsAString & publicId, const nsAString & systemId, nsIDOMDocumentType **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateDocumentType(qualifiedName, publicId, systemId, _retval); } \
 69  NS_SCRIPTABLE NS_IMETHOD CreateDocument(const nsAString & namespaceURI, const nsAString & qualifiedName, nsIDOMDocumentType *doctype, nsIDOMDocument **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateDocument(namespaceURI, qualifiedName, doctype, _retval); } 
 70
 71#if 0
 72/* Use the code below as a template for the implementation class for this interface. */
 73
 74/* Header file */
 75class nsDOMDOMImplementation : public nsIDOMDOMImplementation
 76{
 77public:
 78  NS_DECL_ISUPPORTS
 79  NS_DECL_NSIDOMDOMIMPLEMENTATION
 80
 81  nsDOMDOMImplementation();
 82
 83private:
 84  ~nsDOMDOMImplementation();
 85
 86protected:
 87  /* additional members */
 88};
 89
 90/* Implementation file */
 91NS_IMPL_ISUPPORTS1(nsDOMDOMImplementation, nsIDOMDOMImplementation)
 92
 93nsDOMDOMImplementation::nsDOMDOMImplementation()
 94{
 95  /* member initializers and constructor code */
 96}
 97
 98nsDOMDOMImplementation::~nsDOMDOMImplementation()
 99{
100  /* destructor code */
101}
102
103/* boolean hasFeature (in DOMString feature, in DOMString version); */
104NS_IMETHODIMP nsDOMDOMImplementation::HasFeature(const nsAString & feature, const nsAString & version, PRBool *_retval)
105{
106    return NS_ERROR_NOT_IMPLEMENTED;
107}
108
109/* nsIDOMDocumentType createDocumentType (in DOMString qualifiedName, in DOMString publicId, in DOMString systemId)  raises (DOMException); */
110NS_IMETHODIMP nsDOMDOMImplementation::CreateDocumentType(const nsAString & qualifiedName, const nsAString & publicId, const nsAString & systemId, nsIDOMDocumentType **_retval)
111{
112    return NS_ERROR_NOT_IMPLEMENTED;
113}
114
115/* nsIDOMDocument createDocument (in DOMString namespaceURI, in DOMString qualifiedName, in nsIDOMDocumentType doctype)  raises (DOMException); */
116NS_IMETHODIMP nsDOMDOMImplementation::CreateDocument(const nsAString & namespaceURI, const nsAString & qualifiedName, nsIDOMDocumentType *doctype, nsIDOMDocument **_retval)
117{
118    return NS_ERROR_NOT_IMPLEMENTED;
119}
120
121/* End of implementation class template. */
122#endif
123
124
125#endif /* __gen_nsIDOMDOMImplementation_h__ */