* insetert.[Ch]:

* insetnewline.[Ch]:
	* insetline.[Ch]: fix plaintext()


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17206 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2007-02-15 22:27:45 +00:00
parent e5dab3fc94
commit 5caa8e2c6d
6 changed files with 13 additions and 16 deletions

View File

@ -172,7 +172,7 @@ int InsetERT::latex(Buffer const &, odocstream & os,
int InsetERT::plaintext(Buffer const &, odocstream &,
OutputParams const & /*runparams*/) const
OutputParams const &) const
{
return 0;
}

View File

@ -56,10 +56,10 @@ public:
OutputParams const &) const;
///
int plaintext(Buffer const &, odocstream &,
OutputParams const & runparams) const;
OutputParams const &) const;
///
int docbook(Buffer const &, odocstream &,
OutputParams const & runparams) const;
OutputParams const &) const;
///
void validate(LaTeXFeatures &) const {}
///

View File

@ -61,7 +61,7 @@ void InsetLine::draw(PainterInfo & pi, int x, int y) const
int InsetLine::latex(Buffer const &, odocstream & os,
OutputParams const & runparams) const
OutputParams const & runparams) const
{
os << "\\lyxline{\\"
<< from_ascii(runparams.local_font->latexSize()) << '}';
@ -70,10 +70,10 @@ int InsetLine::latex(Buffer const &, odocstream & os,
int InsetLine::plaintext(Buffer const &, odocstream & os,
OutputParams const &) const
OutputParams const & runparams) const
{
os << "-------------------------------------------";
return 0;
os << "\n-------------------------------------------\n";
return runparams.linelen; // start with column 0 in new line
}

View File

@ -30,10 +30,10 @@ public:
void draw(PainterInfo & pi, int x, int y) const;
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;

View File

@ -62,7 +62,7 @@ int InsetNewline::latex(Buffer const &, odocstream &,
int InsetNewline::plaintext(Buffer const &, odocstream & os,
OutputParams const &) const
OutputParams const &) const
{
os << '\n';
return 0;

View File

@ -29,14 +29,11 @@ public:
virtual void draw(PainterInfo & pi, int x, int y) const;
virtual int latex(Buffer const &, odocstream &,
OutputParams const &) const;
int latex(Buffer const &, odocstream &, OutputParams const &) const;
virtual int plaintext(Buffer const &, odocstream &,
OutputParams const &) const;
int plaintext(Buffer const &, odocstream &, OutputParams const &) const;
virtual int docbook(Buffer const &, odocstream &,
OutputParams const &) const;
int docbook(Buffer const &, odocstream &, OutputParams const &) const;
virtual void read(Buffer const &, LyXLex & lex);