PageRenderTime 102ms CodeModel.GetById 60ms app.highlight 3ms RepoModel.GetById 38ms app.codeStats 0ms

/gecko_api/include/nsIDOMDocumentRange.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 100 lines | 48 code | 26 blank | 26 comment | 0 complexity | cad78ad26c77543d46d9bb44d68d8fe0 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/range/nsIDOMDocumentRange.idl
  3 */
  4
  5#ifndef __gen_nsIDOMDocumentRange_h__
  6#define __gen_nsIDOMDocumentRange_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:    nsIDOMDocumentRange */
 19#define NS_IDOMDOCUMENTRANGE_IID_STR "7b9badc6-c9bc-447a-8670-dbd195aed24b"
 20
 21#define NS_IDOMDOCUMENTRANGE_IID \
 22  {0x7b9badc6, 0xc9bc, 0x447a, \
 23    { 0x86, 0x70, 0xdb, 0xd1, 0x95, 0xae, 0xd2, 0x4b }}
 24
 25/**
 26 * The nsIDOMDocumentRange interface is an interface to a document
 27 * object that supports ranges in the Document Object Model.
 28 *
 29 * For more information on this interface please see
 30 * http://www.w3.org/TR/DOM-Level-2-Traversal-Range/
 31 *
 32 * @status FROZEN
 33 */
 34class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMDocumentRange : public nsISupports {
 35 public: 
 36
 37  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDOCUMENTRANGE_IID)
 38
 39  /* nsIDOMRange createRange (); */
 40  NS_SCRIPTABLE NS_IMETHOD CreateRange(nsIDOMRange **_retval) = 0;
 41
 42};
 43
 44  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDocumentRange, NS_IDOMDOCUMENTRANGE_IID)
 45
 46/* Use this macro when declaring classes that implement this interface. */
 47#define NS_DECL_NSIDOMDOCUMENTRANGE \
 48  NS_SCRIPTABLE NS_IMETHOD CreateRange(nsIDOMRange **_retval); 
 49
 50/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 51#define NS_FORWARD_NSIDOMDOCUMENTRANGE(_to) \
 52  NS_SCRIPTABLE NS_IMETHOD CreateRange(nsIDOMRange **_retval) { return _to CreateRange(_retval); } 
 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_NSIDOMDOCUMENTRANGE(_to) \
 56  NS_SCRIPTABLE NS_IMETHOD CreateRange(nsIDOMRange **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateRange(_retval); } 
 57
 58#if 0
 59/* Use the code below as a template for the implementation class for this interface. */
 60
 61/* Header file */
 62class nsDOMDocumentRange : public nsIDOMDocumentRange
 63{
 64public:
 65  NS_DECL_ISUPPORTS
 66  NS_DECL_NSIDOMDOCUMENTRANGE
 67
 68  nsDOMDocumentRange();
 69
 70private:
 71  ~nsDOMDocumentRange();
 72
 73protected:
 74  /* additional members */
 75};
 76
 77/* Implementation file */
 78NS_IMPL_ISUPPORTS1(nsDOMDocumentRange, nsIDOMDocumentRange)
 79
 80nsDOMDocumentRange::nsDOMDocumentRange()
 81{
 82  /* member initializers and constructor code */
 83}
 84
 85nsDOMDocumentRange::~nsDOMDocumentRange()
 86{
 87  /* destructor code */
 88}
 89
 90/* nsIDOMRange createRange (); */
 91NS_IMETHODIMP nsDOMDocumentRange::CreateRange(nsIDOMRange **_retval)
 92{
 93    return NS_ERROR_NOT_IMPLEMENTED;
 94}
 95
 96/* End of implementation class template. */
 97#endif
 98
 99
100#endif /* __gen_nsIDOMDocumentRange_h__ */