PageRenderTime 182ms CodeModel.GetById 100ms app.highlight 3ms RepoModel.GetById 78ms app.codeStats 0ms

/gecko_api/include/nsIDOMText.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 100 lines | 48 code | 26 blank | 26 comment | 0 complexity | eca1b3b6c5472827f31a18143b8f3f38 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/nsIDOMText.idl
  3 */
  4
  5#ifndef __gen_nsIDOMText_h__
  6#define __gen_nsIDOMText_h__
  7
  8
  9#ifndef __gen_nsIDOMCharacterData_h__
 10#include "nsIDOMCharacterData.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:    nsIDOMText */
 19#define NS_IDOMTEXT_IID_STR "a6cf9082-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMTEXT_IID \
 22  {0xa6cf9082, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMText : public nsIDOMCharacterData {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMTEXT_IID)
 29
 30  /**
 31 * The nsIDOMText interface inherits from nsIDOMCharacterData and represents 
 32 * the textual content (termed character data in XML) of an Element or Attr.
 33 *
 34 * For more information on this interface please see 
 35 * http://www.w3.org/TR/DOM-Level-2-Core/
 36 *
 37 * @status FROZEN
 38 */
 39  /* nsIDOMText splitText (in unsigned long offset)  raises (DOMException); */
 40  NS_SCRIPTABLE NS_IMETHOD SplitText(PRUint32 offset, nsIDOMText **_retval) = 0;
 41
 42};
 43
 44  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMText, NS_IDOMTEXT_IID)
 45
 46/* Use this macro when declaring classes that implement this interface. */
 47#define NS_DECL_NSIDOMTEXT \
 48  NS_SCRIPTABLE NS_IMETHOD SplitText(PRUint32 offset, nsIDOMText **_retval); 
 49
 50/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 51#define NS_FORWARD_NSIDOMTEXT(_to) \
 52  NS_SCRIPTABLE NS_IMETHOD SplitText(PRUint32 offset, nsIDOMText **_retval) { return _to SplitText(offset, _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_NSIDOMTEXT(_to) \
 56  NS_SCRIPTABLE NS_IMETHOD SplitText(PRUint32 offset, nsIDOMText **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SplitText(offset, _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 nsDOMText : public nsIDOMText
 63{
 64public:
 65  NS_DECL_ISUPPORTS
 66  NS_DECL_NSIDOMTEXT
 67
 68  nsDOMText();
 69
 70private:
 71  ~nsDOMText();
 72
 73protected:
 74  /* additional members */
 75};
 76
 77/* Implementation file */
 78NS_IMPL_ISUPPORTS1(nsDOMText, nsIDOMText)
 79
 80nsDOMText::nsDOMText()
 81{
 82  /* member initializers and constructor code */
 83}
 84
 85nsDOMText::~nsDOMText()
 86{
 87  /* destructor code */
 88}
 89
 90/* nsIDOMText splitText (in unsigned long offset)  raises (DOMException); */
 91NS_IMETHODIMP nsDOMText::SplitText(PRUint32 offset, nsIDOMText **_retval)
 92{
 93    return NS_ERROR_NOT_IMPLEMENTED;
 94}
 95
 96/* End of implementation class template. */
 97#endif
 98
 99
100#endif /* __gen_nsIDOMText_h__ */