From f30f4129e93b59145520fff9bd0355777c3f07ce Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 14 Feb 2008 07:30:33 +0000 Subject: [PATCH] * InsetNote::addToToc(): Prefix toc entries with note type. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22997 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetNote.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/insets/InsetNote.cpp b/src/insets/InsetNote.cpp index bb22daf5bc..e07d32e035 100644 --- a/src/insets/InsetNote.cpp +++ b/src/insets/InsetNote.cpp @@ -20,7 +20,6 @@ #include "BufferParams.h" #include "Counters.h" #include "Cursor.h" -#include "support/debug.h" #include "DispatchResult.h" #include "Exporter.h" #include "FuncRequest.h" @@ -34,6 +33,7 @@ #include "TextClass.h" #include "TocBackend.h" +#include "support/debug.h" #include "support/docstream.h" #include "support/Translator.h" @@ -138,7 +138,7 @@ docstring const InsetNote::editMessage() const docstring InsetNote::name() const { - return from_ascii(string("Note") + string(":") + string(notetranslator().find(params_.type))); + return from_ascii("Note:" + notetranslator().find(params_.type)); } @@ -225,9 +225,8 @@ void InsetNote::addToToc(TocList & toclist, Buffer const & /*buf*/, ParConstIter ParConstIterator pit = par_const_iterator_begin(*this); Toc & toc = toclist["note"]; - // FIXME: we probably want the note type too. - docstring str; - str = getNewLabel(str); + docstring const str = notetranslator_loc().find(params_.type) + + from_ascii(": ") + getNewLabel(str); toc.push_back(TocItem(pit, 0, str)); } -- 2.39.2