/***************************************************************************
                            kde_Text.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, 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 "kde_Text.h"
}

#include <dom/dom_text.h>

class TextBridge : public DOM::Text
{
public:
	TextBridge() : Text() {}
	TextBridge(const Text& other) : Text(other) {}
	TextBridge(const Node& other) : Text(other) {}
	~TextBridge() {}
};

kde_Text * kde_new_Text(){
	return (kde_Text *) new TextBridge();
}
kde_Text * kde_new_Text1(kde_Text* other){
	return (kde_Text *) new TextBridge((DOM::Text&)* (DOM::Text*)other);
}
kde_Text * kde_new_Text2(kde_DOMNode* other){
	return (kde_Text *) new TextBridge((DOM::Node&)* (DOM::Node*)other);
}
void kde_del_Text( kde_Text* p ){
	delete (TextBridge*) p;
}
kde_Text* kde_Text_splitText( kde_Text* instPointer,unsigned long offset){
	return (kde_Text*)new DOM::Text(((TextBridge*)instPointer)->splitText((unsigned long)offset));
}
