class CellVector

abstract base class of table rows and columns.

Inheritance:


Public Methods

CellVector (TableViewer *v, unsigned number)
creation.
friend int operator== (const CellVector &c1, const CellVector &c2)
-1,0,1 iff c1.number ==,<,> c2.number
friend int Compare (CellVector *c1, CellVector *c2)
-1,0,1 iff c1.number ==,<,> c2.number
void Draw ()
draw cell vector.
void Undraw ()
erase cell vector.
void DrawCells ()
void UndrawCells ()
void DrawLines ()
void UndrawLines ()
void DrawLabels ()
void UndrawLabels ()
void SetGrafport (Grafport *g)
void SetVisible (bool b)
Make all cells and lines (in)visible.
TableViewer* GetViewer () const
virtual void UpdatePosition (int delta)
virtual LinePiece* HitLinePiece (int x, int y)
bool HasCell (Cell *c)
RowColumnLabel* HitLabel (int x, int y) const
virtual void AddCell (Cell *c, bool redraw=False)
append cell to column.
virtual void DeleteCell (Cell *c, bool redraw=False)
delete cell from column.
virtual void InsertCell (Cell *c, unsigned n, bool redraw=False)
insert cell in column.
virtual bool ContainsPt (int x, int y) const
virtual void Write (OutputFile *f)
virtual void WritePartial (OutputFile *f, int i, List *nrs)
virtual bool Read (InputFile *f, unsigned from = 0, double format = 1.0)
TextAlign::Type GetAlignment () const
void SetAlignment (TextAlign::Type a)
void UpdateAlignment (TextAlign::Type a)
virtual void UpdateNumber (unsigned nr)
virtual void SetLabelsVisible (bool s)
void SetNumber (unsigned nr)
Cell* FirstCell ()
return first cell, 0 if cells is empty.
Cell* NextCell ()
return next cell, 0 if cells is empty.
Cell* NthCell (unsigned n)
return n-th cell, 0 if n-th cell does not exist.
LinePiece* FirstLine ()
return first line, 0 if lines is empty.
LinePiece* NextLine ()
return next line, 0 if lines is empty.
LinePiece* NthLine (unsigned n)
return n-th line, 0 if n-th line does not exist.
unsigned GetNumber () const
RowColumnLabel* GetLabel1 () const
RowColumnLabel* GetLabel2 () const
void UpdateLabel1 (const string *txt)
void UpdateLabel2 (const string *txt)
unsigned NrCells () const
int GetIndex (LinePiece *l)
unsigned HasEmptyText ()
return nr of cells having empty texts.
unsigned HasText (const string *s)
return nr of cells having this text.
bool IsAllEmpty ()
void EmptyCells ()
virtual void CalcLabelPositions ()

Protected Fields

List <Cell *> * cells
the cells in the vector.
List <LinePiece *> * lines
cell boundaries between the cells in the vector.

Protected Methods

Grafport* GetGrafport () const

Documentation

abstract base class of table rows and columns.
CellVector(TableViewer *v, unsigned number)
creation.

friend int operator==(const CellVector &c1, const CellVector &c2)
-1,0,1 iff c1.number ==,<,> c2.number

friend int Compare(CellVector *c1, CellVector *c2)
-1,0,1 iff c1.number ==,<,> c2.number

void Draw()
draw cell vector.

void Undraw()
erase cell vector.

void DrawCells()

void UndrawCells()

void DrawLines()

void UndrawLines()

void DrawLabels()

void UndrawLabels()

void SetGrafport(Grafport *g)

void SetVisible(bool b)
Make all cells and lines (in)visible.

TableViewer* GetViewer() const

virtual void UpdatePosition(int delta)

virtual LinePiece* HitLinePiece(int x, int y)

bool HasCell(Cell *c)

RowColumnLabel* HitLabel(int x, int y) const

virtual void AddCell(Cell *c, bool redraw=False)
append cell to column.

virtual void DeleteCell(Cell *c, bool redraw=False)
delete cell from column.

virtual void InsertCell(Cell *c, unsigned n, bool redraw=False)
insert cell in column.

virtual bool ContainsPt(int x, int y) const

virtual void Write(OutputFile *f)

virtual void WritePartial(OutputFile *f, int i, List *nrs)

virtual bool Read(InputFile *f, unsigned from = 0, double format = 1.0)

TextAlign::Type GetAlignment() const

void SetAlignment(TextAlign::Type a)

void UpdateAlignment(TextAlign::Type a)

virtual void UpdateNumber(unsigned nr)

virtual void SetLabelsVisible(bool s)

void SetNumber(unsigned nr)

Cell* FirstCell()
return first cell, 0 if cells is empty.

Cell* NextCell()
return next cell, 0 if cells is empty.

Cell* NthCell(unsigned n)
return n-th cell, 0 if n-th cell does not exist.

LinePiece* FirstLine()
return first line, 0 if lines is empty.

LinePiece* NextLine()
return next line, 0 if lines is empty.

LinePiece* NthLine(unsigned n)
return n-th line, 0 if n-th line does not exist.

unsigned GetNumber() const

RowColumnLabel* GetLabel1() const

RowColumnLabel* GetLabel2() const

void UpdateLabel1(const string *txt)

void UpdateLabel2(const string *txt)

unsigned NrCells() const

int GetIndex(LinePiece *l)

unsigned HasEmptyText()
return nr of cells having empty texts.

unsigned HasText(const string *s)
return nr of cells having this text.

bool IsAllEmpty()

void EmptyCells()

virtual void CalcLabelPositions()

List <Cell *> * cells
the cells in the vector.

List <LinePiece *> * lines
cell boundaries between the cells in the vector.

Grafport* GetGrafport() const


Direct child classes:
CellRow
CellColumn

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de