mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 07:42:02 +00:00
* 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:
parent
757d2bc963
commit
1afeb2e34f
@ -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);
|
||||
|
@ -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;
|
||||
///
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user