From: Norman Walsh Date: Tue, 25 Jun 2002 13:58:12 +0000 (+0000) Subject: Nearly complete rewrite; this will become V3.0 X-Git-Tag: release/1.79.1~6^2~5540 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ede3d3d4cacfbc88f97445cf151c06610b541670;p=docbook-dsssl Nearly complete rewrite; this will become V3.0 --- diff --git a/slides/Makefile b/slides/Makefile index 9e9eda084..dc48b97de 100644 --- a/slides/Makefile +++ b/slides/Makefile @@ -5,7 +5,7 @@ NEWVER= all: slides.dtd -slides.dtd: slides-custom.dtd +slides.dtd: slides-custom.dtd slides.mod $(FLATTEN) $< > $@ check: diff --git a/slides/browser/overlay.js b/slides/browser/overlay.js index 644bb5b96..9b52d9b7c 100644 --- a/slides/browser/overlay.js +++ b/slides/browser/overlay.js @@ -19,7 +19,7 @@ var overlayIE = document.all ? 1 : 0; var overlayNS6 = document.getElementById && !document.all ? 1 : 0; var overlayPadX = 15; -var overlayPadY = 5; +var overlayPadY = 15; var overlayDelay = 60; var overlayCorner = 'ur'; // ul, ll, ur, lr, uc, lc, cl, cr @@ -47,19 +47,21 @@ function overlayRefresh() { } overlayH = overlayDiv.offsetHeight; - overlayW = overlayDiv.offsetWidth; + overlayW = body.offsetWidth; // overlayDiv.offsetWidth; contentH = body.offsetHeight; } else if (overlayNS4) { overlayLy = window.innerHeight; overlayLx = window.innerWidth; overlayH = document.overlayDiv.clip.height; - overlayW = document.overlayDiv.clip.width; + overlayW = body.clip.width; // document.overlayDiv.clip.width; contentH = body.clip.height; } else if (overlayNS6) { + var odiv = document.getElementById('overlayDiv'); + overlayLy = window.innerHeight; overlayLx = window.innerWidth; - overlayH = document.getElementById('overlayDiv').offsetHeight; - overlayW = document.getElementById('overlayDiv').offsetWidth; + overlayH = odiv.offsetHeight; + overlayW = body.offsetWidth; // odiv.offsetWidth; contentH = body.offsetHeight; } @@ -108,9 +110,11 @@ function overlayRefresh() { var div = document.getElementById("overlayDiv"); var leftpx = overlayX; var toppx = overlayY+window.pageYOffset; + var widthpx = overlayW; div.style.left = leftpx + "px"; div.style.top = toppx + "px"; + div.style.width = widthpx + "px"; if (contentH > overlayLy) { div.style.visibility = "hidden"; diff --git a/slides/browser/slides-default.css b/slides/browser/slides-default.css new file mode 100644 index 000000000..1022d6bc0 --- /dev/null +++ b/slides/browser/slides-default.css @@ -0,0 +1,9 @@ +@import url('slides.css'); + +.toclink { font-size: 10pt; + font-weight: normal; + } + +.toclink a { color: blue; } +.toclink a:link { color: blue; } +.toclink a:visited { color: blue; } diff --git a/slides/browser/slides-frames.css b/slides/browser/slides-frames.css new file mode 100644 index 000000000..47d6f8fb2 --- /dev/null +++ b/slides/browser/slides-frames.css @@ -0,0 +1,73 @@ +@import url('slides.css'); + +.toc-body { margin-left: 2px; + margin-right: 2px; + } + +.foil-body { margin-left: 2px; + margin-right: 2px; + } + +h1.title { margin-top: 0px; + padding-top: 0px; + } + +.navhead { display: visible; + } + +.navfoot { display: visible; + } + +/* ====================================================================== */ + +.navfoot { border-top: 1px solid black; + margin-top: 10px; + padding-top: 4px; + } +/* ====================================================================== */ + +.toc { font-weight: bold; + font-size: 10pt; + } + +.toc a { text-decoration: none; } +.toc a:link { color: blue; } +.toc a:visited { color: blue; } + +.toc .toc-foilgroup a { color: red; } +.toc .toc-foilgroup a:link { color: red; } +.toc .toc-foilgroup a:visited { color: red; } + +.toc .toc-titlefoil a { color: black; } +.toc .toc-titlefoil a:link { color: black; } +.toc .toc-titlefoil a:visited { color: black; } + +.toc .toc-foil a { color: blue; } +.toc .toc-foil a:link { color: blue; } +.toc .toc-foil a:visited { color: blue; } + +.toc-slidesinfo { font-family: sans-serif; + font-weight: bold; + text-align: center; + } + +.toc-titlefoil { font-family: sans-serif; + font-weight: bold; + text-align: center; + } + +.toc-foilgroup { font-family: sans-serif; + margin-left: 0.25in; + text-indent: -0.25in; + font-weight: bold; + color: red; + } + +.toc-foil { font-family: sans-serif; + font-size: 10pt; + margin-left: 0.25in; + text-indent: -0.4in; + font-weight: bold; + color: blue; + } + diff --git a/slides/browser/slides-plain.css b/slides/browser/slides-plain.css new file mode 100644 index 000000000..c22f2891c --- /dev/null +++ b/slides/browser/slides-plain.css @@ -0,0 +1 @@ +@import url('slides.css'); diff --git a/slides/browser/slides-table.css b/slides/browser/slides-table.css new file mode 100644 index 000000000..1c195c9e5 --- /dev/null +++ b/slides/browser/slides-table.css @@ -0,0 +1,41 @@ +@import url('slides.css'); + +.toc-body { margin-left: 2px; + margin-right: 2px; + } + +.foil-body { margin-left: 2px; + margin-right: 2px; + } + +.foilgroup-body { margin-left: 2px; + margin-right: 2px; + } + +h1.title { + margin-top: 0px; + padding-top: 0px; + } + +/* ToC Stuff */ + +.ttoc { + font-size: 10pt; + color: white; + } + +.ttoc a { text-decoration: none; } +.ttoc a:link { color: white } +.ttoc a:visited { color: white } + +.ttoc-title { + font-size: 10pt; + } + +.ttoc-foilset { + font-size: 10pt; + } + +.ttoc-foil { + font-size: 10pt; + } diff --git a/slides/browser/slides-w3c.css b/slides/browser/slides-w3c.css new file mode 100644 index 000000000..c22f2891c --- /dev/null +++ b/slides/browser/slides-w3c.css @@ -0,0 +1 @@ +@import url('slides.css'); diff --git a/slides/browser/slides.css b/slides/browser/slides.css index 85de086fe..0febaa465 100644 --- a/slides/browser/slides.css +++ b/slides/browser/slides.css @@ -1,143 +1,115 @@ -.slidesinfo { text-align: center } -.slidesinfo h1.title { color: blue; - font-family: Arial; +/* General formatting */ + +body { font-family: sans-serif; font-weight: bold; } + +.copyright { color: #7F7F7F; + } + +/* Title page formatting */ + +.slidesinfo { text-align: center; } + +.slidesinfo h1.title { color: blue; + } + .slidesinfo h1.author { color: green; } -.section { font-family: sans-serif; - font-size: 14pt; - font-weight: bold; +.slidesinfo .copyright { color: black; } -.section h1.title { text-align: center; - color: red; - font-family: Arial; + + +/* ToC page formatting */ + +.tocpage h1.title { color: blue; + text-align: center; } -.foil { font-family: sans-serif; - font-size: 14pt; - font-weight: bold; + +.tocpage a { text-decoration: none; } +.tocpage a:link { color: blue; } +.tocpage a:visited { color: blue; } + +.toc-body { margin-left: 0.5in; + margin-right: 0.5in; + } + +/* Foil page formatting */ + +.foil { font-size: 16pt; } -.foil h1.title { text-align: center; +.foil h1.title { text-align: center; color: blue; - font-family: Arial; padding-top: 0pt; margin-top: 0pt; } -.foil h2.subtitle { text-align: center; +.foil h2.subtitle { text-align: center; color: blue; - font-family: Arial; padding-top: 0pt; margin-top: 0pt; } -.mediaobject { text-align: center; +.foil pre { font-size: 18pt; } -/* ====================================================================== */ - -span.navheader { font-family: sans-serif; - font-size: 10pt; - font-weight: bold; - color: black; +.foil-body { margin-left: 0.5in; + margin-right: 0.5in; } -span.navfooter { font-family: sans-serif; - font-size: 8pt; - } - -/* ====================================================================== */ +/* Foilgroup page formatting */ -.toc { font-weight: bold; - font-size: 10pt; +.foilgroup { font-size: 16pt; } - -.toc a { text-decoration: none; } -.toc a:link { color: blue; } -.toc a:visited { color: blue; } - -.toc .toc-section a { color: red; } -.toc .toc-section a:link { color: red; } -.toc .toc-section a:visited { color: red; } - -.toc .toc-titlefoil a { color: black; } -.toc .toc-titlefoil a:link { color: black; } -.toc .toc-titlefoil a:visited { color: black; } - -.toc .toc-foil a { color: blue; } -.toc .toc-foil a:link { color: blue; } -.toc .toc-foil a:visited { color: blue; } - -.toc-slidesinfo { font-family: sans-serif; - font-weight: bold; - text-align: center; - } - -.toc-titlefoil { font-family: sans-serif; - font-weight: bold; - text-align: center; - } - -.toc-section { font-family: sans-serif; - margin-left: 0.25in; - text-indent: -0.25in; - font-weight: bold; +.foilgroup h1.title { text-align: center; color: red; + padding-top: 0pt; + margin-top: 0pt; } - -.toc-foil { font-family: sans-serif; - font-size: 10pt; - margin-left: 0.25in; - text-indent: -0.4in; - font-weight: bold; +.foilgroup h2.subtitle { text-align: center; color: blue; + padding-top: 0pt; + margin-top: 0pt; } -/* ====================================================================== */ - -.ttoc { - font-size: 10pt; - color: white; +.foilgroup-body { margin-left: 0.5in; + margin-right: 0.5in; } -.ttoc a { text-decoration: none; } -.ttoc a:link { color: white } -.ttoc a:visited { color: white } +/* Navigation header formatting */ -.ttoc-title { - font-size: 10pt; +.navhead { border-bottom: 1px solid black; + margin-bottom: 10px; + padding-bottom: 4px; } -.ttoc-section { +.navhead hr.top-nav-sep { display: none; } + +.navhead .slidestitle { font-weight: normal; font-size: 10pt; + font-style: italic; } -.ttoc-foil { - font-size: 10pt; +/* Navigation footer formatting */ + +.navfoot { border-top: 1px solid black; + margin-top: 10px; + padding-top: 4px; } -/* ====================================================================== */ +.navfoot hr.bottom-nav-sep { display: none; } -body.topnavigation { margin-top: 5px; - margin-left: 10px; - margin-right: 10px; - } +/* General navigation formatting */ -body.foil { margin-top: 5px; - margin-left: 10px; - margin-right: 10px; - } +.link-text { font-weight: bold + font-size: 10pt; + } -body.botnavigation { margin-top: 0px; - padding-top: 0px; - margin-left: 10px; - margin-right: 10px; - } -/* ====================================================================== */ +.link-text a { text-decoration: none; } +.link-text a:link { color: blue; } +.link-text a:visited { color: blue; } -div.vnav { - margin-top: 2in; - } +.no-link-text { color: #7F7F7F; } -/* ====================================================================== */ +/* EOF */ diff --git a/slides/graphics/active/arr-next.png b/slides/graphics/active/arr-next.png new file mode 100644 index 000000000..c8b8674aa Binary files /dev/null and b/slides/graphics/active/arr-next.png differ diff --git a/slides/graphics/active/arr-prev.png b/slides/graphics/active/arr-prev.png new file mode 100644 index 000000000..f94e27ef7 Binary files /dev/null and b/slides/graphics/active/arr-prev.png differ diff --git a/slides/graphics/but-fforward.png b/slides/graphics/active/but-fforward.png similarity index 100% rename from slides/graphics/but-fforward.png rename to slides/graphics/active/but-fforward.png diff --git a/slides/graphics/but-info.png b/slides/graphics/active/but-info.png similarity index 100% rename from slides/graphics/but-info.png rename to slides/graphics/active/but-info.png diff --git a/slides/graphics/but-next.png b/slides/graphics/active/but-next.png similarity index 100% rename from slides/graphics/but-next.png rename to slides/graphics/active/but-next.png diff --git a/slides/graphics/but-prev.png b/slides/graphics/active/but-prev.png similarity index 100% rename from slides/graphics/but-prev.png rename to slides/graphics/active/but-prev.png diff --git a/slides/graphics/but-rewind.png b/slides/graphics/active/but-rewind.png similarity index 100% rename from slides/graphics/but-rewind.png rename to slides/graphics/active/but-rewind.png diff --git a/slides/graphics/active/nav-home.png b/slides/graphics/active/nav-home.png new file mode 100644 index 000000000..95fe6eeee Binary files /dev/null and b/slides/graphics/active/nav-home.png differ diff --git a/slides/graphics/active/nav-next.png b/slides/graphics/active/nav-next.png new file mode 100644 index 000000000..46aac7dcc Binary files /dev/null and b/slides/graphics/active/nav-next.png differ diff --git a/slides/graphics/active/nav-prev.png b/slides/graphics/active/nav-prev.png new file mode 100644 index 000000000..e744535b2 Binary files /dev/null and b/slides/graphics/active/nav-prev.png differ diff --git a/slides/graphics/active/nav-toc.png b/slides/graphics/active/nav-toc.png new file mode 100644 index 000000000..9b1e0ba52 Binary files /dev/null and b/slides/graphics/active/nav-toc.png differ diff --git a/slides/graphics/active/nav-up.png b/slides/graphics/active/nav-up.png new file mode 100644 index 000000000..8ad45eb91 Binary files /dev/null and b/slides/graphics/active/nav-up.png differ diff --git a/slides/graphics/right.png b/slides/graphics/active/w3c-next.png similarity index 100% rename from slides/graphics/right.png rename to slides/graphics/active/w3c-next.png diff --git a/slides/graphics/left.png b/slides/graphics/active/w3c-prev.png similarity index 100% rename from slides/graphics/left.png rename to slides/graphics/active/w3c-prev.png diff --git a/slides/graphics/toc.png b/slides/graphics/active/w3c-toc.png similarity index 100% rename from slides/graphics/toc.png rename to slides/graphics/active/w3c-toc.png diff --git a/slides/graphics/blank.png b/slides/graphics/blank.png index 946770535..8c58c6b94 100644 Binary files a/slides/graphics/blank.png and b/slides/graphics/blank.png differ diff --git a/slides/graphics/bullet.gif b/slides/graphics/bullet.gif deleted file mode 100644 index b1369de30..000000000 Binary files a/slides/graphics/bullet.gif and /dev/null differ diff --git a/slides/graphics/but-xfforward.png b/slides/graphics/inactive/but-fforward.png similarity index 100% rename from slides/graphics/but-xfforward.png rename to slides/graphics/inactive/but-fforward.png diff --git a/slides/graphics/inactive/but-info.png b/slides/graphics/inactive/but-info.png new file mode 100644 index 000000000..fdf1f1d90 Binary files /dev/null and b/slides/graphics/inactive/but-info.png differ diff --git a/slides/graphics/but-xnext.png b/slides/graphics/inactive/but-next.png similarity index 100% rename from slides/graphics/but-xnext.png rename to slides/graphics/inactive/but-next.png diff --git a/slides/graphics/but-xprev.png b/slides/graphics/inactive/but-prev.png similarity index 100% rename from slides/graphics/but-xprev.png rename to slides/graphics/inactive/but-prev.png diff --git a/slides/graphics/but-xrewind.png b/slides/graphics/inactive/but-rewind.png similarity index 100% rename from slides/graphics/but-xrewind.png rename to slides/graphics/inactive/but-rewind.png diff --git a/slides/graphics/inactive/nav-home.png b/slides/graphics/inactive/nav-home.png new file mode 100644 index 000000000..734845adf Binary files /dev/null and b/slides/graphics/inactive/nav-home.png differ diff --git a/slides/graphics/inactive/nav-next.png b/slides/graphics/inactive/nav-next.png new file mode 100644 index 000000000..1d32d67c5 Binary files /dev/null and b/slides/graphics/inactive/nav-next.png differ diff --git a/slides/graphics/inactive/nav-prev.png b/slides/graphics/inactive/nav-prev.png new file mode 100644 index 000000000..cfca206ca Binary files /dev/null and b/slides/graphics/inactive/nav-prev.png differ diff --git a/slides/graphics/inactive/nav-toc.png b/slides/graphics/inactive/nav-toc.png new file mode 100644 index 000000000..d63483beb Binary files /dev/null and b/slides/graphics/inactive/nav-toc.png differ diff --git a/slides/graphics/inactive/nav-up.png b/slides/graphics/inactive/nav-up.png new file mode 100644 index 000000000..689af7e63 Binary files /dev/null and b/slides/graphics/inactive/nav-up.png differ diff --git a/slides/graphics/bright.png b/slides/graphics/inactive/w3c-next.png similarity index 100% rename from slides/graphics/bright.png rename to slides/graphics/inactive/w3c-next.png diff --git a/slides/graphics/bleft.png b/slides/graphics/inactive/w3c-prev.png similarity index 100% rename from slides/graphics/bleft.png rename to slides/graphics/inactive/w3c-prev.png diff --git a/slides/graphics/inactive/w3c-toc.png b/slides/graphics/inactive/w3c-toc.png new file mode 100644 index 000000000..458539d34 Binary files /dev/null and b/slides/graphics/inactive/w3c-toc.png differ diff --git a/slides/graphics/left.gif b/slides/graphics/left.gif deleted file mode 100644 index 8d04f7b1d..000000000 Binary files a/slides/graphics/left.gif and /dev/null differ diff --git a/slides/graphics/minus.gif b/slides/graphics/minus.gif deleted file mode 100644 index 49c68b1cc..000000000 Binary files a/slides/graphics/minus.gif and /dev/null differ diff --git a/slides/graphics/plus.gif b/slides/graphics/plus.gif index 530b337c2..3cd2b081a 100644 Binary files a/slides/graphics/plus.gif and b/slides/graphics/plus.gif differ diff --git a/slides/graphics/pointer.png b/slides/graphics/pointer.png new file mode 100644 index 000000000..35d48308d Binary files /dev/null and b/slides/graphics/pointer.png differ diff --git a/slides/graphics/right.gif b/slides/graphics/right.gif deleted file mode 100644 index 0026633be..000000000 Binary files a/slides/graphics/right.gif and /dev/null differ diff --git a/slides/graphics/toc/bullet.png b/slides/graphics/toc/bullet.png new file mode 100644 index 000000000..3878b5b87 Binary files /dev/null and b/slides/graphics/toc/bullet.png differ diff --git a/slides/graphics/toc/closed.png b/slides/graphics/toc/closed.png new file mode 100644 index 000000000..b99daf70c Binary files /dev/null and b/slides/graphics/toc/closed.png differ diff --git a/slides/graphics/toc/open.png b/slides/graphics/toc/open.png new file mode 100644 index 000000000..e96afe3cb Binary files /dev/null and b/slides/graphics/toc/open.png differ diff --git a/slides/slides-custom.dtd b/slides/slides-custom.dtd index 95f5df69a..6d56721cd 100644 --- a/slides/slides-custom.dtd +++ b/slides/slides-custom.dtd @@ -65,8 +65,8 @@ - + %sdocbook.dtd; diff --git a/slides/slides.mod b/slides/slides.mod index 17972b619..e195639f3 100644 --- a/slides/slides.mod +++ b/slides/slides.mod @@ -10,7 +10,8 @@ --> - + + - - - - diff --git a/slides/tests/dbgentext.xml b/slides/tests/dbgentext.xml index 8ad77b81b..dec7e6551 100644 --- a/slides/tests/dbgentext.xml +++ b/slides/tests/dbgentext.xml @@ -1,6 +1,6 @@ - + @@ -19,7 +19,13 @@ Sun Microsystems, Inc. -
The Problem +Introduction +This is the introductory slide + + +The Problem + +This is one the foilgroup slide. Generated Text @@ -54,8 +60,8 @@ naturally -
-
A Solution + +A Solution The Old Solution @@ -114,8 +120,8 @@ is taken from an independently maintained lookup table: -
-
A Better Solution + +A Better Solution Use Markup Templates @@ -176,9 +182,9 @@ subtitle of the component, respectively. ]]> -
+ -
Resources +Resources Resources , the @@ -195,5 +201,5 @@ queries. -
+
diff --git a/slides/tests/minimal.xml b/slides/tests/minimal.xml new file mode 100644 index 000000000..e60b02329 --- /dev/null +++ b/slides/tests/minimal.xml @@ -0,0 +1,12 @@ + + + + +Presentation Title + +Foil Title +Foil content + + + diff --git a/slides/tests/test-full.xml b/slides/tests/test-full.xml index 155d8df22..118fe9693 100644 --- a/slides/tests/test-full.xml +++ b/slides/tests/test-full.xml @@ -6,7 +6,7 @@ 2001Norman Walsh -
Section 1 +Section 1 Test Slides Title 1 ...X @@ -19,8 +19,8 @@ this is a screen -
-
Section 2 + +Section 2 Test Slides Title 1 ... @@ -33,6 +33,6 @@ this is a screen -
+ diff --git a/slides/tests/testhtml.xml b/slides/tests/testhtml.xml index 257a10d32..3f6c771eb 100644 --- a/slides/tests/testhtml.xml +++ b/slides/tests/testhtml.xml @@ -2,7 +2,7 @@ - + HTML Test Slides Title 2001Norman Walsh @@ -54,8 +54,10 @@ this is a screen this is a screen + This foil contains some XHTML: item 1item 2 + diff --git a/slides/xsl/default.xsl b/slides/xsl/default.xsl new file mode 100644 index 000000000..0f94a95c9 --- /dev/null +++ b/slides/xsl/default.xsl @@ -0,0 +1,261 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hide/Show TOC + + + + + toggletoc(this, + + ,' + + ',' + + '); + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/slides/xsl/frames.xsl b/slides/xsl/frames.xsl index 3082828c0..01043293c 100644 --- a/slides/xsl/frames.xsl +++ b/slides/xsl/frames.xsl @@ -2,7 +2,13 @@ - + + + + + + + @@ -15,7 +21,7 @@ - + @@ -64,7 +70,7 @@ -