2002-05-04 23:57:18 +04:00
|
|
|
/**
|
2002-06-19 01:24:21 +04:00
|
|
|
* $Id: box.h,v 1.3 2002/06/18 21:24:21 bursa Exp $
|
2002-05-04 23:57:18 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* structures
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct box {
|
|
|
|
enum { BOX_BLOCK, BOX_INLINE_CONTAINER, BOX_INLINE,
|
|
|
|
BOX_TABLE, BOX_TABLE_ROW, BOX_TABLE_CELL, BOX_FLOAT } type;
|
|
|
|
xmlNode * node;
|
|
|
|
struct css_style * style;
|
|
|
|
unsigned long x, y, width, height;
|
|
|
|
const char * text;
|
|
|
|
unsigned int length;
|
|
|
|
struct box * next;
|
|
|
|
struct box * children;
|
|
|
|
struct box * last;
|
|
|
|
struct box * parent;
|
2002-05-28 03:21:11 +04:00
|
|
|
struct box * float_children;
|
|
|
|
struct box * next_float;
|
2002-05-04 23:57:18 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* interface
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct box * xml_to_box(xmlNode * n, struct css_style * parent_style, struct css_stylesheet * stylesheet,
|
|
|
|
struct css_selector ** selector, unsigned int depth,
|
|
|
|
struct box * parent, struct box * inline_container);
|
|
|
|
void box_dump(struct box * box, unsigned int depth);
|
|
|
|
|