dillo
3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java). Fossies Dox: dillo-3.0.5.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) 
|
Go to the documentation of this file. 32 const char *tag,
int tagsize,
35 const char *tag,
int tagsize);
43 int32_t border = -1, cellspacing = -1, cellpadding = -1, bgcolor = -1;
47 border = isdigit(attrbuf[0]) ? strtol (attrbuf, NULL, 10) : 1;
49 cellspacing = strtol (attrbuf, NULL, 10);
51 BUG_MSG(
"<table> cellspacing attribute is obsolete.");
55 cellpadding = strtol (attrbuf, NULL, 10);
57 BUG_MSG(
"<table> cellpadding attribute is obsolete.");
80 if (cellspacing != -1) {
91 BUG_MSG(
"<table> width attribute is obsolete.");
105 BUG_MSG(
"<table> align attribute is obsolete.");
114 BUG_MSG(
"<table> bgcolor attribute is obsolete.");
141 if (cellpadding != -1) {
160 HT2TB(html)->addWidget (table, html->
style ());
166 S_TOP(html)->table = table;
176 int32_t bgcolor = -1;
180 switch (
S_TOP(html)->table_mode) {
182 _MSG(
"Invalid HTML syntax: <tr> outside <table>\n");
195 BUG_MSG(
"<tr> bgcolor attribute is obsolete.");
218 switch (
S_TOP(html)->table_mode) {
269 static int i_TABLE = -1;
302 int borderWidth, marginWidth;
308 collapseCellAttrs = *(html->
style ());
321 collapseTableAttrs = *tableStyle;
347 separateCellAttrs = *(html->
style ());
358 const char *tag,
int tagsize,
366 switch (
S_TOP(html)->table_mode) {
376 if (!
S_TOP(html)->cell_text_align_set) {
382 BUG_MSG(
"<t%c> nowrap attribute is obsolete.",
395 BUG_MSG(
"<t%c> width attribute is obsolete.",
407 BUG_MSG(
"<t%c> bgcolor attribute is obsolete.",
418 const char *tag,
int tagsize)
420 int colspan = 1, rowspan = 1;
424 switch (
S_TOP(html)->table_mode) {
426 BUG_MSG(
"<t%c> outside <table>.",
439 colspan = strtol(attrbuf, &invalid, 10);
440 if ((colspan < 0) || (attrbuf == invalid))
445 rowspan =
MAX(1, strtol (attrbuf, NULL, 10));
460 ((
dw::Table*)
S_TOP(html)->table)->addCell (col_tb, colspan, rowspan);
461 S_TOP(html)->textblock = html->
dw = col_tb;
CssLength CSS_CREATE_LENGTH(float v, CssLengthType t)
void Html_tag_open_th(DilloHtml *html, const char *tag, int tagsize)
A Widget for rendering tables.
CssLength a_Html_parse_length(DilloHtml *html, const char *attr)
lout::misc::SimpleVector< DilloHtmlState > * stack
A Widget for rendering text blocks, i.e. paragraphs or sequences of paragraphs.
static void Html_set_separate_border_model(DilloHtml *html, Widget *col_tb)
T * getRef(int i) const
Return the reference of one element.
void inheritBackgroundColor()
Use of the background color of the parent style as default. This is only used in table code to allow ...
void Html_tag_content_th(DilloHtml *html, const char *tag, int tagsize)
dw::core::style::Style * wordStyle()
static void Html_tag_open_table_cell(DilloHtml *html, const char *tag, int tagsize, dw::core::style::TextAlignType text_align)
BorderCollapse borderCollapse
const char * a_Html_get_attr(DilloHtml *html, const char *tag, int tagsize, const char *attrname)
static Style * create(StyleAttrs *attrs)
void Html_tag_open_tr(DilloHtml *html, const char *tag, int tagsize)
static void Html_table_set_border_model(DilloHtml *html, DilloHtmlTableBorderMode mode)
bool a_Html_tag_set_valign_attr(DilloHtml *html, const char *tag, int tagsize)
#define D_ASCII_TOLOWER(c)
StyleEngine * styleEngine
void Html_tag_open_td(DilloHtml *html, const char *tag, int tagsize)
void a_Html_tag_set_align_attr(DilloHtml *html, const char *tag, int tagsize)
void inheritNonCssHints()
Instruct StyleEngine to use the nonCssHints from parent element This is only used for tables where no...
int size() const
Return the number of elements put into this vector.
int32_t a_Html_color_parse(DilloHtml *html, const char *str, int32_t default_color)
void Html_tag_content_tr(DilloHtml *html, const char *tag, int tagsize)
static void Html_tag_content_table_cell(DilloHtml *html, const char *tag, int tagsize)
void setNonCssHint(CssPropertyName name, CssValueType type, CssPropertyValue value)
struct dw::core::style::StyleAttrs::@14 borderStyle
dw::core::style::Style * style()
int dStrAsciiCasecmp(const char *s1, const char *s2)
DilloHtmlTableBorderMode table_border_mode
struct dw::core::style::StyleAttrs::@13 borderColor
void Html_tag_open_table(DilloHtml *html, const char *tag, int tagsize)
static int Html_table_get_border_model(DilloHtml *html)
void Html_tag_content_td(DilloHtml *html, const char *tag, int tagsize)
void Html_tag_content_table(DilloHtml *html, const char *tag, int tagsize)
The core of Dw is defined in this namespace.
Dw is in this namespace, or sub namespaces of this one.
Anything related to Dillo Widget styles is defined here.
DilloHtmlDocumentType DocType
int a_Html_tag_index(const char *tag)
static void Html_set_collapsing_border_model(DilloHtml *html, Widget *col_tb)