X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTocBackend.cpp;h=9bd435f2f209283245b5ae9d7ad2ef9c7115a5ff;hb=f6dd83a93621df9445c99219ab9d3cf1d00c2b82;hp=5599e1f362313fc0e01278a7dd6282eb2309545d;hpb=947aaf7a5769318f6dfe4d263b02ee1822f15cf2;p=lyx.git diff --git a/src/TocBackend.cpp b/src/TocBackend.cpp index 5599e1f362..9bd435f2f2 100644 --- a/src/TocBackend.cpp +++ b/src/TocBackend.cpp @@ -32,6 +32,7 @@ #include "support/convert.h" #include "support/debug.h" #include "support/docstream.h" +#include "support/gettext.h" #include "support/lassert.h" #include "support/lstrings.h" @@ -362,4 +363,11 @@ void TocBackend::writePlaintextTocList(string const & type, } +docstring TocBackend::outlinerName(std::string const & type) const +{ + return translateIfPossible( + buffer_->params().documentClass().outlinerName(type)); +} + + } // namespace lyx