/***************************************************************************
                            QSimpleRichText.h -  description
                             -------------------
    begin                : Wed Nov 21 12:08:37 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 12:08:37 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.                       *
 *                                                                         *
 ***************************************************************************/

#ifndef QSIMPLERICHTEXT_H
#define QSIMPLERICHTEXT_H

#include <Foundation/NSObject.h>
#include <Foundation/NSString.h>
#include <qtobjc/QtSupport.h>

@class QFont;
@class QPainter;
@class QPoint;
@class QStyleSheet;
@class QRegion;
@class QMimeSourceFactory;
@class QPalette;
@class QColorGroup;
@class QColor;
@class QBrush;

@class QRect; 

@interface  QSimpleRichText : NSObject <QtSupport>
{
@private
	void * _qt;
	BOOL  _allocatedInObjcWorld;
}
- initWithText: (NSString *)text fnt: (QFont *)fnt context: (NSString *)context sheet: (QStyleSheet*)sheet;
- initWithText: (NSString *)text fnt: (QFont *)fnt ;
- initWithText: (NSString *)text fnt: (QFont *)fnt context: (NSString *)context sheet: (QStyleSheet*)sheet factory: (QMimeSourceFactory*)factory pageBreak: (int)pageBreak linkColor: (QColor *)linkColor linkUnderline: (BOOL)linkUnderline;
- initWithText: (NSString *)text fnt: (QFont *)fnt context: (NSString *)context sheet: (QStyleSheet*)sheet factory: (QMimeSourceFactory*)factory ;
- (void) dealloc;
- setWidth: (int)arg1;
- setWidth: (QPainter *)arg1 int: (int)arg2;
- setDefaultFont: (QFont *)f;
- (int) width;
- (int) widthUsed;
- (int) height;
- adjustSize;
- draw: (QPainter *)p x: (int)x y: (int)y clipRect: (QRect*)clipRect cg: (QColorGroup *)cg paper: (QBrush*)paper;
- draw: (QPainter *)p x: (int)x y: (int)y clipRect: (QRect*)clipRect cg: (QColorGroup *)cg ;
- draw: (QPainter *)p x: (int)x y: (int)y clipRegion: (QRegion *)clipRegion cg: (QColorGroup *)cg paper: (QBrush*)paper;
- draw: (QPainter *)p x: (int)x y: (int)y clipRegion: (QRegion *)clipRegion cg: (QColorGroup *)cg ;
- (NSString *) context;
- (NSString *) anchorAt: (QPoint*)pos;
- (BOOL) inText: (QPoint*)pos;
@end

#endif
