* src/insets/insettabular.[Ch]: fix plaintext(); code formatting

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17236 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2007-02-18 10:47:08 +00:00
parent 9889abe3af
commit f7d54f2afc
2 changed files with 10 additions and 8 deletions

View File

@ -1093,22 +1093,24 @@ bool InsetTabular::getStatus(LCursor & cur, FuncRequest const & cmd,
int InsetTabular::latex(Buffer const & buf, odocstream & os,
OutputParams const & runparams) const
OutputParams const & runparams) const
{
return tabular.latex(buf, os, runparams);
}
int InsetTabular::plaintext(Buffer const & buf, odocstream & os,
OutputParams const & runparams) const
OutputParams const & runparams) const
{
int const dp = runparams.linelen ? runparams.depth : 0;
return tabular.plaintext(buf, os, runparams, dp, false, 0);
os << '\n'; // output table on a new line
int const dp = runparams.linelen > 0 ? runparams.depth : 0;
tabular.plaintext(buf, os, runparams, dp, false, 0);
return runparams.linelen; // start with column 0 in new line
}
int InsetTabular::docbook(Buffer const & buf, odocstream & os,
OutputParams const & runparams) const
OutputParams const & runparams) const
{
int ret = 0;
InsetBase * master = 0;

View File

@ -83,13 +83,13 @@ public:
bool display() const { return tabular.isLongTabular(); }
///
int latex(Buffer const &, odocstream &,
OutputParams const &) const;
OutputParams const &) const;
///
int plaintext(Buffer const &, odocstream &,
OutputParams const &) const;
OutputParams const &) const;
///
int docbook(Buffer const &, odocstream &,
OutputParams const &) const;
OutputParams const &) const;
///
void validate(LaTeXFeatures & features) const;
///