mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 14:04:25 +00:00
* 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
This commit is contained in:
parent
14d7b57487
commit
f30f4129e9
@ -20,7 +20,6 @@
|
|||||||
#include "BufferParams.h"
|
#include "BufferParams.h"
|
||||||
#include "Counters.h"
|
#include "Counters.h"
|
||||||
#include "Cursor.h"
|
#include "Cursor.h"
|
||||||
#include "support/debug.h"
|
|
||||||
#include "DispatchResult.h"
|
#include "DispatchResult.h"
|
||||||
#include "Exporter.h"
|
#include "Exporter.h"
|
||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
@ -34,6 +33,7 @@
|
|||||||
#include "TextClass.h"
|
#include "TextClass.h"
|
||||||
#include "TocBackend.h"
|
#include "TocBackend.h"
|
||||||
|
|
||||||
|
#include "support/debug.h"
|
||||||
#include "support/docstream.h"
|
#include "support/docstream.h"
|
||||||
#include "support/Translator.h"
|
#include "support/Translator.h"
|
||||||
|
|
||||||
@ -138,7 +138,7 @@ docstring const InsetNote::editMessage() const
|
|||||||
|
|
||||||
docstring InsetNote::name() 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);
|
ParConstIterator pit = par_const_iterator_begin(*this);
|
||||||
|
|
||||||
Toc & toc = toclist["note"];
|
Toc & toc = toclist["note"];
|
||||||
// FIXME: we probably want the note type too.
|
docstring const str = notetranslator_loc().find(params_.type)
|
||||||
docstring str;
|
+ from_ascii(": ") + getNewLabel(str);
|
||||||
str = getNewLabel(str);
|
|
||||||
toc.push_back(TocItem(pit, 0, str));
|
toc.push_back(TocItem(pit, 0, str));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user