*
* LyX, The Document Processor
*
- * Copyright 2000 The LyX Team.
+ * Copyright 2000-2001 The LyX Team.
*
* @author: Jürgen Vigna
*
///
LyXTabular & operator=(LyXTabular const &);
///
- LyXTabular * Clone(InsetTabular *);
+ LyXTabular * clone(InsetTabular *);
/// Returns true if there is a topline, returns false if not
bool TopLine(int cell, bool onlycolumn = false) const;
bool LeftAlreadyDrawed(int cell) const;
///
bool IsLastRow(int cell) const;
-
+
///
- int GetAdditionalHeight(int cell) const;
+ int GetAdditionalHeight(int row) const;
///
int GetAdditionalWidth(int cell) const;
/// Returns true if a complete update is necessary, otherwise false
bool SetAllLines(int cell, bool line);
/// Returns true if a complete update is necessary, otherwise false
- bool SetTopLine(int cell, bool line, bool onlycolumn=false);
+ bool SetTopLine(int cell, bool line, bool onlycolumn = false);
/// Returns true if a complete update is necessary, otherwise false
- bool SetBottomLine(int cell, bool line, bool onlycolumn=false);
+ bool SetBottomLine(int cell, bool line, bool onlycolumn = false);
/// Returns true if a complete update is necessary, otherwise false
- bool SetLeftLine(int cell, bool line, bool onlycolumn=false);
+ bool SetLeftLine(int cell, bool line, bool onlycolumn = false);
/// Returns true if a complete update is necessary, otherwise false
- bool SetRightLine(int cell, bool line, bool onlycolumn=false);
+ bool SetRightLine(int cell, bool line, bool onlycolumn = false);
/// Returns true if a complete update is necessary, otherwise false
- bool SetAlignment(int cell, LyXAlignment align, bool onlycolumn = false);
+ bool SetAlignment(int cell, LyXAlignment align,
+ bool onlycolumn = false);
/// Returns true if a complete update is necessary, otherwise false
- bool SetVAlignment(int cell, VAlignment align, bool onlycolumn = false);
+ bool SetVAlignment(int cell, VAlignment align,
+ bool onlycolumn = false);
///
bool SetColumnPWidth(int cell, string const & width);
///
// helper function for Latex returns number of newlines
///
int AsciiTopHLine(std::ostream &, int row,
- std::vector<unsigned int> const &) const;
+ std::vector<unsigned int> const &) const;
///
int AsciiBottomHLine(std::ostream &, int row,
- std::vector<unsigned int> const &) const;
+ std::vector<unsigned int> const &) const;
///
- int AsciiPrintCell(Buffer const *, std::ostream &, int cell, int row,
- int column, std::vector<unsigned int> const &) const;
+ int AsciiPrintCell(Buffer const *, std::ostream &,
+ int cell, int row, int column,
+ std::vector<unsigned int> const &) const;
///
int Ascii(Buffer const *, std::ostream &) const;
///
InsetTabular * owner() const { return owner_; }
///
void Validate(LaTeXFeatures &) const;
-
-private: //////////////////////////////////////////////////////////////////
+ ///
+ std::vector<string> const getLabelList() const;
+ ///
+ mutable int cur_cell;
+private:
///
struct cellstruct {
///
int endlastfoot;
///
InsetTabular * owner_;
-
+
///
- void Init(int columns_arg, int rows_arg);
+ void Init(int columns_arg, int rows_arg, LyXTabular const * lt = 0);
///
void Reinit();
///