X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fref_inset.C;h=89ef47cd1e0169e1d5e8c6a4c3543e9117930426;hb=c649284611c4198c9d70be8a16d153cdf1ec0700;hp=c607d198121245ad87c79ea1065121d092415bf5;hpb=4d59d00ad4bad81050cd2f50e71ad7056765033e;p=lyx.git diff --git a/src/mathed/ref_inset.C b/src/mathed/ref_inset.C index c607d19812..89ef47cd1e 100644 --- a/src/mathed/ref_inset.C +++ b/src/mathed/ref_inset.C @@ -1,3 +1,4 @@ +#include #include "ref_inset.h" #include "math_cursor.h" @@ -10,6 +11,8 @@ #include "lyxfunc.h" #include "gettext.h" #include "LaTeXFeatures.h" +#include "debug.h" + RefInset::RefInset() : CommandInset("ref") @@ -33,17 +36,17 @@ void RefInset::infoize(std::ostream & os) const } -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); @@ -108,6 +111,7 @@ int RefInset::docbook(std::ostream & os, bool) const return 0; } + RefInset::type_info RefInset::types[] = { { "ref", N_("Standard"), N_("Ref: ")}, { "pageref", N_("Page Number"), N_("Page: ")},