home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / scxmlstreamwriter.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-05-13  |  1.2 KB  |  28 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef SCXMLSTREAMWRITER_H
  8. #define SCXMLSTREAMWRITER_H
  9.  
  10. #include "scribusapi.h"
  11.  
  12. #include <QString>
  13. #include <QXmlStreamWriter>
  14.  
  15. class SCRIBUS_API ScXmlStreamWriter : public QXmlStreamWriter
  16. {
  17. public:
  18.     ScXmlStreamWriter(void) : QXmlStreamWriter() {}
  19.     ScXmlStreamWriter(QIODevice* device) : QXmlStreamWriter(device) {}
  20.     ScXmlStreamWriter(QString*   string) : QXmlStreamWriter(string) {}
  21.     void writeAttribute(const QString & name, const QString & value) { QXmlStreamWriter::writeAttribute(name, value); }
  22.     void writeAttribute(const QString & name, int value)    { QXmlStreamWriter::writeAttribute(name, QString::number(value)); }
  23.     void writeAttribute(const QString & name, uint value)   { QXmlStreamWriter::writeAttribute(name, QString::number(value)); }
  24.     void writeAttribute(const QString & name, double value) { QXmlStreamWriter::writeAttribute(name, QString::number(value, 'g', 15)); }
  25. };
  26.  
  27. #endif
  28.