00001 /* 00002 * $Id: dsCharacterData.h,v 1.1 2002/09/05 18:31:42 dsamersoff Exp $ 00003 */ 00004 #ifndef dsCharacterData_h 00005 #define dsCharacterData_h 00006 00007 #include <dsNode.h> 00008 00009 class dsCharacterData : public dsNode 00010 { 00011 public: 00012 DOMString data() { return nodeValue(); } 00013 unsigned long length() { return data() ? strlen(data()): 0; } 00014 00015 00016 DOMString substringData(unsigned long offset, unsigned long count); 00017 void appendData(DOMString arg); 00018 void insertData(unsigned long offset,DOMString arg); 00019 void deleteData(unsigned long offset, unsigned long count); 00020 void replaceData(unsigned long offset, unsigned long count, DOMString arg); 00021 00022 dsCharacterData(dsDocument *owner, dsNodeTypes type); 00023 dsCharacterData(); 00024 00025 }; 00026 00027 #endif