*
* Copyright 2000 The LyX Team.
*
+ * @author: Jürgen Vigna
+ *
* ====================================================== */
#ifndef TABULAR_H
#define TABULAR_H
LYX_VALIGN_CENTER = 2
};
+ enum BoxType {
+ ///
+ BOX_NONE = 0,
+ ///
+ BOX_PARBOX = 1,
+ ///
+ BOX_MINIPAGE = 2
+ };
+
/* konstruktor */
///
LyXTabular(InsetTabular *, int columns_arg, int rows_arg);
///
bool IsLongTabular() const;
///
- void SetRotateTabular(int what);
+ void SetRotateTabular(bool);
///
bool GetRotateTabular() const;
///
- void SetRotateCell(int cell, int what);
+ void SetRotateCell(int cell, bool);
///
bool GetRotateCell(int cell) const;
///
///
int GetCellNumber(int row, int column) const;
///
- void SetUsebox(int cell, int what);
+ void SetUsebox(int cell, BoxType);
///
int GetUsebox(int cell) const;
//
struct cellstruct {
///
cellstruct();
-#ifdef INSET_POINTER
- ///
- ~cellstruct();
- //
- cellstruct(cellstruct const &);
- ///
- cellstruct & operator=(cellstruct const &);
-#endif
///
int cellno;
///
bool left_line;
///
bool right_line;
- /**
- 0 ... don't use a box
- 1 ... use a parbox
- 2 ... use a minipage
- This should be made into an enum (Lgb)
- */
+ ///
int usebox;
///
- int rotate;
+ bool rotate;
///
string align_special;
///
struct rowstruct {
///
rowstruct();
- //
- //~rowstruct();
- //
- // rowstruct & operator=(rowstruct const &);
///
bool top_line;
///
struct columnstruct {
///
columnstruct();
- //
- //~columnstruct();
- //
- //columnstruct & operator=(columnstruct const &);
///
int alignment;
///
///
int width_of_tabular;
///
- int rotate;
+ bool rotate;
//
// for long tabulars
///
- int is_long_tabular;
+ bool is_long_tabular;
/// row of endhead
int endhead;
/// row of endfirsthead