* src/insets/insetfloatlist.C: fix plaintex()

* src/insets/insetfloatlist.h:
	* src/insets/insetcharstyle.[Ch]: code formatting


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17232 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2007-02-17 15:28:50 +00:00
parent 757d2bc963
commit 1afeb2e34f
4 changed files with 20 additions and 21 deletions

View File

@ -284,7 +284,7 @@ bool InsetCharStyle::getStatus(LCursor & cur, FuncRequest const & cmd,
int InsetCharStyle::latex(Buffer const & buf, odocstream & os,
OutputParams const & runparams) const
OutputParams const & runparams) const
{
if (!undefined()) {
// FIXME UNICODE
@ -300,8 +300,15 @@ int InsetCharStyle::latex(Buffer const & buf, odocstream & os,
}
int InsetCharStyle::plaintext(Buffer const & buf, odocstream & os,
OutputParams const & runparams) const
{
return InsetText::plaintext(buf, os, runparams);
}
int InsetCharStyle::docbook(Buffer const & buf, odocstream & os,
OutputParams const & runparams) const
OutputParams const & runparams) const
{
ParagraphList::const_iterator beg = paragraphs().begin();
ParagraphList::const_iterator par = paragraphs().begin();
@ -325,13 +332,6 @@ int InsetCharStyle::docbook(Buffer const & buf, odocstream & os,
}
int InsetCharStyle::plaintext(Buffer const & buf, odocstream & os,
OutputParams const & runparams) const
{
return InsetText::plaintext(buf, os, runparams);
}
void InsetCharStyle::textString(Buffer const & buf, odocstream & os) const
{
os << paragraphs().begin()->asString(buf, true);

View File

@ -77,13 +77,13 @@ public:
bool forceDefaultParagraphs(idx_type) const { return true; }
///
int latex(Buffer const &, odocstream &,
OutputParams const &) const;
///
int docbook(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;
/// the string that is passed to the TOC
virtual void textString(Buffer const &, odocstream &) const;
///

View File

@ -99,7 +99,7 @@ void InsetFloatList::read(Buffer const & buf, LyXLex & lex)
int InsetFloatList::latex(Buffer const & buf, odocstream & os,
OutputParams const &) const
OutputParams const &) const
{
FloatList const & floats = buf.params().getLyXTextClass().floats();
FloatList::const_iterator cit = floats[to_ascii(getParam("type"))];
@ -129,14 +129,13 @@ int InsetFloatList::latex(Buffer const & buf, odocstream & os,
int InsetFloatList::plaintext(Buffer const & buffer, odocstream & os,
OutputParams const &) const
OutputParams const & runparams) const
{
os << getScreenLabel(buffer) << "\n\n";
buffer.tocBackend().writePlaintextTocList(to_ascii(getParam("type")), os);
os << "\n";
return 0;
return runparams.linelen; // start with column 0 in new line
}

View File

@ -40,13 +40,13 @@ public:
void read(Buffer const &, LyXLex &);
///
int latex(Buffer const &, odocstream &,
OutputParams const &) const;
OutputParams const &) const;
///
int docbook(Buffer const &, odocstream &,
OutputParams const &) const { return 0; }
OutputParams const &) const { return 0; }
///
int plaintext(Buffer const &, odocstream &,
OutputParams const & runparams) const;
OutputParams const & runparams) const;
///
void validate(LaTeXFeatures & features) const;
private: