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

Public Functions

QDomNodePrivatecloneNode (bool deep=true)
 
virtual bool isEntity () const
 
QDomNode::NodeType nodeType () const
 
 QDomEntityPrivate (QDomDocumentPrivate *, QDomNodePrivate *parent, const QString &name, const QString &pub, const QString &sys, const QString &notation)
 
 QDomEntityPrivate (QDomEntityPrivate *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 isEntityReference () const
 
virtual bool isNotation () 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_notationName
 
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 458 of file qdom.cpp.

Constructors and Destructors

◆ QDomEntityPrivate() [1/2]

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

Definition at line 5804 of file qdom.cpp.

5807  : QDomNodePrivate(d, parent)
5808 {
5809  name = aname;
5810  m_pub = pub;
5811  m_sys = sys;
5812  m_notationName = notation;
5813 }
QDomNodePrivate(QDomDocumentPrivate *, QDomNodePrivate *parent=0)
Definition: qdom.cpp:1482
QString m_sys
Definition: qdom.cpp:472
QString m_notationName
Definition: qdom.cpp:474
QString m_pub
Definition: qdom.cpp:473

◆ QDomEntityPrivate() [2/2]

QDomEntityPrivate::QDomEntityPrivate ( QDomEntityPrivate n,
bool  deep 
)

Definition at line 5815 of file qdom.cpp.

5816  : QDomNodePrivate(n, deep)
5817 {
5818  m_sys = n->m_sys;
5819  m_pub = n->m_pub;
5821 }
QDomNodePrivate(QDomDocumentPrivate *, QDomNodePrivate *parent=0)
Definition: qdom.cpp:1482
QString m_sys
Definition: qdom.cpp:472
QString m_notationName
Definition: qdom.cpp:474
QString m_pub
Definition: qdom.cpp:473

Functions

◆ cloneNode()

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

Reimplemented from QDomNodePrivate.

Definition at line 5823 of file qdom.cpp.

5824 {
5825  QDomNodePrivate* p = new QDomEntityPrivate(this, deep);
5826  // We are not interested in this node
5827  p->ref.deref();
5828  return p;
5829 }
QAtomicInt ref
Definition: qdom.cpp:191
bool deref()
Atomically decrements the value of this QAtomicInt.
QDomEntityPrivate(QDomDocumentPrivate *, QDomNodePrivate *parent, const QString &name, const QString &pub, const QString &sys, const QString &notation)
Definition: qdom.cpp:5804

◆ isEntity()

virtual bool QDomEntityPrivate::isEntity ( ) const
inlinevirtual

Reimplemented from QDomNodePrivate.

Definition at line 467 of file qdom.cpp.

467 { return true; }

◆ nodeType()

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

Reimplemented from QDomNodePrivate.

Definition at line 468 of file qdom.cpp.

◆ save()

void QDomEntityPrivate::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 5867 of file qdom.cpp.

5868 {
5869  QString _name = name;
5870  if (_name.startsWith(QLatin1Char('%')))
5871  _name = QLatin1String("% ") + _name.mid(1);
5872 
5873  if (m_sys.isNull() && m_pub.isNull()) {
5874  s << "<!ENTITY " << _name << " \"" << encodeEntity(value.toUtf8()) << "\">" << endl;
5875  } else {
5876  s << "<!ENTITY " << _name << ' ';
5877  if (m_pub.isNull()) {
5878  s << "SYSTEM " << quotedValue(m_sys);
5879  } else {
5880  s << "PUBLIC " << quotedValue(m_pub) << ' ' << quotedValue(m_sys);
5881  }
5882  if (! m_notationName.isNull()) {
5883  s << " NDATA " << m_notationName;
5884  }
5885  s << '>' << endl;
5886  }
5887 }
QByteArray toUtf8() const Q_REQUIRED_RESULT
Returns a UTF-8 representation of the string as a QByteArray.
Definition: qstring.cpp:4074
QString name
Definition: qdom.cpp:198
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
Definition: qstring.cpp:3734
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
Definition: qstring.h:83
QString value
Definition: qdom.cpp:199
QString m_sys
Definition: qdom.cpp:472
QString m_notationName
Definition: qdom.cpp:474
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
static QByteArray encodeEntity(const QByteArray &str)
Definition: qdom.cpp:5834
QString mid(int position, int n=-1) const Q_REQUIRED_RESULT
Returns a string that contains n characters of this string, starting at the specified position index...
Definition: qstring.cpp:3706
QString m_pub
Definition: qdom.cpp:473
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
Definition: qchar.h:55
Q_CORE_EXPORT QTextStream & endl(QTextStream &s)

Properties

◆ m_notationName

QString QDomEntityPrivate::m_notationName

Definition at line 474 of file qdom.cpp.

◆ m_pub

QString QDomEntityPrivate::m_pub

Definition at line 473 of file qdom.cpp.

◆ m_sys

QString QDomEntityPrivate::m_sys

Definition at line 472 of file qdom.cpp.


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