PythonQtWrapper_QXmlFormatter.h
75 lines
| 3.4 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QXMLFORMATTER_H | ||
#define PYTHONQTWRAPPER_QXMLFORMATTER_H | ||||
#include <qxmlformatter.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qabstractxmlnodemodel.h> | ||||
#include <qabstractxmlreceiver.h> | ||||
#include <qiodevice.h> | ||||
#include <qtextcodec.h> | ||||
#include <qxmlname.h> | ||||
#include <qxmlquery.h> | ||||
florianlink
|
r24 | class PythonQtShell_QXmlFormatter : public QXmlFormatter | ||
{ | ||||
public: | ||||
PythonQtShell_QXmlFormatter(const QXmlQuery& query, QIODevice* outputDevice):QXmlFormatter(query, outputDevice),_wrapper(NULL) {}; | ||||
virtual void atomicValue(const QVariant& value); | ||||
virtual void attribute(const QXmlName& name, const QStringRef& value); | ||||
virtual void characters(const QStringRef& value); | ||||
virtual void comment(const QString& value); | ||||
virtual void endDocument(); | ||||
virtual void endElement(); | ||||
virtual void endOfSequence(); | ||||
virtual void namespaceBinding(const QXmlName& nb); | ||||
virtual void processingInstruction(const QXmlName& name, const QString& value); | ||||
virtual void startDocument(); | ||||
virtual void startElement(const QXmlName& name); | ||||
virtual void startOfSequence(); | ||||
virtual void whitespaceOnly(const QStringRef& value); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r28 | class PythonQtPublicPromoter_QXmlFormatter : public QXmlFormatter | ||
{ public: | ||||
inline void promoted_attribute(const QXmlName& name, const QStringRef& value) { QXmlFormatter::attribute(name, value); } | ||||
inline void promoted_endDocument() { QXmlFormatter::endDocument(); } | ||||
inline void promoted_endOfSequence() { QXmlFormatter::endOfSequence(); } | ||||
inline void promoted_startOfSequence() { QXmlFormatter::startOfSequence(); } | ||||
inline void promoted_characters(const QStringRef& value) { QXmlFormatter::characters(value); } | ||||
inline void promoted_startDocument() { QXmlFormatter::startDocument(); } | ||||
inline void promoted_processingInstruction(const QXmlName& name, const QString& value) { QXmlFormatter::processingInstruction(name, value); } | ||||
inline void promoted_startElement(const QXmlName& name) { QXmlFormatter::startElement(name); } | ||||
inline void promoted_atomicValue(const QVariant& value) { QXmlFormatter::atomicValue(value); } | ||||
inline void promoted_comment(const QString& value) { QXmlFormatter::comment(value); } | ||||
inline void promoted_endElement() { QXmlFormatter::endElement(); } | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QXmlFormatter : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QXmlFormatter* new_QXmlFormatter(const QXmlQuery& query, QIODevice* outputDevice); | ||||
void delete_QXmlFormatter(QXmlFormatter* obj) { delete obj; } | ||||
florianlink
|
r28 | void attribute(QXmlFormatter* theWrappedObject, const QXmlName& name, const QStringRef& value); | ||
florianlink
|
r24 | void endDocument(QXmlFormatter* theWrappedObject); | ||
florianlink
|
r28 | int indentationDepth(QXmlFormatter* theWrappedObject) const; | ||
void endOfSequence(QXmlFormatter* theWrappedObject); | ||||
florianlink
|
r24 | void startOfSequence(QXmlFormatter* theWrappedObject); | ||
void setIndentationDepth(QXmlFormatter* theWrappedObject, int depth); | ||||
florianlink
|
r28 | void characters(QXmlFormatter* theWrappedObject, const QStringRef& value); | ||
florianlink
|
r24 | void startDocument(QXmlFormatter* theWrappedObject); | ||
void processingInstruction(QXmlFormatter* theWrappedObject, const QXmlName& name, const QString& value); | ||||
florianlink
|
r28 | void startElement(QXmlFormatter* theWrappedObject, const QXmlName& name); | ||
florianlink
|
r24 | void atomicValue(QXmlFormatter* theWrappedObject, const QVariant& value); | ||
florianlink
|
r28 | void comment(QXmlFormatter* theWrappedObject, const QString& value); | ||
florianlink
|
r13 | void endElement(QXmlFormatter* theWrappedObject); | ||
}; | ||||
#endif // PYTHONQTWRAPPER_QXMLFORMATTER_H | ||||