]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathRef.cpp
revert last patch. there's something wrong, possibly unrelated to this
[lyx.git] / src / mathed / InsetMathRef.cpp
index 35322dcda5c35a652c8183dc9c88a8ddb2e4f2bf..998653b38b68fe6dd3161d7a266e2878791ffb63 100644 (file)
 #include "LaTeXFeatures.h"
 #include "Buffer.h"
 #include "Cursor.h"
-#include "support/debug.h"
 #include "FuncRequest.h"
 #include "FuncStatus.h"
-#include "support/gettext.h"
 #include "MathData.h"
 #include "MathFactory.h"
 #include "MathSupport.h"
 
 #include "insets/InsetCommand.h"
 
-#include <ostream>
+#include "support/debug.h"
+#include "support/gettext.h"
 
-using std::string;
+#include <ostream>
 
+using namespace std;
 
 namespace lyx {
 
@@ -150,19 +150,18 @@ void InsetMathRef::validate(LaTeXFeatures & features) const
 }
 
 
-int InsetMathRef::docbook(Buffer const & buf, odocstream & os,
-                     OutputParams const & runparams) const
+int InsetMathRef::docbook(odocstream & os, OutputParams const & runparams) const
 {
        if (cell(1).empty()) {
                os << "<xref linkend=\""
-                  << sgml::cleanID(buf, runparams, asString(cell(0)));
+                  << sgml::cleanID(buffer(), runparams, asString(cell(0)));
                if (runparams.flavor == OutputParams::XML)
                        os << "\"/>";
                else
                        os << "\">";
        } else {
                os << "<link linkend=\""
-                  << sgml::cleanID(buf, runparams, asString(cell(0)))
+                  << sgml::cleanID(buffer(), runparams, asString(cell(0)))
                   << "\">"
                   << asString(cell(1))
                   << "</link>";
@@ -178,7 +177,7 @@ string const InsetMathRef::createDialogStr(string const & name) const
        icp["reference"] = asString(cell(0));
        if (!cell(1).empty())
                icp["name"] = asString(cell(1));
-       return InsetCommandMailer::params2string(name, icp);
+       return InsetCommand::params2string(name, icp);
 }