File:  [mozdev] / calendarhelp / www / open.xul
Revision 1.7: download - view: text, annotated - select for diffs - revision graph
Thu Apr 14 07:56:18 2005 UTC (14 years, 7 months ago) by whiteley
Branches: MAIN
CVS tags: HEAD
online locale support

    1: <?xml version="1.0" encoding="UTF-8"?>
    2: 
    3: <?xml-stylesheet href="open.css" type="text/css"?>
    4: <?xml-stylesheet href="chrome://help/skin/" type="text/css"?>
    5: <?xml-stylesheet href="chrome://help/skin/sidebar.css" type="text/css"?>
    6: 
    7: <!DOCTYPE window >
    8: 
    9: <window id="calendarhelp"
   10: 	windowtype="calendar:help"
   11: 	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
   12: 	xmlns:html="http://www.w3.org/1999/xhtml"
   13: 	onload="init();">
   14: 
   15: <html:link rel="icon" href="page-icon.png" type="image/png"/>
   16: 
   17: <script type="application/x-javascript" src="open.js"/>
   18: 
   19: 
   20: <broadcasterset id="locale-broadcaster" datasources="rdf:null" ref="urn:root">
   21: 	<template>
   22: 		<rule>
   23: 			<broadcaster uri="rdf:*"
   24: 				label="rdf:http://calendarhelp.mozdev.org/ns#name"
   25: 				accesskey="rdf:http://calendarhelp.mozdev.org/ns#key"/>
   26: 			</rule>
   27: 		</template>
   28: 	</broadcasterset>
   29: 
   30: <vbox flex="1">
   31: 
   32: 	<hbox flex="1">
   33: 		<vbox id="helpsidebar-box" persist="width">
   34: 
   35: 			<html:a id="project-link" href="http://calendarhelp.mozdev.org/">
   36: 				<hbox id="title-box" align="center">
   37: 					<image src="calhelp-small.png" width="48" height="48"/>
   38: 					<label id="calendarhelp-title"/>
   39: 					</hbox>
   40: 				</html:a>
   41: 
   42: 			<!-- glossary panel -->
   43: 			<button id="help-glossary-btn"
   44: 				class="box-texttab texttab-sidebar"
   45: 				label="Glossary" accesskey="G"
   46: 				oncommand="showPanel('help-glossary')"/>
   47: 			<tree id="help-glossary-panel" flex="1" hidecolumnpicker="true"
   48: 					hidden="true" datasources="rdf:nul"
   49: 					containment="http://home.netscape.com/NC-rdf#subheadings"
   50: 					ref="urn:root" flags="dont-build-content"
   51: 					onselect="panelSelect(this);" _selectDelay="500">
   52: 				<template>
   53: 					<rule>
   54: 						<conditions>
   55: 							<content uri="?uri"/>
   56: 							<triple subject="?uri"
   57: 								predicate="http://home.netscape.com/NC-rdf#subheadings"
   58: 								object="?subheadings"/>
   59: 							<member container="?subheadings"
   60: 								child="?subheading"/>
   61: 							</conditions>
   62: 						<bindings>
   63: 							<binding subject="?subheading"
   64: 								predicate="http://home.netscape.com/NC-rdf#name"
   65: 								object="?name"/>
   66: 							<binding subject="?subheading"
   67: 								predicate="http://home.netscape.com/NC-rdf#link"
   68: 								object="?link"/>
   69: 							</bindings>
   70: 
   71: 						<action>
   72: 							<treechildren>
   73: 								<treeitem uri="?subheading" link="?link">
   74: 									<treerow>
   75: 										<treecell label="?name"/>
   76: 										<treecell label="?link"/>
   77: 										</treerow>
   78: 									</treeitem>
   79: 								</treechildren>
   80: 							</action>
   81: 						</rule>
   82: 					</template>
   83: 				<treecols>
   84: 					<treecol id="GlossaryNameColumn" flex="1" hideheader="true" primary="true"/>
   85: 					<treecol id="LinkColumn" hideheader="true" hidden="true"/>
   86: 					</treecols>
   87: 				</tree>
   88: 
   89: 			<button id="help-index-btn" class="box-texttab texttab-sidebar"
   90: 				label="Index" accesskey="I"
   91: 				oncommand="showPanel('help-index');"/>
   92: 
   93: 			<tree id="help-index-panel" flex="1" datasources="rdf:nul"
   94: 					hidecolumnpicker="true" hidden="true"
   95: 					containment="http://home.netscape.com/NC-rdf#subheadings"
   96: 					ref="urn:root" flags="dont-build-content"
   97: 					onselect="panelSelect(this);" _selectDelay="500">
   98: 				<template>
   99: 					<rule>
  100: 						<conditions>
  101: 							<content uri="?uri"/>
  102: 							<triple subject="?uri"
  103: 								predicate="http://home.netscape.com/NC-rdf#subheadings"
  104: 								object="?subheadings"/>
  105: 							<member container="?subheadings"
  106: 								child="?subheading"/>
  107: 							</conditions>
  108: 						<bindings>
  109: 							<binding subject="?subheading"
  110: 								predicate="http://home.netscape.com/NC-rdf#name"
  111: 								object="?name"/>
  112: 							<binding subject="?subheading"
  113: 								predicate="http://home.netscape.com/NC-rdf#link"
  114: 								object="?link"/>
  115: 							</bindings>
  116: 
  117: 						<action>
  118: 							<treechildren>
  119: 								<treeitem uri="?subheading" link="?link">
  120: 									<treerow>
  121: 										<treecell label="?name"/>
  122: 										<treecell label="?link"/>
  123: 										</treerow>
  124: 									</treeitem>
  125: 								</treechildren>
  126: 							</action>
  127: 						</rule>
  128: 					</template>
  129: 				<treecols>
  130: 					<treecol id="IndexNameColumn" flex="1" hideheader="true"
  131: 						primary="true" sortActive="true"
  132: 						sortDirection="ascending" sort="?name"/>
  133: 					<treecol id="LinkColumn" hideheader="true" hidden="true"/>
  134: 					</treecols>
  135: 				</tree>
  136: 
  137: 			<button id="help-search-btn" class="box-texttab texttab-sidebar"
  138: 				label="Search" accesskey="S"
  139: 				oncommand="showPanel('help-search')"/>
  140: 
  141: 			<vbox id="help-search-panel" hidden="true" flex="1">
  142: 				<hbox align="center">
  143: 					<textbox id="findText" flex="1" oninput="doEnabling();"
  144: 						onkeypress="if ((event.keyCode == KeyEvent.DOM_VK_ENTER)
  145: 								|| (event.keyCode	== KeyEvent.DOM_VK_RETURN))
  146: 							doFind();"/>
  147: 					<button id="findButton" default="true" disabled="true"
  148: 						label="Go" oncommand="doFind()"
  149: 						flex="0"/>
  150: 					</hbox>
  151: 				<listbox id="help-results-listbox" flex="1" onselect="resultSelect(this);" _selectDelay="500"/>
  152: 				</vbox>
  153: 
  154: 			<button id="help-toc-btn" class="box-texttab texttab-sidebar"
  155: 				label="Contents" accesskey="C"
  156: 				oncommand="showPanel('help-toc')"/>
  157: 			<tree id="help-toc-panel" flex="1"  hidecolumnpicker="true"
  158: 					datasources="rdf:nul" flags="dont-build-content"
  159: 					containment="http://home.netscape.com/NC-rdf#subheadings"
  160: 					ref="urn:root"
  161: 					onselect="panelSelect(this);" _selectDelay="500">
  162: 				<template>
  163: 					<rule>
  164: 						<conditions>
  165: 							<content uri="?uri"/>
  166: 							<triple subject="?uri"
  167: 								predicate="http://home.netscape.com/NC-rdf#subheadings"
  168: 								object="?subheadings"/>
  169: 							<member container="?subheadings"
  170: 								child="?subheading"/>
  171: 							</conditions>
  172: 
  173: 						<bindings>
  174: 							<binding subject="?subheading"
  175: 								predicate="http://home.netscape.com/NC-rdf#name"
  176: 								object="?name"/>
  177: 							<binding subject="?subheading"
  178: 								predicate="http://home.netscape.com/NC-rdf#link"
  179: 								object="?link"/>
  180: 							</bindings>
  181: 
  182: 						<action>
  183: 							<treechildren>
  184: 								<treeitem uri="?subheading" link="?link">
  185: 									<treerow>
  186: 										<treecell label="?name"/>
  187: 										<treecell label="?link"/>
  188: 										</treerow>
  189: 									</treeitem>
  190: 								</treechildren>
  191: 							</action>
  192: 						</rule>
  193: 					</template>
  194: 				<treecols>
  195: 					<treecol id="NameColumn" flex="1" hideheader="true" primary="true"/>
  196: 					<treecol id="LinkColumn" hideheader="true" hidden="true"/>
  197: 					</treecols>
  198: 				</tree>
  199: 
  200: 			<vbox id="topic-box" hidden="true">
  201: 				<separator class="groove"/>
  202: 				<hbox align="center">
  203: 					<label id="topic-label" class="textbox-prompt" value="Topic:" accesskey="O" control="topic-text"/>
  204: 					<label id="not-found" hidden="true"/>
  205: 					<textbox id="topic-text" flex="1" value=""
  206: 						onkeypress="if ((event.keyCode == KeyEvent.DOM_VK_ENTER)
  207: 							|| (event.keyCode	== KeyEvent.DOM_VK_RETURN)) goToTopic(this);"/>
  208: 					</hbox>
  209: 				</vbox>
  210: 
  211: 			</vbox>
  212: 
  213: 			<splitter id="helpsidebar-splitter" collapse="before"
  214: 					persist="state hidden" autostretch="never" state="open">
  215: 				</splitter>
  216: 
  217: 			<vbox id="appcontent" flex="3">
  218: 				<hbox id="browser" flex="1">
  219: 					<iframe id="help-content" src="" flex="1"/>
  220: 					</hbox>
  221: 				</vbox>
  222: 			</hbox>
  223: 		</vbox>
  224: 
  225: <!-- hidden for searching -->
  226: 
  227: <vbox id="hidden-glos" flex="1"  hidecolumnpicker="true" hidden="true"
  228: 	datasources="rdf:null"
  229: 	containment="http://home.netscape.com/NC-rdf#subheadings"
  230: 	ref="urn:root">
  231: 	<template>
  232: 		<rule>
  233: 			<conditions>
  234: 				<content uri="?uri"/>
  235: 				<triple subject="?uri"
  236: 					predicate="http://home.netscape.com/NC-rdf#subheadings" object="?items"/>
  237: 				<member container="?items" child="?item"/>
  238: 				</conditions>
  239: 			<bindings>
  240: 				<binding subject="?item" predicate="http://home.netscape.com/NC-rdf#name" object="?name"/>
  241: 				<binding subject="?item" predicate="http://home.netscape.com/NC-rdf#link" object="?link"/>
  242: 				</bindings>
  243: 			<action>
  244: 				<hbox uri="?item">
  245: 					<label value="?name" link="?link"/>
  246: 					</hbox>
  247: 				</action>
  248: 			</rule>
  249: 		</template>
  250: 	</vbox>
  251: 
  252: <vbox id="hidden-index" flex="1"  hidecolumnpicker="true" hidden="true"
  253: 	datasources="rdf:null"
  254: 	containment="http://home.netscape.com/NC-rdf#subheadings"
  255: 	ref="urn:root">
  256: 	<template>
  257: 		<rule>
  258: 			<conditions>
  259: 				<content uri="?uri"/>
  260: 				<triple subject="?uri" predicate="http://home.netscape.com/NC-rdf#subheadings" object="?items"/>
  261: 				<member container="?items" child="?item"/>
  262: 				</conditions>
  263: 			<bindings>
  264: 				<binding subject="?item" predicate="http://home.netscape.com/NC-rdf#name" object="?name"/> 
  265: 				<binding subject="?item" predicate="http://home.netscape.com/NC-rdf#link" object="?link"/> 
  266: 				</bindings>
  267: 			<action>
  268: 				<hbox uri="?item">
  269: 					<label value="?name" link="?link"/>
  270: 					</hbox>
  271: 				</action>
  272: 			</rule>
  273: 
  274: 		</template>
  275: 	</vbox>
  276: 
  277: <vbox id="hidden-toc" flex="1"  hidecolumnpicker="true" hidden="true"
  278: 	datasources="rdf:null"
  279: 	containment="http://home.netscape.com/NC-rdf#subheadings"
  280: 	ref="urn:root">
  281: 	<template>
  282: 		<rule>
  283: 			<conditions>
  284: 				<content uri="?uri"/>
  285: 				<triple subject="?uri"
  286: 					predicate="http://home.netscape.com/NC-rdf#subheadings" object="?items"/>
  287: 				<member container="?items" child="?item"/>
  288: 				</conditions>
  289: 			<bindings>
  290: 				<binding subject="?item" predicate="http://home.netscape.com/NC-rdf#name" object="?name"/>
  291: 				<binding subject="?item" predicate="http://home.netscape.com/NC-rdf#link" object="?link"/>
  292: 				</bindings>
  293: 			<action>
  294: 				<hbox uri="?item">
  295: 					<label value="?name" link="?link"/>
  296: 					</hbox>
  297: 				</action>
  298: 			</rule>
  299: 		</template>
  300: 	</vbox>
  301: 
  302: </window>

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