}
-int LyXTabular::plaintextTopHLine(odocstream & os, row_type row,
- vector<unsigned int> const & clen) const
+bool LyXTabular::plaintextTopHLine(odocstream & os, row_type row,
+ vector<unsigned int> const & clen) const
{
idx_type const fcell = getFirstCellInRow(row);
idx_type const n = numberOfCellsInRow(fcell) + fcell;
}
}
if (!tmp)
- return 0;
+ return false;
char_type ch;
for (idx_type i = fcell; i < n; ++i) {
}
}
os << endl;
- return 1;
+ return true;
}
-int LyXTabular::plaintextBottomHLine(odocstream & os, row_type row,
- vector<unsigned int> const & clen) const
+bool LyXTabular::plaintextBottomHLine(odocstream & os, row_type row,
+ vector<unsigned int> const & clen) const
{
idx_type const fcell = getFirstCellInRow(row);
idx_type const n = numberOfCellsInRow(fcell) + fcell;
}
}
if (!tmp)
- return 0;
+ return false;
char_type ch;
for (idx_type i = fcell; i < n; ++i) {
}
}
os << endl;
- return 1;
+ return true;
}
-int LyXTabular::plaintextPrintCell(Buffer const & buf, odocstream & os,
+void LyXTabular::plaintextPrintCell(Buffer const & buf, odocstream & os,
OutputParams const & runparams,
idx_type cell, row_type row, col_type column,
vector<unsigned int> const & clen,
bool onlydata) const
{
odocstringstream sstr;
- int const ret = getCellInset(cell)->plaintext(buf, sstr, runparams);
+ getCellInset(cell)->plaintext(buf, sstr, runparams);
if (onlydata) {
os << sstr.str();
- return ret;
+ return;
}
if (leftLine(cell))
os << " |";
else
os << " ";
-
- return ret;
}
-int LyXTabular::plaintext(Buffer const & buf, odocstream & os,
- OutputParams const & runparams,
- int const depth,
- bool onlydata, unsigned char delim) const
+void LyXTabular::plaintext(Buffer const & buf, odocstream & os,
+ OutputParams const & runparams, int const depth,
+ bool onlydata, unsigned char delim) const
{
- int ret = 0;
-
// first calculate the width of the single columns
vector<unsigned int> clen(columns_);
continue;
if (onlydata && j > 0)
os << delim;
- ret += plaintextPrintCell(buf, os, runparams,
- cell, i, j, clen, onlydata);
+ plaintextPrintCell(buf, os, runparams,
+ cell, i, j, clen, onlydata);
++cell;
}
os << endl;
os << docstring(depth * 2, ' ');
}
}
- return ret;
}
//
int docbook(Buffer const & buf, odocstream & os, OutputParams const &) const;
///
- int plaintext(Buffer const &, odocstream &,
- OutputParams const & runparams,
- int const depth,
- bool onlydata, unsigned char delim) const;
+ void plaintext(Buffer const &, odocstream &,
+ OutputParams const & runparams, int const depth,
+ bool onlydata, unsigned char delim) const;
///
bool isMultiColumn(idx_type cell) const;
///
int TeXRow(odocstream &, row_type const row, Buffer const & buf,
OutputParams const &) const;
///
- // helper functions for plain text return number of newlines
+ // helper functions for plain text
///
- int plaintextTopHLine(odocstream &, row_type row,
- std::vector<unsigned int> const &) const;
+ bool plaintextTopHLine(odocstream &, row_type row,
+ std::vector<unsigned int> const &) const;
///
- int plaintextBottomHLine(odocstream &, row_type row,
- std::vector<unsigned int> const &) const;
+ bool plaintextBottomHLine(odocstream &, row_type row,
+ std::vector<unsigned int> const &) const;
///
- int plaintextPrintCell(Buffer const &, odocstream &,
- OutputParams const &,
- idx_type cell, row_type row, col_type column,
- std::vector<unsigned int> const &,
- bool onlydata) const;
+ void plaintextPrintCell(Buffer const &, odocstream &,
+ OutputParams const &,
+ idx_type cell, row_type row, col_type column,
+ std::vector<unsigned int> const &,
+ bool onlydata) const;
/// auxiliary function for docbook
int docbookRow(Buffer const & buf, odocstream & os, row_type,
OutputParams const &) const;