#include "lyxlex.h"
#include "LString.h"
+#include "insets/insettext.h"
class InsetTabular;
-class InsetText;
class LaTeXFeatures;
+class Buffer;
/* The features the text class offers for tables */
LyXTabular(InsetTabular *, LyXTabular const &);
///
explicit
- LyXTabular(InsetTabular *, LyXLex & lex);
+ LyXTabular(Buffer const *, InsetTabular *, LyXLex & lex);
///
~LyXTabular();
///
int GetDescentOfRow(int row) const;
///
int GetHeightOfTabular() const;
- ///
- void SetAscentOfRow(int row, int height);
- ///
- void SetDescentOfRow(int row, int height);
+ /// Returns true if a complete update is necessary, otherwise false
+ bool SetAscentOfRow(int row, int height);
+ /// Returns true if a complete update is necessary, otherwise false
+ bool SetDescentOfRow(int row, int height);
/// Returns true if a complete update is necessary, otherwise false
bool SetWidthOfCell(int cell, int new_width);
/// Returns true if a complete update is necessary, otherwise false
///
int NumberOfCellsInRow(int cell) const;
///
- void Write(std::ostream &) const;
+ void Write(Buffer const *, std::ostream &) const;
///
- void Read(LyXLex &);
+ void Read(Buffer const *, LyXLex &);
///
void OldFormatRead(LyXLex &, string const &);
///
int TeXCellPreamble(std::ostream &, int cell) const;
int TeXCellPostamble(std::ostream &, int cell) const;
///
- int Latex(std::ostream &, bool, bool) const;
+ int Latex(Buffer const *, std::ostream &, bool, bool) const;
///
int DocBookEndOfCell(std::ostream &, int cell, int & depth) const;
#if 0
///
cellstruct();
///
+#ifdef INSET_POINTER
~cellstruct();
///
cellstruct(cellstruct const &);
///
cellstruct & operator=(cellstruct const &);
+#endif
///
int cellno;
///
///
string p_width; // this is only set for multicolumn!!!
///
- InsetText * inset;
+ InsetText inset;
};
typedef std::vector<cellstruct> cell_vector;
typedef std::vector<cell_vector> cell_vvector;