gecko-dev/suite/common/sidebar/sidebarOverlay.xul

103 lines
3.8 KiB
Plaintext
Raw Normal View History

<?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil -*- -->
1999-10-29 19:13:42 +00:00
<!--
1999-10-29 19:13:42 +00:00
The contents of this file are subject to the Netscape Public License
Version 1.1 (the "NPL"); you may not use this file except in
compliance with the NPL. You may obtain a copy of the NPL at
http://www.mozilla.org/NPL/
Software distributed under the NPL is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
for the specific language governing rights and limitations under the
NPL.
The Initial Developer of this code under the NPL is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1999 Netscape Communications Corporation. All Rights
Reserved.
-->
1999-10-26 00:39:19 +00:00
<?xml-stylesheet href="chrome://sidebar/skin/sidebarOverlay.css" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://sidebar/locale/sidebarOverlay.dtd">
<overlay id="sidebarOverlay"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- Overlay the sidebar panels -->
2006-07-27 14:47:52 +00:00
<box id="sidebar-box" align="vertical"
persist="hidden width hackforbug20546">
1999-10-26 00:39:19 +00:00
<splitter id="title-box" class="sidebar-main-header" collapse="after"
persist="state" onmouseup="PersistHeight();">
<html:div class="panel-bar">
&sidebar.panels.label;
</html:div>
<spring flex="100%"/>
<titledbutton class="borderless"
value="&sidebar.customize.label;"
onclick="SidebarCustomize();"/>
2006-07-27 14:47:39 +00:00
</splitter>
<box id="sidebar-panels-box" align="vertical" flex="1*" persist="height">
2006-07-27 14:47:39 +00:00
<box id="sidebar-panels" align="vertical"
datasources="chrome://sidebar/content/local-panels.rdf chrome://sidebar/content/remote-panels.rdf"
2006-07-27 14:47:39 +00:00
ref="urn:sidebar:current-panel-list"
persist='open-panel-src'>
<template>
<rule>
<box uri="rdf:*" class="texttab" align="left"
2006-07-27 14:47:39 +00:00
value="rdf:http://home.netscape.com/NC-rdf#title"
onclick="SidebarSelectPanel(this)"
hidden="true"
exclude="rdf:http://home.netscape.com/NC-rdf#exclude"
2006-07-27 14:47:39 +00:00
iframe-src="rdf:http://home.netscape.com/NC-rdf#content" />
</rule>
</template>
</box>
<html:iframe id="sidebar-content" type="xxx-content" src="about:blank"
name="sidebar-content" class="panel-frame" flex='1*'/>
<box id="sidebar-panels-bottom" align="vertical"
datasources="chrome://sidebar/content/local-panels.rdf chrome://sidebar/content/remote-panels.rdf">
<template>
<rule>
<box uri="rdf:*" class="texttab" align="left"
value="rdf:http://home.netscape.com/NC-rdf#title"
onclick="SidebarSelectPanel(this)"
hidden="true"
exclude="rdf:http://home.netscape.com/NC-rdf#content"
iframe-src="rdf:http://home.netscape.com/NC-rdf#content" />
</rule>
</template>
</box>
</box>
</box>
1999-10-26 00:39:19 +00:00
<!-- Splitter on the right of sidebar -->
<splitter id="sidebar-splitter" collapse="before" persist="state hidden"
chromeclass="extrachrome"
onmouseup="SidebarFinishDrag();">
1999-10-26 00:39:19 +00:00
<box id="topright-cap" align="vertical">
<spring flex="100%"/>
</box>
<spring flex="100%"/>
<grippy onclick="SidebarExpandCollapse();"/>
1999-10-26 00:39:19 +00:00
<spring flex="100%"/>
<box id="bottomright-cap" align="vertical">
<spring flex="100%"/>
</box>
</splitter>
<!-- View->Sidebar toggle -->
<menupopup id="menu_View_Popup">
<menuitem id="menu_sidebar" type="checkbox" value="&sidebarCmd.label;"
oncommand="SidebarShowHide();" position="2"/>
</menupopup>
<!-- Scripts go last, because they peek at state to tweak menus -->
<html:script language="JavaScript"
src="chrome://sidebar/content/sidebarOverlay.js"/>
</overlay>