/*****************************************************************************/
/* htmldraw.h - 06/08/99 - By Christophe LOREK - CRYO-NETWORKS               */
/*                                                                           */
/* HTML draw functions                                                       */
/*                                                                           */
/* last modified on 10/08/99 By Christophe LOREK                             */
/*****************************************************************************/

#ifndef HTMLDRAW_H
#define HTMLDRAW_H

#include "node.h"
#include "structs.h"
#include "html.h"
#include "htmltext.h"
#include "htmlbitmap.h"
#include "htmltable.h"
#include "htmlrow.h"
#include "htmlcell.h"

#include "../x/version.h"
#include "../x/scolplugin.h"
#include "../x/Objstr.h"

#define HTMLCONTENT_FORMAT	0
#define HTMLCONTENT_DRAW		1
#define HTMLCONTENT_CLICK		2

typedef struct {
	int			x;
	int			y;
	int			w;
	int			h;
	int			nbcols;
} HtmlBounds;


int HtmlContent (mmachine m,int htmlnode,PtrObjBitmap	ptrBMP,HtmlBounds *bounds, int *cx,int *cy,int flag);
int HtmlTextContent (mmachine m,HTML	*currentHTML,int textnode,PtrObjBitmap	ptrBMP,HtmlBounds *bounds, int *cx,int *cy,int flag);
int HtmlTableContent (mmachine m,HTML	*currentHTML,int textnode,PtrObjBitmap	ptrBMP,HtmlBounds *bounds, int *cx,int *cy,int flag);
int HtmlRowContent (mmachine m,HTML	*currentHTML,int tablenode,PtrObjBitmap	ptrBMP,HtmlBounds *bounds,int *cx,int *cy,int flag);
int HtmlCellContent (mmachine m,HTML	*currentHTML,int tablenode,PtrObjBitmap	ptrBMP,HtmlBounds *bounds,int *cx,int *cy,int flag);
int HtmlBitmapContent (mmachine m,HTML	*currentHTML,int textnode,PtrObjBitmap	ptrBMP,HtmlBounds *bounds, int *cx,int *cy,int flag);

#endif