boost::shared_ptr<InsetTableCell>) const;
/// Search for \param inset in the tabular, with the
///
- idx_type cellFromInset(Inset const * inset) const;
- ///
void validate(LaTeXFeatures &) const;
- ///
//private:
+ // FIXME Now that cells have an InsetTableCell as their insets, rather
+ // than an InsetText, it'd be possible to reverse the relationship here,
+ // so that cell_vector was a vector<InsetTableCell> rather than a
+ // vector<CellData>, and an InsetTableCell had a CellData as a member,
+ // or perhaps just had its members as members.
///
class CellData {
public:
///
- CellData(Buffer const &, Tabular const &);
+ CellData(Buffer const &);
///
CellData(CellData const &);
///
{
public:
///
- InsetTableCell(Buffer const & buf,
- Tabular::CellData const * cd, Tabular const * t);
+ InsetTableCell(Buffer const & buf);
///
InsetCode lyxCode() const { return CELL_CODE; }
///
///
virtual bool neverIndent() { return true; }
///
- void setCellData(Tabular::CellData const * cd) { cell_data_ = cd; }
- ///
- void setTabular(Tabular const * t) { table_ = t; }
+ void toggleFixedWidth(bool fw) { isFixedWidth = fw; }
private:
/// unimplemented
InsetTableCell();
/// unimplemented
void operator=(InsetTableCell const &);
-
- ///
- Tabular::CellData const * cell_data_;
- ///
- Tabular const * table_;
+ ///
+ bool isFixedWidth;
};