24 #include "dom/dom_xml.h"
25 #include "dom/dom_exception.h"
26 #include "xml/dom_textimpl.h"
27 #include "xml/dom_xmlimpl.h"
31 CDATASection::CDATASection()
41 NodeImpl* ohandle = other.handle();
42 if ( impl != ohandle ) {
43 if (!ohandle || ohandle->nodeType() != CDATA_SECTION_NODE) {
44 if ( impl ) impl->deref();
47 Node::operator =(other);
55 Node::operator =(other);
59 CDATASection::~CDATASection()
63 CDATASection::CDATASection(CDATASectionImpl *i) :
Text(i)
78 NodeImpl* ohandle = other.handle();
79 if ( impl != ohandle ) {
80 if (!ohandle || ohandle->nodeType() != ENTITY_NODE) {
81 if ( impl ) impl->deref();
84 Node::operator =(other);
92 Node::operator =(other);
105 return ((EntityImpl*)impl)->publicId();
113 return ((EntityImpl*)impl)->systemId();
121 return ((EntityImpl*)impl)->notationName();
124 Entity::Entity(EntityImpl *i) :
Node(i)
130 EntityReference::EntityReference()
140 NodeImpl* ohandle = other.handle();
141 if ( impl != ohandle ) {
142 if (!ohandle || ohandle->nodeType() != ENTITY_REFERENCE_NODE) {
143 if ( impl ) impl->deref();
146 Node::operator =(other);
154 Node::operator =(other);
158 EntityReference::~EntityReference()
162 EntityReference::EntityReference(EntityReferenceImpl *i) :
Node(i)
178 NodeImpl* ohandle = other.handle();
179 if ( impl != ohandle ) {
180 if (!ohandle || ohandle->nodeType() != NOTATION_NODE) {
181 if ( impl ) impl->deref();
184 Node::operator =(other);
192 Node::operator =(other);
196 Notation::~Notation()
205 return ((NotationImpl*)impl)->publicId();
213 return ((NotationImpl*)impl)->systemId();
216 Notation::Notation(NotationImpl *i) :
Node(i)
223 ProcessingInstruction::ProcessingInstruction()
234 NodeImpl* ohandle = other.handle();
235 if ( impl != ohandle ) {
236 if (!ohandle || ohandle->nodeType() != PROCESSING_INSTRUCTION_NODE) {
237 if ( impl ) impl->deref();
240 Node::operator =(other);
248 Node::operator =(other);
252 ProcessingInstruction::~ProcessingInstruction()
261 return ((ProcessingInstructionImpl*)impl)->target();
269 return ((ProcessingInstructionImpl*)impl)->data();
277 int exceptioncode = 0;
278 ((ProcessingInstructionImpl*)impl)->setData(_data, exceptioncode);
283 ProcessingInstruction::ProcessingInstruction(ProcessingInstructionImpl *i) :
Node(i)
289 if (impl)
return ((ProcessingInstructionImpl*)impl)->sheet();