#include "support/debug.h"
#include "support/docstream.h"
#include "support/gettext.h"
#include "support/debug.h"
#include "support/docstream.h"
#include "support/gettext.h"
string2params(to_utf8(cmd.argument()), params_);
setButtonLabel();
// what we really want here is a TOC update, but that means
string2params(to_utf8(cmd.argument()), params_);
setButtonLabel();
// what we really want here is a TOC update, but that means
-void InsetNote::addToToc(DocIterator const & cpit, bool output_active) const
+void InsetNote::addToToc(DocIterator const & cpit, bool output_active,
+ UpdateType utype) const
- toc.push_back(TocItem(pit, 0, str, output_active, toolTipText(docstring(), 3, 60)));
+ str = translateIfPossible(il.labelstring()) + ": " + str;
+
+ shared_ptr<Toc> toc = buffer().tocBackend().toc("note");
+ toc->push_back(TocItem(pit, 0, str, output_active));
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);
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);