]> git.lyx.org Git - features.git/commitdiff
* src/insets/insetfloatlist.C: fix plaintex()
authorMichael Schmitt <michael.schmitt@teststep.org>
Sat, 17 Feb 2007 15:28:50 +0000 (15:28 +0000)
committerMichael Schmitt <michael.schmitt@teststep.org>
Sat, 17 Feb 2007 15:28:50 +0000 (15:28 +0000)
* 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

src/insets/insetcharstyle.C
src/insets/insetcharstyle.h
src/insets/insetfloatlist.C
src/insets/insetfloatlist.h

index 4c6472dcbc080d91bcda94b1c252854952d911ca..34f0baf64a7ff329e03c24244d7b593a771861c7 100644 (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);
index 39231e9a57d7c83f6f26eceb7d44fdbb84f52bec..5966a5de155eb343c35c74223d4a49845632b2e5 100644 (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;
        ///
index 6d11d93aa0b04536dff1d1ac6322ef0f12bc5ec1..fb66694054262da1f93d1f180b38c6bf116900a0 100644 (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
 }
 
 
index 0808119bf67623375ab6bdb3b028fdeba8bdba5f..7d9a2360405147703cf3de1a3ab249033ca7f249 100644 (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: