equal
deleted
inserted
replaced
83 QString encodeText(const QString &aStr) const; |
83 QString encodeText(const QString &aStr) const; |
84 QString encodeChar(char c) const; |
84 QString encodeChar(char c) const; |
85 bool mustEncodeChar(char c) const; |
85 bool mustEncodeChar(char c) const; |
86 bool canIndent(); |
86 bool canIndent(); |
87 void setLastIndent(bool theB); |
87 void setLastIndent(bool theB); |
|
88 // Debug stream flushing |
|
89 inline void flushStream(); |
88 private: |
90 private: |
89 QFile mFile; |
91 QFile mFile; |
90 QTextStream *mStreamP; |
92 QTextStream *mStreamP; |
91 QStack<QString> mElemStack; |
93 QStack<QString> mElemStack; |
92 QList<bool> mCanIndentList; |
94 QList<bool> mCanIndentList; |
208 void push(const QString &aElemName); |
210 void push(const QString &aElemName); |
209 /// Constructor with one attribute |
211 /// Constructor with one attribute |
210 void push(const QString &aElemName, const QString &aAttr, const QString &aAttrValue); |
212 void push(const QString &aElemName, const QString &aAttr, const QString &aAttrValue); |
211 /// Push element with any number of attributes |
213 /// Push element with any number of attributes |
212 void push(const QString &aElementName, AttributeMap &aAttrs); |
214 void push(const QString &aElementName, AttributeMap &aAttrs); |
|
215 // Pop without checking name matches |
|
216 void pop(); |
213 /// Method that will check the element name matches |
217 /// Method that will check the element name matches |
214 void pop(const QString &aElementName); |
218 void pop(const QString &aElementName); |
215 /// Push and pop an element with no attributes |
219 /// Push and pop an element with no attributes |
216 void pushpop(const QString &aElemName); |
220 void pushpop(const QString &aElemName); |
217 /// Push and pop an element with no attributes but with some content |
221 /// Push and pop an element with no attributes but with some content |
229 QStack<XmlElement> mElemStack; |
233 QStack<XmlElement> mElemStack; |
230 private: |
234 private: |
231 // Private cctor and op= |
235 // Private cctor and op= |
232 XmlElementStack (const XmlElementStack &rhs); |
236 XmlElementStack (const XmlElementStack &rhs); |
233 XmlElementStack& operator=(const XmlElementStack &rhs); |
237 XmlElementStack& operator=(const XmlElementStack &rhs); |
234 // Used by destructor |
|
235 void pop(); |
|
236 }; |
238 }; |
237 |
239 |
238 #endif // _XMLWRITER_H |
240 #endif // _XMLWRITER_H |