X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetNote.cpp;h=9b4ba5768d42407f9dd5da5d63be85b67b9bf13d;hb=9914f21bceef9610bd1822f96eff0aa6d1a8df7c;hp=9c9f862839351e8d50268ba661863d12de7c2f09;hpb=d866717ef7503a1373dd1cb3925e1ac97b079192;p=lyx.git diff --git a/src/insets/InsetNote.cpp b/src/insets/InsetNote.cpp index 9c9f862839..9b4ba5768d 100644 --- a/src/insets/InsetNote.cpp +++ b/src/insets/InsetNote.cpp @@ -50,7 +50,6 @@ namespace lyx { namespace { typedef Translator NoteTranslator; -typedef Translator NoteTranslatorLoc; NoteTranslator const init_notetranslator() { @@ -111,7 +110,7 @@ InsetNote::~InsetNote() } -docstring InsetNote::name() const +docstring InsetNote::layoutName() const { return from_ascii("Note:" + notetranslator().find(params_.type)); } @@ -311,6 +310,10 @@ void InsetNote::validate(LaTeXFeatures & features) const switch (params_.type) { case InsetNoteParams::Comment: features.require("verbatim"); + if (features.runparams().flavor == OutputParams::HTML) + // we do output this but set display to "none" by default, + // but people might want to use it. + InsetCollapsable::validate(features); break; case InsetNoteParams::Greyedout: features.require("color"); @@ -323,9 +326,9 @@ void InsetNote::validate(LaTeXFeatures & features) const } -docstring InsetNote::contextMenuName() const +string InsetNote::contextMenuName() const { - return from_ascii("context-note"); + return "context-note"; } bool InsetNote::allowSpellCheck() const