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

106 строки
3.9 KiB
XML

<?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil -*- -->
<!--
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.
-->
<?xml-stylesheet href="chrome://communicator/skin/sidebar/sidebarOverlay.css" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://communicator/locale/sidebar/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 -->
<box id="sidebar-box" align="vertical"
persist="hidden width collapsed">
<sidebarheader id="title-box" class="sidebar-main-header"
value="&sidebar.panels.label;"
collapse="after" persist="state" onmouseup="PersistHeight();">
<menu id="panel-picker" class="standard"
oncreate="SidebarBuildPickerPopup();"
value="&sidebar.picker.label;" >
<menupopup id="panel-picker-popup" popupanchor="topright"
datasources="rdf:null"
ref="urn:sidebar:current-panel-list">
<template>
<rule>
<menuitem uri="rdf:*" type="checkbox"
oncommand="SidebarTogglePanel(event.target);"
value="rdf:http://home.netscape.com/NC-rdf#title"
exclude="rdf:http://home.netscape.com/NC-rdf#exclude"/>
</rule>
</template>
<menuitem value="&sidebar.customize.label;"
oncommand="SidebarCustomize();" />
<menuseparator />
</menupopup>
</menu>
</sidebarheader>
<box id="sidebar-panels" align="vertical"
datasources="rdf:null"
ref="urn:sidebar:current-panel-list"
persist='last-selected-panel height collapsed' flex="1*">
<template>
<rule>
<box uri="rdf:*" class="texttab" align="left"
value="rdf:http://home.netscape.com/NC-rdf#title"
onclick="SidebarSelectPanel(this)"
exclude="rdf:http://home.netscape.com/NC-rdf#exclude"
hidden="true"/>
<box uri="rdf:*" flex='1*' hidden="true">
<iframe class="panel-frame" flex='1*' hidden="true"
src="rdf:http://home.netscape.com/NC-rdf#content" />
<iframe class="panel-frame" flex='1*' hidden="true"
src="rdf:http://home.netscape.com/NC-rdf#content"
type="content" />
</box>
</rule>
</template>
</box>
</box>
<!-- Splitter on the right of sidebar -->
<splitter id="sidebar-splitter" collapse="before" persist="state hidden"
class="chromeclass-extrachrome"
onmouseup="SidebarFinishDrag();">
<box id="topright-cap" align="vertical">
<spring flex="100%"/>
</box>
<spring flex="100%"/>
<grippy onclick="SidebarExpandCollapse();"/>
<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://communicator/content/sidebar/sidebarOverlay.js"/>
</overlay>