int x2 = x + tabular->GetWidthOfColumn(cell);
bool on_off;
- if (!tabular->TopAlreadyDrawed(cell)) {
+ if (!tabular->topAlreadyDrawn(cell)) {
on_off = !tabular->TopLine(cell);
pain.line(x, baseline - tabular->GetAscentOfRow(row),
x2, baseline - tabular->GetAscentOfRow(row),
x2, baseline + tabular->GetDescentOfRow(row),
on_off ? LColor::tabularonoffline : LColor::tabularline,
on_off ? Painter::line_onoffdash : Painter::line_solid);
- if (!tabular->LeftAlreadyDrawed(cell)) {
+ if (!tabular->leftAlreadyDrawn(cell)) {
on_off = !tabular->LeftLine(cell);
pain.line(x, baseline - tabular->GetAscentOfRow(row),
x, baseline + tabular->GetDescentOfRow(row),
return true;
}
-static void checkLongtableSpecial(LyXTabular::ltType & ltt,
- string const & special, bool & flag)
+namespace {
+
+void checkLongtableSpecial(LyXTabular::ltType & ltt,
+ string const & special, bool & flag)
{
if (special == "dl_above") {
ltt.topDL = flag;
}
}
+}
+
void InsetTabular::tabularFeatures(BufferView * bv,
LyXTabular::Feature feature,
}
-LyXTabular::lttype::lttype()
+LyXTabular::ltType::ltType()
{
topDL = false;
bottomDL = false;
LyXTabular & LyXTabular::operator=(LyXTabular const & lt)
{
#if 0
-#warning This while method should look like this: (Lgb)
+#warning This whole method should look like this: (Lgb)
LyXTabular tmp(lt);
tmp.swap(*this);
}
-bool LyXTabular::TopAlreadyDrawed(int cell) const
+bool LyXTabular::topAlreadyDrawn(int cell) const
{
int row = row_of_cell(cell);
if ((row > 0) && !GetAdditionalHeight(row)) {
}
-bool LyXTabular::LeftAlreadyDrawed(int cell) const
+bool LyXTabular::leftAlreadyDrawn(int cell) const
{
int column = column_of_cell(cell);
if (column > 0) {
BOX_MINIPAGE = 2
};
- struct lttype {
+ struct ltType {
// constructor
- lttype();
+ ltType();
// we have this header type (is set in the GetLT... functions)
bool set;
// double borders on top
// ignored in the output and it is set to be empty!
bool empty;
};
- ///
- typedef struct lttype ltType;
/* konstruktor */
///
bool RightLine(int cell, bool onlycolumn = false) const;
///
- bool TopAlreadyDrawed(int cell) const;
+ bool topAlreadyDrawn(int cell) const;
///
- bool LeftAlreadyDrawed(int cell) const;
+ bool leftAlreadyDrawn(int cell) const;
///
bool IsLastRow(int cell) const;