-void InsetTabular::DrawCellLines(Painter & pain, int x, int baseline,
- int row, int cell) const
-{
- // Juergen, have you thought about drawing the on-off lines in a
- // different color (gray of some kind), especially since those
- // lines will not be there on the hardcopy anyway. (Lgb)
- int x2 = x + tabular->WidthOfColumn(cell);
- bool on_off = !tabular->TopLine(cell);
-
- if (!tabular->TopAlreadyDrawed(cell))
- pain.line(x, baseline - tabular->AscentOfRow(row),
- x2, baseline - tabular->AscentOfRow(row),
- on_off ? LColor::tabularonoffline:LColor::tabularline,
- on_off ? Painter::line_onoffdash:Painter::line_solid);
- on_off = !tabular->BottomLine(cell);
- pain.line(x,baseline + tabular->DescentOfRow(row),
- x2, baseline + tabular->DescentOfRow(row),
- on_off ? LColor::tabularonoffline:LColor::tabularline,
- on_off ? Painter::line_onoffdash:Painter::line_solid);
- on_off = !tabular->LeftLine(cell);
- pain.line(x, baseline - tabular->AscentOfRow(row),
- x, baseline + tabular->DescentOfRow(row),
- on_off ? LColor::tabularonoffline:LColor::tabularline,
- on_off ? Painter::line_onoffdash:Painter::line_solid);
- on_off = !tabular->RightLine(cell);
- pain.line(x2 - tabular->AdditionalWidth(cell),
- baseline - tabular->AscentOfRow(row),
- x2 - tabular->AdditionalWidth(cell),
- baseline + tabular->DescentOfRow(row),
- on_off ? LColor::tabularonoffline:LColor::tabularline,
- on_off ? Painter::line_onoffdash:Painter::line_solid);
-}
-
-
-void InsetTabular::GetCursorPos(int & x, int & y)