Lines Matching refs:toc
14 my $toc = HTML::Toc->new;
18 $toc->setOptions({
46 $toc->setOptions({
49 $tocInsertor->insert($toc, "<h1>Header</h1>", {'output' => \$output});
51 $toc->setOptions({'templateLevelBegin' => undef});
56 $tocGenerator->generate($toc, "<h1>Header1</h1>\n<h2>Header2</h2>");
57 $toc->setOptions({'levelToToc' => '1'});
58 ok($toc->format(), "<ul>\n<li>Header1\n</ul>");
59 $toc->setOptions({'levelToToc' => '.*'});
64 $toc->setOptions({
74 $tocGenerator->generate($toc, "<h1>Header1</h1>\n<h1 class=foo>Foo</h1>");
75 $toc->setOptions({'groupToToc' => 'foo'});
76 ok($toc->format(), "<ul>\n<li>Foo\n</ul>");
77 $toc->setOptions({'groupToToc' => '.*'});
82 $toc->setOptions({
90 $tocInsertor->insert($toc, "<h1>Header1</h1>", {'output' => \$output});
107 my $toc = new HTML::Toc;
111 $tocGenerator->generate($toc, <<EOT);
116 ok($toc->format(), <<EOT);
135 my $toc = new HTML::Toc;
139 $toc->setOptions({'doSingleStepLevel' => 0});
141 $tocGenerator->generate($toc, <<EOT);
146 ok($toc->format(), <<EOT);