From f775f18d51e1556681a3d23be1b1716805ed301d Mon Sep 17 00:00:00 2001 From: Jirka Kosek Date: Sat, 9 Feb 2002 22:05:21 +0000 Subject: [PATCH] Added parameter which controls appearance of root element in HTML Help ToC. --- xsl/html/Makefile.param | 3 + xsl/html/param.ent | 1 + xsl/html/param.xweb | 2 + xsl/htmlhelp/htmlhelp.xsl | 169 +++++++++++++++----------- xsl/params/htmlhelp.hhc.show.root.xml | 24 ++++ 5 files changed, 126 insertions(+), 73 deletions(-) create mode 100644 xsl/params/htmlhelp.hhc.show.root.xml diff --git a/xsl/html/Makefile.param b/xsl/html/Makefile.param index 89daca59a..a55bbfbfd 100644 --- a/xsl/html/Makefile.param +++ b/xsl/html/Makefile.param @@ -24,6 +24,7 @@ PARAMS=../params/admon.graphics.xml \ ../params/chunk.datafile.xml \ ../params/chunk.first.sections.xml \ ../params/chunk.section.depth.xml \ + ../params/chunk.toc.xml \ ../params/citerefentry.link.xml \ ../params/css.decoration.xml \ ../params/default.encoding.xml \ @@ -72,6 +73,7 @@ PARAMS=../params/admon.graphics.xml \ ../params/htmlhelp.hhc.xml \ ../params/htmlhelp.hhc.folders.instead.books.xml \ ../params/htmlhelp.hhc.section.depth.xml \ + ../params/htmlhelp.hhc.show.root.xml \ ../params/htmlhelp.hhp.xml \ ../params/htmlhelp.hhp.tail.xml \ ../params/htmlhelp.map.file.xml \ @@ -86,6 +88,7 @@ PARAMS=../params/admon.graphics.xml \ ../params/make.valid.html.xml \ ../params/make.single.year.ranges.xml \ ../params/make.year.ranges.xml \ + ../params/manual.toc.xml \ ../params/navig.graphics.xml \ ../params/navig.graphics.extension.xml \ ../params/navig.graphics.path.xml \ diff --git a/xsl/html/param.ent b/xsl/html/param.ent index a3592a2c3..ddef8bcd6 100644 --- a/xsl/html/param.ent +++ b/xsl/html/param.ent @@ -73,6 +73,7 @@ + diff --git a/xsl/html/param.xweb b/xsl/html/param.xweb index d18a09435..4f8c77ea1 100644 --- a/xsl/html/param.xweb +++ b/xsl/html/param.xweb @@ -260,6 +260,7 @@ to be incomplete. Don't forget to read the source, too :-) &htmlhelp.map.file; &htmlhelp.alias.file; &htmlhelp.hhc.section.depth; +&htmlhelp.hhc.show.root; &htmlhelp.hhc.folders.instead.books; &htmlhelp.title; @@ -362,6 +363,7 @@ around all these parameters. + diff --git a/xsl/htmlhelp/htmlhelp.xsl b/xsl/htmlhelp/htmlhelp.xsl index 462c3018a..ef059fdcd 100644 --- a/xsl/htmlhelp/htmlhelp.xsl +++ b/xsl/htmlhelp/htmlhelp.xsl @@ -349,8 +349,10 @@ Title= </OBJECT> + <UL> + @@ -361,8 +363,11 @@ Title= + </UL> -</BODY> + + + </BODY> </HTML> @@ -379,14 +384,16 @@ Title= - <LI> <OBJECT type="text/sitemap"> - <param name="Name" value=" - - "> - <param name="Local" value=" - - "> - </OBJECT> + + <LI> <OBJECT type="text/sitemap"> + <param name="Name" value=" + + "> + <param name="Local" value=" + + "> + </OBJECT> + <UL> @@ -407,14 +414,16 @@ Title= - <LI> <OBJECT type="text/sitemap"> - <param name="Name" value=" - - "> - <param name="Local" value=" - - "> - </OBJECT> + + <LI> <OBJECT type="text/sitemap"> + <param name="Name" value=" + + "> + <param name="Local" value=" + + "> + </OBJECT> + <UL> - <LI> <OBJECT type="text/sitemap"> - <param name="Name" value=" - - "> - <param name="Local" value=" - - "> - </OBJECT> + + <LI> <OBJECT type="text/sitemap"> + <param name="Name" value=" + + "> + <param name="Local" value=" + + "> + </OBJECT> + <UL> - <LI> <OBJECT type="text/sitemap"> - <param name="Name" value=" - - "> - <param name="Local" value=" - - "> - </OBJECT> + + <LI> <OBJECT type="text/sitemap"> + <param name="Name" value=" + + "> + <param name="Local" value=" + + "> + </OBJECT> + <UL> @@ -495,14 +508,16 @@ Title= - <LI> <OBJECT type="text/sitemap"> - <param name="Name" value=" - - "> - <param name="Local" value=" - - "> - </OBJECT> + + <LI> <OBJECT type="text/sitemap"> + <param name="Name" value=" + + "> + <param name="Local" value=" + + "> + </OBJECT> + <UL> - <LI> <OBJECT type="text/sitemap"> - <param name="Name" value=" - - "> - <param name="Local" value=" - - "> - </OBJECT> + + <LI> <OBJECT type="text/sitemap"> + <param name="Name" value=" + + "> + <param name="Local" value=" + + "> + </OBJECT> + <UL> - <LI> <OBJECT type="text/sitemap"> - <param name="Name" value=" - - "> - <param name="Local" value=" - - "> - </OBJECT> + + <LI> <OBJECT type="text/sitemap"> + <param name="Name" value=" + + "> + <param name="Local" value=" + + "> + </OBJECT> + <UL> - <LI> <OBJECT type="text/sitemap"> - <param name="Name" value=" - - "> - <param name="Local" value=" - - "> - </OBJECT> + + <LI> <OBJECT type="text/sitemap"> + <param name="Name" value=" + + "> + <param name="Local" value=" + + "> + </OBJECT> + <UL> - <LI> <OBJECT type="text/sitemap"> - <param name="Name" value=" - - "> - <param name="Local" value=" - - "> - </OBJECT> + + <LI> <OBJECT type="text/sitemap"> + <param name="Name" value=" + + "> + <param name="Local" value=" + + "> + </OBJECT> + diff --git a/xsl/params/htmlhelp.hhc.show.root.xml b/xsl/params/htmlhelp.hhc.show.root.xml new file mode 100644 index 000000000..3d4a5b424 --- /dev/null +++ b/xsl/params/htmlhelp.hhc.show.root.xml @@ -0,0 +1,24 @@ + + +htmlhelp.hhc.show.root +boolean + + +htmlhelp.hhc.show.root +Should be entry for root element shown in ToC? + + + + + + + + +Description + +If set to 0, there will be no entry for root element in +ToC. This is useful when you want provide user with expanded ToC as +a default. + + + -- 2.40.0