Dillo v3.1.1-99-gf3103cc4
Loading...
Searching...
No Matches
table.cc File Reference

Table parsing functions. More...

#include "table.hh"
#include "html_common.hh"
#include "dw/style.hh"
#include "dw/textblock.hh"
#include "dw/table.hh"
#include "dw/simpletablecell.hh"
#include "prefs.h"
#include "msg.h"
#include "css.hh"
Include dependency graph for table.cc:

Go to the source code of this file.

Functions

static void Html_tag_open_table_cell (DilloHtml *html, const char *tag, int tagsize, dw::core::style::TextAlignType text_align)
 
static void Html_tag_content_table_cell (DilloHtml *html, const char *tag, int tagsize)
 
void Html_tag_open_table (DilloHtml *html, const char *tag, int tagsize)
 
void Html_tag_content_table (DilloHtml *html, const char *tag, int tagsize)
 
void Html_tag_open_tr (DilloHtml *html, const char *tag, int tagsize)
 
void Html_tag_content_tr (DilloHtml *html, const char *tag, int tagsize)
 
void Html_tag_open_td (DilloHtml *html, const char *tag, int tagsize)
 
void Html_tag_content_td (DilloHtml *html, const char *tag, int tagsize)
 
void Html_tag_open_tbody (DilloHtml *html, const char *tag, int tagsize)
 
void Html_tag_content_tbody (DilloHtml *html, const char *tag, int tagsize)
 
void Html_tag_open_tfoot (DilloHtml *html, const char *tag, int tagsize)
 
void Html_tag_open_thead (DilloHtml *html, const char *tag, int tagsize)
 
void Html_tag_open_th (DilloHtml *html, const char *tag, int tagsize)
 
void Html_tag_content_th (DilloHtml *html, const char *tag, int tagsize)
 
static int Html_table_get_border_model (DilloHtml *html)
 The table border model is stored in the table's stack item.
 
static void Html_table_set_border_model (DilloHtml *html, DilloHtmlTableBorderMode mode)
 Set current table's border model.
 
static void Html_set_collapsing_border_model (DilloHtml *html, Widget *col_tb)
 
static void Html_set_separate_border_model (DilloHtml *html, Widget *col_tb)
 Adjust style for separate border model.
 

Detailed Description

Table parsing functions.

Definition in file table.cc.

Function Documentation

◆ Html_set_collapsing_border_model()

◆ Html_set_separate_border_model()

static void Html_set_separate_border_model ( DilloHtml html,
Widget col_tb 
)
static

Adjust style for separate border model.

(Dw uses this model internally).

Definition at line 374 of file table.cc.

References dw::core::style::Style::create(), dw::core::style::StyleAttrs::margin, dw::core::Widget::setStyle(), dw::core::style::Box::setVal(), and DilloHtml::style().

Referenced by Html_tag_content_table_cell().

◆ Html_table_get_border_model()

static int Html_table_get_border_model ( DilloHtml html)
static

◆ Html_table_set_border_model()

static void Html_table_set_border_model ( DilloHtml html,
DilloHtmlTableBorderMode  mode 
)
static

◆ Html_tag_content_table()

void Html_tag_content_table ( DilloHtml html,
const char *  tag,
int  tagsize 
)

◆ Html_tag_content_table_cell()

◆ Html_tag_content_tbody()

void Html_tag_content_tbody ( DilloHtml html,
const char *  tag,
int  tagsize 
)

Definition at line 260 of file table.cc.

◆ Html_tag_content_td()

void Html_tag_content_td ( DilloHtml html,
const char *  tag,
int  tagsize 
)

Definition at line 248 of file table.cc.

References Html_tag_content_table_cell().

◆ Html_tag_content_th()

void Html_tag_content_th ( DilloHtml html,
const char *  tag,
int  tagsize 
)

Definition at line 287 of file table.cc.

References Html_tag_content_table_cell().

◆ Html_tag_content_tr()

void Html_tag_content_tr ( DilloHtml html,
const char *  tag,
int  tagsize 
)

◆ Html_tag_open_table()

◆ Html_tag_open_table_cell()

◆ Html_tag_open_tbody()

void Html_tag_open_tbody ( DilloHtml html,
const char *  tag,
int  tagsize 
)

Definition at line 256 of file table.cc.

◆ Html_tag_open_td()

void Html_tag_open_td ( DilloHtml html,
const char *  tag,
int  tagsize 
)

Definition at line 242 of file table.cc.

References Html_tag_open_table_cell(), and dw::core::style::TEXT_ALIGN_LEFT.

◆ Html_tag_open_tfoot()

void Html_tag_open_tfoot ( DilloHtml html,
const char *  tag,
int  tagsize 
)

Definition at line 267 of file table.cc.

◆ Html_tag_open_th()

void Html_tag_open_th ( DilloHtml html,
const char *  tag,
int  tagsize 
)

Definition at line 281 of file table.cc.

References Html_tag_open_table_cell(), and dw::core::style::TEXT_ALIGN_CENTER.

◆ Html_tag_open_thead()

void Html_tag_open_thead ( DilloHtml html,
const char *  tag,
int  tagsize 
)

Definition at line 274 of file table.cc.

◆ Html_tag_open_tr()