/* returns the maximum over all rows */
///
- int getWidthOfColumn(idx_type cell) const;
+ int columnWidth(idx_type cell) const;
///
- int getWidthOfTabular() const;
+ int width() const;
///
- int getAscentOfRow(row_type row) const;
+ int height() const;
///
- int getDescentOfRow(row_type row) const;
+ int rowAscent(row_type row) const;
///
- int getHeightOfTabular() const;
+ int rowDescent(row_type row) const;
///
- void setAscentOfRow(row_type row, int height);
+ void setRowAscent(row_type row, int height);
///
- void setDescentOfRow(row_type row, int height);
+ void setRowDescent(row_type row, int height);
///
- void setWidthOfCell(idx_type cell, int new_width);
+ void setCellWidth(idx_type cell, int new_width);
///
void setAllLines(idx_type cell, bool line);
///
///
docstring const getAlignSpecial(idx_type cell, int what) const;
///
- int getWidthOfCell(idx_type cell) const;
+ int cellWidth(idx_type cell) const;
///
int getBeginningOfTextInCell(idx_type cell) const;
///
///
idx_type getLastCellInRow(row_type row) const;
///
- idx_type getNumberOfCells() const;
+ idx_type cellCount() const;
///
idx_type numberOfCellsInRow(idx_type cell) const;
///
///
bool isPartOfMultiColumn(row_type row, col_type column) const;
///
- row_type row_of_cell(idx_type cell) const;
+ row_type cellRow(idx_type cell) const;
///
- col_type column_of_cell(idx_type cell) const;
+ col_type cellColumn(idx_type cell) const;
///
- col_type right_column_of_cell(idx_type cell) const;
+ col_type cellRightColumn(idx_type cell) const;
///
void setBookTabs(bool);
///
///
idx_type getLastCellBelow(idx_type cell) const;
///
- idx_type getCellNumber(row_type row, col_type column) const;
+ idx_type cellIndex(row_type row, col_type column) const;
///
void setUsebox(idx_type cell, BoxType);
///
///
idx_type getCellFromInset(Inset const * inset) const;
///
- row_type rows() const { return rows_; }
+ row_type rowCount() const { return row_info.size(); }
///
- col_type columns() const { return columns_;}
+ col_type columnCount() const { return column_info.size();}
///
void validate(LaTeXFeatures &) const;
///
///
idx_type cellno;
///
- int width_of_cell;
+ int width;
///
int multicolumn;
///
///
rowstruct();
///
- int ascent_of_row;
+ int ascent;
///
- int descent_of_row;
+ int descent;
///
bool top_line;
///
///
bool right_line;
///
- int width_of_column;
+ int width;
///
Length p_width;
///
///
typedef std::vector<columnstruct> column_vector;
- ///
- row_type rows_;
- ///
- col_type columns_;
///
idx_type numberofcells;
///
///
mutable cell_vvector cell_info;
///
- int width_of_tabular;
- ///
bool use_booktabs;
///
bool rotate;
void init(BufferParams const &, row_type rows_arg,
col_type columns_arg);
///
- void set_row_column_number_info();
+ void updateIndexes();
/// Returns true if a complete update is necessary, otherwise false
bool setWidthOfMulticolCell(idx_type cell, int new_width);
///
///
bool calculate_width_of_column_NMC(col_type column); // no multi cells
///
- void calculate_width_of_tabular();
- ///
- void delete_column(col_type column);
- ///
idx_type cells_in_multicolumn(idx_type cell) const;
///
BoxType useParbox(idx_type cell) const;
///
bool showInsetDialog(BufferView *) const;
/// number of cells
- size_t nargs() const { return tabular.getNumberOfCells(); }
+ size_t nargs() const { return tabular.cellCount(); }
///
boost::shared_ptr<InsetText const> cell(idx_type) const;
///
Inset * editXY(Cursor & cur, int x, int y);
/// can we go further down on mouse click?
bool descendable() const { return true; }
+ // Update the counters of this inset and of its contents
+ virtual void updateLabels(Buffer const &, ParIterator const &);
//
// Public structures and variables
int scroll() const { return scx_; }
private:
- virtual std::auto_ptr<Inset> doClone() const;
+ virtual Inset * clone() const;
///
void drawCellLines(frontend::Painter &, int x, int y, row_type row,