File:  [mozdev] / calendarhelp / www / open.xul
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Tue Mar 29 10:57:51 2005 UTC (14 years, 3 months ago) by whiteley
Branches: MAIN
CVS tags: HEAD
test

<?xml version="1.0" encoding="UTF-8"?>

<?xml-stylesheet href="chrome://help/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://help/skin/sidebar.css" type="text/css"?>

<!DOCTYPE window >

<window id="calendarhelp-online"
	windowtype="calendarhelp:online"
	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
	xmlns:html="http://www.w3.org/1999/xhtml"
	onload="init();">

<script type="application/x-javascript" src="open.js"/>

<vbox flex="1">

	<hbox flex="1">
		<vbox id="helpsidebar-box" persist="width">

			<html:a href="http://calendarhelp.mozdev.org/" style="text-decoration:none;">
				<hbox align="center" style="margin-bottom:1em; color:#777"
						onmouseover="this.style.color='#00f'"
						onmouseout="this.style.color='#777'">
					<image src="calhelp-small.png"/>
					<label id="calendarhelp-title" value="Calendar Help"
						style="font-weight:bold; font-size:167%; cursor:pointer;"/>
					</hbox>
				</html:a>

			<!-- glossary panel -->
			<button id="help-glossary-btn"
				class="box-texttab texttab-sidebar"
				label="Glossary"
				oncommand="showPanel('help-glossary')"/>
			<tree id="help-glossary-panel" flex="1" hidecolumnpicker="true"
					hidden="true" datasources="en-US/glossary.rdf"
					containment="http://home.netscape.com/NC-rdf#subheadings"
					ref="urn:root"
					onselect="panelSelect(this);">
				<template>
					<rule>
						<conditions>
							<content uri="?uri"/>
							<triple subject="?uri"
								predicate="http://home.netscape.com/NC-rdf#subheadings"
								object="?subheadings"/>
							<member container="?subheadings"
								child="?subheading"/>
							</conditions>
						<bindings>
							<binding subject="?subheading"
								predicate="http://home.netscape.com/NC-rdf#name"
								object="?name"/>
							<binding subject="?subheading"
								predicate="http://home.netscape.com/NC-rdf#link"
								object="?link"/>
							</bindings>

						<action>
							<treechildren>
								<treeitem uri="?subheading" link="?link">
									<treerow>
										<treecell label="?name"/>
										</treerow>
									</treeitem>
								</treechildren>
							</action>
						</rule>
					</template>
				<treecols>
					<treecol id="GlossaryNameColumn" flex="1"
						hideheader="true" primary="true"/>
					</treecols>
				</tree>

			<button id="help-index-btn" class="box-texttab texttab-sidebar"
				label="Index"
				oncommand="showPanel('help-index');expandAllIndexEntries();"/>

			<tree id="help-index-panel" flex="1" datasources="en-US/index.rdf"
					hidecolumnpicker="true" hidden="true"
					containment="http://home.netscape.com/NC-rdf#subheadings"
					ref="urn:root"
					onselect="panelSelect(this);">
				<template>
					<rule>
						<conditions>
							<content uri="?uri"/>
							<triple subject="?uri"
								predicate="http://home.netscape.com/NC-rdf#subheadings"
								object="?subheadings"/>
							<member container="?subheadings"
								child="?subheading"/>
							</conditions>
						<bindings>
							<binding subject="?subheading"
								predicate="http://home.netscape.com/NC-rdf#name"
								object="?name"/>
							<binding subject="?subheading"
								predicate="http://home.netscape.com/NC-rdf#link"
								object="?link"/>
							</bindings>

						<action>
							<treechildren>
								<treeitem uri="?subheading" link="?link">
									<treerow>
										<treecell label="?name"/>
										</treerow>
									</treeitem>
								</treechildren>
							</action>
						</rule>
					</template>
				<treecols>
					<treecol id="IndexNameColumn" flex="1" hideheader="true"
						primary="true" sortActive="true"
						sortDirection="ascending" sort="?name"/>
					</treecols>
				</tree>

			<button id="help-search-btn" class="box-texttab texttab-sidebar"
				label="Search"
				oncommand="showPanel('help-search')"
				hidden="true"/>

			<vbox id="help-search-panel" hidden="true" flex="1">
				<hbox align="center">
					<textbox id="findText" flex="1" oninput="doEnabling();"
						onkeypress="if ((event.keyCode 
							== KeyEvent.DOM_VK_ENTER) || (event.keyCode
							== KeyEvent.DOM_VK_RETURN))
							doFind();"/>
					<button id="findButton" default="true" disabled="true"
						label="Go" oncommand="doFind()"
						flex="0"/>
					</hbox>
				<tree id="help-search-tree"
						flex="1" hidecolumnpicker="true"
						datasources="rdf:null"
						containment="http://home.netscape.com/NC-rdf#child"
						ref="urn:root"
						onselect="panelSelect(this);">
					<template>
						<rule>
							<conditions>
								<content uri="?uri"/>
								<member container="?uri"
									child="?subheading"/>
								</conditions>

							<bindings>
								<binding subject="?subheading"
									predicate="http://home.netscape.com/NC-rdf#name"
									object="?name"/>
								</bindings>

							<action>
								<treechildren>
									<treeitem uri="?subheading">
										<treerow>
											<treecell label="?name"/>
											</treerow>
										</treeitem>
									</treechildren>
								</action>
							</rule>
						</template>

					<treecols>
						<treecol id="ResultsColumn" flex="1"
							hideheader="true" primary="true"
							sortActive="true" sortDirection="ascending"
							sort="?name"/>
						</treecols>
					</tree>
				</vbox>

			<button id="help-toc-btn" class="box-texttab texttab-sidebar"
				label="Contents"
				oncommand="showPanel('help-toc')"/>
			<tree id="help-toc-panel" flex="1"  hidecolumnpicker="true"
					datasources="en-US/toc.rdf"
					containment="http://home.netscape.com/NC-rdf#subheadings"
					ref="urn:root"
					onselect="panelSelect(this);">
				<template>
					<rule>
						<conditions>
							<content uri="?uri"/>
							<triple subject="?uri"
								predicate="http://home.netscape.com/NC-rdf#subheadings"
								object="?subheadings"/>
							<member container="?subheadings"
								child="?subheading"/>
							</conditions>

						<bindings>
							<binding subject="?subheading"
								predicate="http://home.netscape.com/NC-rdf#name"
								object="?name"/>
							<binding subject="?subheading"
								predicate="http://home.netscape.com/NC-rdf#link"
								object="?link"/>
							</bindings>

						<action>
							<treechildren>
								<treeitem uri="?subheading" link="?link">
									<treerow>
										<treecell label="?name"/>
										</treerow>
									</treeitem>
								</treechildren>
							</action>
						</rule>
					</template>
				<treecols>
					<treecol id="NameColumn" flex="1" hideheader="true"
						primary="true"/>
					</treecols>
				</tree>

			</vbox>

			<splitter id="helpsidebar-splitter" collapse="before"
					persist="state hidden" autostretch="never" state="open">
				</splitter>

			<vbox id="appcontent" flex="3">
				<hbox id="browser" flex="1">
					<iframe id="help-content" src="en-US/welcome.xhtml" flex="1"/>
					</hbox>
				</vbox>
			</hbox>
		</vbox>
</window>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>