A comment, and a minor change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32732 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-01-01 02:08:22 +00:00
parent 68db58a584
commit 228948534e
2 changed files with 5 additions and 2 deletions

View File

@ -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");

View File

@ -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:
///