From: Richard Heck Date: Fri, 1 Jan 2010 02:08:22 +0000 (+0000) Subject: A comment, and a minor change. X-Git-Tag: 2.0.0~4621 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=228948534e017c1c6f70cfe6dc753f23914f2705;p=features.git A comment, and a minor change. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32732 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetTOC.cpp b/src/insets/InsetTOC.cpp index 9a52e26274..f7cd3dcdcf 100644 --- a/src/insets/InsetTOC.cpp +++ b/src/insets/InsetTOC.cpp @@ -102,13 +102,13 @@ docstring InsetTOC::xhtml(XHTMLStream &, OutputParams const & op) const odocstringstream ods; XHTMLStream xs(ods); - if (getCmdName() == "tableofcontents") { + string const & cmdname = getCmdName(); + if (cmdname == "tableofcontents") { Toc const & toc = buffer().tocBackend().toc("tableofcontents"); if (toc.empty()) return docstring(); xs << StartTag("div", "class='toc'"); - xs << StartTag("div", tocattr) << _("Table of Contents") << EndTag("div"); diff --git a/src/insets/InsetTOC.h b/src/insets/InsetTOC.h index a6bfe3d5cd..36d7d091c4 100644 --- a/src/insets/InsetTOC.h +++ b/src/insets/InsetTOC.h @@ -19,6 +19,9 @@ namespace lyx { /// Used to insert table of contents and similar lists +/// at present, supports only \tableofcontents. Other +/// such commands, such as \listoffigures, are supported +/// by InsetFloatList. class InsetTOC : public InsetCommand { public: ///