File:  [mozdev] / calendarhelp / www / open.xul
Revision 1.5: download - view: text, annotated - select for diffs - revision graph
Fri Apr 1 14:22:58 2005 UTC (14 years, 8 months ago) by whiteley
Branches: MAIN
CVS tags: HEAD
update online viewer (add Search)

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

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