MatrixViewer

## class MatrixViewer : public TableViewer

> a table in which column and row 0 are different in layout.

## Inheritance:

### Public Methods

  | MatrixViewer (Config *c, TableWindow *t)
  void | Initialize ()
  void | AddRow (CellRow *c)
  void | AddColumn (CellColumn *c)
  void | InsertRow (CellRow *c)
  void | InsertColumn (CellColumn *c)

### Inherited from TableViewer:

### Public Methods

void SetTable(Table *t)
void InitTable(unsigned rows, unsigned columns)
void SetVisible(bool b)
void Draw()
void Undraw()
bool TextMode(CellText *c)
void TextModeOff()
void KeyTyped(int x, int y, int key)
void Select(int x, int y)
void Adjust(int x, int y)
void MovingPointer(int x, int y)
Command* Drag(int x, int y)
Command* Connect(int x, int y)
Cell* HitCell(int x, int y)
CellText* HitCellText(int x, int y)
LinePiece* HitVLinePiece(int x, int y)
LinePiece* HitHLinePiece(int x, int y)
RowColumnLabel* HitRowLabel(int x, int y)
RowColumnLabel* HitColumnLabel(int x, int y)
int HitRow(int x, int y)
int HitColumn(int x, int y)
void ShowRowColumnLabels(bool b)
void PrintRowColumnLabels(bool b)
bool IsShowRowColumnLabels() const
bool IsPrintRowColumnLabels() const
void RecomputeSizeCell(Cell *c)
void UpdateText(Cell *c, const string *newtext)
virtual void MoveRow(CellRow *r, unsigned newpos)
virtual void MoveColumn(CellColumn *c, unsigned newpos)
virtual void DeleteRow(CellRow *c)
virtual void DeleteColumn(CellColumn *c)
void ResizeRow(CellRow *r, int newSize)
void ResizeColumn(CellColumn *c, int newSize)
void Move(const Point *delta)
CellRow* GiveRow(unsigned r)
CellColumn* GiveColumn(unsigned c)
void GetSelectedRows(List<CellRow *> *r)
void GetSelectedColumns(List<CellColumn *> *c)
void GetEmptyRows(List<CellRow *> *r)
void GetEmptyColumns(List<CellColumn *> *c)
void DeselectAll()
void SelectAll()
void SelectCell(Cell *c)
void DeselectCell(Cell *c)
void SelectVector(CellVector *v)
void DeselectVector(CellVector *v)
bool IsAllSelected(CellVector *v)
void MoveSelection(int key)
void CalcSizeElements(Point &topLeft, Point &bottomRight)
void CalcSizeSelection(Point &topLeft, Point &bottomRight)
void UpdateMarginWidth(int newWidth)
void UpdateMarginHeight(int newHeight)
void UpdateDefaultRowHeight(int n)
void UpdateDefaultColumnWidth(int n)
int GetDefaultRowHeight() const
int GetDefaultColumnWidth() const
unsigned GetNumberOfColumns() const
unsigned GetNumberOfRows() const
unsigned GetDefaultNumberOfColumns() const
unsigned GetDefaultNumberOfRows() const
TextAlign::Type GetDefaultRowAlignment() const
TextAlign::Type GetDefaultColumnAlignment() const
int GetRowHeight(unsigned row)
int GetColumnWidth(unsigned column)
const Point* GetTopLeft() const
int GetWidth() const
int GetHeight() const
int GetMarginWidth() const
int GetMarginHeight() const
Point GetRowTopLeft(unsigned row)
Point GetColumnTopLeft(unsigned column)
void SetGrafport(Grafport *g)
CellTextBuffer* GetBuffer() const
int GetTopSelectionRow()
int GetLeftSelectionColumn()
List <Cell *> * GetSelection() const
unsigned NrSelected() const
unsigned GetCurrentRow() const
unsigned GetCurrentColumn() const
void SetCurrentRow(unsigned n)
void SetCurrentColumn(unsigned n)
void GetCells(List<Cell *> *cell, const string *s, bool sens, bool substring)
Cell* GetNextCell(const string *s, bool sens, bool substring)
void SetDefaultColumnAlignment(TextAlign::Type a)
void SetDefaultRowAlignment(TextAlign::Type a)
void SetLineStyle(Side::Type side, LineStyle::Type style)
void SetDefaultNumberOfRows(unsigned)
void SetDefaultNumberOfColumns(unsigned)
void UpdateLineWidthSelection(unsigned wd)
void UpdateLineStyleSelection(LineStyle::Type l)
void UpdateTextAlignmentSelection(TextAlign::Type a)
void UpdateLineColorSelection(const string *color)
void UpdateTextColorSelection(const string *color)
void UpdateFillColorSelection(const string *color, FillStyle::Type f)
void SetDefaultFont(XFont *ft)
void UpdateFontSelection(int f, int s, int p)
bool ReadAttributes(InputFile *f, bool appending, unsigned &rowsToAdd, unsigned &columnsToAdd, double format)
bool ReadColumns(InputFile *f, unsigned nr, unsigned fromRow, unsigned fromColumn, double format)
bool ReadRows(InputFile *f, unsigned nr, unsigned fromRow, unsigned fromColumn, double format)
void WriteAttributes(OutputFile *f)
void WriteColumns(OutputFile *f)
void WriteRows(OutputFile *f)
void WriteSelection(OutputFile *f)

### Protected Methods

List <CellRow *> * GetRows() const
List <CellColumn *> * GetColumns() const
void SetDefaultColumnWidth(int w)
void SetDefaultRowHeight(int h)
void SetMarginWidth(int w)
void SetMarginHeight(int h)

### Inherited from Viewer:

### Public Fields

static const int MIN_LINE_WIDTH
static const int MAX_LINE_WIDTH

### Public Methods

Scaler* GetScaler() const
Command* GetLastCmd()
DrawWindow* GetMainWindow() const
Grafport* GetGrafport() const
Printer* GetPrinter() const
void SetPrinter(Printer *p)
NToggleListDialog* GetLineWidthDialog()
NToggleListDialog* GetLineStyleDialog()
NToggleListDialog* GetTextAlignmentDialog()
FontChooserDialog* GetFontChooserDialog()
FileSelectionDialog* GetPrintFileSelectionDialog()
ColorChooserDialog* GetColorChooserDialog()
int Scale(int x) const
Point Scale(const Point *p) const
int ScaleCorrect(int x) const
Point ScaleCorrect(const Point *p) const
void Undo()
void Redo()
void Refresh()
virtual void Redraw()
virtual void Activate()
virtual void Deactivate()
void SetDefaultLineWidth(unsigned d)
int GetDefaultLineWidth()
void UpdateLineWidth()
void DefaultLineWidth()
void ShowDefaultLineWidth()
void ShowConfigLineWidth()
void SetDefaultLineStyle(LineStyle::Type l)
LineStyle::Type GetDefaultLineStyle()
void UpdateLineStyle()
void DefaultLineStyle()
void ShowDefaultLineStyle()
void ShowConfigLineStyle()
void SetDefaultLineColor(const string *s)
const string* GetDefaultLineColor()
void SetDefaultTextColor(const string *s)
const string* GetDefaultTextColor()
void SetDefaultFillColor(const string *s)
const string* GetDefaultFillColor()
FillStyle::Type GetDefaultFillStyle() const
void SetDefaultFillStyle(FillStyle::Type l)
void UpdateLineColor()
void DefaultLineColor()
void ShowDefaultLineColor()
void ShowConfigLineColor()
void UpdateTextColor()
void DefaultTextColor()
void ShowDefaultTextColor()
void ShowConfigTextColor()
void UpdateFillColor()
void DefaultFillColor()
void ShowDefaultFillColor()
void ShowConfigFillColor()
XFont* GetDefaultFont() const
void SetDefaultFontAttributes(int f, int s, int p)
void UpdateFont()
void DefaultFont()
void ShowDefaultFont()
void ShowConfigFont()
XFont* GetFont(int family, int style, int size)
XFont* GetFont(const char *description)
void UpdateTextAlignment()
void DefaultTextAlignment()
void ShowDefaultTextAlignment()
void ShowConfigTextAlignment()
TextAlign::Type GetDefaultTextAlignment() const
void SetDefaultTextAlignment(TextAlign::Type a)
void EditText(int key)
bool IsAutoResize() const
void SetAutoResize(bool s)
bool IsInlineEdit() const
void SetInlineEdit(bool s)
bool IsPasting() const
void SetPasting(bool b)
bool IsZigZag() const
void SetZigZag(bool b)
bool IsEditing() const
void DoubleClick()
void DoFunctionKey(int)
void NewCommand(Command *newCmd)
void AbortCommand()
void ExecuteCommand()
void UndoCommand()
void RedoCommand()
void DeleteCommands()
void GetPageSize(double &width, double &height)
void Save(OutputFile *f)
bool Load(InputFile *f, double format)
bool Check(InputFile *f, double format)

### Protected Methods

void ClearGrafport()
InlineEditor* GetInlineEditor() const
void SetInlineEditor(InlineEditor *i)
void SetEditing(bool b)

## Documentation

> a table in which column and row 0 are different in layout.

`MatrixViewer(Config *c, TableWindow *t)`

`void Initialize()`

`void AddRow(CellRow *c)`

`void AddColumn(CellColumn *c)`

`void InsertRow(CellRow *c)`

`void InsertColumn(CellColumn *c)`

Direct child classes:
  TUViewer
  TDViewer
  FEViewer

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