X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetNomencl.cpp;h=ac990b14080423c447de52e9dceaae3507ae2747;hb=2bbf8e5f2d4ffd691258f94ba46baebf5aa3204c;hp=57f38647d0d845ded7a2b7f25b962dc70abd7054;hpb=6d41db574d47e6429fa1a27a68e76ad6254d7033;p=features.git diff --git a/src/insets/InsetNomencl.cpp b/src/insets/InsetNomencl.cpp index 57f38647d0..ac990b1408 100644 --- a/src/insets/InsetNomencl.cpp +++ b/src/insets/InsetNomencl.cpp @@ -49,7 +49,7 @@ namespace lyx { ///////////////////////////////////////////////////////////////////// InsetNomencl::InsetNomencl(Buffer * buf, InsetCommandParams const & p) - : InsetCommand(buf, p, "nomenclature"), + : InsetCommand(buf, p), nomenclature_entry_id(sgml::uniqueID(from_ascii("nomen"))) {} @@ -135,7 +135,7 @@ void InsetNomencl::validate(LaTeXFeatures & features) const ///////////////////////////////////////////////////////////////////// InsetPrintNomencl::InsetPrintNomencl(Buffer * buf, InsetCommandParams const & p) - : InsetCommand(buf, p, "nomencl_print") + : InsetCommand(buf, p) {} @@ -164,15 +164,14 @@ docstring InsetPrintNomencl::screenLabel() const void InsetPrintNomencl::doDispatch(Cursor & cur, FuncRequest & cmd) { - switch (cmd.action) { + switch (cmd.action()) { case LFUN_INSET_MODIFY: { InsetCommandParams p(NOMENCL_PRINT_CODE); // FIXME UNICODE - InsetCommand::string2params("nomencl_print", - to_utf8(cmd.argument()), p); + InsetCommand::string2params(to_utf8(cmd.argument()), p); if (p.getCmdName().empty()) { - cur.noUpdate(); + cur.noScreenUpdate(); break; } setParams(p); @@ -189,7 +188,7 @@ void InsetPrintNomencl::doDispatch(Cursor & cur, FuncRequest & cmd) bool InsetPrintNomencl::getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus & status) const { - switch (cmd.action) { + switch (cmd.action()) { case LFUN_INSET_DIALOG_UPDATE: case LFUN_INSET_MODIFY: