Graphviz 13.0.0~dev.20241220.2304
|
#include <cgraph/list.h>
#include <common/htmllex.h>
#include <common/htmltable.h>
#include <common/textspan.h>
#include <gvc/gvcext.h>
#include <util/agxbuf.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 429 of file htmlparse.y.
References gv_alloc(), htmltbl_t::hrule, htmltbl_t::p, htmltbl_t::rows, row_t::ruled, htmlparserstate_s::tblstack, and htmltbl_t::u.
|
static |
Definition at line 360 of file htmlparse.y.
References agxbdisown(), htmlparserstate_s::fitemList, htmlparserstate_s::fontstack, and textspan_t::str.
|
static |
Definition at line 368 of file htmlparse.y.
References cnt(), htmlparserstate_s::fitemList, textspan_t::font, htmlparserstate_s::fontstack, htmlparserstate_s::fspanList, gv_alloc(), gv_calloc(), gv_strdup(), htextspan_t::items, htextspan_t::just, htextspan_t::nitems, and textspan_t::str.
Referenced by mkText().
|
static |
Definition at line 456 of file htmlparse.y.
References cleanTbl(), htmlparserstate_s::fitemList, htmlparserstate_s::fontstack, free_html_label(), htmlparserstate_s::fspanList, htmlparserstate_s::lbl, NULL, htmltbl_t::p, htmltbl_t::prev, htmlparserstate_s::tblstack, and htmltbl_t::u.
|
static |
Definition at line 423 of file htmlparse.y.
References htmltbl_t::p, htmltbl_t::rows, htmlparserstate_s::tblstack, and htmltbl_t::u.
|
static |
Definition at line 399 of file htmlparse.y.
References appendFLineList(), cnt(), htmlparserstate_s::fitemList, htmlparserstate_s::fspanList, gv_alloc(), gv_calloc(), htmltxt_t::nspans, htmltxt_t::spans, and UNSET_ALIGN.
htmllabel_t * parseHTML | ( | char * | txt, |
int * | warn, | ||
htmlenv_t * | env | ||
) |
Definition at line 509 of file htmlparse.y.
References agxbfree(), clearHTMLlexer(), htmlenv_t::g, GD_gvc, htmlparse(), initHTMLlexer(), NULL, scanner, and str.
|
static |
Definition at line 499 of file htmlparse.y.
References htmlparserstate_s::fontstack.
|
static |
Definition at line 478 of file htmlparse.y.
References textfont_t::color, dtinsert, textfont_t::flags, htmlparserstate_s::fontstack, htmlparserstate_s::gvc, textfont_t::name, textfont_t::size, and GVC_s::textfont_dt.
|
static |
Definition at line 437 of file htmlparse.y.
References htmlcell_t::child, htmlcell_t::hruled, HTML_IMAGE, HTML_TEXT, htmllabel_t::img, htmllabel_t::kind, htmltbl_t::p, row, htmltbl_t::rows, row_t::rp, 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 301 of file htmlparse.y.
$$ = $3 |
Definition at line 327 of file htmlparse.y.
cell $1 |
Definition at line 236 of file htmlparse.y.
cell $2 |
Definition at line 338 of file htmlparse.y.
fonttext __pad0__ |
Definition at line 217 of file htmlparse.y.
n_strike __pad10__ |
Definition at line 257 of file htmlparse.y.
underline __pad11__ |
Definition at line 260 of file htmlparse.y.
n_underline __pad12__ |
Definition at line 263 of file htmlparse.y.
overline __pad13__ |
Definition at line 266 of file htmlparse.y.
n_overline __pad14__ |
Definition at line 269 of file htmlparse.y.
sup __pad15__ |
Definition at line 272 of file htmlparse.y.
n_sup __pad16__ |
Definition at line 275 of file htmlparse.y.
sub __pad17__ |
Definition at line 278 of file htmlparse.y.
n_sub __pad18__ |
Definition at line 281 of file htmlparse.y.
br __pad19__ |
Definition at line 284 of file htmlparse.y.
text __pad1__ |
Definition at line 220 of file htmlparse.y.
string __pad20__ |
Definition at line 288 of file htmlparse.y.
table __pad21__ |
Definition at line 292 of file htmlparse.y.
fonttable __pad22__ |
Definition at line 313 of file htmlparse.y.
opt_space __pad23__ |
Definition at line 321 of file htmlparse.y.
rows __pad24__ |
Definition at line 325 of file htmlparse.y.
row __pad25__ |
Definition at line 330 of file htmlparse.y.
cells __pad26__ |
Definition at line 333 of file htmlparse.y.
cell __pad27__ |
Definition at line 338 of file htmlparse.y.
image __pad28__ |
Definition at line 344 of file htmlparse.y.
HR __pad29__ |
Definition at line 348 of file htmlparse.y.
textitem __pad2__ |
Definition at line 224 of file htmlparse.y.
VR __pad30__ |
Definition at line 352 of file htmlparse.y.
font __pad3__ |
Definition at line 236 of file htmlparse.y.
n_font __pad4__ |
Definition at line 239 of file htmlparse.y.
italic __pad5__ |
Definition at line 242 of file htmlparse.y.
n_italic __pad6__ |
Definition at line 245 of file htmlparse.y.
bold __pad7__ |
Definition at line 248 of file htmlparse.y.
n_bold __pad8__ |
Definition at line 251 of file htmlparse.y.
strike __pad9__ |
Definition at line 254 of file htmlparse.y.
br {appendFLineList(&scanner->parser,$1) |
Definition at line 225 of file htmlparse.y.
cells VR cell { $$ = $2 |
Definition at line 334 of file htmlparse.y.
table Syntax error |
Definition at line 294 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(), parseArgs(), parseBracket(), parseKind(), parseOp(), parseProg(), parseXDotFOn(), resolve(), sameG(), scanArgs(), setDfltAttr(), setval(), strgrpmatch(), SWIG_Python_TypeErrorOccurred(), tclGdTextCmd(), and xargs().
$2 font = *sfont_back(&scanner->parser.fontstack) |
Definition at line 300 of file htmlparse.y.
Referenced by fig_textspan(), gdgen_text(), glNewFont(), glNewFontFromParent(), glprintfglut(), lasi_textspan(), pango_textlayout(), print_bitmap_string(), printFontMap(), textspan_size(), tkgen_textspan(), and yyparse().
Definition at line 339 of file htmlparse.y.
cell HTML_TBL |
Definition at line 338 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 340 of file htmlparse.y.
Referenced by gdiplus_loadimage_gdiplus(), gdiplusgen_begin_page(), gdiplusgen_end_job(), ImageViewer::open(), quartz_loadimage_quartz(), and quartzgen_end_job().
bold table n_bold { $$=$2 |
Definition at line 318 of file htmlparse.y.
Definition at line 314 of file htmlparse.y.
italic table n_italic { $$=$2 |
Definition at line 315 of file htmlparse.y.
overline table n_overline { $$=$2 |
Definition at line 317 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 233 of file htmlparse.y.
underline table n_underline { $$=$2 |
Definition at line 316 of file htmlparse.y.
rows T_end_table opt_space |
Definition at line 303 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 297 of file htmlparse.y.
Referenced by build_skeleton(), class2(), convertSPtoRoute(), dfs(), interclexp(), listdelrec(), main(), main(), mkConstraintG(), mkCtrlPts(), mkTree(), post(), routesplines_(), setNStepsToLeaf(), and write_body().
rows HR row { $$ = $2 |
Definition at line 326 of file htmlparse.y.
Referenced by attach_edge_colors(), attached_clustering(), findCol(), Import_coord_clusters_from_dot(), makeMatrix(), setCell(), setCell(), and SparseMatrix_import_dot().
$2 u p rows = (rows_t){0} |
Definition at line 298 of file htmlparse.y.
Referenced by cleanTbl(), and processTbl().
cleanup& scanner |
Definition at line 295 of file htmlparse.y.
Referenced by clearHTMLlexer(), htmlerror(), htmllex(), htmllineno(), initHTMLlexer(), parseHTML(), yydestruct(), and yyparse().
textitem scanner parser str |
Definition at line 224 of file htmlparse.y.
Referenced by _write_canonstr(), aagerror(), aagerror(), agcanon(), agcanonStr(), aginternalmapinsert(), aginternalmaplookup(), agmapnametoid(), 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(), fullColor(), gdgen_text(), getNum(), getoutputbuffer(), getPenColor(), getPointFromStr(), glCompColorxlate(), gmlerror(), graphviz_unflatten(), gvloadimage_select(), gvplugin_api(), gvplugin_list(), gvplugin_load(), gvrender_comment(), gvrender_select(), htmlEntity(), idmap(), init_job_viewport(), init_layering(), ioput(), ioputstr(), ioputstr(), 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(), nxtc(), on_gvprbuttonload_clicked(), parseAction(), parseBracket(), parseCase(), parseGuard(), parseHTML(), parseID(), parseKind(), parseProg(), pic_comment(), pov_comment(), psgen_comment(), psgen_textspan(), rankset_kind(), readc(), resolveColor(), Ruby_Format_TypeError(), 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(), SWIG_Guile_scm2newstr(), SWIG_Lua_dostring(), SWIG_Lua_pusherrstring(), SWIG_Python_TypeError(), SWIG_PyUnicode_AsUTF8AndSize(), swig_varlink_str(), tclGdTextCmd(), tkgen_comment(), unknown(), unknown(), unreadc(), update_columns(), user_init(), versionStr2Version(), write_canonstr(), and write_plain().
T_BR { $$ = $1 |
Definition at line 285 of file htmlparse.y.
Definition at line 341 of file htmlparse.y.
T_end_cell { $$ = $1 |
Definition at line 338 of file htmlparse.y.
Definition at line 330 of file htmlparse.y.
T_IMG { $$ = $1 |
Definition at line 345 of file htmlparse.y.
scanner parser tblstack = $2 |
Definition at line 299 of file htmlparse.y.
YYABORT |
Definition at line 295 of file htmlparse.y.