string data;
if (name == "ref") {
InsetMathRef tmp(buffer_, name);
- data = tmp.createDialogStr(to_utf8(name));
+ data = tmp.createDialogStr();
cur.bv().showDialog(to_utf8(name), data);
} else if (name == "mathspace") {
cur.bv().showDialog(to_utf8(name));
break;
case LFUN_INSET_DIALOG_UPDATE: {
- string const data = createDialogStr("ref");
+ string const data = createDialogStr();
cur.bv().updateDialog("ref", data);
break;
}
}
if (cmd.button() == mouse_button::button1) {
// Eventually trigger dialog with button 3, not 1
- string const data = createDialogStr("ref");
+ string const data = createDialogStr();
cur.bv().showDialog("ref", data, this);
break;
}
}
-string const InsetMathRef::createDialogStr(string const & /*name*/) const
+string const InsetMathRef::createDialogStr() const
{
InsetCommandParams icp(REF_CODE, to_ascii(commandname()));
icp["reference"] = asString(cell(0));
/// docbook output
int docbook(odocstream & os, OutputParams const &) const;
/// generate something that will be understood by the Dialogs.
- std::string const createDialogStr(std::string const & name) const;
+ std::string const createDialogStr() const;
struct ref_type_info {
///