diff --git a/lib/layouts/stdinsets.inc b/lib/layouts/stdinsets.inc index 5e051a1517..69e1955ec0 100644 --- a/lib/layouts/stdinsets.inc +++ b/lib/layouts/stdinsets.inc @@ -224,3 +224,11 @@ InsetLayout URL EndPreamble End +InsetLayout OptArg + LabelString opt + LabelFont + Color collapsable + Size Small + EndFont + MultiPar false +End diff --git a/src/insets/InsetOptArg.cpp b/src/insets/InsetOptArg.cpp index 964c04e578..d4d3fa3e92 100644 --- a/src/insets/InsetOptArg.cpp +++ b/src/insets/InsetOptArg.cpp @@ -23,16 +23,12 @@ namespace lyx { InsetOptArg::InsetOptArg(BufferParams const & ins) : InsetCollapsable(ins) -{ - setLabel(_("opt")); -} +{} InsetOptArg::InsetOptArg(InsetOptArg const & in) : InsetCollapsable(in) -{ - setLabel(_("opt")); -} +{} Inset * InsetOptArg::clone() const diff --git a/src/insets/InsetOptArg.h b/src/insets/InsetOptArg.h index 849afe79a4..0f12d369b5 100644 --- a/src/insets/InsetOptArg.h +++ b/src/insets/InsetOptArg.h @@ -29,6 +29,8 @@ public: /// code of the inset InsetCode lyxCode() const { return OPTARG_CODE; } + /// + docstring name() const { return from_ascii("OptArg"); } /// return an message upon editing virtual docstring const editMessage() const;