/***************************************************************************
                            QSimpleRichText.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

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

package org.kde.qt;

import java.util.*;
import java.lang.Error;

public class  QSimpleRichText implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected QSimpleRichText(Class dummy){}

	private native void newQSimpleRichText( String text, QFont fnt, String context, QStyleSheet sheet);
	public QSimpleRichText( String text, QFont fnt, String context, QStyleSheet sheet) {
		newQSimpleRichText( text, fnt, context, sheet);
	}
	public QSimpleRichText( String text, QFont fnt, String context) {
		this( text, fnt, context, null);
	}
	private native void newQSimpleRichText( String text, QFont fnt);
	public QSimpleRichText( String text, QFont fnt) {
		newQSimpleRichText( text, fnt);
	}
	private native void newQSimpleRichText( String text, QFont fnt, String context, QStyleSheet sheet, QMimeSourceFactory factory, int pageBreak, QColor linkColor, boolean linkUnderline);
	public QSimpleRichText( String text, QFont fnt, String context, QStyleSheet sheet, QMimeSourceFactory factory, int pageBreak, QColor linkColor, boolean linkUnderline) {
		newQSimpleRichText( text, fnt, context, sheet, factory, pageBreak, linkColor, linkUnderline);
	}
	public QSimpleRichText( String text, QFont fnt, String context, QStyleSheet sheet, QMimeSourceFactory factory, int pageBreak, QColor linkColor) {
		this( text, fnt, context, sheet, factory, pageBreak, linkColor, true);
	}
	public QSimpleRichText( String text, QFont fnt, String context, QStyleSheet sheet, QMimeSourceFactory factory, int pageBreak) {
		this( text, fnt, context, sheet, factory, pageBreak, Qt.blue(), true);
	}
	private native void newQSimpleRichText( String text, QFont fnt, String context, QStyleSheet sheet, QMimeSourceFactory factory);
	public QSimpleRichText( String text, QFont fnt, String context, QStyleSheet sheet, QMimeSourceFactory factory) {
		newQSimpleRichText( text, fnt, context, sheet, factory);
	}
	protected native void finalize() throws InternalError;
	public native void setWidth( int arg1);
	public native void setWidth( QPainter arg1, int arg2);
	public native void setDefaultFont( QFont f);
	public native int width();
	public native int widthUsed();
	public native int height();
	public native void adjustSize();
	public native void draw( QPainter p, int x, int y, QRect clipRect, QColorGroup cg, QBrush paper);
	public native void draw( QPainter p, int x, int y, QRect clipRect, QColorGroup cg);
	public native void draw( QPainter p, int x, int y, QRegion clipRegion, QColorGroup cg, QBrush paper);
	public native void draw( QPainter p, int x, int y, QRegion clipRegion, QColorGroup cg);
	public native String context();
	public native String anchorAt( QPoint pos);
	public native boolean inText( QPoint pos);
}
