]> git.lyx.org Git - lyx.git/blobdiff - src/insets/Inset.cpp
Restore XHTML output for InsetListings.
[lyx.git] / src / insets / Inset.cpp
index ac42438b9d9cdf865abf7b66e8ec7d4f5e63dfa0..82a5426cbe43147d609dec5f3dc8dfbea2a9c61a 100644 (file)
@@ -28,6 +28,7 @@
 #include "FuncRequest.h"
 #include "FuncStatus.h"
 #include "MetricsInfo.h"
+#include "output_xhtml.h"
 #include "Text.h"
 #include "TextClass.h"
 
@@ -185,7 +186,10 @@ Buffer & Inset::buffer()
 {
        if (!buffer_) {
                odocstringstream s;
-               lyxerr << "LyX Code: " << lyxCode() << " name: " << insetName(lyxCode()) << std::endl;
+               lyxerr << "Inset: " << this
+                                       << " LyX Code: " << lyxCode()
+                                       << " name: " << insetName(lyxCode())
+                                       << std::endl;
                s << "LyX Code: " << lyxCode() << " name: " << name();
                LASSERT(false, /**/);
                throw ExceptionMessage(BufferException, 
@@ -403,6 +407,12 @@ int Inset::docbook(odocstream &, OutputParams const &) const
 }
 
 
+docstring Inset::xhtml(XHTMLStream & xs, OutputParams const &) const
+{
+       xs << "[[Inset: " << from_ascii(insetName(lyxCode())) << "]]";
+       return docstring();
+}
+
 docstring Inset::xhtml(odocstream & od, OutputParams const &) const
 {
        od << "[[Inset: " << from_ascii(insetName(lyxCode())) << "]]";