14 using vector = std::vector<table_row>;
37 table_row(
int h,
const std::shared_ptr<render_item>& row);
60 el_row = std::move(val.el_row);
66 using vector = std::vector<table_column>;
143 std::shared_ptr<render_item>
el;
183 el = std::move(val.el);
199 using rows = std::vector<std::vector<table_cell>>;
220 void begin_row(
const std::shared_ptr<render_item>&
row);
221 void add_cell(
const std::shared_ptr<render_item>& el);
241 int calc_table_width(
int block_width,
bool is_auto,
int& min_table_width,
int& max_table_width);
Definition css_length.h:22
void predef(int val)
Definition css_length.h:79
int & get(table_column &col) override
Definition table.cpp:581
int & get(table_column &col) override
Definition table.cpp:586
int & get(table_column &col) override
Definition table.cpp:591
~table_column_accessor()=default
virtual int & get(table_column &col)=0
void top_captions_height(int height)
Definition table.h:232
void begin_row(const std::shared_ptr< render_item > &row)
Definition table.cpp:28
int cols_count() const
Definition table.h:230
bool is_rowspanned(int r, int c)
Definition table.cpp:37
int rows_count() const
Definition table.h:229
rows m_cells
Definition table.h:203
int m_top_captions_height
Definition table.h:207
std::vector< std::shared_ptr< render_item > > m_captions
Definition table.h:206
table_row::vector m_rows
Definition table.h:205
int m_rows_count
Definition table.h:201
table_grid()
Definition table.h:211
void calc_horizontal_positions(const margins &table_borders, border_collapse bc, int bdr_space_x)
Definition table.cpp:419
table_row & row(int r)
Definition table.h:226
void calc_vertical_positions(const margins &table_borders, border_collapse bc, int bdr_space_y)
Definition table.cpp:451
int bottom_captions_height() const
Definition table.h:235
void distribute_max_width(int width, int start, int end)
Definition table.cpp:149
table_cell * cell(int t_col, int t_row)
Definition table.cpp:140
int calc_table_width(int block_width, bool is_auto, int &min_table_width, int &max_table_width)
Definition table.cpp:289
void add_cell(const std::shared_ptr< render_item > &el)
Definition table.cpp:6
void distribute_min_width(int width, int start, int end)
Definition table.cpp:155
table_column::vector m_columns
Definition table.h:204
void calc_rows_height(int blockHeight, int borderSpacingY)
Definition table.cpp:483
void finish()
Definition table.cpp:55
int m_cols_count
Definition table.h:202
table_column & column(int c)
Definition table.h:225
int top_captions_height() const
Definition table.h:233
std::vector< std::vector< table_cell > > rows
Definition table.h:199
std::vector< std::shared_ptr< render_item > > & captions()
Definition table.h:227
void distribute_width(int width, int start, int end)
Definition table.cpp:191
void bottom_captions_height(int height)
Definition table.h:234
int m_bottom_captions_height
Definition table.h:208
void clear()
Definition table.cpp:410
Definition background.h:12
border_collapse
Definition types.h:633
bool end(const css_token_vector &tokens, int index)
Definition gradient.cpp:78
int min_width
Definition table.h:146
int max_width
Definition table.h:148
table_cell(table_cell &&val) noexcept
Definition table.h:181
margins borders
Definition table.h:152
int rowspan
Definition table.h:145
int height
Definition table.h:151
int min_height
Definition table.h:147
int colspan
Definition table.h:144
int width
Definition table.h:150
std::shared_ptr< render_item > el
Definition table.h:143
table_cell()
Definition table.h:154
table_cell(const table_cell &val)
Definition table.h:167
int max_height
Definition table.h:149
css_length css_width
Definition table.h:71
int border_right
Definition table.h:73
int border_left
Definition table.h:72
int max_width
Definition table.h:69
std::vector< table_column > vector
Definition table.h:66
table_column()
Definition table.h:77
table_column(int min_w, int max_w)
Definition table.h:89
int right
Definition table.h:75
int left
Definition table.h:74
int min_width
Definition table.h:68
table_column(const table_column &val)
Definition table.h:101
int width
Definition table.h:70
table_row(const table_row &val)
Definition table.h:39
table_row(table_row &&val) noexcept
Definition table.h:51
int top
Definition table.h:20
std::vector< table_row > vector
Definition table.h:14
int border_top
Definition table.h:17
std::shared_ptr< render_item > el_row
Definition table.h:19
css_length css_height
Definition table.h:22
int border_bottom
Definition table.h:18
int height
Definition table.h:16
table_row()
Definition table.h:25
int bottom
Definition table.h:21
int min_height
Definition table.h:23
annotation col
Definition tag_strings.h:103