/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/common/htmltable.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  htmlfont_t
struct  textitem_t
struct  htextpara_t
struct  htmltxt_t
struct  htmlimg_t
struct  htmldata_t
struct  htmltbl_t
struct  htmllabel_t
struct  htmlcell_t
struct  pitem

Defines

#define FIXED_FLAG   1
#define HALIGN_RIGHT   (1 << 1)
#define HALIGN_LEFT   (1 << 2)
#define HALIGN_MASK   (HALIGN_RIGHT | HALIGN_LEFT)
#define HALIGN_TEXT   HALIGN_MASK
#define VALIGN_TOP   (1 << 3)
#define VALIGN_BOTTOM   (1 << 4)
#define VALIGN_MASK   (VALIGN_TOP | VALIGN_BOTTOM)
#define BORDER_SET   (1 << 5)
#define PAD_SET   (1 << 6)
#define SPACE_SET   (1 << 7)
#define BALIGN_RIGHT   (1 << 8)
#define BALIGN_LEFT   (1 << 9)
#define BALIGN_MASK   (BALIGN_RIGHT | BALIGN_LEFT)
#define UNSET_ALIGN   0
#define HTML_UNSET   0
#define HTML_TBL   1
#define HTML_TEXT   2
#define HTML_IMAGE   3

Typedefs

typedef htmlcell_t htmlcell_t
typedef htmltbl_t htmltbl_t

Functions

htmllabel_tparseHTML (char *, int *, int)
int make_html_label (graph_t *g, textlabel_t *lp, void *obj)
void emit_html_label (GVJ_t *job, htmllabel_t *lp, textlabel_t *)
void free_html_label (htmllabel_t *, int)
void free_html_data (htmldata_t *)
void free_html_text (htmltxt_t *)
void free_html_font (htmlfont_t *)
boxhtml_port (node_t *n, char *pname, int *sides)
int html_path (node_t *n, port *p, int side, box *rv, int *k)
int html_inside (node_t *n, pointf p, edge_t *e)


Define Documentation

#define BALIGN_LEFT   (1 << 9)

Definition at line 36 of file htmltable.h.

#define BALIGN_MASK   (BALIGN_RIGHT | BALIGN_LEFT)

Definition at line 37 of file htmltable.h.

#define BALIGN_RIGHT   (1 << 8)

Definition at line 35 of file htmltable.h.

#define BORDER_SET   (1 << 5)

Definition at line 32 of file htmltable.h.

#define FIXED_FLAG   1

Definition at line 24 of file htmltable.h.

#define HALIGN_LEFT   (1 << 2)

Definition at line 26 of file htmltable.h.

#define HALIGN_MASK   (HALIGN_RIGHT | HALIGN_LEFT)

Definition at line 27 of file htmltable.h.

#define HALIGN_RIGHT   (1 << 1)

Definition at line 25 of file htmltable.h.

#define HALIGN_TEXT   HALIGN_MASK

Definition at line 28 of file htmltable.h.

#define HTML_IMAGE   3

Definition at line 115 of file htmltable.h.

Referenced by free_html_label(), htmlparse(), and yyparse().

#define HTML_TBL   1

Definition at line 113 of file htmltable.h.

Referenced by emit_html_label(), free_html_label(), htmlparse(), make_html_label(), and yyparse().

#define HTML_TEXT   2

Definition at line 114 of file htmltable.h.

Referenced by html_port(), htmlparse(), and yyparse().

#define HTML_UNSET   0

Definition at line 112 of file htmltable.h.

#define PAD_SET   (1 << 6)

Definition at line 33 of file htmltable.h.

#define SPACE_SET   (1 << 7)

Definition at line 34 of file htmltable.h.

#define UNSET_ALIGN   0

Definition at line 39 of file htmltable.h.

#define VALIGN_BOTTOM   (1 << 4)

Definition at line 30 of file htmltable.h.

#define VALIGN_MASK   (VALIGN_TOP | VALIGN_BOTTOM)

Definition at line 31 of file htmltable.h.

#define VALIGN_TOP   (1 << 3)

Definition at line 29 of file htmltable.h.


Typedef Documentation

typedef struct htmlcell_t htmlcell_t

Definition at line 117 of file htmltable.h.

typedef struct htmltbl_t htmltbl_t

Definition at line 118 of file htmltable.h.


Function Documentation

void emit_html_label ( GVJ_t job,
htmllabel_t lp,
textlabel_t  
)

Definition at line 530 of file htmltable.c.

References agget(), htmlfont_t::color, htmltbl_t::data, DEFAULT_COLOR, GVC_s::defaultlinestyle, htmlenv_t::finfo, textlabel_t::fontcolor, textlabel_t::fontname, textlabel_t::fontsize, GVJ_s::gvc, gvrender_begin_context(), gvrender_end_context(), gvrender_set_pencolor(), gvrender_set_style(), HTML_TBL, htmlenv_t::imgscale, htmllabel_t::kind, obj_state_s::n, htmlfont_t::name, NULL, GVJ_s::obj, textlabel_t::p, htmlenv_t::p, htmldata_t::pencolor, htmlfont_t::size, htmllabel_t::tbl, htmllabel_t::txt, htmllabel_t::u, and obj_state_s::u.

Referenced by emit_label().

void free_html_data ( htmldata_t  ) 

Definition at line 574 of file htmltable.c.

References htmldata_t::bgcolor, free(), htmldata_t::href, htmldata_t::port, htmldata_t::target, and htmldata_t::title.

void free_html_font ( htmlfont_t  ) 

Definition at line 562 of file htmltable.c.

References htmlfont_t::cnt, htmlfont_t::color, free(), and htmlfont_t::name.

Referenced by free_html_text().

void free_html_label ( htmllabel_t ,
int   
)

Definition at line 651 of file htmltable.c.

References free(), free_html_img(), free_html_text(), HTML_IMAGE, HTML_TBL, htmllabel_t::img, htmllabel_t::kind, htmllabel_t::tbl, htmllabel_t::txt, and htmllabel_t::u.

Referenced by free_label().

void free_html_text ( htmltxt_t  ) 

Definition at line 583 of file htmltable.c.

References textitem_t::font, free(), free_html_font(), textitem_t::free_layout, htextpara_t::items, textitem_t::layout, htextpara_t::nitems, htmltxt_t::nparas, htmltxt_t::paras, and textitem_t::str.

Referenced by free_html_label().

int html_inside ( node_t n,
pointf  p,
edge_t e 
)

int html_path ( node_t n,
port p,
int  side,
box rv,
int *  k 
)

Definition at line 741 of file htmltable.c.

References assert, ED_head_port, ED_tail_port, GD_rankdir, Agnode_t::graph, and ND_shape_info.

box* html_port ( node_t n,
char *  pname,
int *  sides 
)

Definition at line 710 of file htmltable.c.

References htmldata_t::box, HTML_TEXT, htmllabel_t::kind, lbl, ND_label, NULL, htmldata_t::sides, htmllabel_t::tbl, and htmllabel_t::u.

int make_html_label ( graph_t g,
textlabel_t lp,
void *  obj 
)

Definition at line 1729 of file htmltable.c.

References AGEDGE, AGGRAPH, AGNODE, agobjkind, agxbfree(), agxbinit(), BOTTOM, htmltxt_t::box, htmldata_t::box, boxof(), htmlfont_t::color, htmltbl_t::data, textlabel_t::dimen, FALSE, htmlenv_t::finfo, textlabel_t::fontcolor, textlabel_t::fontname, textlabel_t::fontsize, free(), htmlenv_t::g, GD_charset, textlabel_t::html, HTML_TBL, htmllabel_t::kind, lbl, LEFT, box::LL, htmlfont_t::name, NULL, htmlenv_t::obj, parseHTML(), htmldata_t::pencolor, RIGHT, Agraph_t::root, htmlfont_t::size, size_label(), SMALLBUF, htmllabel_t::tbl, textlabel_t::text, TOP, htmllabel_t::txt, textlabel_t::u, htmllabel_t::u, box::UR, pointf_s::x, point::x, pointf_s::y, and point::y.

Referenced by common_init_edge(), common_init_node(), and do_graph_label().

htmllabel_t* parseHTML ( char *  ,
int *  ,
int   
)

Definition at line 2270 of file htmlparse.c.

References agxbfree(), agxbinit(), sfont_t::cfont, clearHTMLlexer(), dtclose(), dtopen(), Dtqueue, htmlparse(), initHTMLlexer(), NULL, sfont_t::pfont, SMALLBUF, str, and yyparse().


Generated on Mon Mar 31 19:04:38 2008 for Graphviz by  doxygen 1.5.1