namespace lyx {
InsetMathRef::InsetMathRef()
- : CommandInset(from_ascii("ref"))
+ : CommandInset(from_ascii("ref"), false)
{}
InsetMathRef::InsetMathRef(docstring const & data)
- : CommandInset(data)
+ : CommandInset(data, false)
{}
case LFUN_MOUSE_RELEASE:
case LFUN_MOUSE_PRESS:
case LFUN_MOUSE_MOTION:
- status.enabled(true);
+ status.setEnabled(true);
return true;
default:
return CommandInset::getStatus(cur, cmd, status);
features.require("varioref");
else if (commandname() == "prettyref")
features.require("prettyref");
+ else if (commandname() == "eqref")
+ features.require("amsmath");
}
InsetMathRef::ref_type_info InsetMathRef::types[] = {
- { from_ascii("ref"), from_ascii(N_("Standard[[mathref]]")), from_ascii(N_("Ref: "))},
+ { from_ascii("ref"), from_ascii(N_("Standard[[mathref]]")), from_ascii(N_("Ref: "))},
{ from_ascii("eqref"), from_ascii(N_("Equation")), from_ascii(N_("EqRef: "))},
{ from_ascii("pageref"), from_ascii(N_("Page Number")), from_ascii(N_("Page: "))},
{ from_ascii("vpageref"), from_ascii(N_("Textual Page Number")), from_ascii(N_("TextPage: "))},