You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by bo...@apache.org on 2010/11/28 08:08:40 UTC
svn commit: r1039839 [1/5] - in /gump/trunk: ./ src/documentation/
src/documentation/skins/ src/documentation/skins/common/
src/documentation/skins/common/css/ src/documentation/skins/common/images/
src/documentation/skins/common/scripts/ src/documenta...
Author: bodewig
Date: Sun Nov 28 07:08:37 2010
New Revision: 1039839
URL: http://svn.apache.org/viewvc?rev=1039839&view=rev
Log:
mimic what forrest has done for its onw site to get the trademark statement displayed - we won't need our own skin anymore once Forrest 0.9 has been released
Added:
gump/trunk/src/documentation/skins/
gump/trunk/src/documentation/skins/common/
gump/trunk/src/documentation/skins/common/css/
gump/trunk/src/documentation/skins/common/css/forrest.css.xslt (with props)
gump/trunk/src/documentation/skins/common/images/
gump/trunk/src/documentation/skins/common/images/README.txt (with props)
gump/trunk/src/documentation/skins/common/images/add.jpg (with props)
gump/trunk/src/documentation/skins/common/images/built-with-forrest-button.png (with props)
gump/trunk/src/documentation/skins/common/images/corner-imports.svg.xslt (with props)
gump/trunk/src/documentation/skins/common/images/dc.svg.xslt (with props)
gump/trunk/src/documentation/skins/common/images/external-link.gif (with props)
gump/trunk/src/documentation/skins/common/images/fix.jpg (with props)
gump/trunk/src/documentation/skins/common/images/forrest-credit-logo.png (with props)
gump/trunk/src/documentation/skins/common/images/hack.jpg (with props)
gump/trunk/src/documentation/skins/common/images/pdfdoc.gif (with props)
gump/trunk/src/documentation/skins/common/images/poddoc.png (with props)
gump/trunk/src/documentation/skins/common/images/poddoc.svg.xslt (with props)
gump/trunk/src/documentation/skins/common/images/printer.gif (with props)
gump/trunk/src/documentation/skins/common/images/rc.svg.xslt (with props)
gump/trunk/src/documentation/skins/common/images/remove.jpg (with props)
gump/trunk/src/documentation/skins/common/images/rss.png (with props)
gump/trunk/src/documentation/skins/common/images/spacer.gif (with props)
gump/trunk/src/documentation/skins/common/images/txtdoc.png (with props)
gump/trunk/src/documentation/skins/common/images/txtdoc.svg.xslt (with props)
gump/trunk/src/documentation/skins/common/images/update.jpg (with props)
gump/trunk/src/documentation/skins/common/images/valid-html401.png (with props)
gump/trunk/src/documentation/skins/common/images/vcss.png (with props)
gump/trunk/src/documentation/skins/common/images/xmldoc.gif (with props)
gump/trunk/src/documentation/skins/common/scripts/
gump/trunk/src/documentation/skins/common/scripts/breadcrumbs-optimized.js (with props)
gump/trunk/src/documentation/skins/common/scripts/breadcrumbs.js (with props)
gump/trunk/src/documentation/skins/common/scripts/fontsize.js (with props)
gump/trunk/src/documentation/skins/common/scripts/getBlank.js (with props)
gump/trunk/src/documentation/skins/common/scripts/getMenu.js (with props)
gump/trunk/src/documentation/skins/common/scripts/menu.js (with props)
gump/trunk/src/documentation/skins/common/scripts/prototype.js (with props)
gump/trunk/src/documentation/skins/common/skinconf.xsl (with props)
gump/trunk/src/documentation/skins/common/translations/
gump/trunk/src/documentation/skins/common/translations/CommonMessages_de.xml (with props)
gump/trunk/src/documentation/skins/common/translations/CommonMessages_en_US.xml (with props)
gump/trunk/src/documentation/skins/common/translations/CommonMessages_es.xml (with props)
gump/trunk/src/documentation/skins/common/translations/CommonMessages_fr.xml (with props)
gump/trunk/src/documentation/skins/common/xslt/
gump/trunk/src/documentation/skins/common/xslt/fo/
gump/trunk/src/documentation/skins/common/xslt/fo/document-to-fo.xsl (with props)
gump/trunk/src/documentation/skins/common/xslt/fo/footerinfo.xsl (with props)
gump/trunk/src/documentation/skins/common/xslt/fo/pdfoutline.xsl (with props)
gump/trunk/src/documentation/skins/common/xslt/html/
gump/trunk/src/documentation/skins/common/xslt/html/book-to-menu.xsl (with props)
gump/trunk/src/documentation/skins/common/xslt/html/document-to-html.xsl (with props)
gump/trunk/src/documentation/skins/common/xslt/html/dotdots.xsl (with props)
gump/trunk/src/documentation/skins/common/xslt/html/pathutils.xsl (with props)
gump/trunk/src/documentation/skins/common/xslt/html/renderlogo.xsl (with props)
gump/trunk/src/documentation/skins/common/xslt/html/site-to-xhtml.xsl (with props)
gump/trunk/src/documentation/skins/common/xslt/html/split.xsl (with props)
gump/trunk/src/documentation/skins/common/xslt/html/strip_namespaces.xsl (with props)
gump/trunk/src/documentation/skins/common/xslt/html/tab-to-menu.xsl (with props)
gump/trunk/src/documentation/skins/common/xslt/html/tabutils.xsl (with props)
gump/trunk/src/documentation/skins/common/xslt/svg/
gump/trunk/src/documentation/skins/common/xslt/svg/document-to-svg.xsl (with props)
gump/trunk/src/documentation/skins/gump-site/
gump/trunk/src/documentation/skins/gump-site/css/
gump/trunk/src/documentation/skins/gump-site/css/basic.css (with props)
gump/trunk/src/documentation/skins/gump-site/css/print.css (with props)
gump/trunk/src/documentation/skins/gump-site/css/profile.css.xslt (with props)
gump/trunk/src/documentation/skins/gump-site/css/screen.css (with props)
gump/trunk/src/documentation/skins/gump-site/images/
gump/trunk/src/documentation/skins/gump-site/images/chapter.gif (with props)
gump/trunk/src/documentation/skins/gump-site/images/chapter_open.gif (with props)
gump/trunk/src/documentation/skins/gump-site/images/current.gif (with props)
gump/trunk/src/documentation/skins/gump-site/images/error.png (with props)
gump/trunk/src/documentation/skins/gump-site/images/header_white_line.gif (with props)
gump/trunk/src/documentation/skins/gump-site/images/info.png (with props)
gump/trunk/src/documentation/skins/gump-site/images/instruction_arrow.png (with props)
gump/trunk/src/documentation/skins/gump-site/images/label.gif (with props)
gump/trunk/src/documentation/skins/gump-site/images/page.gif (with props)
gump/trunk/src/documentation/skins/gump-site/images/pdfdoc.gif (with props)
gump/trunk/src/documentation/skins/gump-site/images/printer.gif (with props)
gump/trunk/src/documentation/skins/gump-site/images/success.png (with props)
gump/trunk/src/documentation/skins/gump-site/images/warning.png (with props)
gump/trunk/src/documentation/skins/gump-site/images/xmldoc.gif (with props)
gump/trunk/src/documentation/skins/gump-site/note.txt (with props)
gump/trunk/src/documentation/skins/gump-site/skinconf.xsl (with props)
gump/trunk/src/documentation/skins/gump-site/xslt/
gump/trunk/src/documentation/skins/gump-site/xslt/fo/
gump/trunk/src/documentation/skins/gump-site/xslt/fo/document-to-fo.xsl (with props)
gump/trunk/src/documentation/skins/gump-site/xslt/html/
gump/trunk/src/documentation/skins/gump-site/xslt/html/book-to-menu.xsl (with props)
gump/trunk/src/documentation/skins/gump-site/xslt/html/document-to-html.xsl (with props)
gump/trunk/src/documentation/skins/gump-site/xslt/html/site-to-xhtml.xsl (with props)
gump/trunk/src/documentation/skins/gump-site/xslt/html/tab-to-menu.xsl (with props)
Modified:
gump/trunk/forrest.properties
gump/trunk/src/documentation/skinconf.xml
Modified: gump/trunk/forrest.properties
URL: http://svn.apache.org/viewvc/gump/trunk/forrest.properties?rev=1039839&r1=1039838&r2=1039839&view=diff
==============================================================================
--- gump/trunk/forrest.properties (original)
+++ gump/trunk/forrest.properties Sun Nov 28 07:08:37 2010
@@ -1,2 +1,4 @@
forrest.validate.skinconf=false
forrest.validate.sitemap=false
+forrest.validate.skins.stylesheets=false
+project.skin=gump-site
Modified: gump/trunk/src/documentation/skinconf.xml
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skinconf.xml?rev=1039839&r1=1039838&r2=1039839&view=diff
==============================================================================
--- gump/trunk/src/documentation/skinconf.xml (original)
+++ gump/trunk/src/documentation/skinconf.xml Sun Nov 28 07:08:37 2010
@@ -95,6 +95,10 @@ which will be used to configure the chos
<!-- The optional copyright-link URL will be used as a link in the
copyright statement -->
<copyright-link>http://www.apache.org/licenses/</copyright-link>
+ <trademark-statement>
+ Apache Gump, Gump, Apache, the Apache feather logo, and the Apache Gump
+ project logos are trademarks of The Apache Software Foundation.
+ </trademark-statement>
<!-- Some skins use this to form a 'breadcrumb trail' of links.
Use location="alt" to move the trail to an alternate location
Added: gump/trunk/src/documentation/skins/common/css/forrest.css.xslt
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/css/forrest.css.xslt?rev=1039839&view=auto
==============================================================================
--- gump/trunk/src/documentation/skins/common/css/forrest.css.xslt (added)
+++ gump/trunk/src/documentation/skins/common/css/forrest.css.xslt Sun Nov 28 07:08:37 2010
@@ -0,0 +1,78 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<!-- This is not used by Forrest but makes it possible to debug the
+ stylesheet in standalone editors -->
+ <xsl:output method = "text" omit-xml-declaration="yes" />
+<!--
+ If the skin doesn't override this, at least aural styles
+ and extra-css are present
+-->
+ <xsl:template match="skinconfig">
+ <xsl:call-template name="aural"/>
+ <xsl:call-template name="a-external"/>
+ <xsl:apply-templates/>
+ <xsl:call-template name="add-extra-css"/>
+ </xsl:template>
+ <xsl:template match="colors">
+ <xsl:apply-templates/>
+ </xsl:template>
+ <xsl:template name="aural">
+
+/* ==================== aural ============================ */
+
+@media aural {
+ h1, h2, h3, h4, h5, h6 { voice-family: paul, male; stress: 20; richness: 90 }
+ h1 { pitch: x-low; pitch-range: 90 }
+ h2 { pitch: x-low; pitch-range: 80 }
+ h3 { pitch: low; pitch-range: 70 }
+ h4 { pitch: medium; pitch-range: 60 }
+ h5 { pitch: medium; pitch-range: 50 }
+ h6 { pitch: medium; pitch-range: 40 }
+ li, dt, dd { pitch: medium; richness: 60 }
+ dt { stress: 80 }
+ pre, code, tt { pitch: medium; pitch-range: 0; stress: 0; richness: 80 }
+ em { pitch: medium; pitch-range: 60; stress: 60; richness: 50 }
+ strong { pitch: medium; pitch-range: 60; stress: 90; richness: 90 }
+ dfn { pitch: high; pitch-range: 60; stress: 60 }
+ s, strike { richness: 0 }
+ i { pitch: medium; pitch-range: 60; stress: 60; richness: 50 }
+ b { pitch: medium; pitch-range: 60; stress: 90; richness: 90 }
+ u { richness: 0 }
+
+ :link { voice-family: harry, male }
+ :visited { voice-family: betty, female }
+ :active { voice-family: betty, female; pitch-range: 80; pitch: x-high }
+}
+ </xsl:template>
+ <xsl:template name="a-external">
+a.external {
+ padding: 0 20px 0px 0px;
+ display:inline;
+ background-repeat: no-repeat;
+ background-position: center right;
+ background-image: url(images/external-link.gif);
+}
+ </xsl:template>
+ <xsl:template name="add-extra-css">
+<xsl:text>/* extra-css */</xsl:text>
+ <xsl:value-of select="extra-css"/>
+ </xsl:template>
+ <xsl:template match="*"></xsl:template>
+ <xsl:template match="text()"></xsl:template>
+</xsl:stylesheet>
Propchange: gump/trunk/src/documentation/skins/common/css/forrest.css.xslt
------------------------------------------------------------------------------
svn:eol-style = native
Added: gump/trunk/src/documentation/skins/common/images/README.txt
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/README.txt?rev=1039839&view=auto
==============================================================================
--- gump/trunk/src/documentation/skins/common/images/README.txt (added)
+++ gump/trunk/src/documentation/skins/common/images/README.txt Sun Nov 28 07:08:37 2010
@@ -0,0 +1 @@
+The images in this directory are used if the current skin lacks them.
Propchange: gump/trunk/src/documentation/skins/common/images/README.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: gump/trunk/src/documentation/skins/common/images/add.jpg
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/add.jpg?rev=1039839&view=auto
==============================================================================
Binary file - no diff available.
Propchange: gump/trunk/src/documentation/skins/common/images/add.jpg
------------------------------------------------------------------------------
svn:mime-type = image/jpeg
Added: gump/trunk/src/documentation/skins/common/images/built-with-forrest-button.png
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/built-with-forrest-button.png?rev=1039839&view=auto
==============================================================================
Binary file - no diff available.
Propchange: gump/trunk/src/documentation/skins/common/images/built-with-forrest-button.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: gump/trunk/src/documentation/skins/common/images/corner-imports.svg.xslt
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/corner-imports.svg.xslt?rev=1039839&view=auto
==============================================================================
--- gump/trunk/src/documentation/skins/common/images/corner-imports.svg.xslt (added)
+++ gump/trunk/src/documentation/skins/common/images/corner-imports.svg.xslt Sun Nov 28 07:08:37 2010
@@ -0,0 +1,92 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:param name="orientation-tb"/>
+ <xsl:param name="orientation-lr"/>
+ <xsl:param name="size"/>
+ <xsl:param name="bg-color-name"/>
+ <xsl:param name="stroke-color-name"/>
+ <xsl:param name="fg-color-name"/>
+<!-- if not all colors are present, don't even try to render the corners -->
+ <xsl:variable name="isize">
+ <xsl:choose>
+ <xsl:when test="$bg-color-name and $stroke-color-name and $fg-color-name">
+ <xsl:value-of select="$size"/>
+ </xsl:when>
+ <xsl:otherwise>0</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="smallersize" select="number($isize)-1"/>
+ <xsl:variable name="biggersize" select="number($isize)+1"/>
+ <xsl:variable name="bg">
+ <xsl:if test="skinconfig/colors/color[@name=$bg-color-name]">fill:<xsl:value-of select="skinconfig/colors/color[@name=$bg-color-name]/@value"/>;</xsl:if>
+ </xsl:variable>
+ <xsl:variable name="fill">
+ <xsl:if test="skinconfig/colors/color[@name=$stroke-color-name]">fill:<xsl:value-of select="skinconfig/colors/color[@name=$stroke-color-name]/@value"/>;</xsl:if>
+ </xsl:variable>
+ <xsl:variable name="stroke">
+ <xsl:if test="skinconfig/colors/color[@name=$fg-color-name]">stroke:<xsl:value-of select="skinconfig/colors/color[@name=$fg-color-name]/@value"/>;</xsl:if>
+ </xsl:variable>
+ <xsl:template match="skinconfig">
+ <svg width="{$isize}" height="{$isize}">
+<!-- background-->
+ <rect x="-1" y="-1" width="{$biggersize}" height="{$biggersize}" style="{$bg}stroke-width:0"/>
+<!-- 0,0 0,-4 4,0 4,-4-->
+ <xsl:variable name="flip-tb-scale">
+ <xsl:choose>
+ <xsl:when test="$orientation-tb='t'">1</xsl:when>
+ <xsl:otherwise>-1</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="flip-lr-scale">
+ <xsl:choose>
+ <xsl:when test="$orientation-lr='l'">1</xsl:when>
+ <xsl:otherwise>-1</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="flip-tb-translate">
+ <xsl:choose>
+ <xsl:when test="$orientation-tb='t'">0</xsl:when>
+ <xsl:otherwise>-<xsl:value-of select="$isize" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="flip-lr-translate">
+ <xsl:choose>
+ <xsl:when test="$orientation-lr='l'">0</xsl:when>
+ <xsl:otherwise>-<xsl:value-of select="$isize" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+<!-- flip transform -->
+ <g transform="scale({$flip-lr-scale},{$flip-tb-scale}) translate({$flip-lr-translate}, {$flip-tb-translate})">
+ <xsl:call-template name="figure" />
+ </g>
+ </svg>
+ </xsl:template>
+ <xsl:template name="figure">
+<!-- Just change shape here -->
+ <g transform="translate(0.5 0.5)">
+ <ellipse cx="{$smallersize}" cy="{$smallersize}" rx="{$smallersize}" ry="{$smallersize}"
+ style="{$fill}{$stroke}stroke-width:1"/>
+ </g>
+<!-- end -->
+ </xsl:template>
+ <xsl:template match="*"></xsl:template>
+ <xsl:template match="text()"></xsl:template>
+</xsl:stylesheet>
Propchange: gump/trunk/src/documentation/skins/common/images/corner-imports.svg.xslt
------------------------------------------------------------------------------
svn:eol-style = native
Added: gump/trunk/src/documentation/skins/common/images/dc.svg.xslt
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/dc.svg.xslt?rev=1039839&view=auto
==============================================================================
--- gump/trunk/src/documentation/skins/common/images/dc.svg.xslt (added)
+++ gump/trunk/src/documentation/skins/common/images/dc.svg.xslt Sun Nov 28 07:08:37 2010
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:import href="corner-imports.svg.xslt" />
+<!-- Diagonal 45 degrees corner -->
+ <xsl:template name="figure">
+ <xsl:variable name="biggersize" select="number($size)+number($size)"/>
+ <g transform="translate(0 0.5)">
+ <polygon points="0,{$size} {$size},0 {$biggersize},0 {$biggersize},{$biggersize} 0,{$biggersize}"
+ style="{$fill}{$stroke}stroke-width:1"/>
+ </g>
+ </xsl:template>
+</xsl:stylesheet>
Propchange: gump/trunk/src/documentation/skins/common/images/dc.svg.xslt
------------------------------------------------------------------------------
svn:eol-style = native
Added: gump/trunk/src/documentation/skins/common/images/external-link.gif
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/external-link.gif?rev=1039839&view=auto
==============================================================================
Binary file - no diff available.
Propchange: gump/trunk/src/documentation/skins/common/images/external-link.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: gump/trunk/src/documentation/skins/common/images/fix.jpg
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/fix.jpg?rev=1039839&view=auto
==============================================================================
Binary file - no diff available.
Propchange: gump/trunk/src/documentation/skins/common/images/fix.jpg
------------------------------------------------------------------------------
svn:mime-type = image/jpeg
Added: gump/trunk/src/documentation/skins/common/images/forrest-credit-logo.png
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/forrest-credit-logo.png?rev=1039839&view=auto
==============================================================================
Binary file - no diff available.
Propchange: gump/trunk/src/documentation/skins/common/images/forrest-credit-logo.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: gump/trunk/src/documentation/skins/common/images/hack.jpg
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/hack.jpg?rev=1039839&view=auto
==============================================================================
Binary file - no diff available.
Propchange: gump/trunk/src/documentation/skins/common/images/hack.jpg
------------------------------------------------------------------------------
svn:mime-type = image/jpeg
Added: gump/trunk/src/documentation/skins/common/images/pdfdoc.gif
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/pdfdoc.gif?rev=1039839&view=auto
==============================================================================
Binary file - no diff available.
Propchange: gump/trunk/src/documentation/skins/common/images/pdfdoc.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: gump/trunk/src/documentation/skins/common/images/poddoc.png
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/poddoc.png?rev=1039839&view=auto
==============================================================================
Binary file - no diff available.
Propchange: gump/trunk/src/documentation/skins/common/images/poddoc.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: gump/trunk/src/documentation/skins/common/images/poddoc.svg.xslt
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/poddoc.svg.xslt?rev=1039839&view=auto
==============================================================================
--- gump/trunk/src/documentation/skins/common/images/poddoc.svg.xslt (added)
+++ gump/trunk/src/documentation/skins/common/images/poddoc.svg.xslt Sun Nov 28 07:08:37 2010
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<svg width="20pt" height="20pt"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+ <defs
+ id="defs550">
+ <linearGradient id="gray2white">
+ <stop style="stop-color:#7f7f7f;stop-opacity:1;" offset="0.000000"/>
+ <stop style="stop-color:#ffffff;stop-opacity:1;" offset="1.000000"/>
+ </linearGradient>
+ <linearGradient id="pageshade" xlink:href="#gray2white"
+ x1="0.95" y1="0.95"
+ x2="0.40" y2="0.20"
+ gradientUnits="objectBoundingBox" spreadMethod="pad" />
+ <path d="M 0 0 L 200 0" style="stroke:#000000;stroke-width:1pt;" id="hr"/>
+ </defs>
+ <g transform="scale(0.08)">
+ <g transform="translate(40, 0)">
+ <rect width="230" height="300" x="0" y="0"
+ style="fill:url(#pageshade);fill-rule:evenodd;
+ stroke:#000000;stroke-width:1.25;"/>
+ <g transform="translate(15, 60)">
+ <use xlink:href="#hr" x="0" y="0"/>
+ <use xlink:href="#hr" x="0" y="60"/>
+ <use xlink:href="#hr" x="0" y="120"/>
+ <use xlink:href="#hr" x="0" y="180"/>
+ </g>
+ </g>
+ <g transform="translate(0,70),scale(1.1,1.6)">
+ <rect width="200" height="100" x="0" y="0"
+ style="fill:#ff0000;fill-rule:evenodd;
+ stroke:#000000;stroke-width:2.33903;"/>
+ <text x="20" y="75"
+ style="stroke:#ffffff;stroke-width:1.0;
+ font-size:72;font-weight:normal;fill:#ffffff;
+ font-family:Arial;text-anchor:start;">POD</text>
+ </g>
+ </g>
+</svg>
Propchange: gump/trunk/src/documentation/skins/common/images/poddoc.svg.xslt
------------------------------------------------------------------------------
svn:eol-style = native
Added: gump/trunk/src/documentation/skins/common/images/printer.gif
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/printer.gif?rev=1039839&view=auto
==============================================================================
Binary file - no diff available.
Propchange: gump/trunk/src/documentation/skins/common/images/printer.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: gump/trunk/src/documentation/skins/common/images/rc.svg.xslt
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/rc.svg.xslt?rev=1039839&view=auto
==============================================================================
--- gump/trunk/src/documentation/skins/common/images/rc.svg.xslt (added)
+++ gump/trunk/src/documentation/skins/common/images/rc.svg.xslt Sun Nov 28 07:08:37 2010
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:import href="corner-imports.svg.xslt" />
+<!-- Rounded corner -->
+ <xsl:template name="figure">
+ <g transform="translate(0.5 0.5)">
+ <ellipse cx="{$smallersize}" cy="{$smallersize}" rx="{$smallersize}" ry="{$smallersize}"
+ style="{$fill}{$stroke}stroke-width:1"/>
+ </g>
+ </xsl:template>
+</xsl:stylesheet>
Propchange: gump/trunk/src/documentation/skins/common/images/rc.svg.xslt
------------------------------------------------------------------------------
svn:eol-style = native
Added: gump/trunk/src/documentation/skins/common/images/remove.jpg
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/remove.jpg?rev=1039839&view=auto
==============================================================================
Binary file - no diff available.
Propchange: gump/trunk/src/documentation/skins/common/images/remove.jpg
------------------------------------------------------------------------------
svn:mime-type = image/jpeg
Added: gump/trunk/src/documentation/skins/common/images/rss.png
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/rss.png?rev=1039839&view=auto
==============================================================================
Binary file - no diff available.
Propchange: gump/trunk/src/documentation/skins/common/images/rss.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: gump/trunk/src/documentation/skins/common/images/spacer.gif
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/spacer.gif?rev=1039839&view=auto
==============================================================================
Binary file - no diff available.
Propchange: gump/trunk/src/documentation/skins/common/images/spacer.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: gump/trunk/src/documentation/skins/common/images/txtdoc.png
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/txtdoc.png?rev=1039839&view=auto
==============================================================================
Binary file - no diff available.
Propchange: gump/trunk/src/documentation/skins/common/images/txtdoc.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: gump/trunk/src/documentation/skins/common/images/txtdoc.svg.xslt
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/txtdoc.svg.xslt?rev=1039839&view=auto
==============================================================================
--- gump/trunk/src/documentation/skins/common/images/txtdoc.svg.xslt (added)
+++ gump/trunk/src/documentation/skins/common/images/txtdoc.svg.xslt Sun Nov 28 07:08:37 2010
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<svg width="20pt" height="20pt"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+ <defs
+ id="defs550">
+ <linearGradient id="gray2white">
+ <stop style="stop-color:#7f7f7f;stop-opacity:1;" offset="0.000000"/>
+ <stop style="stop-color:#ffffff;stop-opacity:1;" offset="1.000000"/>
+ </linearGradient>
+ <linearGradient id="pageshade" xlink:href="#gray2white"
+ x1="0.95" y1="0.95"
+ x2="0.40" y2="0.20"
+ gradientUnits="objectBoundingBox" spreadMethod="pad" />
+ <path d="M 0 0 L 200 0" style="stroke:#000000;stroke-width:1pt;" id="hr"/>
+ </defs>
+ <g transform="scale(0.08)">
+ <g transform="translate(40, 0)">
+ <rect width="230" height="300" x="0" y="0"
+ style="fill:url(#pageshade);fill-rule:evenodd;
+ stroke:#000000;stroke-width:1.25;"/>
+ <g transform="translate(15, 60)">
+ <use xlink:href="#hr" x="0" y="0"/>
+ <use xlink:href="#hr" x="0" y="60"/>
+ <use xlink:href="#hr" x="0" y="120"/>
+ <use xlink:href="#hr" x="0" y="180"/>
+ </g>
+ </g>
+ <g transform="translate(0,70),scale(1.1,1.6)">
+ <rect width="200" height="100" x="0" y="0"
+ style="fill:#ff0000;fill-rule:evenodd;
+ stroke:#000000;stroke-width:2.33903;"/>
+ <text x="20" y="75"
+ style="stroke:#ffffff;stroke-width:1.0;
+ font-size:72;font-weight:normal;fill:#ffffff;
+ font-family:Arial;text-anchor:start;">TXT</text>
+ </g>
+ </g>
+</svg>
Propchange: gump/trunk/src/documentation/skins/common/images/txtdoc.svg.xslt
------------------------------------------------------------------------------
svn:eol-style = native
Added: gump/trunk/src/documentation/skins/common/images/update.jpg
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/update.jpg?rev=1039839&view=auto
==============================================================================
Binary file - no diff available.
Propchange: gump/trunk/src/documentation/skins/common/images/update.jpg
------------------------------------------------------------------------------
svn:mime-type = image/jpeg
Added: gump/trunk/src/documentation/skins/common/images/valid-html401.png
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/valid-html401.png?rev=1039839&view=auto
==============================================================================
Binary file - no diff available.
Propchange: gump/trunk/src/documentation/skins/common/images/valid-html401.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: gump/trunk/src/documentation/skins/common/images/vcss.png
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/vcss.png?rev=1039839&view=auto
==============================================================================
Binary file - no diff available.
Propchange: gump/trunk/src/documentation/skins/common/images/vcss.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Added: gump/trunk/src/documentation/skins/common/images/xmldoc.gif
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/images/xmldoc.gif?rev=1039839&view=auto
==============================================================================
Binary file - no diff available.
Propchange: gump/trunk/src/documentation/skins/common/images/xmldoc.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: gump/trunk/src/documentation/skins/common/scripts/breadcrumbs-optimized.js
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/scripts/breadcrumbs-optimized.js?rev=1039839&view=auto
==============================================================================
--- gump/trunk/src/documentation/skins/common/scripts/breadcrumbs-optimized.js (added)
+++ gump/trunk/src/documentation/skins/common/scripts/breadcrumbs-optimized.js Sun Nov 28 07:08:37 2010
@@ -0,0 +1,90 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+var PREPREND_CRUMBS=new Array();
+var link1="@skinconfig.trail.link1.name@";
+var link2="@skinconfig.trail.link2.name@";
+var link3="@skinconfig.trail.link3.name@";
+if(!(link1=="")&&!link1.indexOf( "@" ) == 0){
+ PREPREND_CRUMBS.push( new Array( link1, @skinconfig.trail.link1.href@ ) ); }
+if(!(link2=="")&&!link2.indexOf( "@" ) == 0){
+ PREPREND_CRUMBS.push( new Array( link2, @skinconfig.trail.link2.href@ ) ); }
+if(!(link3=="")&&!link3.indexOf( "@" ) == 0){
+ PREPREND_CRUMBS.push( new Array( link3, @skinconfig.trail.link3.href@ ) ); }
+var DISPLAY_SEPARATOR=" > ";
+var DISPLAY_PREPREND=" > ";
+var DISPLAY_POSTPREND=":";
+var CSS_CLASS_CRUMB="breadcrumb";
+var CSS_CLASS_TRAIL="breadcrumbTrail";
+var CSS_CLASS_SEPARATOR="crumbSeparator";
+var FILE_EXTENSIONS=new Array( ".html", ".htm", ".jsp", ".php", ".php3", ".php4" );
+var PATH_SEPARATOR="/";
+
+function sc(s) {
+ var l=s.toLowerCase();
+ return l.substr(0,1).toUpperCase()+l.substr(1);
+}
+function getdirs() {
+ var t=document.location.pathname.split(PATH_SEPARATOR);
+ var lc=t[t.length-1];
+ for(var i=0;i < FILE_EXTENSIONS.length;i++)
+ {
+ if(lc.indexOf(FILE_EXTENSIONS[i]))
+ return t.slice(1,t.length-1); }
+ return t.slice(1,t.length);
+}
+function getcrumbs( d )
+{
+ var pre = "/";
+ var post = "/";
+ var c = new Array();
+ if( d != null )
+ {
+ for(var i=0;i < d.length;i++) {
+ pre+=d[i]+postfix;
+ c.push(new Array(d[i],pre)); }
+ }
+ if(PREPREND_CRUMBS.length > 0 )
+ return PREPREND_CRUMBS.concat( c );
+ return c;
+}
+function gettrail( c )
+{
+ var h=DISPLAY_PREPREND;
+ for(var i=0;i < c.length;i++)
+ {
+ h+='<a href="'+c[i][1]+'" >'+sc(c[i][0])+'</a>';
+ if(i!=(c.length-1))
+ h+=DISPLAY_SEPARATOR; }
+ return h+DISPLAY_POSTPREND;
+}
+
+function gettrailXHTML( c )
+{
+ var h='<span class="'+CSS_CLASS_TRAIL+'">'+DISPLAY_PREPREND;
+ for(var i=0;i < c.length;i++)
+ {
+ h+='<a href="'+c[i][1]+'" class="'+CSS_CLASS_CRUMB+'">'+sc(c[i][0])+'</a>';
+ if(i!=(c.length-1))
+ h+='<span class="'+CSS_CLASS_SEPARATOR+'">'+DISPLAY_SEPARATOR+'</span>'; }
+ return h+DISPLAY_POSTPREND+'</span>';
+}
+
+if(document.location.href.toLowerCase().indexOf("http://")==-1)
+ document.write(gettrail(getcrumbs()));
+else
+ document.write(gettrail(getcrumbs(getdirs())));
+
Propchange: gump/trunk/src/documentation/skins/common/scripts/breadcrumbs-optimized.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: gump/trunk/src/documentation/skins/common/scripts/breadcrumbs.js
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/scripts/breadcrumbs.js?rev=1039839&view=auto
==============================================================================
--- gump/trunk/src/documentation/skins/common/scripts/breadcrumbs.js (added)
+++ gump/trunk/src/documentation/skins/common/scripts/breadcrumbs.js Sun Nov 28 07:08:37 2010
@@ -0,0 +1,237 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+/**
+ * This script, when included in a html file, builds a neat breadcrumb trail
+ * based on its url. That is, if it doesn't contains bugs (I'm relatively
+ * sure it does).
+ *
+ * Typical usage:
+ * <script type="text/javascript" language="JavaScript" src="breadcrumbs.js"></script>
+ */
+
+/**
+ * IE 5 on Mac doesn't know Array.push.
+ *
+ * Implement it - courtesy to fritz.
+ */
+var abc = new Array();
+if (!abc.push) {
+ Array.prototype.push = function(what){this[this.length]=what}
+}
+
+/* ========================================================================
+ CONSTANTS
+ ======================================================================== */
+
+/**
+ * Two-dimensional array containing extra crumbs to place at the front of
+ * the trail. Specify first the name of the crumb, then the URI that belongs
+ * to it. You'll need to modify this for every domain or subdomain where
+ * you use this script (you can leave it as an empty array if you wish)
+ */
+var PREPREND_CRUMBS = new Array();
+
+var link1 = "@skinconfig.trail.link1.name@";
+var link2 = "@skinconfig.trail.link2.name@";
+var link3 = "@skinconfig.trail.link3.name@";
+
+var href1 = "@skinconfig.trail.link1.href@";
+var href2 = "@skinconfig.trail.link2.href@";
+var href3 = "@skinconfig.trail.link3.href@";
+
+ if(!(link1=="")&&!link1.indexOf( "@" ) == 0){
+ PREPREND_CRUMBS.push( new Array( link1, href1 ) );
+ }
+ if(!(link2=="")&&!link2.indexOf( "@" ) == 0){
+ PREPREND_CRUMBS.push( new Array( link2, href2 ) );
+ }
+ if(!(link3=="")&&!link3.indexOf( "@" ) == 0){
+ PREPREND_CRUMBS.push( new Array( link3, href3 ) );
+ }
+
+/**
+ * String to include between crumbs:
+ */
+var DISPLAY_SEPARATOR = " > ";
+/**
+ * String to include at the beginning of the trail
+ */
+var DISPLAY_PREPREND = " > ";
+/**
+ * String to include at the end of the trail
+ */
+var DISPLAY_POSTPREND = "";
+
+/**
+ * CSS Class to use for a single crumb:
+ */
+var CSS_CLASS_CRUMB = "breadcrumb";
+
+/**
+ * CSS Class to use for the complete trail:
+ */
+var CSS_CLASS_TRAIL = "breadcrumbTrail";
+
+/**
+ * CSS Class to use for crumb separator:
+ */
+var CSS_CLASS_SEPARATOR = "crumbSeparator";
+
+/**
+ * Array of strings containing common file extensions. We use this to
+ * determine what part of the url to ignore (if it contains one of the
+ * string specified here, we ignore it).
+ */
+var FILE_EXTENSIONS = new Array( ".html", ".htm", ".jsp", ".php", ".php3", ".php4" );
+
+/**
+ * String that separates parts of the breadcrumb trail from each other.
+ * When this is no longer a slash, I'm sure I'll be old and grey.
+ */
+var PATH_SEPARATOR = "/";
+
+/* ========================================================================
+ UTILITY FUNCTIONS
+ ======================================================================== */
+/**
+ * Capitalize first letter of the provided string and return the modified
+ * string.
+ */
+function sentenceCase( string )
+{ return string;
+ //var lower = string.toLowerCase();
+ //return lower.substr(0,1).toUpperCase() + lower.substr(1);
+}
+
+/**
+ * Returns an array containing the names of all the directories in the
+ * current document URL
+ */
+function getDirectoriesInURL()
+{
+ var trail = document.location.pathname.split( PATH_SEPARATOR );
+
+ // check whether last section is a file or a directory
+ var lastcrumb = trail[trail.length-1];
+ for( var i = 0; i < FILE_EXTENSIONS.length; i++ )
+ {
+ if( lastcrumb.indexOf( FILE_EXTENSIONS[i] ) )
+ {
+ // it is, remove it and send results
+ return trail.slice( 1, trail.length-1 );
+ }
+ }
+
+ // it's not; send the trail unmodified
+ return trail.slice( 1, trail.length );
+}
+
+/* ========================================================================
+ BREADCRUMB FUNCTIONALITY
+ ======================================================================== */
+/**
+ * Return a two-dimensional array describing the breadcrumbs based on the
+ * array of directories passed in.
+ */
+function getBreadcrumbs( dirs )
+{
+ var prefix = "/";
+ var postfix = "/";
+
+ // the array we will return
+ var crumbs = new Array();
+
+ if( dirs != null )
+ {
+ for( var i = 0; i < dirs.length; i++ )
+ {
+ prefix += dirs[i] + postfix;
+ crumbs.push( new Array( dirs[i], prefix ) );
+ }
+ }
+
+ // preprend the PREPREND_CRUMBS
+ if(PREPREND_CRUMBS.length > 0 )
+ {
+ return PREPREND_CRUMBS.concat( crumbs );
+ }
+
+ return crumbs;
+}
+
+/**
+ * Return a string containing a simple text breadcrumb trail based on the
+ * two-dimensional array passed in.
+ */
+function getCrumbTrail( crumbs )
+{
+ var xhtml = DISPLAY_PREPREND;
+
+ for( var i = 0; i < crumbs.length; i++ )
+ {
+ xhtml += '<a href="' + crumbs[i][1] + '" >';
+ xhtml += unescape( crumbs[i][0] ) + '</a>';
+ if( i != (crumbs.length-1) )
+ {
+ xhtml += DISPLAY_SEPARATOR;
+ }
+ }
+
+ xhtml += DISPLAY_POSTPREND;
+
+ return xhtml;
+}
+
+/**
+ * Return a string containing an XHTML breadcrumb trail based on the
+ * two-dimensional array passed in.
+ */
+function getCrumbTrailXHTML( crumbs )
+{
+ var xhtml = '<span class="' + CSS_CLASS_TRAIL + '">';
+ xhtml += DISPLAY_PREPREND;
+
+ for( var i = 0; i < crumbs.length; i++ )
+ {
+ xhtml += '<a href="' + crumbs[i][1] + '" class="' + CSS_CLASS_CRUMB + '">';
+ xhtml += unescape( crumbs[i][0] ) + '</a>';
+ if( i != (crumbs.length-1) )
+ {
+ xhtml += '<span class="' + CSS_CLASS_SEPARATOR + '">' + DISPLAY_SEPARATOR + '</span>';
+ }
+ }
+
+ xhtml += DISPLAY_POSTPREND;
+ xhtml += '</span>';
+
+ return xhtml;
+}
+
+/* ========================================================================
+ PRINT BREADCRUMB TRAIL
+ ======================================================================== */
+
+// check if we're local; if so, only print the PREPREND_CRUMBS
+if( document.location.href.toLowerCase().indexOf( "http://" ) == -1 )
+{
+ document.write( getCrumbTrail( getBreadcrumbs() ) );
+}
+else
+{
+ document.write( getCrumbTrail( getBreadcrumbs( getDirectoriesInURL() ) ) );
+}
+
Propchange: gump/trunk/src/documentation/skins/common/scripts/breadcrumbs.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: gump/trunk/src/documentation/skins/common/scripts/fontsize.js
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/scripts/fontsize.js?rev=1039839&view=auto
==============================================================================
--- gump/trunk/src/documentation/skins/common/scripts/fontsize.js (added)
+++ gump/trunk/src/documentation/skins/common/scripts/fontsize.js Sun Nov 28 07:08:37 2010
@@ -0,0 +1,166 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+function init()
+{ //embedded in the doc
+ //ndeSetTextSize();
+}
+
+function checkBrowser(){
+ if (!document.getElementsByTagName){
+ return true;
+ }
+ else{
+ return false;
+ }
+}
+
+
+function ndeSetTextSize(chgsize,rs)
+{
+ var startSize;
+ var newSize;
+
+ if (!checkBrowser)
+ {
+ return;
+ }
+
+ startSize = parseInt(ndeGetDocTextSize());
+
+ if (!startSize)
+ {
+ startSize = 16;
+ }
+
+ switch (chgsize)
+ {
+ case 'incr':
+ newSize = startSize + 2;
+ break;
+
+ case 'decr':
+ newSize = startSize - 2;
+ break;
+
+ case 'reset':
+ if (rs) {newSize = rs;} else {newSize = 16;}
+ break;
+
+ default:
+ try{
+ newSize = parseInt(ndeReadCookie("nde-textsize"));
+ }
+ catch(e){
+ alert(e);
+ }
+
+ if (!newSize || newSize == 'NaN')
+ {
+ newSize = startSize;
+ }
+ break;
+
+ }
+
+ if (newSize < 10)
+ {
+ newSize = 10;
+ }
+
+ newSize += 'px';
+
+ document.getElementsByTagName('html')[0].style.fontSize = newSize;
+ document.getElementsByTagName('body')[0].style.fontSize = newSize;
+
+ ndeCreateCookie("nde-textsize", newSize, 365);
+}
+
+function ndeGetDocTextSize()
+{
+ if (!checkBrowser)
+ {
+ return 0;
+ }
+
+ var size = 0;
+ var body = document.getElementsByTagName('body')[0];
+
+ if (body.style && body.style.fontSize)
+ {
+ size = body.style.fontSize;
+ }
+ else if (typeof(getComputedStyle) != 'undefined')
+ {
+ size = getComputedStyle(body,'').getPropertyValue('font-size');
+ }
+ else if (body.currentStyle)
+ {
+ size = body.currentStyle.fontSize;
+ }
+
+ //fix IE bug
+ if( isNaN(size)){
+ if(size.substring(size.length-1)=="%"){
+ return
+ }
+
+ }
+
+ return size;
+
+}
+
+
+
+function ndeCreateCookie(name,value,days)
+{
+ var cookie = name + "=" + value + ";";
+
+ if (days)
+ {
+ var date = new Date();
+ date.setTime(date.getTime()+(days*24*60*60*1000));
+ cookie += " expires=" + date.toGMTString() + ";";
+ }
+ cookie += " path=/";
+
+ document.cookie = cookie;
+
+}
+
+function ndeReadCookie(name)
+{
+ var nameEQ = name + "=";
+ var ca = document.cookie.split(';');
+
+
+ for(var i = 0; i < ca.length; i++)
+ {
+ var c = ca[i];
+ while (c.charAt(0) == ' ')
+ {
+ c = c.substring(1, c.length);
+ }
+
+ ctest = c.substring(0,name.length);
+
+ if(ctest == name){
+ return c.substring(nameEQ.length,c.length);
+ }
+ }
+ return null;
+}
Propchange: gump/trunk/src/documentation/skins/common/scripts/fontsize.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: gump/trunk/src/documentation/skins/common/scripts/getBlank.js
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/scripts/getBlank.js?rev=1039839&view=auto
==============================================================================
--- gump/trunk/src/documentation/skins/common/scripts/getBlank.js (added)
+++ gump/trunk/src/documentation/skins/common/scripts/getBlank.js Sun Nov 28 07:08:37 2010
@@ -0,0 +1,40 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+/**
+ * getBlank script - when included in a html file and called from a form text field, will set the value of this field to ""
+ * if the text value is still the standard value.
+ * getPrompt script - when included in a html file and called from a form text field, will set the value of this field to the prompt
+ * if the text value is empty.
+ *
+ * Typical usage:
+ * <script type="text/javascript" language="JavaScript" src="getBlank.js"></script>
+ * <input type="text" id="query" value="Search the site:" onFocus="getBlank (this, 'Search the site:');" onBlur="getBlank (this, 'Search the site:');"/>
+ */
+<!--
+function getBlank (form, stdValue){
+if (form.value == stdValue){
+ form.value = '';
+ }
+return true;
+}
+function getPrompt (form, stdValue){
+if (form.value == ''){
+ form.value = stdValue;
+ }
+return true;
+}
+//-->
Propchange: gump/trunk/src/documentation/skins/common/scripts/getBlank.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: gump/trunk/src/documentation/skins/common/scripts/getMenu.js
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/scripts/getMenu.js?rev=1039839&view=auto
==============================================================================
--- gump/trunk/src/documentation/skins/common/scripts/getMenu.js (added)
+++ gump/trunk/src/documentation/skins/common/scripts/getMenu.js Sun Nov 28 07:08:37 2010
@@ -0,0 +1,45 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+/**
+ * This script, when included in a html file, can be used to make collapsible menus
+ *
+ * Typical usage:
+ * <script type="text/javascript" language="JavaScript" src="menu.js"></script>
+ */
+
+if (document.getElementById){
+ document.write('<style type="text/css">.menuitemgroup{display: none;}</style>')
+}
+
+
+function SwitchMenu(obj, thePath)
+{
+var open = 'url("'+thePath + 'images/chapter_open.gif")';
+var close = 'url("'+thePath + 'images/chapter.gif")';
+ if(document.getElementById) {
+ var el = document.getElementById(obj);
+ var title = document.getElementById(obj+'Title');
+
+ if(el.style.display != "block"){
+ title.style.backgroundImage = open;
+ el.style.display = "block";
+ }else{
+ title.style.backgroundImage = close;
+ el.style.display = "none";
+ }
+ }// end - if(document.getElementById)
+}//end - function SwitchMenu(obj)
Propchange: gump/trunk/src/documentation/skins/common/scripts/getMenu.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: gump/trunk/src/documentation/skins/common/scripts/menu.js
URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/skins/common/scripts/menu.js?rev=1039839&view=auto
==============================================================================
--- gump/trunk/src/documentation/skins/common/scripts/menu.js (added)
+++ gump/trunk/src/documentation/skins/common/scripts/menu.js Sun Nov 28 07:08:37 2010
@@ -0,0 +1,48 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+/**
+ * This script, when included in a html file, can be used to make collapsible menus
+ *
+ * Typical usage:
+ * <script type="text/javascript" language="JavaScript" src="menu.js"></script>
+ */
+
+if (document.getElementById){
+ document.write('<style type="text/css">.menuitemgroup{display: none;}</style>')
+}
+
+function SwitchMenu(obj)
+{
+ if(document.getElementById) {
+ var el = document.getElementById(obj);
+ var title = document.getElementById(obj+'Title');
+
+ if(obj.indexOf("_selected_")==0&&el.style.display == ""){
+ el.style.display = "block";
+ title.className = "pagegroupselected";
+ }
+
+ if(el.style.display != "block"){
+ el.style.display = "block";
+ title.className = "pagegroupopen";
+ }
+ else{
+ el.style.display = "none";
+ title.className = "pagegroup";
+ }
+ }// end - if(document.getElementById)
+}//end - function SwitchMenu(obj)
Propchange: gump/trunk/src/documentation/skins/common/scripts/menu.js
------------------------------------------------------------------------------
svn:eol-style = native