com_trolltech_qt_xml_init.cpp
72 lines
| 6.7 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include <PythonQt.h> | ||
florianlink
|
r28 | #include "PythonQtWrapper_QDomNamedNodeMap.h" | ||
#include "PythonQtWrapper_QXmlDTDHandler.h" | ||||
florianlink
|
r73 | #include "PythonQtWrapper_QXmlLexicalHandler.h" | ||
florianlink
|
r13 | #include "PythonQtWrapper_QDomImplementation.h" | ||
florianlink
|
r73 | #include "PythonQtWrapper_QXmlErrorHandler.h" | ||
#include "PythonQtWrapper_QDomNode.h" | ||||
#include "PythonQtWrapper_QDomNodeList.h" | ||||
florianlink
|
r28 | #include "PythonQtWrapper_QXmlContentHandler.h" | ||
florianlink
|
r13 | #include "PythonQtWrapper_QXmlAttributes.h" | ||
florianlink
|
r73 | #include "PythonQtWrapper_QXmlInputSource.h" | ||
florianlink
|
r28 | #include "PythonQtWrapper_QXmlDeclHandler.h" | ||
florianlink
|
r73 | #include "PythonQtWrapper_QXmlParseException.h" | ||
#include "PythonQtWrapper_QXmlEntityResolver.h" | ||||
#include "PythonQtWrapper_QXmlReader.h" | ||||
florianlink
|
r28 | #include "PythonQtWrapper_QXmlLocator.h" | ||
florianlink
|
r73 | #include "PythonQtWrapper_QDomProcessingInstruction.h" | ||
florianlink
|
r13 | #include "PythonQtWrapper_QDomAttr.h" | ||
florianlink
|
r28 | #include "PythonQtWrapper_QDomElement.h" | ||
florianlink
|
r73 | #include "PythonQtWrapper_QDomDocumentFragment.h" | ||
#include "PythonQtWrapper_QDomDocumentType.h" | ||||
#include "PythonQtWrapper_QXmlDefaultHandler.h" | ||||
florianlink
|
r28 | #include "PythonQtWrapper_QDomEntity.h" | ||
florianlink
|
r73 | #include "PythonQtWrapper_QDomDocument.h" | ||
#include "PythonQtWrapper_QXmlSimpleReader.h" | ||||
florianlink
|
r28 | #include "PythonQtWrapper_QDomNotation.h" | ||
florianlink
|
r73 | #include "PythonQtWrapper_QDomEntityReference.h" | ||
#include "PythonQtWrapper_QDomCharacterData.h" | ||||
florianlink
|
r13 | #include "PythonQtWrapper_QDomComment.h" | ||
florianlink
|
r73 | #include "PythonQtWrapper_QDomText.h" | ||
florianlink
|
r13 | #include "PythonQtWrapper_QDomCDATASection.h" | ||
florianlink
|
r28 | |||
florianlink
|
r13 | void PythonQt_init_QtXml() { | ||
florianlink
|
r28 | PythonQt::self()->registerCPPClass("QDomNamedNodeMap", "", "QtXml", PythonQtCreateObject<PythonQtWrapper_QDomNamedNodeMap>); | ||
PythonQt::self()->registerCPPClass("QXmlDTDHandler", "", "QtXml", PythonQtCreateObject<PythonQtWrapper_QXmlDTDHandler>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QXmlDTDHandler>); | ||||
florianlink
|
r73 | PythonQt::self()->registerCPPClass("QXmlLexicalHandler", "", "QtXml", PythonQtCreateObject<PythonQtWrapper_QXmlLexicalHandler>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QXmlLexicalHandler>); | ||
florianlink
|
r13 | PythonQt::self()->registerCPPClass("QDomImplementation", "", "QtXml", PythonQtCreateObject<PythonQtWrapper_QDomImplementation>); | ||
florianlink
|
r73 | PythonQt::self()->registerCPPClass("QXmlErrorHandler", "", "QtXml", PythonQtCreateObject<PythonQtWrapper_QXmlErrorHandler>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QXmlErrorHandler>); | ||
PythonQt::self()->registerCPPClass("QDomNode", "", "QtXml", PythonQtCreateObject<PythonQtWrapper_QDomNode>); | ||||
PythonQt::self()->registerCPPClass("QDomNodeList", "", "QtXml", PythonQtCreateObject<PythonQtWrapper_QDomNodeList>); | ||||
florianlink
|
r28 | PythonQt::self()->registerCPPClass("QXmlContentHandler", "", "QtXml", PythonQtCreateObject<PythonQtWrapper_QXmlContentHandler>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QXmlContentHandler>); | ||
florianlink
|
r24 | PythonQt::self()->registerCPPClass("QXmlAttributes", "", "QtXml", PythonQtCreateObject<PythonQtWrapper_QXmlAttributes>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QXmlAttributes>); | ||
florianlink
|
r73 | PythonQt::self()->registerCPPClass("QXmlInputSource", "", "QtXml", PythonQtCreateObject<PythonQtWrapper_QXmlInputSource>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QXmlInputSource>); | ||
florianlink
|
r28 | PythonQt::self()->registerCPPClass("QXmlDeclHandler", "", "QtXml", PythonQtCreateObject<PythonQtWrapper_QXmlDeclHandler>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QXmlDeclHandler>); | ||
florianlink
|
r73 | PythonQt::self()->registerCPPClass("QXmlParseException", "", "QtXml", PythonQtCreateObject<PythonQtWrapper_QXmlParseException>); | ||
PythonQt::self()->registerCPPClass("QXmlEntityResolver", "", "QtXml", PythonQtCreateObject<PythonQtWrapper_QXmlEntityResolver>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QXmlEntityResolver>); | ||||
PythonQt::self()->registerCPPClass("QXmlReader", "", "QtXml", PythonQtCreateObject<PythonQtWrapper_QXmlReader>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QXmlReader>); | ||||
florianlink
|
r28 | PythonQt::self()->registerCPPClass("QXmlLocator", "", "QtXml", PythonQtCreateObject<PythonQtWrapper_QXmlLocator>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QXmlLocator>); | ||
florianlink
|
r73 | PythonQt::self()->registerCPPClass("QDomProcessingInstruction", "QDomNode", "QtXml", PythonQtCreateObject<PythonQtWrapper_QDomProcessingInstruction>); | ||
PythonQt::self()->registerCPPClass("QDomAttr", "QDomNode", "QtXml", PythonQtCreateObject<PythonQtWrapper_QDomAttr>); | ||||
PythonQt::self()->registerCPPClass("QDomElement", "QDomNode", "QtXml", PythonQtCreateObject<PythonQtWrapper_QDomElement>); | ||||
PythonQt::self()->registerCPPClass("QDomDocumentFragment", "QDomNode", "QtXml", PythonQtCreateObject<PythonQtWrapper_QDomDocumentFragment>); | ||||
PythonQt::self()->registerCPPClass("QDomDocumentType", "QDomNode", "QtXml", PythonQtCreateObject<PythonQtWrapper_QDomDocumentType>); | ||||
florianlink
|
r24 | PythonQt::self()->registerCPPClass("QXmlDefaultHandler", "", "QtXml", PythonQtCreateObject<PythonQtWrapper_QXmlDefaultHandler>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QXmlDefaultHandler>); | ||
PythonQt::self()->addParentClass("QXmlDefaultHandler", "QXmlContentHandler",PythonQtUpcastingOffset<QXmlDefaultHandler,QXmlContentHandler>()); | ||||
PythonQt::self()->addParentClass("QXmlDefaultHandler", "QXmlErrorHandler",PythonQtUpcastingOffset<QXmlDefaultHandler,QXmlErrorHandler>()); | ||||
PythonQt::self()->addParentClass("QXmlDefaultHandler", "QXmlDTDHandler",PythonQtUpcastingOffset<QXmlDefaultHandler,QXmlDTDHandler>()); | ||||
PythonQt::self()->addParentClass("QXmlDefaultHandler", "QXmlEntityResolver",PythonQtUpcastingOffset<QXmlDefaultHandler,QXmlEntityResolver>()); | ||||
PythonQt::self()->addParentClass("QXmlDefaultHandler", "QXmlLexicalHandler",PythonQtUpcastingOffset<QXmlDefaultHandler,QXmlLexicalHandler>()); | ||||
PythonQt::self()->addParentClass("QXmlDefaultHandler", "QXmlDeclHandler",PythonQtUpcastingOffset<QXmlDefaultHandler,QXmlDeclHandler>()); | ||||
florianlink
|
r73 | PythonQt::self()->registerCPPClass("QDomEntity", "QDomNode", "QtXml", PythonQtCreateObject<PythonQtWrapper_QDomEntity>); | ||
florianlink
|
r28 | PythonQt::self()->registerCPPClass("QDomDocument", "QDomNode", "QtXml", PythonQtCreateObject<PythonQtWrapper_QDomDocument>); | ||
PythonQt::self()->registerCPPClass("QXmlSimpleReader", "QXmlReader", "QtXml", PythonQtCreateObject<PythonQtWrapper_QXmlSimpleReader>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QXmlSimpleReader>); | ||||
PythonQt::self()->registerCPPClass("QDomNotation", "QDomNode", "QtXml", PythonQtCreateObject<PythonQtWrapper_QDomNotation>); | ||||
florianlink
|
r73 | PythonQt::self()->registerCPPClass("QDomEntityReference", "QDomNode", "QtXml", PythonQtCreateObject<PythonQtWrapper_QDomEntityReference>); | ||
PythonQt::self()->registerCPPClass("QDomCharacterData", "QDomNode", "QtXml", PythonQtCreateObject<PythonQtWrapper_QDomCharacterData>); | ||||
florianlink
|
r13 | PythonQt::self()->registerCPPClass("QDomComment", "QDomCharacterData", "QtXml", PythonQtCreateObject<PythonQtWrapper_QDomComment>); | ||
florianlink
|
r73 | PythonQt::self()->registerCPPClass("QDomText", "QDomCharacterData", "QtXml", PythonQtCreateObject<PythonQtWrapper_QDomText>); | ||
florianlink
|
r13 | PythonQt::self()->registerCPPClass("QDomCDATASection", "QDomText", "QtXml", PythonQtCreateObject<PythonQtWrapper_QDomCDATASection>); | ||
} | ||||