mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
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:
parent
68db58a584
commit
228948534e
@ -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");
|
||||
|
@ -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:
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user