Lines Matching defs:HTML
1 #=== HTML::TocGenerator =======================================================
2 # function: Generate 'HTML::Toc' table of contents.
6 package HTML::TocGenerator;
10 use HTML::Parser;
18 @ISA = qw(HTML::Parser);
71 #--- HTML::TocGenerator::new() ------------------------------------------------
93 #--- HTML::TocGenerator::_deinitializeBatch() ---------------------------------
101 #--- HTML::TocGenerator::_deinitializeExtenderBatch() -------------------------
115 #--- HTML::TocGenerator::_deinitializeGeneratorBatch() ------------------------
125 #--- HTML::TocGenerator::_doesHashContainHash() -------------------------------
189 #--- HTML::TocGenerator::_extend() --------------------------------------------
205 #--- HTML::TocGenerator::_extendFromFile() ------------------------------------
228 #--- HTML::TocGenerator::_formatHeadingLevel() --------------------------------
277 #--- HTML::TocGenerator::_formatTocNode() -------------------------------------
306 #--- HTML::TocGenerator::_generate() ------------------------------------------
325 #--- HTML::TocGenerator::_generateFromFile() ----------------------------------
344 #--- HTML::TocGenerator::_getGroupIdManager() ---------------------------------
368 #--- HTML::TocGenerator::_initializeBatch() -----------------------------------
400 #--- HTML::TocGenerator::_initializeExtenderBatch() --------------------------
417 #--- HTML::TocGenerator::_initializeGeneratorBatch() --------------------------
445 #--- HTML::TocGenerator::_linkTocToToken() ------------------------------------
559 #--- HTML::TocGenerator::_outputAnchorNameEndConditionally() ------------------
581 #--- HTML::TocGenerator::_parseTocOptions() -----------------------------------
591 my $tokenTocBeginParser = HTML::_TokenTocBeginParser->new(
594 my $tokenTocEndParser = HTML::_TokenTocEndParser->new();
619 #--- HTML::TocGenerator::_processTocEndingToken() -----------------------------
645 #--- HTML::TocGenerator::_processTocStartingToken() ---------------------------
790 #--- HTML::TocGenerator::_processTocText() ------------------------------------
804 #--- HTML::TocGenerator::_processTokenAsTocEndingToken() ----------------------
842 #--- HTML::TocGenerator::_processTokenAsTocStartingToken() --------------------
878 HTML::TocGenerator::_doesHashContainHash(
881 HTML::TocGenerator::_doesHashContainHash(
912 #--- HTML::TocGenerator::_resetBatchVariables() -------------------------------
959 #--- HTML::TocGenerator::_resetStackVariables() -------------------------------
971 #--- HTML::TocGenerator::_setActiveAnchorName() -------------------------------
983 #--- HTML::TocGenerator::_showWarning() ---------------------------------------
1005 #--- HTML::TocGenerator::anchorId() -------------------------------------------
1015 #--- HTML::TocGenerator::anchorNameBegin() ------------------------------------
1025 #--- HTML::TocGenerator::anchorNameEnd() --------------------------------------
1035 #--- HTML::TocGenerator::comment() --------------------------------------------
1057 #--- HTML::TocGenerator::end() ------------------------------------------------
1088 #--- HTML::TocGenerator::extend() ---------------------------------------------
1105 #--- HTML::TocGenerator::extendFromFile() -------------------------------------
1122 #--- HTML::TocGenerator::generate() -------------------------------------------
1140 #--- HTML::TocGenerator::generateFromFile() -----------------------------------
1158 #--- HTML::TocGenerator::number() ---------------------------------------------
1170 #--- HTML::TocGenerator::parse() ----------------------------------------------
1182 #--- HTML::TocGenerator::parse_file() -----------------------------------------
1193 #--- HTML::TocGenerator::setOptions() -----------------------------------------
1208 #--- HTML::TocGenerator::start() ----------------------------------------------
1215 # - $aOrigText: the original HTML text
1255 #--- HTML::TocGenerator::text() -----------------------------------------------
1289 #=== HTML::_TokenTocParser ====================================================
1290 # function: Parse 'toc tokens'. 'Toc tokens' mark HTML code which is to be
1294 package HTML::_TokenTocParser;
1300 @ISA = qw(HTML::Parser);
1307 #--- HTML::_TokenTocParser::new() ---------------------------------------------
1321 #--- HTML::_TokenTocParser::_parseAttributes() --------------------------------
1372 #=== HTML::_TokenTocBeginParser ===============================================
1373 # function: Parse 'toc tokens'. 'Toc tokens' mark HTML code which is to be
1377 package HTML::_TokenTocBeginParser;
1383 @ISA = qw(HTML::_TokenTocParser);
1389 #--- HTML::_TokenTocBeginParser::new() ----------------------------------------
1407 #--- HTML::_TokenTocBeginParser::_processAttributes() -------------------------
1426 HTML::TocGenerator::TT_INCLUDE_ATTRIBUTES_BEGIN
1434 HTML::TocGenerator::TT_EXCLUDE_ATTRIBUTES_BEGIN
1442 HTML::TocGenerator::TT_ATTRIBUTES_TOC
1448 #--- HTML::_TokenTocBeginParser::_processToken() ------------------------------
1466 $$tokenArray[$index][HTML::TocGenerator::TT_TAG_BEGIN] = $aTag;
1467 $$tokenArray[$index][HTML::TocGenerator::TT_GROUP] = $self->{_group};
1468 $$tokenArray[$index][HTML::TocGenerator::TT_TOC] = $self->{_toc};
1472 #--- HTML::_TokenTocBeginParser::comment() ------------------------------------
1480 $self->_processToken(HTML::TocGenerator::TT_TOKENTYPE_COMMENT, $aComment);
1484 #--- HTML::_TokenTocBeginParser::declaration() --------------------------------
1486 # encountered by HTML::Parser.
1494 HTML::TocGenerator::TT_TOKENTYPE_DECLARATION, $aDeclaration
1499 #--- HTML::_TokenTocBeginParser::end() ----------------------------------------
1501 # by HTML::Parser.
1508 $self->_processToken(HTML::TocGenerator::TT_TOKENTYPE_END, $aTag);
1512 #--- HTML::_TokenTocBeginParser::parse() --------------------------------------
1524 #--- HTML::_TokenTocBeginParser->setGroup() -----------------------------------
1535 #--- HTML::_TokenTocBeginParser->setToc() -------------------------------------
1546 #--- HTML::_TokenTocBeginParser::start() --------------------------------------
1553 # - $aOrigText: the original HTML text
1559 $self->_processToken(HTML::TocGenerator::TT_TOKENTYPE_START, $aTag);
1565 #--- HTML::_TokenTocBeginParser::text() ---------------------------------------
1575 $self->{_lastAddedTokenType} == HTML::TocGenerator::TT_TOKENTYPE_TEXT
1579 @${$self->{_lastAddedToken}}[HTML::TocGenerator::TT_TAG_BEGIN] .= $aText;
1584 $self->_processToken(HTML::TocGenerator::TT_TOKENTYPE_TEXT, $aText);
1591 #=== HTML::_TokenTocEndParser =================================================
1592 # function: Parse 'toc tokens'. 'Toc tokens' mark HTML code which is to be
1596 package HTML::_TokenTocEndParser;
1602 @ISA = qw(HTML::_TokenTocParser);
1609 #--- HTML::_TokenTocEndParser::new() ------------------------------------------
1625 #--- HTML::_TokenTocEndParser::_processAttributes() ---------------------------
1644 HTML::TocGenerator::TT_INCLUDE_ATTRIBUTES_END
1652 HTML::TocGenerator::TT_EXCLUDE_ATTRIBUTES_END
1658 #--- HTML::_TokenTocEndParser::_processToken() --------------------------------
1667 @${$self->{_token}}[HTML::TocGenerator::TT_TAG_TYPE_END] = $aTokenType;
1668 @${$self->{_token}}[HTML::TocGenerator::TT_TAG_END] = $aTag;
1674 #--- HTML::_TokenTocEndParser::comment() --------------------------------------
1682 $self->_processToken(HTML::TocGenerator::TT_TOKENTYPE_COMMENT, $aComment);
1686 #--- HTML
1688 # encountered by HTML::Parser.
1696 HTML::TocGenerator::TT_TOKENTYPE_DECLARATION, $aDeclaration
1701 #--- HTML::_TokenTocEndParser::end() ------------------------------------------
1703 # by HTML::Parser.
1710 $self->_processToken(HTML::TocGenerator::TT_TOKENTYPE_END, $aTag);
1714 #--- HTML::_TokenTocEndParser::parse() ----------------------------------------
1735 ($aTokenTypeBegin == HTML::TocGenerator::TT_TOKENTYPE_START)
1740 HTML::TocGenerator::TT_TAG_END,
1741 @${$self->{_token}}[HTML::TocGenerator::TT_TAG_BEGIN]
1752 #--- HTML::_TokenTocEndParser::start() ----------------------------------------
1759 # - $aOrigText: the original HTML text
1765 $self->_processToken(HTML::TocGenerator::TT_TOKENTYPE_START, $aTag);
1771 #--- HTML::_TokenTocEndParser::text() -----------------------------------------
1783 @${$self->{_token}}[HTML::TocGenerator::TT_TAG_END] .= $aText;
1788 $self->_processToken(HTML::TocGenerator::TT_TOKENTYPE_TEXT, $aText);