]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloatList.cpp
Pure HTML output for math macros.
[lyx.git] / src / insets / InsetFloatList.cpp
index 959f2ab55095a4cf179e7d16f40ee58b4040a114..52e84e27dc8b9ac0f6b3a306fc9437336d1200bf 100644 (file)
@@ -21,7 +21,6 @@
 #include "Language.h"
 #include "LaTeXFeatures.h"
 #include "Lexer.h"
-#include "MetricsInfo.h"
 #include "Paragraph.h"
 #include "output_xhtml.h"
 #include "TextClass.h"
@@ -120,7 +119,18 @@ int InsetFloatList::latex(odocstream & os, OutputParams const &) const
        FloatList::const_iterator cit = floats[to_ascii(getParam("type"))];
 
        if (cit != floats.end()) {
-               os << cit->second.listCommand(buffer().params().language->code());
+               Floating const & fl = cit->second;
+               if (fl.needsFloatPkg())
+                       os << "\\listof{" << getParam("type") << "}{"
+                          << buffer().B_(fl.listName()) << "}\n"; 
+               else {
+                       if (!fl.listCommand().empty())
+                               os << "\\" << from_ascii(fl.listCommand()) << "\n";
+                       else 
+                               os << "%% "
+                                  << bformat(_("LyX cannot generate a list of %1$s"), getParam("type"))
+                                  << "\n";
+               }
        } else {
                os << "%%\\listof{" << getParam("type") << "}{"
                   << bformat(_("List of %1$s"), getParam("type"))
@@ -225,7 +235,7 @@ docstring InsetFloatList::xhtml(XHTMLStream &, OutputParams const &) const {
                   << html::StartTag("a", parattr)
                   // FIXME XHTML 
                   // There ought to be a simple way to customize this.
-                  << XHTMLStream::NextRaw() << "&seArr;"
+                  << XHTMLStream::NextRaw() << "&gt;"
                   << html::EndTag("a");
                xs << html::EndTag("div");
        }