PageRenderTime 36ms CodeModel.GetById 27ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/gecko_api/include/nsIDOMCharacterData.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 180 lines | 104 code | 38 blank | 38 comment | 0 complexity | becc66293afee9a78acc18bac9dca749 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/nsIDOMCharacterData.idl
  3 */
  4
  5#ifndef __gen_nsIDOMCharacterData_h__
  6#define __gen_nsIDOMCharacterData_h__
  7
  8
  9#ifndef __gen_nsIDOMNode_h__
 10#include "nsIDOMNode.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:    nsIDOMCharacterData */
 19#define NS_IDOMCHARACTERDATA_IID_STR "a6cf9072-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMCHARACTERDATA_IID \
 22  {0xa6cf9072, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCharacterData : public nsIDOMNode {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCHARACTERDATA_IID)
 29
 30  /**
 31 * The nsIDOMCharacterData interface extends nsIDOMNode with a set of 
 32 * attributes and methods for accessing character data in the DOM.
 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  /* attribute DOMString data; */
 40  NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) = 0;
 41  NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData) = 0;
 42
 43  /* readonly attribute unsigned long length; */
 44  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
 45
 46  /* DOMString substringData (in unsigned long offset, in unsigned long count)  raises (DOMException); */
 47  NS_SCRIPTABLE NS_IMETHOD SubstringData(PRUint32 offset, PRUint32 count, nsAString & _retval) = 0;
 48
 49  /* void appendData (in DOMString arg)  raises (DOMException); */
 50  NS_SCRIPTABLE NS_IMETHOD AppendData(const nsAString & arg) = 0;
 51
 52  /* void insertData (in unsigned long offset, in DOMString arg)  raises (DOMException); */
 53  NS_SCRIPTABLE NS_IMETHOD InsertData(PRUint32 offset, const nsAString & arg) = 0;
 54
 55  /* void deleteData (in unsigned long offset, in unsigned long count)  raises (DOMException); */
 56  NS_SCRIPTABLE NS_IMETHOD DeleteData(PRUint32 offset, PRUint32 count) = 0;
 57
 58  /* void replaceData (in unsigned long offset, in unsigned long count, in DOMString arg)  raises (DOMException); */
 59  NS_SCRIPTABLE NS_IMETHOD ReplaceData(PRUint32 offset, PRUint32 count, const nsAString & arg) = 0;
 60
 61};
 62
 63  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCharacterData, NS_IDOMCHARACTERDATA_IID)
 64
 65/* Use this macro when declaring classes that implement this interface. */
 66#define NS_DECL_NSIDOMCHARACTERDATA \
 67  NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData); \
 68  NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData); \
 69  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
 70  NS_SCRIPTABLE NS_IMETHOD SubstringData(PRUint32 offset, PRUint32 count, nsAString & _retval); \
 71  NS_SCRIPTABLE NS_IMETHOD AppendData(const nsAString & arg); \
 72  NS_SCRIPTABLE NS_IMETHOD InsertData(PRUint32 offset, const nsAString & arg); \
 73  NS_SCRIPTABLE NS_IMETHOD DeleteData(PRUint32 offset, PRUint32 count); \
 74  NS_SCRIPTABLE NS_IMETHOD ReplaceData(PRUint32 offset, PRUint32 count, const nsAString & arg); 
 75
 76/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 77#define NS_FORWARD_NSIDOMCHARACTERDATA(_to) \
 78  NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) { return _to GetData(aData); } \
 79  NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData) { return _to SetData(aData); } \
 80  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
 81  NS_SCRIPTABLE NS_IMETHOD SubstringData(PRUint32 offset, PRUint32 count, nsAString & _retval) { return _to SubstringData(offset, count, _retval); } \
 82  NS_SCRIPTABLE NS_IMETHOD AppendData(const nsAString & arg) { return _to AppendData(arg); } \
 83  NS_SCRIPTABLE NS_IMETHOD InsertData(PRUint32 offset, const nsAString & arg) { return _to InsertData(offset, arg); } \
 84  NS_SCRIPTABLE NS_IMETHOD DeleteData(PRUint32 offset, PRUint32 count) { return _to DeleteData(offset, count); } \
 85  NS_SCRIPTABLE NS_IMETHOD ReplaceData(PRUint32 offset, PRUint32 count, const nsAString & arg) { return _to ReplaceData(offset, count, arg); } 
 86
 87/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 88#define NS_FORWARD_SAFE_NSIDOMCHARACTERDATA(_to) \
 89  NS_SCRIPTABLE NS_IMETHOD GetData(nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
 90  NS_SCRIPTABLE NS_IMETHOD SetData(const nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aData); } \
 91  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
 92  NS_SCRIPTABLE NS_IMETHOD SubstringData(PRUint32 offset, PRUint32 count, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SubstringData(offset, count, _retval); } \
 93  NS_SCRIPTABLE NS_IMETHOD AppendData(const nsAString & arg) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendData(arg); } \
 94  NS_SCRIPTABLE NS_IMETHOD InsertData(PRUint32 offset, const nsAString & arg) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertData(offset, arg); } \
 95  NS_SCRIPTABLE NS_IMETHOD DeleteData(PRUint32 offset, PRUint32 count) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteData(offset, count); } \
 96  NS_SCRIPTABLE NS_IMETHOD ReplaceData(PRUint32 offset, PRUint32 count, const nsAString & arg) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceData(offset, count, arg); } 
 97
 98#if 0
 99/* Use the code below as a template for the implementation class for this interface. */
100
101/* Header file */
102class nsDOMCharacterData : public nsIDOMCharacterData
103{
104public:
105  NS_DECL_ISUPPORTS
106  NS_DECL_NSIDOMCHARACTERDATA
107
108  nsDOMCharacterData();
109
110private:
111  ~nsDOMCharacterData();
112
113protected:
114  /* additional members */
115};
116
117/* Implementation file */
118NS_IMPL_ISUPPORTS1(nsDOMCharacterData, nsIDOMCharacterData)
119
120nsDOMCharacterData::nsDOMCharacterData()
121{
122  /* member initializers and constructor code */
123}
124
125nsDOMCharacterData::~nsDOMCharacterData()
126{
127  /* destructor code */
128}
129
130/* attribute DOMString data; */
131NS_IMETHODIMP nsDOMCharacterData::GetData(nsAString & aData)
132{
133    return NS_ERROR_NOT_IMPLEMENTED;
134}
135NS_IMETHODIMP nsDOMCharacterData::SetData(const nsAString & aData)
136{
137    return NS_ERROR_NOT_IMPLEMENTED;
138}
139
140/* readonly attribute unsigned long length; */
141NS_IMETHODIMP nsDOMCharacterData::GetLength(PRUint32 *aLength)
142{
143    return NS_ERROR_NOT_IMPLEMENTED;
144}
145
146/* DOMString substringData (in unsigned long offset, in unsigned long count)  raises (DOMException); */
147NS_IMETHODIMP nsDOMCharacterData::SubstringData(PRUint32 offset, PRUint32 count, nsAString & _retval)
148{
149    return NS_ERROR_NOT_IMPLEMENTED;
150}
151
152/* void appendData (in DOMString arg)  raises (DOMException); */
153NS_IMETHODIMP nsDOMCharacterData::AppendData(const nsAString & arg)
154{
155    return NS_ERROR_NOT_IMPLEMENTED;
156}
157
158/* void insertData (in unsigned long offset, in DOMString arg)  raises (DOMException); */
159NS_IMETHODIMP nsDOMCharacterData::InsertData(PRUint32 offset, const nsAString & arg)
160{
161    return NS_ERROR_NOT_IMPLEMENTED;
162}
163
164/* void deleteData (in unsigned long offset, in unsigned long count)  raises (DOMException); */
165NS_IMETHODIMP nsDOMCharacterData::DeleteData(PRUint32 offset, PRUint32 count)
166{
167    return NS_ERROR_NOT_IMPLEMENTED;
168}
169
170/* void replaceData (in unsigned long offset, in unsigned long count, in DOMString arg)  raises (DOMException); */
171NS_IMETHODIMP nsDOMCharacterData::ReplaceData(PRUint32 offset, PRUint32 count, const nsAString & arg)
172{
173    return NS_ERROR_NOT_IMPLEMENTED;
174}
175
176/* End of implementation class template. */
177#endif
178
179
180#endif /* __gen_nsIDOMCharacterData_h__ */