+#include <config.h>
#include "ref_inset.h"
#include "math_cursor.h"
#include "lyxfunc.h"
#include "gettext.h"
#include "LaTeXFeatures.h"
+#include "debug.h"
+
RefInset::RefInset()
: CommandInset("ref")
}
-int RefInset::dispatch(string const & cmd, idx_type, pos_type)
+int RefInset::dispatch(string const & cmd, idx_type, pos_type)
{
if (cmd == "mouse 3") {
- cerr << "trying to goto ref" << cell(0) << "\n";
+ lyxerr << "trying to goto ref" << cell(0) << "\n";
mathcursor->formula()->view()->owner()->getLyXFunc()->
dispatch(LFUN_REF_GOTO, asString(cell(0)));
return 1; // dispatched
}
-
+
if (cmd == "mouse 1") {
- cerr << "trying to open ref" << cell(0) << "\n";
+ lyxerr << "trying to open ref" << cell(0) << "\n";
// Eventually trigger dialog with button 3 not 1
// mathcursor->formula()->view()->owner()->getDialogs()
// ->showRef(this);
return 0;
}
+
RefInset::type_info RefInset::types[] = {
{ "ref", N_("Standard"), N_("Ref: ")},
{ "pageref", N_("Page Number"), N_("Page: ")},