]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibtex.cpp
Pure HTML output for math macros.
[lyx.git] / src / insets / InsetBibtex.cpp
index 073d2f113bbc1a6fe3a6f78640a6332fd47ec245..dff066f12c69a0551ac05ae433005286d8fb5cab 100644 (file)
@@ -21,7 +21,6 @@
 #include "FuncRequest.h"
 #include "FuncStatus.h"
 #include "LaTeXFeatures.h"
-#include "MetricsInfo.h"
 #include "output_xhtml.h"
 #include "OutputParams.h"
 #include "TextClass.h"
@@ -59,7 +58,7 @@ InsetBibtex::InsetBibtex(Buffer * buf, InsetCommandParams const & p)
 
 InsetBibtex::~InsetBibtex()
 {
-       if (isBufferValid())
+       if (isBufferLoaded())
                buffer_->invalidateBibinfoCache();
 }
 
@@ -961,7 +960,7 @@ docstring InsetBibtex::xhtml(XHTMLStream & xs, OutputParams const &) const
                // which will give us all the cross-referenced info. But for every
                // entry, so there's a lot of repitition. This should be fixed.
                xs << html::StartTag("span", "class='bibtexinfo'") 
-                       << bibinfo.getInfo(entry.key())
+                       << bibinfo.getInfo(entry.key(), buffer(), true)
                        << html::EndTag("span")
                        << html::EndTag("div");
                xs.cr();