mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
* 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:
parent
e5dab3fc94
commit
5caa8e2c6d
@ -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;
|
||||
}
|
||||
|
@ -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 {}
|
||||
///
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user