if (cmd.getArg(0) == "ref") {
MathData ar;
if (createInsetMath_fromDialogStr(cmd.argument(), ar)) {
if (cmd.getArg(0) == "ref") {
MathData ar;
if (createInsetMath_fromDialogStr(cmd.argument(), ar)) {
}
if (cmd.button() == mouse_button::button1) {
// Eventually trigger dialog with button 3, not 1
}
if (cmd.button() == mouse_button::button1) {
// Eventually trigger dialog with button 3, not 1
{
InsetCommandParams icp(REF_CODE, to_ascii(commandname()));
icp["reference"] = asString(cell(0));
if (!cell(1).empty())
icp["name"] = asString(cell(1));
{
InsetCommandParams icp(REF_CODE, to_ascii(commandname()));
icp["reference"] = asString(cell(0));
if (!cell(1).empty())
icp["name"] = asString(cell(1));