Graphviz
2.41.20171026.1811
|
#include <assert.h>
#include "render.h"
#include "htmltable.h"
#include "agxbuf.h"
#include "pointset.h"
#include "intset.h"
#include "cdt.h"
Go to the source code of this file.
Data Structures | |
struct | htmlmap_data_t |
Macros | |
#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_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 42 of file htmltable.c.
#define DEFAULT_CELLPADDING 2 |
Definition at line 43 of file htmltable.c.
#define DEFAULT_CELLSPACING 2 |
Definition at line 44 of file htmltable.c.
#define RESET | ( | fld | ) | if(obj->fld != save->fld) {free(obj->fld); obj->fld = save->fld;} |
Definition at line 419 of file htmltable.c.
Definition at line 1328 of file htmltable.c.
Referenced by sizeLinearArray().
void emit_html_label | ( | GVJ_t * | job, |
htmllabel_t * | lp, | ||
textlabel_t * | tp | ||
) |
Definition at line 747 of file htmltable.c.
References agget(), textfont_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_set_pencolor(), gvrender_set_style(), HTML_TBL, obj_state_s::id, htmlenv_t::imgscale, htmllabel_t::kind, obj_state_s::n, textfont_t::name, NULL, GVJ_s::obj, htmlenv_t::objid, htmlenv_t::objid_set, htmldata_t::pencolor, textlabel_t::pos, htmlenv_t::pos, textfont_t::size, textlabel_t::space, htmllabel_t::tbl, htmllabel_t::txt, htmllabel_t::u, obj_state_s::u, textlabel_t::valign, and pointf_s::y.
Referenced by emit_label().
void free_html_data | ( | htmldata_t * | dp | ) |
Definition at line 794 of file htmltable.c.
References htmldata_t::bgcolor, htmldata_t::href, htmldata_t::id, htmldata_t::pencolor, htmldata_t::port, htmldata_t::target, and htmldata_t::title.
void free_html_img | ( | htmlimg_t * | ip | ) |
Definition at line 831 of file htmltable.c.
References htmlimg_t::src.
Referenced by free_html_label().
void free_html_label | ( | htmllabel_t * | lp, |
int | root | ||
) |
Definition at line 870 of file htmltable.c.
References 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 * | t | ) |
Definition at line 805 of file htmltable.c.
References textspan_t::free_layout, htextspan_t::items, textspan_t::layout, htextspan_t::nitems, htmltxt_t::nspans, htmltxt_t::spans, and textspan_t::str.
Referenced by free_html_label().
Definition at line 959 of file htmltable.c.
References assert, BOTTOM, ED_head_port, ED_tail_port, GD_flip, GD_rankdir, INSIDE, ND_shape_info, and TOP.
Definition at line 928 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 | ( | void * | obj, |
textlabel_t * | lp | ||
) |
Definition at line 2057 of file htmltable.c.
References AGEDGE, aghead(), AGNODE, agobjkind(), AGRAPH, agraphof(), agxbfree(), agxbinit(), BOTTOM, htmltxt_t::box, htmldata_t::box, CHAR_LATIN1, textlabel_t::charset, textfont_t::color, htmltbl_t::data, textlabel_t::dimen, FALSE, htmlenv_t::finfo, textfont_t::flags, textlabel_t::fontcolor, textlabel_t::fontname, textlabel_t::fontsize, htmlenv_t::g, GD_gvc, textlabel_t::html, HTML_TBL, htmlEntityUTF8(), htmllabel_t::kind, latin1ToUTF8(), lbl, LEFT, boxf::LL, make_simple_label(), textfont_t::name, NULL, htmlenv_t::obj, parseHTML(), htmldata_t::pencolor, RIGHT, Agraph_s::root, textfont_t::size, SMALLBUF, htmllabel_t::tbl, textlabel_t::text, TOP, htmllabel_t::txt, htmllabel_t::u, textlabel_t::u, boxf::UR, pointf_s::x, and pointf_s::y.
Referenced by make_label().
Definition at line 1456 of file htmltable.c.
References agbindrec(), agfindnode, agnode(), alloc_elist, htmldata_t::box, htmltbl_t::cc, htmlcell_t::col, htmlcell_t::cspan, htmlcell_t::data, GD_nlist, htmltbl_t::n, ND_in, ND_next, ND_out, nToName(), NULL, htmltbl_t::rc, htmlcell_t::row, htmlcell_t::rspan, TRUE, htmltbl_t::u, boxf::UR, pointf_s::x, and pointf_s::y.
Referenced by sizeArray().
char* nToName | ( | int | c | ) |
Definition at line 1378 of file htmltable.c.
Referenced by makeGraphs().
Definition at line 1513 of file htmltable.c.
References GD_nlist, htmltbl_t::heights, ND_next, ND_rank, and htmltbl_t::widths.
Referenced by sizeArray().
void sizeArray | ( | htmltbl_t * | tbl | ) |
Definition at line 1541 of file htmltable.c.
References agbindrec(), agopen(), Agstrictdirected, htmltbl_t::cc, htmltbl_t::heights, INT_MAX, makeGraphs(), N_NEW, NIL, rank(), htmltbl_t::rc, setSizes(), sizeLinearArray(), TRUE, and htmltbl_t::widths.
void sizeLinearArray | ( | htmltbl_t * | tbl | ) |
Definition at line 1336 of file htmltable.c.
References htmldata_t::box, htmltbl_t::cc, htmlcell_t::col, htmlcell_t::cspan, htmltbl_t::data, htmlcell_t::data, htmltbl_t::heights, MAX, htmltbl_t::n, N_NEW, htmltbl_t::rc, htmlcell_t::row, htmlcell_t::rspan, htmldata_t::space, SPLIT, htmltbl_t::u, boxf::UR, htmltbl_t::widths, pointf_s::x, and pointf_s::y.
Referenced by sizeArray().