]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_hullinset.C
change "support/std_sstream.h" to <sstream>
[features.git] / src / mathed / math_hullinset.C
index 0a54cc8779349d6e2ab8d7c37fe339b12e5d0a7a..b56dec9d2c70fb9b8414911e618de80382d843eb 100644 (file)
 #include "graphics/PreviewImage.h"
 #include "graphics/PreviewLoader.h"
 
-#include "support/std_sstream.h"
-
 #include <boost/bind.hpp>
 
+#include <sstream>
+
 using lyx::cap::grabAndEraseSelection;
 
 using std::endl;
@@ -1154,7 +1154,9 @@ InsetBase::Code MathHullInset::lyxCode() const
 bool MathHullInset::searchForward(BufferView * bv, string const & str,
                                     bool, bool)
 {
+#ifdef WITH_WARNINGS
 #warning completely broken
+#endif
        static MathHullInset * lastformula = 0;
        static CursorBase current = DocIterator(ibegin(nucleus()));
        static MathArray ar;
@@ -1239,7 +1241,9 @@ int MathHullInset::docbook(Buffer const & buf, ostream & os,
                          OutputParams const & runparams) const
 {
        MathMLStream ms(os);
-       ms << MTag("equation");
+       string name="equation";
+       if (! label(0).empty()) name += " id=\"" + label(0)+ "\"";
+       ms << MTag(name.c_str());
        ms <<   MTag("alt");
        ms <<    "<[CDATA[";
        int res = plaintext(buf, ms.os(), runparams);