#include "LaTeXFeatures.h"
#include "Buffer.h"
#include "Cursor.h"
-#include "debug.h"
#include "FuncRequest.h"
#include "FuncStatus.h"
-#include "gettext.h"
#include "MathData.h"
#include "MathFactory.h"
#include "MathSupport.h"
#include "insets/InsetCommand.h"
+#include "support/debug.h"
+#include "support/gettext.h"
-namespace lyx {
+#include <ostream>
-using std::string;
-using std::endl;
+using namespace std;
+namespace lyx {
InsetMathRef::InsetMathRef()
: CommandInset(from_ascii("ref"))
case LFUN_MOUSE_RELEASE:
if (cmd.button() == mouse_button::button3) {
- lyxerr << "trying to goto ref '" << to_utf8(asString(cell(0))) << "'" << endl;
+ LYXERR0("trying to goto ref '" << to_utf8(asString(cell(0))) << "'");
cur.bv().dispatch(FuncRequest(LFUN_LABEL_GOTO, asString(cell(0))));
break;
}
}
-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>";
icp["reference"] = asString(cell(0));
if (!cell(1).empty())
icp["name"] = asString(cell(1));
- return InsetCommandMailer::params2string(name, icp);
+ return InsetCommand::params2string(name, icp);
}