|
Graphviz
2.31.20130525.0447
|
#include <assert.h>#include "render.h"#include "htmltable.h"#include "agxbuf.h"#include "pointset.h"#include "intset.h"
Go to the source code of this file.
Data Structures | |
| struct | htmlenv_t |
| struct | htmlmap_data_t |
Defines | |
| #define | DEFAULT_BORDER 1 |
| #define | DEFAULT_CELLPADDING 2 |
| #define | DEFAULT_CELLSPACING 2 |
| #define | RESET(fld) if(obj->fld != save->fld) {free(obj->fld); obj->fld = save->fld;} |
| #define | SPLIT(x, n, s) (((x) - ((s)-1)*((n)-1)) / (n)) |
Functions | |
| void | emit_html_label (GVJ_t *job, htmllabel_t *lp, textlabel_t *tp) |
| void | free_html_font (htmlfont_t *fp) |
| void | free_html_data (htmldata_t *dp) |
| void | free_html_text (htmltxt_t *t) |
| void | free_html_img (htmlimg_t *ip) |
| void | free_html_label (htmllabel_t *lp, int root) |
| boxf * | html_port (node_t *n, char *pname, int *sides) |
| int | html_path (node_t *n, port *p, int side, boxf *rv, int *k) |
| void | sizeLinearArray (htmltbl_t *tbl) |
| char * | nToName (int c) |
| void | makeGraphs (htmltbl_t *tbl, graph_t *rowg, graph_t *colg) |
| void | setSizes (htmltbl_t *tbl, graph_t *rowg, graph_t *colg) |
| void | sizeArray (htmltbl_t *tbl) |
| int | make_html_label (void *obj, textlabel_t *lp) |
| #define DEFAULT_BORDER 1 |
Definition at line 41 of file htmltable.c.
| #define DEFAULT_CELLPADDING 2 |
Definition at line 42 of file htmltable.c.
| #define DEFAULT_CELLSPACING 2 |
Definition at line 43 of file htmltable.c.
| #define RESET | ( | fld | ) | if(obj->fld != save->fld) {free(obj->fld); obj->fld = save->fld;} |
Definition at line 368 of file htmltable.c.
| #define SPLIT | ( | x, | |
| n, | |||
| s | |||
| ) | (((x) - ((s)-1)*((n)-1)) / (n)) |
Definition at line 1206 of file htmltable.c.
Referenced by sizeLinearArray().
| void emit_html_label | ( | GVJ_t * | job, |
| htmllabel_t * | lp, | ||
| textlabel_t * | tp | ||
| ) |
Definition at line 679 of file htmltable.c.
References htmlenv_t::pos, textlabel_t::pos, htmlenv_t::finfo, htmlfont_t::color, textlabel_t::fontcolor, htmlfont_t::name, textlabel_t::fontname, htmlfont_t::size, textlabel_t::fontsize, htmlenv_t::imgscale, agget(), GVJ_s::obj, obj_state_s::u, obj_state_s::n, htmlenv_t::objid, obj_state_s::id, htmlenv_t::objid_set, NULL, htmllabel_t::kind, HTML_TBL, htmllabel_t::u, htmllabel_t::tbl, gvrender_set_style(), GVJ_s::gvc, GVC_s::defaultlinestyle, htmltbl_t::data, htmldata_t::pencolor, gvrender_set_pencolor(), DEFAULT_COLOR, htmllabel_t::txt, and free().
Referenced by emit_label().
| void free_html_data | ( | htmldata_t * | dp | ) |
Definition at line 725 of file htmltable.c.
References free(), htmldata_t::href, htmldata_t::port, htmldata_t::target, htmldata_t::id, htmldata_t::title, htmldata_t::bgcolor, and htmldata_t::pencolor.
| void free_html_font | ( | htmlfont_t * | fp | ) |
Definition at line 713 of file htmltable.c.
References htmlfont_t::cnt, htmlfont_t::name, free(), and htmlfont_t::color.
Referenced by free_html_text().
| void free_html_img | ( | htmlimg_t * | ip | ) |
Definition at line 764 of file htmltable.c.
References free(), and htmlimg_t::src.
Referenced by free_html_label().
| void free_html_label | ( | htmllabel_t * | lp, |
| int | root | ||
| ) |
Definition at line 805 of file htmltable.c.
References htmllabel_t::kind, HTML_TBL, htmllabel_t::u, htmllabel_t::tbl, HTML_IMAGE, free_html_img(), htmllabel_t::img, free_html_text(), htmllabel_t::txt, and free().
Referenced by free_label().
| void free_html_text | ( | htmltxt_t * | t | ) |
Definition at line 736 of file htmltable.c.
References htmltxt_t::paras, htmltxt_t::nparas, htextpara_t::items, htextpara_t::nitems, textpara_t::str, free(), textpara_t::font, free_html_font(), textpara_t::layout, and textpara_t::free_layout.
Referenced by free_html_label().
Definition at line 894 of file htmltable.c.
References ND_shape_info, assert, ED_tail_port, ED_head_port, GD_rankdir, GD_flip, BOTTOM, and TOP.
Definition at line 863 of file htmltable.c.
References lbl, ND_label, NULL, htmllabel_t::kind, HTML_TEXT, htmllabel_t::u, htmllabel_t::tbl, htmldata_t::box, and htmldata_t::sides.
| int make_html_label | ( | void * | obj, |
| textlabel_t * | lp | ||
| ) |
Definition at line 1976 of file htmltable.c.
References lbl, htmlenv_t::obj, agobjkind, AGRAPH, AGGRAPH, htmlenv_t::g, AGNODE, AGEDGE, htmlenv_t::finfo, htmlfont_t::size, textlabel_t::fontsize, htmlfont_t::name, textlabel_t::fontname, htmlfont_t::color, textlabel_t::fontcolor, htmlfont_t::flags, parseHTML(), textlabel_t::text, GD_charset, SMALLBUF, agxbinit(), textlabel_t::html, FALSE, textlabel_t::charset, CHAR_LATIN1, latin1ToUTF8(), htmlEntityUTF8(), free(), make_simple_label(), agxbfree(), htmllabel_t::kind, HTML_TBL, htmllabel_t::u, htmllabel_t::tbl, htmltbl_t::data, htmldata_t::pencolor, NULL, htmldata_t::box, boxf::UR, pointf_s::x, pointf_s::y, BOTTOM, RIGHT, TOP, LEFT, textlabel_t::dimen, boxf::LL, htmllabel_t::txt, htmltxt_t::box, and textlabel_t::u.
Referenced by make_label().
Definition at line 1314 of file htmltable.c.
References NULL, htmltbl_t::cc, agnode(), nToName(), TRUE, alloc_elist, htmltbl_t::rc, ND_in, ND_out, ND_next, GD_nlist, N_NEW, htmltbl_t::u, htmltbl_t::n, htmlcell_t::data, htmldata_t::box, boxf::UR, pointf_s::x, htmlcell_t::cspan, htmlcell_t::col, MAX, pointf_s::y, htmlcell_t::rspan, htmlcell_t::row, agfindnode, agedge(), ED_minlen, elist_append, and free().
Referenced by sizeArray().
| char* nToName | ( | int | c | ) |
Definition at line 1256 of file htmltable.c.
Referenced by makeGraphs().
Definition at line 1429 of file htmltable.c.
References GD_nlist, ND_next, htmltbl_t::heights, ND_rank, and htmltbl_t::widths.
Referenced by sizeArray().
| void sizeArray | ( | htmltbl_t * | tbl | ) |
Definition at line 1457 of file htmltable.c.
References htmltbl_t::rc, htmltbl_t::cc, sizeLinearArray(), htmltbl_t::heights, N_NEW, htmltbl_t::widths, agopen(), NIL, TRUE, AGDIGRAPH, makeGraphs(), rank(), INT_MAX, and setSizes().
| void sizeLinearArray | ( | htmltbl_t * | tbl | ) |
Definition at line 1214 of file htmltable.c.
References htmltbl_t::heights, N_NEW, htmltbl_t::rc, htmltbl_t::widths, htmltbl_t::cc, htmltbl_t::u, htmltbl_t::n, htmlcell_t::rspan, htmlcell_t::data, htmldata_t::box, boxf::UR, pointf_s::y, SPLIT, htmltbl_t::data, htmldata_t::space, MAX, htmlcell_t::cspan, pointf_s::x, htmlcell_t::row, and htmlcell_t::col.
Referenced by sizeArray().
1.7.5