]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloat.C
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insetfloat.C
index 54e38514e0d28a2a85eff8ba04c66d53906d7ec2..b4be20c9989978852d4e86f21852d87a7022f8bc 100644 (file)
@@ -280,7 +280,7 @@ docstring const InsetFloat::editMessage() const
 
 
 int InsetFloat::latex(Buffer const & buf, odocstream & os,
-                     OutputParams const & runparams) const
+                      OutputParams const & runparams) const
 {
        FloatList const & floats = buf.params().getLyXTextClass().floats();
        string tmptype = (params_.wide ? params_.type + "*" : params_.type);
@@ -328,8 +328,19 @@ int InsetFloat::latex(Buffer const & buf, odocstream & os,
 }
 
 
+int InsetFloat::plaintext(Buffer const & buf, odocstream & os,
+                          OutputParams const & runparams) const
+{
+       os << '[' << _("float") << ' ' << floatName(params_.type, buf.params()) << ":\n";
+       InsetText::plaintext(buf, os, runparams);
+       os << "\n]";
+
+       return PLAINTEXT_NEWLINE + 1; // one char on a separate line
+}
+
+
 int InsetFloat::docbook(Buffer const & buf, odocstream & os,
-                       OutputParams const & runparams) const
+                        OutputParams const & runparams) const
 {
         // FIXME UNICODE
         os << '<' << from_ascii(params_.type) << '>';