gecko-dev/dom/public/coreDom/nsIDOMCharacterData.h

86 строки
3.6 KiB
C++

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/* AUTO-GENERATED. DO NOT EDIT!!! */
#ifndef nsIDOMCharacterData_h__
#define nsIDOMCharacterData_h__
#include "nsISupports.h"
#include "nsString.h"
#include "nsIScriptContext.h"
#include "nsIDOMNode.h"
#define NS_IDOMCHARACTERDATA_IID \
{ 0xa6cf9072, 0x15b3, 0x11d2, \
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
class nsIDOMCharacterData : public nsIDOMNode {
public:
static const nsIID& GetIID() { static nsIID iid = NS_IDOMCHARACTERDATA_IID; return iid; }
NS_IMETHOD GetData(nsAWritableString& aData)=0;
NS_IMETHOD SetData(const nsAReadableString& aData)=0;
NS_IMETHOD GetLength(PRUint32* aLength)=0;
NS_IMETHOD SubstringData(PRUint32 aOffset, PRUint32 aCount, nsAWritableString& aReturn)=0;
NS_IMETHOD AppendData(const nsAReadableString& aArg)=0;
NS_IMETHOD InsertData(PRUint32 aOffset, const nsAReadableString& aArg)=0;
NS_IMETHOD DeleteData(PRUint32 aOffset, PRUint32 aCount)=0;
NS_IMETHOD ReplaceData(PRUint32 aOffset, PRUint32 aCount, const nsAReadableString& aArg)=0;
};
#define NS_DECL_IDOMCHARACTERDATA \
NS_IMETHOD GetData(nsAWritableString& aData); \
NS_IMETHOD SetData(const nsAReadableString& aData); \
NS_IMETHOD GetLength(PRUint32* aLength); \
NS_IMETHOD SubstringData(PRUint32 aOffset, PRUint32 aCount, nsAWritableString& aReturn); \
NS_IMETHOD AppendData(const nsAReadableString& aArg); \
NS_IMETHOD InsertData(PRUint32 aOffset, const nsAReadableString& aArg); \
NS_IMETHOD DeleteData(PRUint32 aOffset, PRUint32 aCount); \
NS_IMETHOD ReplaceData(PRUint32 aOffset, PRUint32 aCount, const nsAReadableString& aArg); \
#define NS_FORWARD_IDOMCHARACTERDATA(_to) \
NS_IMETHOD GetData(nsAWritableString& aData) { return _to GetData(aData); } \
NS_IMETHOD SetData(const nsAReadableString& aData) { return _to SetData(aData); } \
NS_IMETHOD GetLength(PRUint32* aLength) { return _to GetLength(aLength); } \
NS_IMETHOD SubstringData(PRUint32 aOffset, PRUint32 aCount, nsAWritableString& aReturn) { return _to SubstringData(aOffset, aCount, aReturn); } \
NS_IMETHOD AppendData(const nsAReadableString& aArg) { return _to AppendData(aArg); } \
NS_IMETHOD InsertData(PRUint32 aOffset, const nsAReadableString& aArg) { return _to InsertData(aOffset, aArg); } \
NS_IMETHOD DeleteData(PRUint32 aOffset, PRUint32 aCount) { return _to DeleteData(aOffset, aCount); } \
NS_IMETHOD ReplaceData(PRUint32 aOffset, PRUint32 aCount, const nsAReadableString& aArg) { return _to ReplaceData(aOffset, aCount, aArg); } \
extern "C" NS_DOM nsresult NS_InitCharacterDataClass(nsIScriptContext *aContext, void **aPrototype);
extern "C" NS_DOM nsresult NS_NewScriptCharacterData(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
#endif // nsIDOMCharacterData_h__