static const idx_type npos = static_cast<idx_type>(-1);
/// constructor
- Tabular(Buffer const &, col_type columns_arg, row_type rows_arg);
+ Tabular(Buffer &, col_type columns_arg, row_type rows_arg);
/// Returns true if there is a topline, returns false if not
bool topLine(idx_type cell) const;
class CellData {
public:
///
- CellData(Buffer const &);
+ CellData(Buffer &);
///
CellData(CellData const &);
///
ltType endlastfoot;
///
- void init(Buffer const &, row_type rows_arg,
+ void init(Buffer &, row_type rows_arg,
col_type columns_arg);
///
void updateIndexes();
int docbookRow(odocstream & os, row_type, OutputParams const &) const;
/// change associated Buffer
- void setBuffer(Buffer const & buffer) { buffer_ = &buffer; }
+ void setBuffer(Buffer & buffer);
/// retrieve associated Buffer
- Buffer const & buffer() const { return *buffer_; }
+ Buffer & buffer() const { return *buffer_; }
private:
- Buffer const * buffer_;
+ Buffer * buffer_;
}; // Tabular
{
public:
///
- InsetTableCell(Buffer const & buf);
+ InsetTableCell(Buffer & buf);
///
InsetCode lyxCode() const { return CELL_CODE; }
///
{
public:
///
- InsetTabular(Buffer const &, row_type rows = 1,
+ InsetTabular(Buffer &, row_type rows = 1,
col_type columns = 1);
///
~InsetTabular();
+ ///
+ void setBuffer(Buffer & buffer);
+
///
static void string2params(std::string const &, InsetTabular &);
///