Graphviz 13.1.3~dev.20250829.0113
|
#include <common/htmllex.h>
#include <common/htmltable.h>
#include <common/textspan.h>
#include <gvc/gvcext.h>
#include <util/agxbuf.h>
#include <util/list.h>
#include <util/strview.h>
#include <common/render.h>
#include <stdbool.h>
#include <util/alloc.h>
Go to the source code of this file.
Functions | |
static void | appendFItemList (htmlparserstate_t *html_state, agxbuf *ag) |
static void | appendFLineList (htmlparserstate_t *html_state, int v) |
static htmltxt_t * | mkText (htmlparserstate_t *html_state) |
static row_t * | lastRow (htmlparserstate_t *html_state) |
static void | addRow (htmlparserstate_t *html_state) |
static void | setCell (htmlparserstate_t *html_state, htmlcell_t *cp, void *obj, label_type_t kind) |
static void | cleanup (htmlparserstate_t *html_state) |
static void | pushFont (htmlparserstate_t *html_state, textfont_t *fp) |
static void | popFont (htmlparserstate_t *html_state) |
htmllabel_t * | parseHTML (char *txt, int *warn, htmlenv_t *env) |
|
static |
Definition at line 421 of file htmlparse.y.
References gv_alloc(), htmltbl_t::hrule, LIST_APPEND, htmltbl_t::p, htmltbl_t::rows, row_t::ruled, htmlparserstate_s::tblstack, and htmltbl_t::u.
|
static |
Definition at line 354 of file htmlparse.y.
References agxbdisown(), LIST_APPEND, LIST_BACK, and textspan_t::str.
|
static |
Definition at line 362 of file htmlparse.y.
References cnt(), textspan_t::font, gv_alloc(), gv_calloc(), gv_strdup(), htextspan_t::items, htextspan_t::just, LIST_APPEND, LIST_AT, LIST_BACK, LIST_CLEAR, LIST_SIZE, htextspan_t::nitems, and textspan_t::str.
Referenced by mkText().
|
static |
Definition at line 447 of file htmlparse.y.
References cleanTbl(), free_html_label(), htmlparserstate_s::lbl, LIST_CLEAR, LIST_FREE, NULL, htmltbl_t::p, htmltbl_t::prev, htmlparserstate_s::tblstack, and htmltbl_t::u.
|
static |
Definition at line 415 of file htmlparse.y.
References LIST_BACK, htmltbl_t::p, htmltbl_t::rows, htmlparserstate_s::tblstack, and htmltbl_t::u.
|
static |
Definition at line 392 of file htmlparse.y.
References appendFLineList(), cnt(), gv_alloc(), gv_calloc(), LIST_AT, LIST_CLEAR, LIST_IS_EMPTY, LIST_SIZE, htmltxt_t::nspans, htmltxt_t::spans, and UNSET_ALIGN.
htmllabel_t * parseHTML | ( | char * | txt, |
int * | warn, | ||
htmlenv_t * | env | ||
) |
Definition at line 500 of file htmlparse.y.
References agxbfree(), clearHTMLlexer(), free_hi(), free_ti(), htmlenv_t::g, GD_gvc, htmlparse(), initHTMLlexer(), LIST_FREE, LIST_PUSH_BACK, NULL, scanner, and str.
|
static |
Definition at line 490 of file htmlparse.y.
References LIST_POP_BACK.
|
static |
Definition at line 469 of file htmlparse.y.
References textfont_t::color, dtinsert, textfont_t::flags, htmlparserstate_s::gvc, LIST_BACK, LIST_PUSH_BACK, textfont_t::name, textfont_t::size, and GVC_s::textfont_dt.
|
static |
Definition at line 429 of file htmlparse.y.
References htmlcell_t::child, htmlcell_t::hruled, HTML_IMAGE, HTML_TEXT, htmllabel_t::img, htmllabel_t::kind, LIST_APPEND, LIST_BACK, htmltbl_t::p, htmltbl_t::rows, htmllabel_t::tbl, htmlparserstate_s::tblstack, htmllabel_t::txt, htmltbl_t::u, htmllabel_t::u, htmltbl_t::vrule, and htmlcell_t::vruled.
$<tbl> $ = $2 |
Definition at line 295 of file htmlparse.y.
$$ = $3 |
Definition at line 321 of file htmlparse.y.
cell $1 |
Definition at line 230 of file htmlparse.y.
cell $2 |
Definition at line 332 of file htmlparse.y.
fonttext __pad0__ |
Definition at line 211 of file htmlparse.y.
n_strike __pad10__ |
Definition at line 251 of file htmlparse.y.
underline __pad11__ |
Definition at line 254 of file htmlparse.y.
n_underline __pad12__ |
Definition at line 257 of file htmlparse.y.
overline __pad13__ |
Definition at line 260 of file htmlparse.y.
n_overline __pad14__ |
Definition at line 263 of file htmlparse.y.
sup __pad15__ |
Definition at line 266 of file htmlparse.y.
n_sup __pad16__ |
Definition at line 269 of file htmlparse.y.
sub __pad17__ |
Definition at line 272 of file htmlparse.y.
n_sub __pad18__ |
Definition at line 275 of file htmlparse.y.
br __pad19__ |
Definition at line 278 of file htmlparse.y.
text __pad1__ |
Definition at line 214 of file htmlparse.y.
string __pad20__ |
Definition at line 282 of file htmlparse.y.
table __pad21__ |
Definition at line 286 of file htmlparse.y.
fonttable __pad22__ |
Definition at line 307 of file htmlparse.y.
opt_space __pad23__ |
Definition at line 315 of file htmlparse.y.
rows __pad24__ |
Definition at line 319 of file htmlparse.y.
row __pad25__ |
Definition at line 324 of file htmlparse.y.
cells __pad26__ |
Definition at line 327 of file htmlparse.y.
cell __pad27__ |
Definition at line 332 of file htmlparse.y.
image __pad28__ |
Definition at line 338 of file htmlparse.y.
HR __pad29__ |
Definition at line 342 of file htmlparse.y.
textitem __pad2__ |
Definition at line 218 of file htmlparse.y.
VR __pad30__ |
Definition at line 346 of file htmlparse.y.
font __pad3__ |
Definition at line 230 of file htmlparse.y.
n_font __pad4__ |
Definition at line 233 of file htmlparse.y.
italic __pad5__ |
Definition at line 236 of file htmlparse.y.
n_italic __pad6__ |
Definition at line 239 of file htmlparse.y.
bold __pad7__ |
Definition at line 242 of file htmlparse.y.
n_bold __pad8__ |
Definition at line 245 of file htmlparse.y.
strike __pad9__ |
Definition at line 248 of file htmlparse.y.
br {appendFLineList(&scanner->parser,$1) |
Definition at line 219 of file htmlparse.y.
cells VR cell { $$ = $2 |
Definition at line 328 of file htmlparse.y.
table Syntax error |
Definition at line 288 of file htmlparse.y.
Referenced by addCase(), bindAction(), checkGuard(), compileProg(), deleteObj(), doFlags(), endString(), feasible_tree(), findBinding(), getDfltAttr(), getOptarg(), gettok(), getval(), gml_to_gv(), gml_to_gv(), grpmatch(), initDisc(), lockGraph(), lookup(), onematch(), openGPRState(), openOut(), pango_textlayout(), parseBracket(), parseKind(), parseOp(), parseProg(), parseXDotFOn(), resolve(), sameG(), scanArgs(), setDfltAttr(), setval(), strgrpmatch(), tclGdTextCmd(), writer(), and xargs().
Definition at line 294 of file htmlparse.y.
Referenced by fig_textspan(), gdgen_text(), glNewFont(), glNewFontFromParent(), glprintfglut(), lasi_textspan(), pango_textlayout(), print_bitmap_string(), printFontMap(), quartz_new_layout(), textspan_size(), tkgen_textspan(), and yyparse().
Definition at line 333 of file htmlparse.y.
cell HTML_TBL |
Definition at line 332 of file htmlparse.y.
Referenced by cleanCell(), emit_html_cell(), emit_html_label(), free_html_label(), heightOfLbl(), make_html_label(), portToCell(), pos_html_cell(), size_html_cell(), and yyparse().
T_cell image { setCell(&scanner->parser,$1,$2,HTML_IMAGE) |
Definition at line 334 of file htmlparse.y.
Referenced by gdiplus_loadimage_gdiplus(), gdiplusgen_begin_page(), gdiplusgen_end_job(), gdk_loadimage(), gdk_loadimage_cairo(), gdk_set_mimedata(), gdk_set_mimedata_from_file(), ImageViewer::open(), quartz_loadimage_quartz(), and quartzgen_end_job().
bold table n_bold { $$=$2 |
Definition at line 312 of file htmlparse.y.
Definition at line 308 of file htmlparse.y.
italic table n_italic { $$=$2 |
Definition at line 309 of file htmlparse.y.
overline table n_overline { $$=$2 |
Definition at line 311 of file htmlparse.y.
font text n_font italic text n_italic underline text n_underline overline text n_overline bold text n_bold sup text n_sup sub text n_sub strike text n_strike |
Definition at line 227 of file htmlparse.y.
underline table n_underline { $$=$2 |
Definition at line 310 of file htmlparse.y.
rows T_end_table opt_space |
Definition at line 297 of file htmlparse.y.
require define api prefix |
Definition at line 19 of file htmlparse.y.
$2 u p prev = scanner->parser.tblstack |
Definition at line 291 of file htmlparse.y.
Referenced by build_skeleton(), class2(), cleanup1(), convertSPtoRoute(), dfs(), interclexp(), listdelrec(), main(), main(), mkConstraintG(), mkCtrlPts(), mkTree(), post(), routesplines_(), setNStepsToLeaf(), and write_body().
rows HR row { $$ = $2 |
Definition at line 320 of file htmlparse.y.
Referenced by attach_edge_colors(), attached_clustering(), findCol(), Import_coord_clusters_from_dot(), makeMatrix(), matrix_get(), matrix_set(), and SparseMatrix_import_dot().
$2 u p rows = (rows_t){.dtor = free_ritem} |
Definition at line 292 of file htmlparse.y.
Referenced by cleanTbl(), and processTbl().
cleanup& scanner |
Definition at line 289 of file htmlparse.y.
Referenced by agconcat(), appendattr(), appendattr(), appendnode(), appendnode(), attrstmt(), attrstmt(), clearHTMLlexer(), closesubg(), closesubg(), concat(), concat(), edgerhs(), edgerhs(), endedge(), endedge(), endgraph(), endgraph(), endnode(), endnode(), endnode(), freestack(), freestack(), getedgeitems(), getedgeitems(), graph_error(), graph_error(), htmlerror(), htmllex(), htmllineno(), initHTMLlexer(), mkport(), mkport(), newedge(), newedge(), opensubg(), opensubg(), parseHTML(), read_input(), startgraph(), startgraph(), yydestruct(), yydestruct(), yyparse(), and yyparse().
textitem scanner parser str |
Definition at line 218 of file htmlparse.y.
Referenced by _write_canonstr(), aagerror(), agcanonStr(), aginternalmapinsert(), aginternalmaplookup(), agmapnametoid(), agstrcanon_buffer(), agstrcanon_bytes(), bboxPDF(), bind_shape(), bindedgeattr(), boxof(), colorxlate(), colorxlate(), common_init_edge(), common_init_node(), do_graph_label(), emit_background(), emit_cluster_colors(), emit_colors(), emit_once(), eol(), epsf_init(), eval(), exsplit(), exsub(), extokens(), fig_comment(), findPath(), finishNode(), free_html_text(), fullColor(), gdgen_text(), getNum(), getoutputbuffer(), getPenColor(), getPointFromStr(), glCompColorxlate(), gmlerror(), graphviz_unflatten(), gs_writer(), gvloadimage_select(), gvplugin_api(), gvplugin_list(), gvplugin_load(), gvrender_comment(), gvrender_select(), htmlEntity(), idmap(), init_job_viewport(), init_layering(), ioput(), ioputstr(), is_a_strong_cluster(), is_escape(), is_natural_number(), lasi_comment(), layer_index(), majorization(), make_label(), map_rec_port(), match(), memrchr(), mkAttr(), myiddisc_map(), neatoLayout(), neatoMode(), noClip(), on_gvprbuttonload_clicked(), parseAction(), parseBracket(), parseCase(), parseGuard(), parseHTML(), parseID(), parseKind(), parseProg(), pic_comment(), pov_comment(), psgen_comment(), psgen_textspan(), rankset_kind(), readc(), resolveColor(), safefile(), scan_graph_mode(), set_attr_object_type(), sffmtint(), show_gui_warning(), skipWS(), skipWS(), strcasestr(), strdup_and_subst_obj(), strdup_and_subst_obj0(), svg_comment(), svg_print_id_class(), tclGdTextCmd(), tkgen_comment(), unknown(), unknown(), unreadc(), update_columns(), user_init(), versionStr2Version(), write_canonstr(), write_plain(), and yyparse().
T_BR { $$ = $1 |
Definition at line 279 of file htmlparse.y.
Definition at line 335 of file htmlparse.y.
T_end_cell { $$ = $1 |
Definition at line 332 of file htmlparse.y.
Definition at line 324 of file htmlparse.y.
T_IMG { $$ = $1 |
Definition at line 339 of file htmlparse.y.
scanner parser tblstack = $2 |
Definition at line 293 of file htmlparse.y.
YYABORT |
Definition at line 289 of file htmlparse.y.