/***************************************************************************
                            qt_QDomDocument.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "qt_QDomDocument.h"
}

#include <qdom.h>

class QDomDocumentBridge : public QDomDocument
{
public:
	QDomDocumentBridge() : QDomDocument() {}
	QDomDocumentBridge(const QString& name) : QDomDocument(name) {}
	QDomDocumentBridge(const QDomDocumentType& doctype) : QDomDocument(doctype) {}
	QDomDocumentBridge(const QDomDocument& x) : QDomDocument(x) {}
	~QDomDocumentBridge() {}
};

qt_QDomDocument * qt_new_QDomDocument(){
	return (qt_QDomDocument *) new QDomDocumentBridge();
}
qt_QDomDocument * qt_new_QDomDocument1(qt_QString * name){
	return (qt_QDomDocument *) new QDomDocumentBridge((QString&)* (QString*)name);
}
qt_QDomDocument * qt_new_QDomDocument2(qt_QDomDocumentType* doctype){
	return (qt_QDomDocument *) new QDomDocumentBridge((QDomDocumentType&)* (QDomDocumentType*)doctype);
}
qt_QDomDocument * qt_new_QDomDocument3(qt_QDomDocument* x){
	return (qt_QDomDocument *) new QDomDocumentBridge((QDomDocument&)* (QDomDocument*)x);
}
void qt_del_QDomDocument( qt_QDomDocument* p ){
	delete (QDomDocumentBridge*) p;
}
qt_QDomElement* qt_QDomDocument_createElement( qt_QDomDocument* instPointer,qt_QString * tagName){
	return (qt_QDomElement*)new QDomElement(((QDomDocumentBridge*)instPointer)->createElement((QString&)* (QString*)tagName));
}
qt_QDomDocumentFragment* qt_QDomDocument_createDocumentFragment( qt_QDomDocument* instPointer){
	return (qt_QDomDocumentFragment*)new QDomDocumentFragment(((QDomDocumentBridge*)instPointer)->createDocumentFragment());
}
qt_QDomText* qt_QDomDocument_createTextNode( qt_QDomDocument* instPointer,qt_QString * data){
	return (qt_QDomText*)new QDomText(((QDomDocumentBridge*)instPointer)->createTextNode((QString&)* (QString*)data));
}
qt_QDomComment* qt_QDomDocument_createComment( qt_QDomDocument* instPointer,qt_QString * data){
	return (qt_QDomComment*)new QDomComment(((QDomDocumentBridge*)instPointer)->createComment((QString&)* (QString*)data));
}
qt_QDomCDATASection* qt_QDomDocument_createCDATASection( qt_QDomDocument* instPointer,qt_QString * data){
	return (qt_QDomCDATASection*)new QDomCDATASection(((QDomDocumentBridge*)instPointer)->createCDATASection((QString&)* (QString*)data));
}
qt_QDomProcessingInstruction* qt_QDomDocument_createProcessingInstruction( qt_QDomDocument* instPointer,qt_QString * target, qt_QString * data){
	return (qt_QDomProcessingInstruction*)new QDomProcessingInstruction(((QDomDocumentBridge*)instPointer)->createProcessingInstruction((QString&)* (QString*)target, (QString&)* (QString*)data));
}
qt_QDomAttr* qt_QDomDocument_createAttribute( qt_QDomDocument* instPointer,qt_QString * name){
	return (qt_QDomAttr*)new QDomAttr(((QDomDocumentBridge*)instPointer)->createAttribute((QString&)* (QString*)name));
}
qt_QDomEntityReference* qt_QDomDocument_createEntityReference( qt_QDomDocument* instPointer,qt_QString * name){
	return (qt_QDomEntityReference*)new QDomEntityReference(((QDomDocumentBridge*)instPointer)->createEntityReference((QString&)* (QString*)name));
}
qt_QDomNodeList* qt_QDomDocument_elementsByTagName( qt_QDomDocument* instPointer,qt_QString * tagname){
	return (qt_QDomNodeList*)new QDomNodeList(((QDomDocumentBridge*)instPointer)->elementsByTagName((QString&)* (QString*)tagname));
}
qt_QDomNode* qt_QDomDocument_importNode( qt_QDomDocument* instPointer,qt_QDomNode* importedNode, int deep){
	return (qt_QDomNode*)new QDomNode(((QDomDocumentBridge*)instPointer)->importNode((QDomNode&)* (QDomNode*)importedNode, (bool)deep));
}
qt_QDomElement* qt_QDomDocument_createElementNS( qt_QDomDocument* instPointer,qt_QString * nsURI, qt_QString * qName){
	return (qt_QDomElement*)new QDomElement(((QDomDocumentBridge*)instPointer)->createElementNS((QString&)* (QString*)nsURI, (QString&)* (QString*)qName));
}
qt_QDomAttr* qt_QDomDocument_createAttributeNS( qt_QDomDocument* instPointer,qt_QString * nsURI, qt_QString * qName){
	return (qt_QDomAttr*)new QDomAttr(((QDomDocumentBridge*)instPointer)->createAttributeNS((QString&)* (QString*)nsURI, (QString&)* (QString*)qName));
}
qt_QDomNodeList* qt_QDomDocument_elementsByTagNameNS( qt_QDomDocument* instPointer,qt_QString * nsURI, qt_QString * localName){
	return (qt_QDomNodeList*)new QDomNodeList(((QDomDocumentBridge*)instPointer)->elementsByTagNameNS((QString&)* (QString*)nsURI, (QString&)* (QString*)localName));
}
qt_QDomElement* qt_QDomDocument_elementById( qt_QDomDocument* instPointer,qt_QString * elementId){
	return (qt_QDomElement*)new QDomElement(((QDomDocumentBridge*)instPointer)->elementById((QString&)* (QString*)elementId));
}
qt_QDomDocumentType* qt_QDomDocument_doctype( qt_QDomDocument* instPointer){
	return (qt_QDomDocumentType*)new QDomDocumentType(((QDomDocumentBridge*)instPointer)->doctype());
}
qt_QDomImplementation* qt_QDomDocument_implementation( qt_QDomDocument* instPointer){
	return (qt_QDomImplementation*)new QDomImplementation(((QDomDocumentBridge*)instPointer)->implementation());
}
qt_QDomElement* qt_QDomDocument_documentElement( qt_QDomDocument* instPointer){
	return (qt_QDomElement*)new QDomElement(((QDomDocumentBridge*)instPointer)->documentElement());
}
int qt_QDomDocument_setContent( qt_QDomDocument* instPointer,qt_QCString* text, int namespaceProcessing, qt_QString* errorMsg, int* errorLine, int* errorColumn){
	return (int) ((QDomDocumentBridge*)instPointer)->setContent((QCString&)* (QCString*)text, (bool)namespaceProcessing, (QString*)errorMsg, (int*)errorLine, (int*)errorColumn);
}
int qt_QDomDocument_setContent1( qt_QDomDocument* instPointer,qt_QByteArray* text, int namespaceProcessing, qt_QString* errorMsg, int* errorLine, int* errorColumn){
	return (int) ((QDomDocumentBridge*)instPointer)->setContent((QByteArray&)* (QByteArray*)text, (bool)namespaceProcessing, (QString*)errorMsg, (int*)errorLine, (int*)errorColumn);
}
int qt_QDomDocument_setContent2( qt_QDomDocument* instPointer,qt_QString * text, int namespaceProcessing, qt_QString* errorMsg, int* errorLine, int* errorColumn){
	return (int) ((QDomDocumentBridge*)instPointer)->setContent((QString&)* (QString*)text, (bool)namespaceProcessing, (QString*)errorMsg, (int*)errorLine, (int*)errorColumn);
}
int qt_QDomDocument_setContent3( qt_QDomDocument* instPointer,qt_QIODevice * dev, int namespaceProcessing, qt_QString* errorMsg, int* errorLine, int* errorColumn){
	return (int) ((QDomDocumentBridge*)instPointer)->setContent((QIODevice*)dev, (bool)namespaceProcessing, (QString*)errorMsg, (int*)errorLine, (int*)errorColumn);
}
int qt_QDomDocument_setContent4( qt_QDomDocument* instPointer,qt_QCString* text, qt_QString* errorMsg, int* errorLine, int* errorColumn){
	return (int) ((QDomDocumentBridge*)instPointer)->setContent((QCString&)* (QCString*)text, (QString*)errorMsg, (int*)errorLine, (int*)errorColumn);
}
int qt_QDomDocument_setContent5( qt_QDomDocument* instPointer,qt_QByteArray* text, qt_QString* errorMsg, int* errorLine, int* errorColumn){
	return (int) ((QDomDocumentBridge*)instPointer)->setContent((QByteArray&)* (QByteArray*)text, (QString*)errorMsg, (int*)errorLine, (int*)errorColumn);
}
int qt_QDomDocument_setContent6( qt_QDomDocument* instPointer,qt_QString * text, qt_QString* errorMsg, int* errorLine, int* errorColumn){
	return (int) ((QDomDocumentBridge*)instPointer)->setContent((QString&)* (QString*)text, (QString*)errorMsg, (int*)errorLine, (int*)errorColumn);
}
int qt_QDomDocument_setContent7( qt_QDomDocument* instPointer,qt_QIODevice * dev, qt_QString* errorMsg, int* errorLine, int* errorColumn){
	return (int) ((QDomDocumentBridge*)instPointer)->setContent((QIODevice*)dev, (QString*)errorMsg, (int*)errorLine, (int*)errorColumn);
}
int qt_QDomDocument_nodeType( qt_QDomDocument* instPointer){
	return (int) ((QDomDocumentBridge*)instPointer)->nodeType();
}
int qt_QDomDocument_isDocument( qt_QDomDocument* instPointer){
	return (int) ((QDomDocumentBridge*)instPointer)->isDocument();
}
qt_QString * qt_QDomDocument_toString( qt_QDomDocument* instPointer){
	return (qt_QString *)new QString(((QDomDocumentBridge*)instPointer)->toString());
}
qt_QCString* qt_QDomDocument_toCString( qt_QDomDocument* instPointer){
	return (qt_QCString*)new QCString(((QDomDocumentBridge*)instPointer)->toCString());
}
