Qt 4.8
Public Functions | Public Variables | List of all members
QDomNotationPrivate Class Reference
Inheritance diagram for QDomNotationPrivate:
QDomNodePrivate

Public Functions

QDomNodePrivatecloneNode (bool deep=true)
 
virtual bool isNotation () const
 
QDomNode::NodeType nodeType () const
 
 QDomNotationPrivate (QDomDocumentPrivate *, QDomNodePrivate *parent, const QString &name, const QString &pub, const QString &sys)
 
 QDomNotationPrivate (QDomNotationPrivate *n, bool deep)
 
virtual void save (QTextStream &s, int, int) const
 
- Public Functions inherited from QDomNodePrivate
virtual QDomNodePrivateappendChild (QDomNodePrivate *newChild)
 
virtual void clear ()
 
virtual QDomNodePrivateinsertAfter (QDomNodePrivate *newChild, QDomNodePrivate *refChild)
 
virtual QDomNodePrivateinsertBefore (QDomNodePrivate *newChild, QDomNodePrivate *refChild)
 
virtual bool isAttr () const
 
virtual bool isCDATASection () const
 
virtual bool isCharacterData () const
 
virtual bool isComment () const
 
virtual bool isDocument () const
 
virtual bool isDocumentFragment () const
 
virtual bool isDocumentType () const
 
virtual bool isElement () const
 
virtual bool isEntity () const
 
virtual bool isEntityReference () const
 
virtual bool isProcessingInstruction () const
 
virtual bool isText () const
 
QDomNodePrivatenamedItem (const QString &name)
 
QString nodeName () const
 
QString nodeValue () const
 
virtual void normalize ()
 
QDomDocumentPrivateownerDocument ()
 
QDomNodePrivateparent () const
 
 QDomNodePrivate (QDomDocumentPrivate *, QDomNodePrivate *parent=0)
 
 QDomNodePrivate (QDomNodePrivate *n, bool deep)
 
virtual QDomNodePrivateremoveChild (QDomNodePrivate *oldChild)
 
virtual QDomNodePrivatereplaceChild (QDomNodePrivate *newChild, QDomNodePrivate *oldChild)
 
void setLocation (int lineNumber, int columnNumber)
 
virtual void setNodeValue (const QString &v)
 
void setNoParent ()
 
void setOwnerDocument (QDomDocumentPrivate *doc)
 
void setParent (QDomNodePrivate *p)
 
virtual ~QDomNodePrivate ()
 

Public Variables

QString m_pub
 
QString m_sys
 
- Public Variables inherited from QDomNodePrivate
int columnNumber
 
bool createdWithDom1Interface: 1
 
QDomNodePrivatefirst
 
bool hasParent: 1
 
QDomNodePrivatelast
 
int lineNumber
 
QString name
 
QString namespaceURI
 
QDomNodePrivatenext
 
QDomNodePrivateownerNode
 
QString prefix
 
QDomNodePrivateprev
 
QAtomicInt ref
 
QString value
 

Detailed Description

Definition at line 440 of file qdom.cpp.

Constructors and Destructors

◆ QDomNotationPrivate() [1/2]

QDomNotationPrivate::QDomNotationPrivate ( QDomDocumentPrivate d,
QDomNodePrivate parent,
const QString name,
const QString pub,
const QString sys 
)

Definition at line 5652 of file qdom.cpp.

Referenced by cloneNode(), and QDomDocumentPrivate::importNode().

5655  : QDomNodePrivate(d, parent)
5656 {
5657  name = aname;
5658  m_pub = pub;
5659  m_sys = sys;
5660 }
QDomNodePrivate(QDomDocumentPrivate *, QDomNodePrivate *parent=0)
Definition: qdom.cpp:1482

◆ QDomNotationPrivate() [2/2]

QDomNotationPrivate::QDomNotationPrivate ( QDomNotationPrivate n,
bool  deep 
)

Definition at line 5662 of file qdom.cpp.

5663  : QDomNodePrivate(n, deep)
5664 {
5665  m_sys = n->m_sys;
5666  m_pub = n->m_pub;
5667 }
QDomNodePrivate(QDomDocumentPrivate *, QDomNodePrivate *parent=0)
Definition: qdom.cpp:1482

Functions

◆ cloneNode()

QDomNodePrivate * QDomNotationPrivate::cloneNode ( bool  deep = true)
virtual

Reimplemented from QDomNodePrivate.

Definition at line 5669 of file qdom.cpp.

5670 {
5671  QDomNodePrivate* p = new QDomNotationPrivate(this, deep);
5672  // We are not interested in this node
5673  p->ref.deref();
5674  return p;
5675 }
QAtomicInt ref
Definition: qdom.cpp:191
bool deref()
Atomically decrements the value of this QAtomicInt.
QDomNotationPrivate(QDomDocumentPrivate *, QDomNodePrivate *parent, const QString &name, const QString &pub, const QString &sys)
Definition: qdom.cpp:5652

◆ isNotation()

virtual bool QDomNotationPrivate::isNotation ( ) const
inlinevirtual

Reimplemented from QDomNodePrivate.

Definition at line 449 of file qdom.cpp.

449 { return true; }

◆ nodeType()

QDomNode::NodeType QDomNotationPrivate::nodeType ( ) const
inlinevirtual

Reimplemented from QDomNodePrivate.

Definition at line 450 of file qdom.cpp.

◆ save()

void QDomNotationPrivate::save ( QTextStream s,
int  depth,
int  indent 
) const
virtual
Warning
This function is not part of the public interface. depth is used for indentation, it seems.

Reimplemented from QDomNodePrivate.

Definition at line 5677 of file qdom.cpp.

5678 {
5679  s << "<!NOTATION " << name << ' ';
5680  if (!m_pub.isNull()) {
5681  s << "PUBLIC " << quotedValue(m_pub);
5682  if (!m_sys.isNull())
5683  s << ' ' << quotedValue(m_sys);
5684  } else {
5685  s << "SYSTEM " << quotedValue(m_sys);
5686  }
5687  s << '>' << endl;
5688 }
QString name
Definition: qdom.cpp:198
static QString quotedValue(const QString &data)
Definition: qdom.cpp:3656
bool isNull() const
Returns true if this string is null; otherwise returns false.
Definition: qstring.h:505

Properties

◆ m_pub

QString QDomNotationPrivate::m_pub

Definition at line 455 of file qdom.cpp.

Referenced by QDomNotationPrivate(), save(), and QDomEntityPrivate::save().

◆ m_sys

QString QDomNotationPrivate::m_sys

Definition at line 454 of file qdom.cpp.

Referenced by QDomNotationPrivate(), save(), and QDomEntityPrivate::save().


The documentation for this class was generated from the following file: