Removing files and moving them to chrome directories

* gif Netsupport* navigator.xul tooltip.js unknownContent.xul
viewSource.xul viewsource.js is moved to broswer/resources/content

*css is moved to browser/resources/skin
This commit is contained in:
matt%netscape.com 1999-07-14 00:42:36 +00:00
Родитель 46a09ebc0b
Коммит c15da2bbb5
30 изменённых файлов: 8 добавлений и 3954 удалений

Просмотреть файл

@ -1,19 +1,5 @@
status.xul
toolbar.xml
contentframe.css
contentframe.js
contentframe.xul
xul.css
dialogs.css
navigator.css
navigator.xul
navigator.js
unknownContent.xul
viewSource.xul
viewsource.js
openLocation.xul
openLocation.js
downloadProgress.xul
downloadProgress.css
navigator-shiny.css
@ -22,15 +8,6 @@ navigator-goofy.css
navigator-test1.xul
raindrops_light.gif
skindemo.xul
NetSupportUserPassword.xul
NetSupportPassword.xul
NetSupportAlert.xul
NetSupportConfirm.xul
NetSupportConfirmCheck.xul
alertl.gif
errorI.gif
messagel.gif
questionl.gif
DumpDOM.js
lessCols.gif
lessCols_mo.gif
@ -47,4 +24,3 @@ scrollDown_dis.gif
scrollThumb.gif
scrollThumb_mo.gif
scrollThumb_dis.gif
tooltip.js

Просмотреть файл

@ -27,19 +27,6 @@ include $(topsrcdir)/config/rules.mk
EXPORT_RESOURCE_SAMPLES = \
$(srcdir)/status.xul \
$(srcdir)/toolbar.xml \
$(srcdir)/contentframe.css \
$(srcdir)/contentframe.js \
$(srcdir)/contentframe.xul \
$(srcdir)/xul.css \
$(srcdir)/dialogs.css \
$(srcdir)/navigator.css \
$(srcdir)/navigator.xul \
$(srcdir)/navigator.js \
$(srcdir)/unknownContent.xul \
$(srcdir)/viewSource.xul \
$(srcdir)/viewsource.js \
$(srcdir)/openLocation.xul \
$(srcdir)/openLocation.js \
$(srcdir)/downloadProgress.xul \
$(srcdir)/downloadProgress.css \
$(srcdir)/navigator-shiny.css \
@ -48,16 +35,6 @@ EXPORT_RESOURCE_SAMPLES = \
$(srcdir)/navigator-test1.xul \
$(srcdir)/raindrops_light.gif \
$(srcdir)/skindemo.xul \
$(srcdir)/NetSupportUserPassword.xul \
$(srcdir)/NetSupportPrompt.xul \
$(srcdir)/NetSupportPassword.xul \
$(srcdir)/NetSupportAlert.xul \
$(srcdir)/NetSupportConfirm.xul \
$(srcdir)/NetSupportConfirmCheck.xul \
$(srcdir)/alertl.gif \
$(srcdir)/errorI.gif \
$(srcdir)/messagel.gif \
$(srcdir)/questionl.gif \
$(srcdir)/DumpDOM.js \
$(srcdir)/lessCols.gif \
$(srcdir)/lessCols_mo.gif \
@ -74,7 +51,6 @@ EXPORT_RESOURCE_SAMPLES = \
$(srcdir)/scrollThumb.gif \
$(srcdir)/scrollThumb_mo.gif \
$(srcdir)/scrollThumb_dis.gif \
$(srcdir)/tooltip.js \
$(NULL)
install::

Просмотреть файл

@ -1,67 +0,0 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<data>
<broadcaster id="NetDialog:Message"/>
</data>
<dialog>
<observes element="NetDialog:Message" attribute="text" onchange="onUpdate()"/>
</dialog>
<html:script>
function onUpdate()
{
dump("onUpate \n");
var msg = document.getElementById("NetDialog:Message");
if ( msg)
{
var text = msg.getAttribute("text");
dump( text +"\n" );
var prompt = (document.getElementById("message"));
if ( prompt )
{
dump(" setting message \n" );
prompt.childNodes[0].nodeValue = text;
}
}
var msg = document.getElementById("NetDialog:CheckMessage");
if ( msg)
{
var text = msg.getAttribute("text");
dump( text +"\n" );
var prompt = (document.getElementById("checkmessage"));
if ( prompt )
{
dump(" setting message \n" );
prompt.childNodes[0].nodeValue = text;
}
}
}
</html:script>
<html:table>
<html:tr >
<html:td>
<html:img html:src="resource:/res/samples/alertl.gif"></html:img>
</html:td>
<html:td>
<html:span id="message">m</html:span>
</html:td>
</html:tr>
<html:tr>
<html:td></html:td>
<html:td html:align="justify">
<html:button id="OKButton"> OK </html:button> </html:td>
</html:tr>
</html:table>
</window>

Просмотреть файл

@ -1,83 +0,0 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<data>
<broadcaster id="NetDialog:Message"/>
<broadcaster id="NetDialog:CheckMessage"/>
</data>
<dialog>
<observes element="NetDialog:Message" attribute="text" onchange="onUpdate()"/>
<observes element="NetDialog:CheckMessage" attribute="text" onchange="onUpdate()"/>
</dialog>
<html:script>
function onUpdate()
{
dump("onUpate \n");
var msg = document.getElementById("NetDialog:Message");
if ( msg)
{
var text = msg.getAttribute("text");
dump( text +"\n" );
var prompt = (document.getElementById("message"));
if ( prompt )
{
dump(" setting message \n" );
prompt.childNodes[0].nodeValue = text;
}
}
var msg = document.getElementById("NetDialog:CheckMessage");
if ( msg)
{
var text = msg.getAttribute("text");
dump( text +"\n" );
var prompt = (document.getElementById("checkboxLabel"));
if ( prompt )
{
dump(" setting message \n" );
prompt.childNodes[1].nodeValue = text;
}
}
}
</html:script>
<html:table>
<html:tr >
<html:td>
<html:img html:src="resource:/res/samples/questionl.gif"></html:img>
</html:td>
<html:td>
<html:span id="message">m</html:span>
</html:td>
</html:tr>
<html:tr>
<html:td>
<html:label id="checkboxLabel">
<html:input type="checkbox" id="checkbox"/>
Backwards
</html:label>
</html:td>
<html:td>
</html:td>
</html:tr>
<html:tr>
<html:td>
</html:td>
<html:td html:align="justify">
<html:button id ="CancelButton"> Cancel </html:button>
<html:button id="OKButton"> OK </html:button> </html:td>
</html:tr>
</html:table>
</window>

Просмотреть файл

@ -1,56 +0,0 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<!DOCTYPE window>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<data>
<broadcaster id="NetDialog:Message"/>
</data>
<dialog>
<observes element="NetDialog:Message" attribute="text" onchange="onUpdate()"/>
</dialog>
<html:script>
function onUpdate()
{
dump("onUpate \n");
var msg = document.getElementById("NetDialog:Message");
if ( msg)
{
var text = msg.getAttribute("text");
dump( text +"\n" );
var prompt = (document.getElementById("message"));
if ( prompt )
{
dump(" setting message \n" );
prompt.childNodes[0].nodeValue = text;
}
}
}
</html:script>
<html:table>
<html:tr >
<html:td html:colspan="2" >
<html:span id="message">message text here </html:span>
</html:td>
</html:tr>
<html:tr>
<html:td html:valign="middle"></html:td>
<html:td>
<html:input html:name="Password" html:type="password" html:id="Password" > </html:input>
</html:td>
</html:tr>
<html:tr>
<html:td></html:td>
<html:td html:align="justify">
<html:button id ="CancelButton"> Cancel </html:button>
<html:button id="OKButton"> OK </html:button> </html:td>
</html:tr>
</html:table>
</window>

Просмотреть файл

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<?xml-stylesheet href="chrome:/global/skin/" type="text/css"?>
<!DOCTYPE window>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"

Просмотреть файл

@ -1,61 +0,0 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<!DOCTYPE window>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<data>
<broadcaster id="NetDialog:Message"/>
</data>
<dialog>
<observes element="NetDialog:Message" attribute="text" onchange="onUpdate()"/>
</dialog>
<html:script>
function onUpdate()
{
dump("onUpate \n");
var msg = document.getElementById("NetDialog:Message");
if ( msg)
{
var text = msg.getAttribute("text");
dump( text +"\n" );
var prompt = (document.getElementById("message"));
if ( prompt )
{
dump(" setting message \n" );
prompt.childNodes[0].nodeValue = text;
}
}
}
</html:script>
<html:table>
<html:tr >
<html:td html:colspan="2" >
<html:span id="message">message text here </html:span>
</html:td>
</html:tr>
<html:tr>
<html:td html:valign ="middle">User: </html:td>
<html:td><html:input html:name="User" html:type="text" html:id="User" > </html:input>
</html:td>
</html:tr>
<html:tr>
<html:td html:valign="middle">Password:</html:td>
<html:td>
<html:input html:name="Password" html:type="password" html:id="Password" > </html:input>
</html:td>
</html:tr>
<html:tr>
<html:td></html:td>
<html:td html:align="justify">
<html:button id ="CancelButton"> Cancel </html:button>
<html:button id="OKButton"> OK </html:button> </html:td>
</html:tr>
</html:table>
</window>

Двоичные данные
xpfe/browser/src/alertl.gif

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 372 B

Просмотреть файл

@ -1,28 +0,0 @@
iframe {
border: 0px;
width: 0px;
height: 0px;
min-width: 0px;
min-height: 0px;
}
iframe[class=sidebarframe] {
width: 0px;
}
titledbutton[class=grippy] {
background-color: rgb(206, 207, 206);
border: 0px;
margin: 0px;
padding: 0px;
list-style-image:url(resource:/res/toolbar/grippy-horizontal-after.gif);
}
titledbutton[class=grippy][open=true] {
list-style-image:url(resource:/res/toolbar/grippy-horizontal-before.gif);
}
titledbutton[class=grippy]:hover {
background-color: rgb(204, 204, 255);
}

Просмотреть файл

@ -1,66 +0,0 @@
// -*- Mode: Java -*-
var sidebar_name = ''; // Name for preferences (e.g. 'sidebar.<name>.foo')
var sidebar_uri = ''; // Content to load in sidebar frame
var sidebar_width = 0; // Desired width of sidebar
var sidebar_pref = ''; // Base for preferences (e.g. 'sidebar.browser')
var is_sidebar_open = false;
var prefs = null; // Handle to preference interface
function init_sidebar(name, uri, width) {
sidebar_name = name;
sidebar_uri = uri;
sidebar_width = width;
sidebar_pref = 'sidebar.' + name;
// Open/close sidebar based on saved pref.
// This may be replaced by another system by hyatt.
prefs = Components.classes['component://netscape/preferences'];
if (prefs) {
prefs = prefs.getService();
}
if (prefs) {
prefs = prefs.QueryInterface(Components.interfaces.nsIPref);
}
if (prefs) {
prefs.SetDefaultBoolPref(sidebar_pref + '.open', false);
// The sidebar is closed by default, so open it only if the
// preference is set to true.
if (prefs.GetBoolPref(sidebar_pref + '.open')) {
toggle_open_close();
}
}
}
function toggle_open_close() {
var sidebar = document.getElementById('sidebarframe');
var grippy = document.getElementById('grippy');
if (is_sidebar_open)
{
// Close it
sidebar.setAttribute('style','width: 0px');
sidebar.setAttribute('src','about:blank');
grippy.setAttribute('open','');
is_sidebar_open = false;
}
else
{
// Open it
sidebar.setAttribute('style', 'width:' + sidebar_width + 'px');
sidebar.setAttribute('src', sidebar_uri);
grippy.setAttribute('open','true');
is_sidebar_open = true;
}
// Save new open/close state in prefs
if (prefs) {
prefs.SetBoolPref(sidebar_pref + '.open', is_sidebar_open);
}
}

Просмотреть файл

@ -1,22 +0,0 @@
<?xml version="1.0"?>
<?xml-stylesheet href="resource:/res/samples/xul.css" type="text/css"?>
<?xml-stylesheet href="contentframe.css" type="text/css"?>
<!DOCTYPE window>
<window style="height:100%;width:100%"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="init_sidebar('browser', 'resource:/res/rdf/sidebar-browser.xul',
170);" align="horizontal">
<html:script src="contentframe.js" />
<html:iframe id="sidebarframe" class="sidebarframe" src="about:blank" />
<titledbutton id="grippy" class="grippy" onclick="toggle_open_close();"/>
<!-- type attribute is used by frame construction to locate iframes
intended to hold (html) content -->
<!-- id's use is a mystery -->
<html:iframe type="content-primary" id="content" src="about:blank" flex="100%" />
</window>

Просмотреть файл

@ -1,56 +0,0 @@
/** Contains style definitions for navigator dialogs
This file is experimental right now, but will sometime
be the base CSS file for all dialogs.
**/
table {
display: list;
cell-spacing: 2px;
cell-padding: 2px;
margin-top: 10;
margin-bottom: 10;
background: transparent;
}
tr.checkboxrow {
vertical-align: middle;
cell-spacing: 20px;
cell-padding: 20px;
}
input {
vertical-align: middle;
}
td.fieldlabel {
text-align: right;
/* font-family: "Geneva"; */
font-size: 9pt;
font-weight: bold;
padding-right: 4px;
}
button.defaultbutton {
/* font-family: "Charcoal"; */
font-size: 12pt;
padding-left: 24px;
padding-right: 24px;
margin-left: 4px;
margin-right: 4px;
}
button.cancelbutton {
/* font-family: "Arial, Charcoal"; */
font-size: 12pt;
padding-left: 24px;
padding-right: 24px;
margin-left: 4px;
margin-right: 4px;
}
td.buttonlabel {
/* font-family: "Geneva"; */
font-size: 9pt;
}

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<?xml-stylesheet href="downloadProgress.css" type="text/css"?>
<?xml-stylesheet href="chrome:/global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome:/navigator/skin/downloadProgress.css" type="text/css"?>
<!DOCTYPE window>

Просмотреть файл

@ -30,22 +30,6 @@ DISTRES=$(DIST)\bin\res\samples
install::
$(MAKE_INSTALL) status.xul $(DISTRES)
$(MAKE_INSTALL) toolbar.xml $(DISTRES)
$(MAKE_INSTALL) contentframe.css $(DISTRES)
$(MAKE_INSTALL) contentframe.js $(DISTRES)
$(MAKE_INSTALL) contentframe.xul $(DISTRES)
$(MAKE_INSTALL) xul.css $(DISTRES)
$(MAKE_INSTALL) dialogs.css $(DISTRES)
$(MAKE_INSTALL) navigator.css $(DISTRES)
$(MAKE_INSTALL) navigator.xul $(DISTRES)
$(MAKE_INSTALL) navigator.js $(DISTRES)
$(MAKE_INSTALL) viewSource.xul $(DISTRES)
$(MAKE_INSTALL) openLocation.js $(DISTRES)
$(MAKE_INSTALL) openLocation.xul $(DISTRES)
$(MAKE_INSTALL) viewsource.js $(DISTRES)
$(MAKE_INSTALL) unknownContent.xul $(DISTRES)
$(MAKE_INSTALL) NetSupportUserPassword.xul $(DISTRES)
$(MAKE_INSTALL) NetSupportPassword.xul $(DISTRES)
$(MAKE_INSTALL) NetSupportPrompt.xul $(DISTRES)
$(MAKE_INSTALL) downloadProgress.xul $(DISTRES)
$(MAKE_INSTALL) downloadProgress.css $(DISTRES)
$(MAKE_INSTALL) navigator-mozillazine0.css $(DISTRES)
@ -54,13 +38,6 @@ install::
$(MAKE_INSTALL) navigator-shiny.css $(DISTRES)
$(MAKE_INSTALL) raindrops_light.gif $(DISTRES)
$(MAKE_INSTALL) skindemo.xul $(DISTRES)
$(MAKE_INSTALL) NetSupportAlert.xul $(DISTRES)
$(MAKE_INSTALL) NetSupportConfirm.xul $(DISTRES)
$(MAKE_INSTALL) NetSupportConfirmCheck.xul $(DISTRES)
$(MAKE_INSTALL) alertl.gif $(DISTRES)
$(MAKE_INSTALL) errorI.gif $(DISTRES)
$(MAKE_INSTALL) messagel.gif $(DISTRES)
$(MAKE_INSTALL) questionl.gif $(DISTRES)
$(MAKE_INSTALL) DumpDOM.js $(DISTRES)
$(MAKE_INSTALL) lessCols.gif $(DISTRES)
$(MAKE_INSTALL) lessCols_mo.gif $(DISTRES)
@ -77,34 +54,16 @@ install::
$(MAKE_INSTALL) scrollThumb.gif $(DISTRES)
$(MAKE_INSTALL) scrollThumb_mo.gif $(DISTRES)
$(MAKE_INSTALL) scrollThumb_dis.gif $(DISTRES)
$(MAKE_INSTALL) tooltip.js $(DISTRES)
clobber::
rm -f $(DIST)\bin\$(DLLNAME).dll
rm -f $(DISTRES)\xul.css
rm -f $(DISTRES)\navigator.xul
rm -f $(DISTRES)\viewSource.xul
rm -f $(DISTRES)\viewsource.js
rm -f $(DISTRES)\openLocation.xul
rm -f $(DISTRES)\openLocation.js
rm -f $(DISTRES)\unknownContent.xul
rm -f $(DISTRES)\downloadProgress.xul
rm -f $(DISTRES)\downloadProgress.css
rm -f $(DISTRES)\dialogs.css
rm -f $(DISTRES)\navigator.css
rm -f $(DISTRES)\navigator-mozillazine0.css
rm -f $(DISTRES)\navigator-test1.xul
rm -f $(DISTRES)\navigator-goofy.css
rm -f $(DISTRES)\navigator-shiny.css
rm -f $(DISTRES)\raindrops_light.gif
rm -f $(DISTRES)\NetSupportUserPassword.xul
rm -f $(DISTRES)\NetSupportAlert.xul
rm -f $(DISTRES)\NetSupportConfirm.xul
rm -f $(DISTRES)\NetSupportConfirmCheck.xul
rm -f $(DISTRES)\status.xul
rm -f $(DISTRES)\alertl.gif
rm -f $(DISTRES)\errorI.gif
rm -f $(DISTRES)\messagel.gif
rm -f $(DISTRES)\questionl.gif
rm -f $(DISTRES)\DumpDOM.js

Двоичные данные
xpfe/browser/src/messagel.gif

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 693 B

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<?xml-stylesheet href="navigator.css" type="text/css"?>
<?xml-stylesheet href="chrome:/global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome:/navigator/skin/" type="text/css"?>
<!DOCTYPE window>

Просмотреть файл

@ -1,161 +0,0 @@
/** Contains style definitions for the navigator application
**/
[chromehidden] { /* what to do if chrome requests you be invisible */
display: none;
}
popup {
display: none;
}
titledbutton#translate-button {
list-style-image:url(resource:/res/toolbar/TB_Location.gif);
}
titledbutton#print-button {
list-style-image:url(resource:/res/toolbar/TB_Print.gif);
}
titledbutton#back-button {
list-style-image:url(resource:/res/toolbar/TB_Back.gif);
}
titledbutton#forward-button {
list-style-image:url(resource:/res/toolbar/TB_Forward.gif);
}
titledbutton#stop-button {
list-style-image:url(resource:/res/toolbar/TB_Stop.gif);
}
titledbutton#reload-button {
list-style-image:url(resource:/res/toolbar/TB_Reload.gif);
}
titledbutton#home-button {
list-style-image:url(resource:/res/toolbar/TB_Home.gif);
}
titledbutton#netscape-button {
list-style-image:url(resource:/res/toolbar/TB_Netscape.gif);
}
titledbutton#bugzilla-button {
list-style-image:url(resource:/res/toolbar/TB_Location.gif);
}
titledbutton#tinderbox-button {
list-style-image:url(resource:/res/toolbar/TB_Location.gif);
}
titledbutton#security-button {
list-style-image:url(resource:/res/toolbar/StatusBar-secure.gif);
}
titledbutton#Throbber
{
list-style-image:url(resource:/res/throbber/anims00.gif);
}
titledbutton#Throbber[busy="true"] {
list-style-image:url(resource:/res/throbber/anim.gif);
}
toolbar#taskbar titledbutton{
min-width: 2em;
color:#CCCCFF;
}
toolbar#taskbar titledbutton:active {
border: 1px outset #666699;
color:white;
}
toolbar#taskbar {
/* note: use display: block/none from toolbar rules in xul.css */
background-color: #666699;
border-bottom: solid #333366 1px;
border-top: solid #9999AA 1px;
border-left: solid #9999AA 1px;
border-right: solid #333366 1px;
font: inherit;
min-height: 1em;
color: white;
}
box[class=insecure] {
border-top: 2px solid transparent;
}
box[class=secure] {
border-top: 2px solid yellow;
}
box#statusbar {
margin:0px;
padding: 0px;
}
box#status-bar titledbutton {
border-color: 1px solid transparent;
font: inherit;
margin-top: 0px;
margin-bottom: 0px;
}
titledbutton[class~=secure] {
background-color: yellow;
}
titledbutton[class~=insecure] {
display: none;
}
toolbar#taskbar titledbutton:active {
border: 1px inset #9999AA;
}
titledbutton#mini-nav
{
list-style-image:url(resource:/res/toolbar/TB_MiniNav.gif);
}
titledbutton#mini-mail
{
list-style-image:url(resource:/res/toolbar/TB_MiniMail.gif);
}
titledbutton#mini-addr
{
list-style-image:url(resource:/res/toolbar/TB_MiniAddr.gif);
}
titledbutton#mini-comp
{
list-style-image:url(resource:/res/toolbar/TB_MiniComp.gif);
}
box[type="secure"] {
border-top: 2px solid yellow;
}
box[type="unsecure"] {
border-top: 2px solid transparent;
}
toolbar[class="main-bar"] {
}
window#main-window {
width: 100%;
height: 100%;
}
iframe#content-frame {
min-width: 0px;
min-height: 0px;
}

Просмотреть файл

@ -1,920 +0,0 @@
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (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) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
var appCore = null;
var prefwindow = null;
var appCoreName = "";
var defaultStatus = "default status text";
var debugSecurity = false; // Set this true to enable Security chrome testing.
var explicitURL = false;
function Startup()
{
dump("Doing Startup...\n");
dump("Creating browser app core\n");
appCore = new BrowserAppCore();
if (appCore != null) {
dump("BrowserAppCore has been created.\n");
appCoreName = "BrowserAppCore." + ( new Date() ).getTime().toString();
appCore.Init( appCoreName );
appCore.setWebShellWindow(window);
appCore.setToolbarWindow(window);
tryToSetContentWindow();
}
}
function Shutdown() {
// Close the app core.
if ( appCore ) {
appCore.close();
// Remove app core from app core manager.
XPAppCoresManager.Remove( appCore );
}
}
function onLoadWithArgs() {
// See if Startup has been run.
if ( appCore ) {
// See if load in progress (loading default page).
if ( document.getElementById("Browser:Throbber").getAttribute("busy") == "true" ) {
dump( "Stopping load of default initial page\n" );
appCore.stop();
}
dump( "Loading page specified on ShowWindowWithArgs\n" );
appCore.loadInitialPage();
} else {
// onLoad handler timing is not correct yet.
dump( "onLoadWithArgs not needed yet\n" );
// Remember that we want this url.
explicitURL = true;
}
}
function tryToSetContentWindow() {
if ( window.content ) {
dump("Setting content window\n");
appCore.setContentWindow( window.content );
// Have browser app core load appropriate initial page.
if ( !explicitURL ) {
var pref = Components.classes['component://netscape/preferences'];
dump("Components = " + Components + "\n");
dump("Components.classes = " + Components.classes + "\n");
dump("Components.classes[component://netscape/preferences] = " + pref + "\n");
// if all else fails, use trusty "about:blank" as the start page
var startpage = "about:blank";
if (pref) {
pref = pref.getService();
}
else {
dump("failed to get component://netscape/preferences\n");
}
if (pref) {
pref = pref.QueryInterface(Components.interfaces.nsIPref);
}
else {
dump("failed to get pref service\n");
}
if (pref) {
// from mozilla/modules/libpref/src/init/all.js
// 0 = blank
// 1 = home (browser.startup.homepage)
// 2 = last
choice = pref.GetIntPref("browser.startup.page");
dump("browser.startup.page = " + choice + "\n");
switch (choice) {
case 0:
startpage = "about:blank";
break;
case 1:
startpage = pref.CopyCharPref("browser.startup.homepage");
break;
case 2:
var history = Components.classes['component://netscape/browser/global-history'];
if (history) {
history = history.getService();
}
if (history) {
history = history.QueryInterface(Components.interfaces.nsIGlobalHistory);
}
if (history) {
startpage = history.GetLastPageVisted();
}
break;
default:
startpage = "about:blank";
}
}
else {
dump("failed to QI pref service\n");
}
dump("startpage = " + startpage + "\n");
document.getElementById("args").setAttribute("value", startpage);
}
appCore.loadInitialPage();
} else {
// Try again.
dump("Scheduling later attempt to set content window\n");
window.setTimeout( "tryToSetContentWindow()", 100 );
}
}
function Translate(src, dest)
{
var service = "http://levis.alis.com:8081";
service += "?AlisSourceLang=" + src;
service += "&AlisTargetLang=" + dest;
service += "&AlisMTEngine=SSI";
service += "&AlisTargetURI=" + window.content.location.href;
window.content.location.href = service;
}
function RefreshUrlbar()
{
//Refresh the urlbar bar
document.getElementById('urlbar').value = window.content.location.href;
}
function BrowserBack()
{
// Get a handle to the back-button
var bb = document.getElementById("canGoBack");
// If the button is disabled, don't bother calling in to Appcore
if ( (bb.getAttribute("disabled")) == "true" )
return;
if (appCore != null) {
dump("Going Back\n");
appCore.back();
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function BrowserForward()
{
// Get a handle to the back-button
var fb = document.getElementById("canGoForward");
// If the button is disabled, don't bother calling in to Appcore
if ( (fb.getAttribute("disabled")) == "true" )
return;
if (appCore != null) {
dump("Going Forward\n");
appCore.forward();
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function BrowserSetForward()
{
var forwardBElem = document.getElementById("canGoForward");
if (!forwardBElem) {
dump("Couldn't obtain handle to forward Broarcast element\n");
return;
}
var canForward = forwardBElem.getAttribute("disabled");
var fb = document.getElementById("forward-button");
if (!fb) {
dump("Could not obtain handle to forward button\n");
return;
}
// Enable/Disable the Forward button
if (canForward == "true") {
fb.setAttribute("disabled", "true");
}
else {
fb.setAttribute("disabled", "");
}
// Enable/Disable the Forward menu
var fm = document.getElementById("menuitem-forward");
if (!fm) {
dump("Couldn't obtain menu item Forward\n");
return;
}
// Enable/Disable the Forward Menuitem
if (canForward == "true") {
fm.setAttribute("disabled", "true");
}
else {
fm.setAttribute("disabled", "");
}
}
function BrowserCanStop() {
var stop = document.getElementById("canStop");
if ( stop ) {
var stopDisabled = stop.getAttribute("disabled");
var stopButton = document.getElementById( "stop-button" );
if ( stopButton ) {
if ( stopDisabled == "true") {
stopButton.setAttribute( "disabled", "true" );
} else {
stopButton.setAttribute( "disabled", "" );
}
}
//Enable/disable the stop menu item
var stopMenu = document.getElementById( "menuitem-stop" );
if ( stopMenu ) {
if ( stopDisabled == "true") {
stopMenu.setAttribute( "disabled", "true" );
} else {
stopMenu.setAttribute( "disabled", "" );
}
}
}
}
function BrowserStop() {
// Get a handle to the "canStop" broadcast id
var stopBElem = document.getElementById("canStop");
if (!stopBElem) {
dump("Couldn't obtain handle to stop Broadcast element\n");
return;
}
var canStop = stopBElem.getAttribute("disabled");
var sb = document.getElementById("stop-button");
if (!sb) {
dump("Could not obtain handle to stop button\n");
return;
}
// If the stop button is currently disabled, just return
if ((sb.getAttribute("disabled")) == "true") {
return;
}
//Stop button has just been pressed. Disable it.
sb.setAttribute("disabled", "true");
// Get a handle to the stop menu item.
var sm = document.getElementById("menuitem-stop");
if (!sm) {
dump("Couldn't obtain menu item Stop\n");
} else {
// Disable the stop menu-item.
sm.setAttribute("disabled", "true");
}
//Call in to BrowserAppcore to stop the current loading
if (appCore != null) {
dump("Going to Stop\n");
appCore.stop();
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function BrowserSetBack()
{
var backBElem = document.getElementById("canGoBack");
if (!backBElem) {
dump("Couldn't obtain handle to back Broadcast element\n");
return;
}
var canBack = backBElem.getAttribute("disabled");
var bb = document.getElementById("back-button");
if (!bb) {
dump("Could not obtain handle to back button\n");
return;
}
// Enable/Disable the Back button
if (canBack == "true") {
bb.setAttribute("disabled", "true");
}
else {
bb.setAttribute("disabled", "");
}
// Enable/Disable the Back menu
var bm = document.getElementById("menuitem-back");
if (!bm) {
dump("Couldn't obtain menu item Back\n");
return;
}
// Enable/Disable the Back Menuitem
if (canBack == "true") {
bm.setAttribute("disabled", "true");
}
else {
bm.setAttribute("disabled", "");
}
}
function BrowserSetReload() {
var reload = document.getElementById("canReload");
if ( reload ) {
var reloadDisabled = reload.getAttribute("disabled");
//Enable/disable the reload button
var reloadButton = document.getElementById( "reload-button" );
if ( reloadButton ) {
if ( reloadDisabled == "true") {
reloadButton.setAttribute( "disabled", "true" );
} else {
reloadButton.setAttribute( "disabled", "" );
}
}
//Enable/disable the reload menu
var reloadMenu = document.getElementById("menuitem-reload");
if ( reloadMenu ) {
if ( reloadDisabled == "true") {
reloadMenu.setAttribute( "disabled", "true" );
} else {
reloadMenu.setAttribute( "disabled", "" );
}
}
}
}
function BrowserReallyReload(reloadType) {
// Get a handle to the "canReload" broadcast id
var reloadBElem = document.getElementById("canReload");
if (!reloadBElem) {
dump("Couldn't obtain handle to reload Broadcast element\n");
return;
}
var canreload = reloadBElem.getAttribute("disabled");
var sb = document.getElementById("reload-button");
if (!sb) {
dump("Could not obtain handle to reload button\n");
return;
}
// If the reload button is currently disabled, just return
if ((sb.getAttribute("disabled")) == "true") {
return;
}
//reload button has just been pressed. Disable it.
sb.setAttribute("disabled", "true");
// Get a handle to the reload menu item.
var sm = document.getElementById("menuitem-reload");
if (!sm) {
dump("Couldn't obtain menu item reload\n");
} else {
// Disable the reload menu-item.
sm.setAttribute("disabled", "true");
}
//Call in to BrowserAppcore to reload the current loading
if (appCore != null) {
dump("Going to reload\n");
appCore.reload(reloadType);
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function BrowserHome()
{
window.content.home();
RefreshUrlbar();
}
function OpenBookmarkURL(node)
{
if (node.getAttribute('container') == "true") {
return false;
}
url = node.getAttribute('id');
// Ignore "NC:" urls.
if (url.substring(0, 3) == "NC:") {
return false;
}
window.content.location.href = url;
RefreshUrlbar();
}
function BrowserNewWindow()
{
if (appCore != null) {
dump("Opening New Window\n");
appCore.newWindow();
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function BrowserNewEditorWindow()
{
core = XPAppCoresManager.Find("toolkitCore");
if ( !core ) {
core = new ToolkitCore();
if ( core ) {
core.Init("toolkitCore");
}
}
if ( core ) {
core.ShowWindowWithArgs( "chrome://editor/content", window, "resource:/res/html/empty_doc.html" );
} else {
dump("Error; can't create toolkitCore\n");
}
}
function BrowserNewTextEditorWindow()
{
core = XPAppCoresManager.Find("toolkitCore");
if ( !core ) {
core = new ToolkitCore();
if ( core ) {
core.Init("toolkitCore");
}
}
if ( core ) {
core.ShowWindowWithArgs( "chrome://editor/content/TextEditorAppShell.xul", window, "chrome://editor/content/EditorInitPagePlain.html" );
} else {
dump("Error; can't create toolkitCore\n");
}
}
function BrowserEditPage(url)
{
core = XPAppCoresManager.Find("toolkitCore");
if ( !core ) {
core = new ToolkitCore();
if ( core ) {
core.Init("toolkitCore");
}
}
if ( core ) {
core.ShowWindowWithArgs( "chrome://editor/content", window, url);
} else {
dump("Error; can't create toolkitCore\n");
}
}
function BrowserOpenWindow()
{
core = XPAppCoresManager.Find("toolkitCore");
if ( !core ) {
core = new ToolkitCore();
if ( core ) {
core.Init("toolkitCore");
}
}
if ( core ) {
//core.ShowWindowWithArgs( "resource:/res/samples/openLocation.xul", window, appCoreName );
var name = appCoreName.replace( /\./, /\_/ );
// Note: Use width/height one less than actual so resizing occurs.
// This bypasses bug whereby dialog contents don't appear
// till the dialog is resized.
window.openDialog( "resource:/res/samples/openLocation.xul", name+"_openLocation", "chrome,width=419,height=189", appCoreName );
} else {
dump("Error; can't create toolkitCore\n");
}
}
function OpenFile(url) {
// This is invoked from the browser app core.
core = XPAppCoresManager.Find("toolkitCore");
if ( !core ) {
core = new ToolkitCore();
if ( core ) {
core.Init("toolkitCore");
}
}
if ( core ) {
core.ShowWindowWithArgs( "resource:/res/samples/navigator.xul", window, url );
} else {
dump("Error; can't create toolkitCore\n");
}
}
function BrowserCopy()
{
if (appCore != null) {
dump("Copying\n");
appCore.copy();
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function BrowserAddBookmark(url,title)
{
var bmks = Components.classes["component://netscape/browser/bookmarks-service"].getService();
bmks = bmks.QueryInterface(Components.interfaces.nsIBookmarksService);
bmks.AddBookmark(url, title);
}
function BrowserEditBookmarks()
{
var toolkitCore = XPAppCoresManager.Find("toolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("toolkitCore");
}
}
if (toolkitCore) {
toolkitCore.ShowWindow("resource://res/samples/bookmarks.xul",window);
}
}
function OpenHistoryView()
{
var toolkitCore = XPAppCoresManager.Find("toolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("toolkitCore");
}
}
if (toolkitCore) {
toolkitCore.ShowWindow("resource://res/samples/history.xul",window);
}
}
function BrowserPrintPreview()
{
// Borrowing this method to show how to
// dynamically change icons
dump("BrowserPrintPreview\n");
if (appCore != null) {
dump("Changing Icons\n");
appCore.printPreview();
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function BrowserPrint()
{
// Borrowing this method to show how to
// dynamically change icons
if (appCore != null) {
appCore.print();
}
}
function BrowserSetDefaultCharacterSet(aCharset)
{
if (appCore != null) {
appCore.SetDocumentCharset(aCharset);
window.content.location.reload();
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function BrowserClose()
{
dump("BrowserClose\n");
// Currently window.close doesn't work unless the window was opened from JS
// window.close();
core = XPAppCoresManager.Find("toolkitCore");
if ( !core ) {
core = new ToolkitCore();
if ( core ) {
core.Init("toolkitCore");
}
}
if ( core ) {
core.CloseWindow( window );
} else {
dump("Error can't create toolkitCore\n");
}
}
function BrowserExit()
{
if (appCore != null) {
dump("Exiting\n");
appCore.exit();
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function BrowserFind() {
if (appCore != null) {
appCore.find();
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function BrowserFindAgain() {
if (appCore != null) {
appCore.findNext();
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function BrowserLoadURL()
{
if (appCore == null)
{
dump("BrowserAppCore has not been initialized\n");
return;
}
// rjc: added support for URL shortcuts (3/30/1999)
try {
var bmks = Components.classes["component://netscape/browser/bookmarks-service"].getService();
bmks = bmks.QueryInterface(Components.interfaces.nsIBookmarksService);
var shortcutURL = bmks.FindShortcut(document.getElementById('urlbar').value);
dump("FindShortcut: in='" + document.getElementById('urlbar').value + "' out='" + shortcutURL + "'\n");
if ((shortcutURL != null) && (shortcutURL != "")) {
document.getElementById('urlbar').value = shortcutURL;
}
}
catch (ex) {
// stifle any exceptions so we're sure to load the URL.
}
appCore.loadUrl(document.getElementById('urlbar').value);
}
function WalletEditor()
{
if (appCore != null) {
dump("Wallet Editor\n");
appCore.walletEditor(window);
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function WalletSafeFillin()
{
if (appCore != null) {
dump("Wallet Safe Fillin\n");
appCore.walletPreview(window, window.content);
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function WalletChangePassword()
{
if (appCore != null) {
dump("Wallet Change Password\n");
appCore.walletChangePassword();
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function WalletQuickFillin()
{
if (appCore != null) {
dump("Wallet Quick Fillin\n");
appCore.walletQuickFillin(window.content);
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function WalletSamples()
{
if (appCore != null) {
dump("Wallet Samples\n");
appCore.walletSamples();
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function SignonViewer()
{
if (appCore != null) {
dump("Signon Viewer\n");
appCore.signonViewer(window);
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function CookieViewer()
{
if (appCore != null) {
dump("Cookie Viewer\n");
appCore.cookieViewer(window);
} else {
dump("BrowserAppCore has not been created!\n");
}
}
function OpenMessenger()
{
window.open("chrome://messenger/content/", "_new", "chrome");
}
function OpenAddressbook()
{
window.open("chrome://addressbook/content/", "_new", "chrome");
}
function MsgNewMessage()
{
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("ToolkitCore");
}
}
if (toolkitCore) {
// We need to use ShowWindowWithArgs because message compose depend on callback
toolkitCore.ShowWindowWithArgs("chrome://messengercompose/content/", window, "");
}
}
function DoPreferences()
{
if (!prefwindow)
{
prefwindow = Components.classes['component://netscape/prefwindow'].createInstance(Components.interfaces.nsIPrefWindow);
}
prefwindow.showWindow("navigator.js", window, "chrome://pref/content/pref-appearance.xul");
}
function BrowserViewSource()
{
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("ToolkitCore");
}
}
if (toolkitCore) {
var url = window.content.location;
dump("Opening view of source for" + url + "\n");
toolkitCore.ShowWindowWithArgs("resource:/res/samples/viewSource.xul", window, url);
}
}
function OpenEditor()
{
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("ToolkitCore");
}
}
if (toolkitCore) {
toolkitCore.ShowWindowWithArgs("chrome://editor/content/EditorAppShell.xul",window,"chrome://editor/content/EditorInitPage.html");
}
}
var bindCount = 0;
function onStatus() {
var status = document.getElementById("Browser:Status");
if ( status ) {
var text = status.getAttribute("value");
if ( text == "" ) {
text = defaultStatus;
}
var statusText = document.getElementById("statusText");
if ( statusText ) {
statusText.setAttribute( "value", text );
}
} else {
dump("Can't find status broadcaster!\n");
}
}
function onSecurity() {
var security = document.getElementById("Browser:Security");
var indicator = document.getElementById("security-box");
var icon = document.getElementById("security-button");
if ( security.getAttribute("secure") == "true" ) {
indicator.setAttribute("class","secure");
icon.setAttribute("class","secure");
} else {
indicator.setAttribute("class","insecure");
icon.setAttribute("class","insecure");
}
}
function securityOn() {
// Set debugSecurity (at top of file) to turn this code on.
if ( !debugSecurity ) {
return;
}
var security = document.getElementById("Browser:Security");
if ( security.getAttribute("secure") == "false" ) {
security.setAttribute("secure","true");
}
}
function securityOff() {
var security = document.getElementById("Browser:Security");
if ( security.getAttribute("secure") == "true" ) {
security.setAttribute("secure","false");
}
}
function doTests() {
// Turn security on.
securityOn();
}
var startTime = 0;
function onProgress() {
var throbber = document.getElementById("Browser:Throbber");
var meter = document.getElementById("Browser:LoadingProgress");
if ( throbber && meter ) {
var busy = throbber.getAttribute("busy");
var wasBusy = meter.getAttribute("mode") == "undetermined" ? "true" : "false";
if ( busy == "true" ) {
if ( wasBusy == "false" ) {
// Remember when loading commenced.
startTime = (new Date()).getTime();
// Turn progress meter on.
meter.setAttribute("mode","undetermined");
}
// Update status bar.
} else if ( busy == "false" && wasBusy == "true" ) {
// Record page loading time.
var status = document.getElementById("Browser:Status");
if ( status ) {
var elapsed = ( (new Date()).getTime() - startTime ) / 1000;
var msg = "Document: Done (" + elapsed + " secs)";
dump( msg + "\n" );
status.setAttribute("value",msg);
defaultStatus = msg;
}
// Turn progress meter off.
meter.setAttribute("mode","normal");
}
}
}
function dumpProgress() {
var broadcaster = document.getElementById("Browser:LoadingProgress");
var meter = document.getElementById("meter");
dump( "bindCount=" + bindCount + "\n" );
dump( "broadcaster mode=" + broadcaster.getAttribute("mode") + "\n" );
dump( "broadcaster value=" + broadcaster.getAttribute("value") + "\n" );
dump( "meter mode=" + meter.getAttribute("mode") + "\n" );
dump( "meter value=" + meter.getAttribute("value") + "\n" );
}
function ShowWindowFromResource( node )
{
var windowManager = Components.classes['component://netscape/rdf/datasource?name=window-mediator'].getService();
dump("got window Manager \n");
var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator);
dump("got interface \n");
var desiredWindow = null;
var url = node.getAttribute('id');
dump( url +" finding \n" );
desiredWindow = windowManagerInterface.GetWindowForResource( url );
dump( "got window \n");
if ( desiredWindow )
{
dump("focusing \n");
desiredWindow.focus();
}
}

Просмотреть файл

@ -1,783 +0,0 @@
<?xml version="1.0"?>
<!-- The contents of this file are subject to the Netscape Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/NPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is Mozilla Communicator client code, released
March 31, 1998.
The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
Contributor(s): ______________________________________. -->
<?xml-stylesheet href="xul.css" type="text/css"?>
<?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?>
<!DOCTYPE window
[
<!ENTITY mainWindow.title "Mozilla">
<!ENTITY mainWindow.titlemodifier "Mozilla">
<!ENTITY mainWindow.titlemodifierseperator " - ">
<!ENTITY throbber.url "http://www.mozilla.org">
<!ENTITY fileMenu.label "File">
<!ENTITY browserCmd.label "New Browser Window">
<!ENTITY newMenu.label "New">
<!ENTITY newMailCmd.label "Mail Message">
<!ENTITY newBlankPageCmd.label "Blank Window">
<!ENTITY newPageFromTemplateCmd.label "Page Using Template">
<!ENTITY newPageFromDraftCmd.label "Page using Draft">
<!ENTITY openCmd.label "Open File or Location...">
<!ENTITY sendPageCmd.label "Send Page">
<!ENTITY editPageCmd.label "Edit Page">
<!ENTITY offlineMenu.label "Offline">
<!ENTITY offlineGoOfflineCmd.label "Go Offline">
<!ENTITY offlineSynchronizeCmd.label "Synchronize">
<!ENTITY printSetupCmd.label "Print Setup...">
<!ENTITY printPreviewCmd.label "Print Preview">
<!ENTITY printCmd.label "Print...">
<!ENTITY closeCmd.label "Close">
<!ENTITY quitCmd.label "Quit">
<!ENTITY editMenu.label "Edit">
<!ENTITY undoCmd.label "Undo">
<!ENTITY redoCmd.label "Redo">
<!ENTITY cutCmd.label "Cut">
<!ENTITY copyCmd.label "Copy">
<!ENTITY pasteCmd.label "Paste">
<!ENTITY deleteCmd.label "Delete">
<!ENTITY walletMenu.label "Wallet">
<!ENTITY walletSafeFillCmd.label "Safe Form Fill">
<!ENTITY walletQuickFillCmd.label "Quick Form Fill">
<!ENTITY walletContentsCmd.label "Wallet Contents">
<!ENTITY walletDisplaySignonsCmd.label "Display Signons">
<!ENTITY walletDisplayCookiesCmd.label "Display Cookies">
<!ENTITY walletSamplesCmd.label "Samples">
<!ENTITY walletChangePasswordCmd.label "Change Password">
<!ENTITY selectAllCmd.label "Select All">
<!ENTITY preferences.label "Preferences...">
<!ENTITY viewMenu.label "View">
<!ENTITY toolbarsCmd.label "Toolbars">
<!ENTITY sidebarCmd.label "Sidebar">
<!ENTITY enlargeTextSizeCmd.label "Enlarge Text Size">
<!ENTITY reduceTextSizeCmd.label "Reduce Text Size">
<!ENTITY useStyleSheetMenu.label "Use Stylesheet">
<!ENTITY useStyleSheetDefaultCmd.label "Default">
<!ENTITY useStyleSheetEasyReadingCmd.label "Easy Reading">
<!ENTITY useStyleSheetMaxInfoCmd.label "Maximum Information">
<!ENTITY useStlyleSheetBizarreCmd.label "Bizarre">
<!ENTITY reloadCmd.label "Reload">
<!ENTITY showImagesCmd.label "Show Images">
<!ENTITY stopCmd.label "Stop">
<!ENTITY pageSourceCmd.label "Page Source">
<!ENTITY pageInfoCmd.label "Page Info">
<!ENTITY translateMenu.label "Translate">
<!ENTITY translateButton.label "Translate">
<!ENTITY translateEngtoFrenCmd.label "English to French">
<!ENTITY translateEngtoGermCmd.label "English to German">
<!ENTITY translateEngtoSpanCmd.label "English to Spanish">
<!ENTITY translateFrentoEngCmd.label "French to English">
<!ENTITY translateFrentoGermCmd.label "French to German">
<!ENTITY translateFrentoSpanCmd.label "French to Spanish">
<!ENTITY translateGermtoEngCmd.label "German to English">
<!ENTITY translateGermtoFrenCmd.label "German to French">
<!ENTITY translateGermtoSpanCmd.label "German to Spanish">
<!ENTITY tanslateSpantoEngCmd.label "Spanish to English">
<!ENTITY translateSpantoFrenCmd.label "Spanish to French">
<!ENTITY translateSpantoGermCmd.label "Spanish to German">
<!ENTITY dcharMenu.label "Character Set">
<!ENTITY dcharIso1Cmd.label "ISO Latin 1 (ISO-8859-1)">
<!ENTITY dcharIso2Cmd.label "ISO Latin 2 (ISO-8859-2)">
<!ENTITY dcharIso3Cmd.label "ISO Latin 3 (ISO-8859-3)">
<!ENTITY dcharIso4Cmd.label "ISO Latin 4 (ISO-8859-4)">
<!ENTITY dcharIso9Cmd.label "ISO Latin 5 (ISO-8859-9)">
<!ENTITY dcharIso10Cmd.label "ISO Latin 6 (ISO-8859-10)">
<!ENTITY dcharIso13Cmd.label "ISO Latin 7 (ISO-8859-13)">
<!ENTITY dcharIso14Cmd.label "ISO Latin 8 (ISO-8859-14)">
<!ENTITY dcharIso15Cmd.label "ISO Latin 9 (ISO-8859-15)">
<!ENTITY dcharWinLat2Cmd.label "Windows Latin 2 (windows-1250)">
<!ENTITY dcharWinLat1Cmd.label "Windows Latin 1 (windows-1252)">
<!ENTITY dcharWinLat5Cmd.label "Windows Latin 5 (windows-1254)">
<!ENTITY dcharWinBalRimCmd.label "Windows Baltic (windows-1257)">
<!ENTITY dcharMacRomCmd.label "Macintosh Roman">
<!ENTITY dcharMacCenEuroCmd.label "Macintosh Central European">
<!ENTITY dcharMacTurCmd.label "Macintosh Turkish">
<!ENTITY dcharMacCroaCmd.label "Macintosh Croatian">
<!ENTITY dcharMacRomanianCmd.label "Macintosh Romanian">
<!ENTITY dcharMacIceCmd.label "Macintosh Icelandic">
<!ENTITY dcharJapanCmd.label "Japanese JIS (ISO-2022-JP)">
<!ENTITY dcharJapanShiftjsCmd.label "Japanese (Shift_JIS)">
<!ENTITY dcharJapanEucCmd.label "Japanese (EUC-JP)">
<!ENTITY dcharTradChiBigCmd.label "Traditional Chinese (Big5)">
<!ENTITY dcharTriChiEucCmd.label "Traditional Chinese (EUC-TW)">
<!ENTITY dcharSimpChiGbCmd.label "Simplified Chinese (GB2312)">
<!ENTITY dcharKoreanCmd.label "Korean (EUC-KR)">
<!ENTITY dcharUtf7Cmd.label "Multilingual (UTF-7)">
<!ENTITY dcharUtf8Cmd.label "Multilingual (UTF-8)">
<!ENTITY dcharIsoCyrCmd.label "ISO Cyrillic (ISO-8859-5)">
<!ENTITY dcharEcmaCyrCmd.label "ECMA Cyrillic (ISO-IR-111)">
<!ENTITY dcharDosCyrCmd.label "DOS Cyrillic (IBM866)">
<!ENTITY dcharWinCyrCmd.label "Windows Cyrillic (windows-1251)">
<!ENTITY dcharMacCyrCmd.label "Macintosh Cyrillic">
<!ENTITY dcharMacUkrCmd.label "Macintosh Ukrainian">
<!ENTITY dcharRusCmd.label "Russian (KOI8-R)">
<!ENTITY dcharUkrCmd.label "Ukrainian (KOI8-U)">
<!ENTITY dcharIsoGreekCmd.label "ISO Greek (ISO-8859-7)">
<!ENTITY dcharWinGreekCmd.label "Windows Greek (windows-1253)">
<!ENTITY dcharMacGreekCmd.label "Macintosh Greek">
<!ENTITY dcharWinVietCmd.label "Windows Vietnamese (windows-1258)">
<!ENTITY dcharVietTcnCmd.label "Vietnamese (TCVN5712)">
<!ENTITY dcharVietViCmd.label "Vietnamese (VISCII)">
<!ENTITY dcharVieVpCmd.label "Vietnamese (VPS)">
<!ENTITY dcharThaiCmd.label "Thai (TIS-620)">
<!ENTITY dcharArmCmd.label "Armenian (ARMSCII-8)">
<!ENTITY dcharIso6Cmd.label ".ISO Arabic (ISO-8859-6)">
<!ENTITY dcharIso8Cmd.label ".ISO Hebrew (ISO-8859-8)">
<!ENTITY dcharCp1255Cmd.label "Windows Hebrew (windows-1255)">
<!ENTITY dcharCp1256Cmd.label "Windows Arabic (windows-1256)">
<!ENTITY searchMenu.label "Search">
<!ENTITY findOnCmd.label "Find On this page...">
<!ENTITY findAgainCmd.label "Find Again">
<!ENTITY searchParentCmd.label "Search Parent Item...">
<!ENTITY searchParenet2Cmd.label "Search Parent2 Item">
<!ENTITY appSpecificCmd.label "App Specific">
<!ENTITY searchInternetCmd.label "Search the Internet...">
<!ENTITY searchAllMailCmd.label "Search All Mail....">
<!ENTITY searchBookmarksCmd.label "Search Bookmarks...">
<!ENTITY searchPeopleCmd.label "Search People...">
<!ENTITY searchComputerCmd.label "Search on this Computer...">
<!ENTITY goMenu.label "Go">
<!ENTITY goBackCmd.label "Back">
<!ENTITY goForwardCmd.label "Forward">
<!ENTITY goHomeCmd.label "Home">
<!ENTITY goPrev1Cmd.label "Previous Site 1">
<!ENTITY goPrev2Cmd.label "Previous Site 2">
<!ENTITY goPrevnCmd.label "Previous Site n">
<!ENTITY bookmarksMenu.label "Bookmarks">
<!ENTITY addCurPageCmd.label "Add Current Page">
<!ENTITY manBookmarksCmd.label "Manage Bookmarks...">
<!ENTITY tasksMenu.label "Tasks">
<!ENTITY navigatorCmd.label "Navigator">
<!ENTITY messengerCmd.label "Messenger">
<!ENTITY editorCmd.label "Editor">
<!ENTITY textEditorCmd.label "Plaintext Editor">
<!ENTITY manageHistoryCmd.label "Manage History">
<!ENTITY toolsMenu.label "Tools">
<!ENTITY toolsPluginsInfoCmd.label "Plugins Info">
<!ENTITY toolsJavaConsoleCmd.label "Java/JS Console">
<!ENTITY toolsServerToolsCmd.label "Server Tools">
<!ENTITY toolsJsDebuggerCmd.label "JavaScipt Debugger">
<!ENTITY securityInfo.label "Security Info">
<!ENTITY helpMenuCmd.label "Help">
<!ENTITY helpContentsCmd.label "Help Contents">
<!ENTITY howTutorialCmd.label "How to Tutorial">
<!ENTITY helpChannelCmd.label "Help Channel">
<!ENTITY softwareUpdatesCmd.label "Software Updates">
<!ENTITY technicalSupportCmd.label "Technical Support">
<!ENTITY releaseNotesCmd.label "Release Notes">
<!ENTITY aboutCommunicatorCmd.label "About Communicator Prototype">
<!ENTITY debugMenu.label "Debug">
<!ENTITY debugQA.label "QA Help">
<!ENTITY debugQABug.label "QA Help">
<!ENTITY debugQASmoke.label "Smoke Tests">
<!ENTITY debugQAKnowBug.label "Known Bugs">
<!ENTITY debugVerCmd.label "Verification">
<!ENTITY ver1Cmd.label "Mozilla">
<!ENTITY ver2Cmd.label "Yahoo">
<!ENTITY ver3Cmd.label "Netscape">
<!ENTITY ver4Cmd.label "Excite">
<!ENTITY ver5Cmd.label "Microsoft">
<!ENTITY ver6Cmd.label "city.net">
<!ENTITY ver7Cmd.label "Mirabilis">
<!ENTITY ver8Cmd.label "Pathfinder">
<!ENTITY ver9Cmd.label "Warner Bros.">
<!ENTITY ver10Cmd.label "CNN">
<!ENTITY ver11Cmd.label "USA Today">
<!ENTITY ver12Cmd.label "Disney">
<!ENTITY ver13Cmd.label "Hotwired">
<!ENTITY ver14Cmd.label "Hotbot">
<!ENTITY ver15Cmd.label "Frames">
<!ENTITY ver16Cmd.label "Tables">
<!ENTITY ver17Cmd.label "Applets">
<!ENTITY ver18Cmd.label "JavaScript">
<!ENTITY ver19Cmd.label "GIF Images">
<!ENTITY ver20Cmd.label "JPEG Images">
<!ENTITY ver21Cmd.label "PNG Images">
<!ENTITY ver22Cmd.label "Transparency">
<!ENTITY ver23Cmd.label "Animation">
<!ENTITY ver24Cmd.label "Larger page">
<!ENTITY ver25Cmd.label "Smaller page">
<!ENTITY viewDemoMenu.label "Viewer Demos">
<!ENTITY demo0Cmd.label "#0 Basic Styles">
<!ENTITY demo1Cmd.label "#1 CSS Styles">
<!ENTITY demo2Cmd.label "#2 Images">
<!ENTITY demo3Cmd.label "#3 Basic Tables">
<!ENTITY demo4Cmd.label "#4 Simple Tables">
<!ENTITY demo5Cmd.label "#5 More Styles">
<!ENTITY demo6Cmd.label "#6 Deeply Nested Tables">
<!ENTITY demo7Cmd.label "#7 Scaled Anim Image">
<!ENTITY demo8Cmd.label "#8 Form">
<!ENTITY demo9Cmd.label "#9 Frames">
<!ENTITY demo10Cmd.label "#10 Anim Images">
<!ENTITY demo11Cmd.label "#11 Fixed Positioning">
<!ENTITY demo12Cmd.label "#12 More Fixed Pos">
<!ENTITY demo13Cmd.label "#13 DHTML">
<!ENTITY demo14Cmd.label "#14 XML Sorting">
<!ENTITY demo15Cmd.label "#15 XML IRS">
<!ENTITY demo16Cmd.label "#16 Gfx Widgets">
<!ENTITY xptkMenu.label "XPToolkit">
<!ENTITY xptk1Cmd.label "Tri-state checkbox">
<!ENTITY xptk2Cmd.label "Toolbar">
<!ENTITY xptk3Cmd.label "Tree">
<!ENTITY xptk4Cmd.label "Dialog">
<!ENTITY xptk5Cmd.label "Dialog w/ animation">
<!ENTITY xptk6Cmd.label "Tab">
<!ENTITY xptk7Cmd.label "Beep">
<!ENTITY QA.label "QA">
<!ENTITY QABugCmd.label "Bug Writing">
<!ENTITY QATempCmd.label "Bug Template">
<!ENTITY QASmokeCmd.label "Smoke Tests">
<!ENTITY QAKnownBugCmd.label "Known Bugs">
<!-- Toolbar items -->
<!ENTITY backButton.label "Back">
<!ENTITY forwardButton.label "Forward">
<!ENTITY reloadButton.label "Reload">
<!ENTITY stopButton.label "Stop">
<!ENTITY printButton.label "Print">
<!-- Toolbar items -->
<!ENTITY homeButton.label "Home">
<!ENTITY netscapeButton.label "Netscape">
<!ENTITY bugzillaButton.label "Bugzilla">
<!ENTITY tinderboxButton.label "Tinderbox">
<!-- Statusbar -->
<!ENTITY notifCom.label "[Notification Component]">
<!ENTITY statusText.label "Document: Done">
<!ENTITY buildId.label "Build ID: 1999070614">
<!ENTITY security-button.label "Secure Conn">
<!-- taskbar -->
<!ENTITY webButton.label "Web">
<!ENTITY mailButton.label "Mail">
<!ENTITY dayplannerButton.label "DayPlanner">
<!ENTITY shoppingButton.label "Shopping">
<!ENTITY myDeskButton.label "My Desk">
<!ENTITY openWinButton.label "Open Windows">
]>
<window id="main-window" xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="Startup()"
onunload="Shutdown()"
title="&mainWindow.title;" titlemodifier="&mainWindow.titlemodifier;"
titleseperator ="&mainWindow.titlemodifierseperator;" windowtype="navigator:browser"
align="vertical" width="640" height="480">
<html:script language="javascript" src="navigator.js">
</html:script>
<html:script language="javascript" src="tooltip.js">
</html:script>
<popup id="translationlist">
<menu>
<menuitem name="&translateEngtoFrenCmd.label;" onclick="Translate('en', 'fr');" />
<menuitem name="&translateEngtoGermCmd.label;" onclick="Translate('en', 'de');"/>
<menuitem name="&translateEngtoSpanCmd.label;" onclick="Translate('en', 'es');"/>
<separator />
<menuitem name="&translateFrentoEngCmd.label;" onclick="Translate('fr', 'en')"/>
<menuitem name="&translateFrentoGermCmd.label;" onclick="Translate('fr', 'de')"/>
<menuitem name="&translateFrentoSpanCmd.label;" onclick="Translate('fr', 'es')"/>
<separator />
<menuitem name="&translateGermtoEngCmd.label;" onclick="Translate('de', 'en')"/>
<menuitem name="&translateGermtoFrenCmd.label;" onclick="Translate('de', 'fr')"/>
<menuitem name="&translateGermtoSpanCmd.label;" onclick="Translate('de', 'es')"/>
<separator />
<menuitem name="&tanslateSpantoEngCmd.label;" onclick="Translate('es', 'en')"/>
<menuitem name="&translateSpantoFrenCmd.label;" onclick="Translate('es', 'fr')"/>
<menuitem name="&translateSpantoGermCmd.label;" onclick="Translate('es', 'de')"/>
</menu>
</popup>
<!-- This needs to go into a xul fragment, but since those don't work now, this stays here !-->
<popup id="aTooltip" oncreate="return FillInTooltip(document.tooltipElement);">
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
width="200" height="20" style="border: thin solid black">
<titledbutton id = "replaceMe" align="left" class="borderless paneltitle" value="" />
</window>
</popup>
<broadcaster id="canGoBack" disabled="true"/>
<broadcaster id="canGoForward" disabled="true"/>
<broadcaster id="canReload"/>
<broadcaster id="canStop"/>
<broadcaster id="canPrint"/>
<broadcaster id="Browser:LoadingProgress"/>
<broadcaster id="Browser:Status"/>
<broadcaster id="Browser:Security" secure="false"/>
<broadcaster id="Browser:Throbber" busy="false"/>
<broadcaster id="args" value=""/>
<!-- Interim hack to transition from nsIXULWindowCallbacks/ShowWindowWithArgs -->
<broadcaster id="dialog.start" ready="false"/>
<observes element="dialog.start" attribute="ready" onchange="onLoadWithArgs()"/>
<menubar chromeclass="menubar">
<menu name="&fileMenu.label;">
<menuitem name="&browserCmd.label;" onclick="BrowserNewWindow();"/>
<menu name="New">
<menuitem name="&newMailCmd.label;" onclick="MsgNewMessage();"/>
<separator />
<menuitem name="&newBlankPageCmd.label;" onclick="BrowserNewEditorWindow();"/>
<menuitem name="&newPageFromTemplateCmd.label;" onclick="BrowserNewWindow();"/>
<menuitem name="&newPageFromDraftCmd.label;" onclick="BrowserNewWindow();"/>
</menu>
<menuitem name="&openCmd.label;" onclick="BrowserOpenWindow();"/>
<separator />
<menuitem name="&sendPageCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&editPageCmd.label;" onclick="BrowserEditPage(window.content.location.href);" />
<separator />
<menu name="&offlineMenu.label;">
<menuitem name="&offlineGoOfflineCmd.label;" onclick="BrowserReload();"/>
<separator />
<menuitem name="&offlineSynchronizeCmd.label;" onclick="BrowserReload();"/>
</menu>
<separator />
<menuitem name="&printSetupCmd.label;" onclick=";"/>
<menuitem name="&printPreviewCmd.label;" onclick=""/>
<menuitem name="&printCmd.label;" onclick="BrowserPrint()"/>
<separator />
<menuitem name="&closeCmd.label;" onclick="BrowserClose();"/>
<menuitem name="&quitCmd.label;" onclick="BrowserExit();"/>
</menu>
<menu name="&editMenu.label;">
<menuitem name="&undoCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&redoCmd.label;" onclick="BrowserReload();"/>
<separator />
<menuitem name="&cutCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&copyCmd.label;" onclick="BrowserCopy();"/>
<menuitem name="&pasteCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&deleteCmd.label;" onclick="BrowserReload();"/>
<separator />
<menu name="&walletMenu.label;">
<menuitem name="&walletSafeFillCmd.label;" onclick="WalletSafeFillin();"/>
<menuitem name="&walletQuickFillCmd.label;" onclick="WalletQuickFillin();"/>
<separator />
<menuitem name="&walletContentsCmd.label;" onclick="WalletEditor();"/>
<menuitem name="&walletDisplaySignonsCmd.label;" onclick="SignonViewer();"/>
<menuitem name="&walletDisplayCookiesCmd.label;" onclick="CookieViewer();"/>
<separator />
<menuitem name="&walletSamplesCmd.label;" onclick="WalletSamples();"/>
<menuitem name="&walletChangePasswordCmd.label;" onclick="WalletChangePassword();"/>
</menu>
<separator />
<menuitem name="&selectAllCmd.label;" onclick="BrowserReload();"/>
<separator />
<menuitem name="&preferences.label;" onclick="DoPreferences();"/>
</menu>
<menu name="&viewMenu.label;">
<menuitem name="&toolbarsCmd.label;" onclick="toolbar.visible=true"/>
<menuitem name="&sidebarCmd.label;" onclick="BrowserReload();"/>
<separator />
<menuitem name="&enlargeTextSizeCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&reduceTextSizeCmd.label;" onclick="BrowserReload();"/>
<separator />
<menu name="&useStyleSheetMenu.label;" onclick="BrowserReload();">
<menuitem name="&useStyleSheetDefaultCmd.label;" onclick="BrowserReload();"/>
<separator />
<menuitem name="&useStyleSheetEasyReadingCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&useStyleSheetMaxInfoCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&useStlyleSheetBizarreCmd.label;" onclick="BrowserReload();"/>
</menu>
<separator />
<menuitem name="&reloadCmd.label;" id="menuitem-reload" onclick="BrowserReallyReload(0);"/>
<menuitem name="&showImagesCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&stopCmd.label;" id="menuitem-stop" onclick="BrowserStop();"/>
<separator />
<menuitem name="&pageSourceCmd.label;" onclick="BrowserViewSource();"/>
<menuitem name="&pageInfoCmd.label;" onclick="BrowserReload();"/>
<separator />
<menu name="&translateMenu.label;">
<menuitem name="&translateEngtoFrenCmd.label;" onclick="Translate('en', 'fr');"/>
<menuitem name="&translateEngtoGermCmd.label;" onclick="Translate('en', 'de');"/>
<menuitem name="&translateEngtoSpanCmd.label;" onclick="Translate('en', 'es');"/>
<separator />
<menuitem name="&translateFrentoEngCmd.label; " onclick="Translate('fr', 'en');"/>
<menuitem name="&translateFrentoGermCmd.label;" onclick="Translate('fr', 'de');"/>
<menuitem name="&translateFrentoSpanCmd.label;" onclick="Translate('fr', 'es');"/>
<separator />
<menuitem name="&translateGermtoEngCmd.label;" onclick="Translate('de', 'en');"/>
<menuitem name="&translateGermtoFrenCmd.label;" onclick="Translate('de', 'fr');"/>
<menuitem name="&translateGermtoSpanCmd.label;" onclick="Translate('de', 'es');"/>
<separator />
<menuitem name="&tanslateSpantoEngCmd.label;" onclick="Translate('es', 'en');"/>
<menuitem name="&translateSpantoFrenCmd.label;" onclick="Translate('es', 'fr');"/>
<menuitem name="&translateSpantoGermCmd.label;" onclick="Translate('es', 'de');"/>
</menu>
<menu name="&dcharMenu.label;">
<menuitem name="&dcharIso1Cmd.label;" onclick="BrowserSetDefaultCharacterSet('ISO-8859-1');"/>
<menuitem name="&dcharIso2Cmd.label;" onclick="BrowserSetDefaultCharacterSet('ISO-8859-2');"/>
<menuitem name="&dcharIso3Cmd.label;" onclick="BrowserSetDefaultCharacterSet('ISO-8859-3');"/>
<menuitem name="&dcharIso4Cmd.label;" onclick="BrowserSetDefaultCharacterSet('ISO-8859-4');"/>
<menuitem name="&dcharIso9Cmd.label;" onclick="BrowserSetDefaultCharacterSet('ISO-8859-9');"/>
<menuitem name="&dcharIso10Cmd.label;" onclick="BrowserSetDefaultCharacterSet('ISO-8859-10');"/>
<menuitem name="&dcharIso13Cmd.label;" onclick="BrowserSetDefaultCharacterSet('ISO-8859-13');"/>
<menuitem name="&dcharIso14Cmd.label;" onclick="BrowserSetDefaultCharacterSet('ISO-8859-14');"/>
<menuitem name="&dcharIso15Cmd.label;" onclick="BrowserSetDefaultCharacterSet('ISO-8859-15');"/>
<menuitem name="&dcharWinLat2Cmd.label;" onclick="BrowserSetDefaultCharacterSet('windows-1250');"/>
<menuitem name="&dcharWinLat1Cmd.label;" onclick="BrowserSetDefaultCharacterSet('windows-1252');"/>
<menuitem name="&dcharWinLat5Cmd.label;" onclick="BrowserSetDefaultCharacterSet('windows-1254');"/>
<menuitem name="&dcharWinBalRimCmd.label;" onclick="BrowserSetDefaultCharacterSet('windows-1257');"/>
<menuitem name="&dcharMacRomCmd.label;" onclick="BrowserSetDefaultCharacterSet('x-mac-roman');"/>
<menuitem name="&dcharMacCenEuroCmd.label;" onclick="BrowserSetDefaultCharacterSet('x-mac-ce');"/>
<menuitem name="&dcharMacTurCmd.label;" onclick="BrowserSetDefaultCharacterSet('x-mac-turkish');"/>
<menuitem name="&dcharMacCroaCmd.label;" onclick="BrowserSetDefaultCharacterSet('x-mac-croatian');"/>
<menuitem name="&dcharMacRomanianCmd.label;" onclick="BrowserSetDefaultCharacterSet('x-mac-romanian');"/>
<menuitem name="&dcharMacIceCmd.label;" onclick="BrowserSetDefaultCharacterSet('x-mac-icelandic');"/>
<separator />
<menuitem name="&dcharJapanCmd.label;" onclick="BrowserSetDefaultCharacterSet('ISO-2022-JP');"/>
<menuitem name="&dcharJapanShiftjsCmd.label;" onclick="BrowserSetDefaultCharacterSet('Shift_JIS');"/>
<menuitem name="&dcharJapanEucCmd.label;" onclick="BrowserSetDefaultCharacterSet('EUC-JP');"/>
<separator />
<menuitem name="&dcharTradChiBigCmd.label;" onclick="BrowserSetDefaultCharacterSet('Big5');"/>
<menuitem name="&dcharTriChiEucCmd.label;" onclick="BrowserSetDefaultCharacterSet('x-euc-tw');"/>
<menuitem name="&dcharSimpChiGbCmd.label;" onclick="BrowserSetDefaultCharacterSet('GB2312');"/>
<separator />
<menuitem name="&dcharKoreanCmd.label;" onclick="BrowserSetDefaultCharacterSet('EUC-KR');"/>
<separator />
<menuitem name="&dcharUtf7Cmd.label;" onclick="BrowserSetDefaultCharacterSet('UTF-7');"/>
<menuitem name="&dcharUtf8Cmd.label;" onclick="BrowserSetDefaultCharacterSet('UTF-8');"/>
<separator />
<menuitem name="&dcharIsoCyrCmd.label;" onclick="BrowserSetDefaultCharacterSet('ISO-8859-5');"/>
<menuitem name="&dcharEcmaCyrCmd.label;" onclick="BrowserSetDefaultCharacterSet('ISO-IR-111');"/>
<menuitem name="&dcharWinCyrCmd.label;" onclick="BrowserSetDefaultCharacterSet('windows-1251');"/>
<menuitem name="&dcharDosCyrCmd.label;" onclick="BrowserSetDefaultCharacterSet('IBM866');"/>
<menuitem name="&dcharMacCyrCmd.label;" onclick="BrowserSetDefaultCharacterSet('x-mac-cyrillic');"/>
<menuitem name="&dcharMacUkrCmd.label;" onclick="BrowserSetDefaultCharacterSet('x-mac-ukrainian');"/>
<menuitem name="&dcharRusCmd.label; " onclick="BrowserSetDefaultCharacterSet('KOI8-R');"/>
<menuitem name="&dcharUkrCmd.label;" onclick="BrowserSetDefaultCharacterSet('KOI8-U');"/>
<separator />
<menuitem name="&dcharIsoGreekCmd.label;" onclick="BrowserSetDefaultCharacterSet('ISO-8859-7');"/>
<menuitem name="&dcharWinGreekCmd.label;" onclick="BrowserSetDefaultCharacterSet('windows-1253');"/>
<menuitem name="&dcharMacGreekCmd.label;" onclick="BrowserSetDefaultCharacterSet('x-mac-greek');"/>
<separator />
<menuitem name="&dcharWinVietCmd.label;" onclick="BrowserSetDefaultCharacterSet('windows-1258');"/>
<menuitem name="&dcharVietTcnCmd.label;" onclick="BrowserSetDefaultCharacterSet('x-viet-tcvn5712');"/>
<menuitem name="&dcharVietViCmd.label;" onclick="BrowserSetDefaultCharacterSet('VISCII');"/>
<menuitem name="&dcharVieVpCmd.label;" onclick="BrowserSetDefaultCharacterSet('x-viet-vps');"/>
<separator />
<menuitem name="&dcharThaiCmd.label;" onclick="BrowserSetDefaultCharacterSet('TIS-620');"/>
<separator />
<menuitem name="&dcharArmCmd.label;" onclick="BrowserSetDefaultCharacterSet('ARMSCII-8');"/>
<separator />
<menuitem name="&dcharIso6Cmd.label;" onclick="BrowserSetDefaultCharacterSet('ISO-8859-6');"/>
<menuitem name="&dcharCp1256Cmd.label;" onclick="BrowserSetDefaultCharacterSet('windows-1256');"/>
<separator />
<menuitem name="&dcharIso8Cmd.label;" onclick="BrowserSetDefaultCharacterSet('ISO-8859-8');"/>
<menuitem name="&dcharCp1255Cmd.label;" onclick="BrowserSetDefaultCharacterSet('windows-1255');"/>
</menu>
</menu>
<menu name="&searchMenu.label;">
<menuitem name="&findOnCmd.label;" onclick="BrowserFind();"/>
<menuitem name="&findAgainCmd.label;" onclick="BrowserFindAgain();"/>
<separator />
<menuitem name="&searchParentCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&searchParenet2Cmd.label;" onclick="BrowserReload();"/>
<menuitem name="&appSpecificCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&appSpecificCmd.label;" onclick="BrowserReload();"/>
<separator />
<menuitem name="&searchInternetCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&searchAllMailCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&searchBookmarksCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&searchPeopleCmd.label;" onclick="BrowserReload();"/>
<separator />
<menuitem name="&searchComputerCmd.label;" onclick="BrowserReload();"/>
</menu>
<menu name="&goMenu.label;">
<menuitem id="menuitem-back" name="&goBackCmd.label;" onclick="BrowserBack();"/>
<menuitem id="menuitem-forward" name="&goForwardCmd.label;" onclick="BrowserForward();" />
<menuitem name="&goHomeCmd.label;" onclick="BrowserHome();"/>
<separator />
<menuitem name="&goPrev1Cmd.label;" onclick="BrowserBack();"/>
<menuitem name="&goPrev2Cmd.label;" onclick="BrowserBack();"/>
<menuitem name="&goPrevnCmd.label;" onclick="BrowserBack();"/>
</menu>
<menu name="&bookmarksMenu.label;" onclick="OpenBookmarkURL(event.target)"
datasources="rdf:bookmarks rdf:files rdf:find" id="NC:BookmarksRoot">
<template>
<rule iscontainer="true">
<menu uri="..." name="rdf:http://home.netscape.com/NC-rdf#Name"/>
</rule>
<rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
<separator uri="..." />
</rule>
<rule>
<menuitem uri="..." name="rdf:http://home.netscape.com/NC-rdf#Name" onclick="OpenBookmarkURL(event.target)" />
</rule>
</template>
<menuitem name="&addCurPageCmd.label;" onclick="BrowserAddBookmark(window.content.location.href,window.content.document.title);"/>
<menuitem name="&manBookmarksCmd.label;" onclick="BrowserEditBookmarks();"/>
<separator/>
</menu>
<menu name="&tasksMenu.label;" onclick="ShowWindowFromResource(event.target)" datasources="rdf:window-mediator" id="NC:WindowMediatorRoot" open="true" >
<menuitem name="&navigatorCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&messengerCmd.label;" onclick="OpenMessenger();" />
<menuitem name="&editorCmd.label;" onclick="OpenEditor();" />
<menuitem name="&textEditorCmd.label;" onclick="BrowserNewTextEditorWindow();" />
<menuitem name="&manageHistoryCmd.label;" onclick="OpenHistoryView();" />
<separator />
<menu name="&toolsMenu.label;">
<menuitem name="&toolsPluginsInfoCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&toolsJavaConsoleCmd.label;" onclick="BrowserReload();" />
<menuitem name="&toolsServerToolsCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&toolsJsDebuggerCmd.label;" onclick="BrowserReload();"/>
</menu>
<separator />
<menuitem name="&securityInfo.label;" onclick="BrowserReload();"/>
<separator/>
</menu>
<menu name="&helpMenuCmd.label;">
<menuitem name="&helpContentsCmd.label;" onclick="window.content.location.href = 'http://www.mozilla.org/projects/user-docs/local/browserhelp/browsertop.html'"/>
<separator />
<menuitem name="&howTutorialCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&helpChannelCmd.label;" onclick="BrowserReload();" />
<separator />
<menuitem name="&softwareUpdatesCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&technicalSupportCmd.label;" onclick="BrowserReload();"/>
<menuitem name="&releaseNotesCmd.label;"
onclick="window.content.location.href='http://www.mozilla.org/projects/seamonkey/release-notes/index.html'"/>
<separator />
<menuitem name="&aboutCommunicatorCmd.label;"
onclick="window.content.location.href='http://www.mozilla.org/projects/seamonkey/release-notes/index.html'"/>
</menu>
// Menu for testing.
<menu name="&debugMenu.label;">
<menu name="&debugVerCmd.label;"> // Build verification sites.
<menuitem name="&ver1Cmd.label;" onclick="window.content.location.href='http://www.mozilla.org'"/>
<menuitem name="&ver2Cmd.label;" onclick="window.content.location.href='http://www.yahoo.com'"/>
<menuitem name="&ver3Cmd.label;" onclick="window.content.location.href='http://www.netscape.com'"/>
<menuitem name="&ver4Cmd.label;" onclick="window.content.location.href='http://www.excite.com'"/>
<menuitem name="&ver5Cmd.label;" onclick="window.content.location.href='http://www.microsoft.com'"/>
<menuitem name="&ver6Cmd.label;" onclick="window.content.location.href='http://www.city.net'"/>
<menuitem name="&ver7Cmd.label;" onclick="window.content.location.href='http://www.mirabilis.com'"/>
<menuitem name="&ver8Cmd.label;" onclick="window.content.location.href='http://www.pathfinder.com/welcome'"/>
<menuitem name="&ver9Cmd.label;" onclick="window.content.location.href='http://www.warnerbros.com/home_moz3_day.html'"/>
<menuitem name="&ver10Cmd.label;" onclick="window.content.location.href='http://www.cnn.com'"/>
<menuitem name="&ver11Cmd.label;" onclick="window.content.location.href='http://www.usatoday.com'"/>
<menuitem name="&ver12Cmd.label;" onclick="window.content.location.href='http://www.disney.go.com'"/>
<menuitem name="&ver13Cmd.label;" onclick="window.content.location.href='http://www.hotwired.com'"/>
<menuitem name="&ver14Cmd.label;" onclick="window.content.location.href='http://www.hotbot.com'"/>
<separator />
<menuitem name="&ver15Cmd.label;" onclick="window.content.location.href='http://slip/projects/marvin/bft/browser/bft_frame_index.html'"/>
<menuitem name="&ver16Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test6.html'"/>
<menuitem name="&ver17Cmd.label;" onclick="window.content.location.href='http://slip/projects/marvin/bft/browser/bft_browser_applet.htm'"/>
<menuitem name="&ver18Cmd.label;" onclick="window.content.location.href='http://www.abcnews.com'"/>
<menuitem name="&ver19Cmd.label;" onclick="window.content.location.href='http://slip/projects/marvin/bft/browser/bft_browser_imagemap.html'"/>
<menuitem name="&ver20Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test2.html'"/>
<menuitem name="&ver21Cmd.label;" onclick="window.content.location.href='http://www.cdrom.com/pub/png/png-MagnoliaAlpha.html'"/>
<menuitem name="&ver22Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test13.html'"/>
<menuitem name="&ver23Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test2.html'"/>
<menuitem name="&ver24Cmd.label;" onclick="window.content.location.href='http://slip/projects/marvin/bft/browser/bft_browser_html_mix3.html'"/>
<menuitem name="&ver25Cmd.label;" onclick="window.content.location.href='http://slip/projects/marvin/bft/browser/bft_browser_link.html'"/>
</menu>
<menu name="&viewDemoMenu.label;"> // Viewer tests.
<menuitem name="&demo0Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test0.html'"/>
<menuitem name="&demo1Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test1.html'"/>
<menuitem name="&demo2Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test2.html'"/>
<menuitem name="&demo3Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test3.html'"/>
<menuitem name="&demo4Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test4.html'"/>
<menuitem name="&demo5Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test5.html'"/>
<menuitem name="&demo6Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test6.html'"/>
<menuitem name="&demo7Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test7.html'"/>
<menuitem name="&demo8Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test8.html'"/>
<menuitem name="&demo9Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test9.html'"/>
<menuitem name="&demo10Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test10.html'"/>
<menuitem name="&demo11Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test11.html'"/>
<menuitem name="&demo12Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test12.html'"/>
<menuitem name="&demo13Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test13.html'"/>
<menuitem name="&demo14Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test14.html'"/>
<menuitem name="&demo15Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test15.html'"/>
<menuitem name="&demo16Cmd.label;" onclick="window.content.location.href='resource:/res/samples/test16.html'"/>
</menu>
<menu name="&xptkMenu.label;"> // XPToolkit tests.
<menuitem name="&xptk1Cmd.label;" onclick="window.content.location.href='resource:/res/samples/checkboxTest.xul'"/>
<menuitem name="&xptk2Cmd.label;" onclick="window.content.location.href='resource:/res/samples/toolbarTest1.xul'"/>
<menuitem name="&xptk3Cmd.label;" onclick="window.content.location.href='resource:/res/samples/treeTest1.xul'"/>
<menuitem name="&xptk4Cmd.label;" onclick="window.content.location.href='resource:/res/samples/dexsimplemaster.xul'"/>
<menuitem name="&xptk5Cmd.label;" onclick="window.content.location.href='resource:/res/samples/dexanimmaster.xul'"/>
<menuitem name="&xptk6Cmd.label;" onclick="window.content.location.href='resource:/res/samples/tab.xul'"/>
<menuitem name="&xptk7Cmd.label;" onclick="window.content.location.href='resource:/res/samples/beeptest.html'"/>
</menu>
</menu>
<menu name="&QA.label;"> // QA tests.
<menuitem name="&QABugCmd.label;" onclick="window.content.location.href='http://www.mozilla.org/quality/bug-writing-guidelines.html'"/>
<menuitem name="&QATempCmd.label;" onclick="window.content.location.href='http://www.mozilla.org/quality/bug-template.html'"/>
<menuitem name="&QASmokeCmd.label;" onclick="window.content.location.href='http://www.mozilla.org/quality/smoketests/'"/>
<menuitem name="&QAKnownBugCmd.label;" onclick="window.content.location.href='http://www.mozilla.org/quality/most-frequent-bugs/'"/>
</menu>
</menubar>
<toolbox>
<toolbar class="main-bar" chromeclass="toolbar">
<titledbutton id="back-button" align="bottom" value="&backButton.label;" onclick="BrowserBack()">
<observes element="canGoBack" attribute="disabled" onChange="BrowserSetBack()"/>
</titledbutton>
<titledbutton id="forward-button" align="bottom" value="&forwardButton.label;"
onclick="BrowserForward()">
<observes element="canGoForward" attribute="disabled" onChange="BrowserSetForward()"/>
</titledbutton>
<!-- Right now only regular reload is supported.
When the functionality is available, look for
'Shift' key pressed state and pass on appropriate
reload type. (The shift functionality is available. There's a shiftDown field
in the event object.) -->
<titledbutton id="reload-button" align="bottom" value="&reloadButton.label;"
onclick="BrowserReallyReload(0)">
<observes element="canReload" attribute="disabled" onChange="BrowserSetReload()" />
</titledbutton>
<titledbutton id="stop-button" align="bottom" value="&stopButton.label;"
onclick="BrowserStop()">
<observes element="canStop" attribute="disabled" onchange="BrowserCanStop()"/>
</titledbutton>
<box align="vertical" flex="100%">
<spring flex="100%"/>
<html:input id="urlbar" type="text" chromeclass="location" style="min-width: 100px; min-height: 25px; height: 20px"
onkeyup="if (event.which == 13) { BrowserLoadURL(); }"/>
<spring flex="100%"/>
</box>
<titledbutton id="translate-button" popup="translationlist" popupanchor="bottomleft" value="&translateButton.label;" align="bottom">
</titledbutton>
<titledbutton id="print-button" align="bottom" value="&printButton.label;"
onclick="BrowserPrint()">
<observes element="canPrint" attribute="disabled"/>
</titledbutton>
<titledbutton id="Throbber" onclick="window.content.location.href='&throbber.url;'">
<observes element="Browser:Throbber" attribute="busy"/>
</titledbutton>
</toolbar>
<toolbar class="main-bar" chromeclass="toolbar" datasources="rdf:bookmarks" id="NC:PersonalToolbarFolder">
<template>
<rule iscontainer="true">
<titledbutton uri="..." src="resource:/res/rdf/folder-closed.gif" value="rdf:http://home.netscape.com/NC-rdf#Name" align="right" />
</rule>
<rule>
<titledbutton uri="..." src="resource:/res/toolbar/TB_Location.gif" value="rdf:http://home.netscape.com/NC-rdf#Name" align="right" onclick="OpenBookmarkURL(event.target)" />
</rule>
</template>
<titledbutton id="home-button" align="right" value="&homeButton.label;"
onclick="BrowserHome()"/>
<titledbutton id="netscape-button" align="right" value="&netscapeButton.label;"
onclick="window.content.location.href='http://home.netscape.com'"/>
<spring flex="100%"/>
</toolbar>
</toolbox>
<html:iframe id="content-frame" src="contentframe.xul" flex="100%" />
<box align="horizontal" id="status-bar">
<titledbutton value="&notifCom.label;" onclick="doTests()"/>
<box id="security-box" class="insecure" align="horizontal" flex="100%">
<box align="vertical" style="width:100px">
<spring flex="100%"/>
<progressmeter id="statusbar-icon" mode="normal" value="0" onclick="dumpProgress()">
<observes element="Browser:LoadingProgress" attribute="mode"/>
<observes element="Browser:Throbber" attribute="busy" onchange="onProgress()"/>
</progressmeter>
<spring flex="100%"/>
</box>
<titledbutton id="statusText" align="right" flex="100%" value="&statusText.label;" style="font-family:sans-serif;font-size:2.5mm">
<observes element="Browser:Status" attribute="value" onchange="onStatus()"/>
</titledbutton>
<spring flex="100%"/>
<titledbutton align="right" value="&buildId.label;" style="font-family:sans-serif;font-size:2.5mm;"/>
<titledbutton id="security-button" class="insecure" value="&security-button.label;" align="right" onclick="securityOff();"/>
</box>
</box>
<toolbox>
<toolbar id="taskbar" chromeclass="status">
<popup id="samplePopup">
<menu><menuitem name="Sample Item One"/><menuitem name="Sample Item Two"/></menu>
</popup>
<box align="horizontal">
<titledbutton align="left" class="button"
popupanchor="topleft" popupalign="bottomleft" value="&webButton.label;" />
<titledbutton align="left" class="button"
popupanchor="topleft" popupalign="bottomleft" value="&mailButton.label;" />
</box>
<spring flex="100%"/>
<box align="horizontal">
<titledbutton align="left" class="popup" popup="samplePopup" tooltip="aTooltip" tooltiptext="This is a toolbar"
popupanchor="topleft" popupalign="bottomleft" value="&dayplannerButton.label;" />
<titledbutton align="left" class="popup" popup="samplePopup"
popupanchor="topleft" popupalign="bottomleft" value="&shoppingButton.label;" />
<titledbutton align="left" class="popup" popup="samplePopup"
popupanchor="topleft" popupalign="bottomleft"
value="&myDeskButton.label;" />
</box>
<spring flex="100%"/>
<box align="horizontal">
<titledbutton align="left" class="popup" value="&openWinButton.label;" />
<titledbutton align="left" id="mini-nav" value="" />
<titledbutton align="left" id="mini-mail" value="" onclick="OpenMessenger()"/>
<titledbutton align="left" id="mini-addr" value="" onclick="OpenAddressbook()"/>
<titledbutton align="left" id="mini-comp" value="" />
</box>
</toolbar>
</toolbox>
</window>

Просмотреть файл

@ -1,107 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is Mozilla Communicator client code, released March
* 31, 1998.
*
* The Initial Developer of the Original Code is Netscape Communications
* Corporation. Portions created by Netscape are Copyright (C) 1998
* Netscape Communications Corporation. All Rights Reserved.
*/
var toolkit;
var browser;
var dialog;
function onLoad() {
dialog = new Object;
dialog.input = document.getElementById( "dialog.input" );
dialog.ok = document.getElementById( "dialog.ok" );
dialog.cancel = document.getElementById( "dialog.cancel" );
dialog.help = document.getElementById( "dialog.help" );
dialog.newWindow = document.getElementById( "dialog.newWindow" );
toolkit = XPAppCoresManager.Find( "toolkitCore" );
if ( !toolkit ) {
toolkit = new ToolkitCore();
toolkit.Init( "toolkitCore" );
}
browser = XPAppCoresManager.Find( window.arguments[0] );
if ( !browser ) {
dump( "unable to get browser app core\n" );
toolkit.CloseWindow( window );
return;
}
/* Give input field the focus. */
dialog.input.focus();
}
function onTyping( key ) {
// Look for enter key...
if ( key == 13 ) {
// If ok button not disabled, go for it.
if ( !dialog.ok.disabled ) {
open();
}
} else {
// Check for valid input.
if ( dialog.input.value == "" ) {
// No input, disable ok button if enabled.
if ( !dialog.ok.disabled ) {
dialog.ok.setAttribute( "disabled", "" );
}
} else {
// Input, enable ok button if disabled.
if ( dialog.ok.disabled ) {
dialog.ok.removeAttribute( "disabled" );
}
}
}
}
function open() {
if ( dialog.ok.disabled ) {
return;
}
var url = dialog.input.value;
if ( !dialog.newWindow.checked ) {
/* Load url in opener. */
browser.loadUrl( url );
} else {
/* User wants new window. */
toolkit.ShowWindowWithArgs( "resource:/res/samples/navigator.xul", window.opener, url );
}
/* Close dialog. */
toolkit.CloseWindow( window );
}
function choose() {
/* Use existing browser "open" logic. */
browser.openWindow();
toolkit.CloseWindow( window );
}
function cancel() {
toolkit.CloseWindow( window );
}
function help() {
if ( dialog.help.disabled ) {
return;
}
dump( "openLocation::help() not implemented\n" );
}

Просмотреть файл

@ -1,51 +0,0 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome:/global/skin/xul.css" type="text/css"?>
<!DOCTYPE window>
<!-- padding 0px is just a workaround for windows not displaying paddings correctly
take it out once this works! -->
<window style=" padding: 0px; width: 100%; height: 100%"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="Open File or Location"
onload="onLoad()"
class="dialog">
<html:script language="javascript" src="openLocation.js"/>
<box align="horizontal" flex="100%" style="width:30em;">
<html:div style="width: 45px; margin: 5px;">
<html:img src="chrome://navigator/skin/questionl.gif" width="32" height="32" border="0"/>
</html:div>
<box align="vertical" flex="100%" style="height: 100%;">
<html:div style="width: 100%;">Enter the World Wide Web location (URL) you would like to open or </html:div><html:div style="width: 100%; margin-bottom: 0.5em;">use the Choose File... button to select a local file:</html:div>
<box align="horizontal">
<html:input id="dialog.input" flex="100%" onkeyup="onTyping(event.which)"/>
<titledbutton onclick="choose()" value="Choose File..." align="left"/>
</box>
<box align="horizontal" style="margin-bottom: 1em;">
<html:input type="checkbox" id="dialog.newWindow"/>
<html:label for="dialog.newWindow">Open in new window</html:label>
<spring flex="100%"/>
</box>
<spring flex="100%"/>
<box align="horizontal">
<spring flex="100%"/>
<titledbutton id="dialog.ok" value="OK" onclick="open()" align="left"/>
<titledbutton id="dialog.cancel" value="Cancel" onclick="cancel()" align="left"/>
<spring flex="100%"/>
</box>
</box>
</box>
</window>

Двоичные данные
xpfe/browser/src/questionl.gif

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 1.3 KiB

Просмотреть файл

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<?xml-stylesheet href="chrome:/global/skin/" type="text/css"?>
<!DOCTYPE window>

Просмотреть файл

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<?xml-stylesheet href="chrome:/global/skin/" type="text/css"?>
<!-- <!DOCTYPE window> -->

Просмотреть файл

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<?xml-stylesheet href="chrome:/global/skin/" type="text/css"?>
<!DOCTYPE window>
<xul:window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

Просмотреть файл

@ -1,32 +0,0 @@
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (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) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
function FillInTooltip ( tipElement )
{
var retVal = false;
var button = document.getElementById('replaceMe');
if ( button ) {
var tipText = tipElement.getAttribute('tooltiptext');
if ( tipText != "" ) {
button.setAttribute('value', tipText);
retVal = true;
}
}
return retVal;
}

Просмотреть файл

@ -1,104 +0,0 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<!DOCTYPE window>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="Unknown File Type"
width="425"
height="180"
onload="onLoad()">
<data>
<broadcaster id="data.location" type="url" value="url...to be replaced"/>
<broadcaster id="data.contentType" type="string" value="content-type...to be replaced"/>
<!-- Commands: more/pick/save/close -->
<broadcaster id="data.execute" command=""/>
</data>
<html:script>
var data;
var dialog;
function initData() {
// Create data object and initialize.
data = new Object;
data.location = document.getElementById("data.location");
data.contentType = document.getElementById("data.contentType");
data.execute = document.getElementById("data.execute");
}
function initDialog() {
// Create dialog object and initialize.
dialog = new Object;
dialog.contentType = document.getElementById("dialog.contentType");
dialog.more = document.getElementById("dialog.more");
dialog.pick = document.getElementById("dialog.pick");
dialog.save = document.getElementById("dialog.save");
dialog.cancel = document.getElementById("dialog.cancel");
}
function loadDialog() {
// Set initial dialog field contents.
dialog.contentType.childNodes[0].nodeValue = " " + data.contentType.getAttribute( "value" );
}
function onLoad() {
// Init data.
initData();
// Init dialog.
initDialog();
// Fill dialog.
loadDialog();
}
function more() {
dump( "unknownContent::more not implemented\n" );
}
function pick() {
dump( "unknownContent::pick not implemented\n" );
}
function save() {
// Execute "save to disk" logic.
data.execute.setAttribute("command","save");
}
function cancel() {
// Close the window.
data.execute.setAttribute("command","close");
}
</html:script>
<html:table style="width:100%;">
<html:tr>
<html:td colspan="4">
You have started to download a file of type
<html:div id="dialog.contentType" style="display:inline">
contentType goes here
</html:div>
</html:td>
</html:tr>
<html:tr>
<html:td style="width:25%">
<html:button id="dialog.more" onclick="more()" disabled="">More Info...</html:button>
</html:td>
<html:td style="width:25%">
<html:button id="dialog.pick" onclick="pick()" disabled="">Pick App...</html:button>
</html:td>
<html:td style="width:25%">
<html:button id="dialog.save" onclick="save()">Save File...</html:button>
</html:td>
<html:td style="width:25%">
<html:button id="dialog.cancel" onclick="cancel()">Cancel</html:button>
</html:td>
</html:tr>
</html:table>
</window>

Просмотреть файл

@ -1,286 +0,0 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?>
<!DOCTYPE window
[
<!ENTITY mainWindow.title "Mozilla">
<!ENTITY mainWindow.titlemodifier "Mozilla">
<!ENTITY mainWindow.titlemodifierseperator " - ">
<!ENTITY mainWindow.preface "Source for">
<!ENTITY fileMenu.label "File">
<!ENTITY browserCmd.label "New Browser Window">
<!ENTITY newMenu.label "New">
<!ENTITY newMailCmd.label "Mail Message">
<!ENTITY newChatCmd.label "Chat Window">
<!ENTITY newBlankPageCmd.label "Chat Window">
<!ENTITY newPageFromTemplateCmd.label "Page Using Template">
<!ENTITY newPageFromDraftCmd.label "Page using Draft">
<!ENTITY openCmd.label "Open">
<!ENTITY sendPageCmd.label "Send Page">
<!ENTITY offlineMenu.label "Offline">
<!ENTITY offlineGoOfflineCmd.label "Go Offline">
<!ENTITY offlineSynchronizeCmd.label "Synchronize">
<!ENTITY printSetupCmd.label "Print Setup">
<!ENTITY printPreviewCmd.label "Print Preview">
<!ENTITY printCmd.label "Print">
<!ENTITY closeCmd.label ".Close">
<!ENTITY quitCmd.label "Quit">
<!ENTITY editMenu.label "Edit">
<!ENTITY undoCmd.label "Undo">
<!ENTITY redoCmd.label "Redo">
<!ENTITY cutCmd.label "Cut">
<!ENTITY copyCmd.label "Copy">
<!ENTITY pasteCmd.label "Paste">
<!ENTITY deleteCmd.label "Delete">
<!ENTITY walletMenu.label "Wallet">
<!ENTITY walletSafeFillCmd.label "Safe Form Fill">
<!ENTITY walletQuickFillCmd.label "Quick Form Fill">
<!ENTITY walletContentsCmd.label "Wallet Contents">
<!ENTITY walletDisplaySignonsCmd.label "Display Signons">
<!ENTITY walletDisplayCookiesCmd.label "Display Cookies">
<!ENTITY walletSamplesCmd.label "Samples">
<!ENTITY walletChangePasswordCmd.label "Change Password">
<!ENTITY selectAllCmd.label "Select All">
<!ENTITY preferences.label "Preferences">
<!ENTITY viewMenu.label "View">
<!ENTITY toolbarsCmd.label "Toolbars">
<!ENTITY sidebarCmd.label "Sidebar">
<!ENTITY enlargeTextSizeCmd.label "Enlarge Text Size">
<!ENTITY reduceTextSizeCmd.label "Reduce Text Size">
<!ENTITY useStyleSheetMenu.label "Use Stylesheet">
<!ENTITY useStyleSheetDefaultCmd.label "Default">
<!ENTITY useStyleSheetEasyReadingCmd.label "Easy Reading">
<!ENTITY useStyleSheetMaximumInformationCmd.label "Maximum Information">
<!ENTITY useStlyleSheetBizarreCmd.label "Bizarre">
<!ENTITY reloadCmd.label "Reload">
<!ENTITY showImagesCmd.label "Show Images">
<!ENTITY stopCmd.label "Stop">
<!ENTITY pageSourceCmd.label "Page Source">
<!ENTITY pageInfoCmd.label "Page Info">
<!ENTITY charSetMenu.label "Character Set">
<!ENTITY charWesternCmd.label "Latin1">
<!ENTITY charJapaneseCmd.label "Japanese (ISO-2022-JP)">
<!ENTITY charShiftJisCmd.label "Shift_JIS">
<!ENTITY charEupCmd.label "EUC-JP">
<!ENTITY searchMenu.label "Search">
<!ENTITY findOnCmd.label "Find On this page...">
<!ENTITY findAgainCmd.label "Find Again">
<!ENTITY searchParentCmd.label "Search Parent Item...">
<!ENTITY searchParenet2Cmd.label "Search Parent2 Item">
<!ENTITY appSpecificCmd.label "App Specific">
<!ENTITY searchInternetCmd.label "Search the Internet...">
<!ENTITY searchAllMailCmd.label "Search All Mail....">
<!ENTITY searchBookmarksCmd.label "Search Bookmarks...">
<!ENTITY searchPeopleCmd.label "Search People...">
<!ENTITY searchComputerCmd.label "Search on this Computer...">
<!ENTITY goMenu.label "Menu">
<!ENTITY goBackCmd.label "Go Back">
<!ENTITY goForwardCmd.label "Go Forward">
<!ENTITY goHomeCmd.label "Home">
<!ENTITY tasksMenu.label "Tasks">
<!ENTITY navigatorCmd.label "Navigator">
<!ENTITY messengerCmd.label "Messenger">
<!ENTITY editorCmd.label "Editor">
<!ENTITY manageHistoryCmd.label "Manage History">
<!ENTITY chatCmd.label "Chat">
<!ENTITY shoppingCartCmd.label "Shopping Cart">
<!ENTITY toolsMenu.label "Tools">
<!ENTITY toolsPluginsInfoCmd.label "Plugins Info">
<!ENTITY toolsJavaConsoleCmd.label "Java/JS Console">
<!ENTITY toolsServerToolsCmd.label "Server Tools">
<!ENTITY toolsJavascriptDebuggerCmd.label "JavaScipt Debugger">
<!ENTITY securityInfo.label "Security Info">
<!ENTITY window1Cmd.label "Window 1">
<!ENTITY window2Cmd.label "Window 2">
<!ENTITY window3Cmd.label "Window 3">
<!ENTITY helpMenuCmd.label "Help">
<!ENTITY helpContentsCmd.label "Help Contents">
<!ENTITY howTutorialCmd.label "How to Tutorial">
<!ENTITY helpChannelCmd.label "Help Channel">
<!ENTITY softwareUpdatesCmd.label "Software Updates">
<!ENTITY technicalSupportCmd.label "Technical Support">
<!ENTITY releaseNotesCmd.label "Release Notes">
<!ENTITY aboutCommunicatorCmd.label "About Communicator Prototype">
]>
<window id="main-window" xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onunload="Shutdown()"
title="&mainWindow.title;" titlemodifier="&mainWindow.titlemodifier;"
titleseperator ="&mainWindow.titlemodifierseperator;" windowtype="navigator:viewsource"
align="vertical" width="640" height="480">
<html:script src="navigator.js"></html:script>
<html:script src="viewsource.js"></html:script>
<broadcaster id="args" value="http://www.mozilla.org/"/>
<broadcaster id="canPrint"/>
<broadcaster id="canGoBack" disabled="true"/>
<broadcaster id="Browser:LoadingProgress"/>
<broadcaster id="Browser:Status"/>
<broadcaster id="Browser:OnStartBinding"/>
<broadcaster id="Browser:OnStopBinding"/>
<broadcaster id="Browser:Throbber" busy="false"/>
<!-- Interim hack to transition from nsIXULWindowCallbacks/ShowWindowWithArgs -->
<broadcaster id="dialog.start" ready="false"/>
<observes element="dialog.start" attribute="ready" onchange="StartupViewSource()"/>
<menubar>
<menu name="&fileMenu.label;">
<menuitem name="&browserCmd.label;" onclick="BrowserNewWindow();"/>
<menu name="&newMenu.label;">
<menuitem name="&newMailCmd.label;" onclick="MsgNewMessage();"/>
<menuitem name="&newChatCmd.label;" onclick=""/>
<separator />
<menuitem name="&newBlankPageCmd.label;" onclick="BrowserNewWindow();"/>
<menuitem name="&newPageFromTemplateCmd.label;" onclick="BrowserNewWindow();"/>
<menuitem name="&newPageFromDraftCmd.label;" onclick="BrowserNewWindow();"/>
</menu>
<menuitem name="&openCmd.label;" onclick="BrowserOpenWindow();"/>
<separator />
<menuitem name="&sendPageCmd.label;" onclick="NotImplementedYet();"/>
<separator />
<menu name="&offlineMenu.label;">
<menuitem name="&offlineGoOfflineCmd.label;" onclick="NotImplementedYet();"/>
<separator />
<menuitem name="&offlineSynchronizeCmd.label;" onclick="NotImplementedYet();"/>
</menu>
<separator />
<menuitem name="&printSetupCmd.label;" onclick=";"/>
<menuitem name="&printPreviewCmd.label;" onclick=""/>
<menuitem name="&printCmd.label;" onclick="BrowserPrint()"/>
<separator />
<menuitem name="closeCmd.label" onclick="BrowserClose();"/>
<menuitem name="quitCmd.label" onclick="BrowserExit();"/>
</menu>
<menu name="&editMenu.label;">
<menuitem name="&undoCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&redoCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<separator />
<menuitem name="&cutCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&copyCmd.label;" onclick="BrowserCopy();"/>
<menuitem name="&pasteCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&deleteCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<separator />
<menuitem name="&selectAllCmd.label;" onclick="NotImplementedYet();"/>
<separator />
<menuitem name="&preferences.label;" onclick="DoPreferences();"/>
</menu>
<menu name="&viewMenu.label;">
<menuitem name="&toolbarsCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&sidebarCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<separator />
<menuitem name="&enlargeTextSizeCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="Reduce Text Size" onclick="NotImplementedYet();" disabled=""/>
<separator />
<menu name="&useStyleSheetMenu.label;" onclick="NotImplementedYet();">
<menuitem name="&useStyleSheetDefaultCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<separator />
<menuitem name="&useStyleSheetEasyReadingCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&useStyleSheetMaximumInformationCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&useStlyleSheetBizarreCmd.label;" onclick="NotImplementedYet();" disabled=""/>
</menu>
<separator />
<menuitem name="&reloadCmd.label;" onclick="BrowserReload();" disabled=""/>
<menuitem name="&showImagesCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&stopCmd.label;" onclick="NotImplementedYet();"/>
<separator />
<menuitem name="&pageSourceCmd.label;" onclick="BrowserViewSource();" disabled=""/>
<menuitem name="&pageInfoCmd.label;" onclick="NotImplementedYet();"/>
<separator />
<menu name="&charSetMenu.label;">
<menuitem name="&charWesternCmd.label;" onclick="BrowserSetDocumentCharacterSet('ISO-8859-1');"/>
<menuitem name="&charJapaneseCmd.label;" onclick="BrowserSetDocumentCharacterSet('ISO-2022-JP');"/>
<menuitem name="&charShiftJisCmd.label;" onclick="BrowserSetDocumentCharacterSet('Shift_JIS');"/>
<menuitem name="&charEupCmd.label;" onclick="BrowserSetDocumentCharacterSet('EUC-JP');"/>
</menu>
</menu>
<menu name="&searchMenu.label;">
<menuitem name="&findOnCmd.label;" onclick="BrowserFind();;" disabled=""/>
<menuitem name="&findAgainCmd.label;" onclick="BrowserFindAgain();" disabled=""/>
<separator />
<menuitem name="&searchParentCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&searchParenet2Cmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&appSpecificCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&appSpecificCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<separator />
<menuitem name="&searchInternetCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&searchAllMailCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&searchBookmarksCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&searchPeopleCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<separator />
<menuitem name="&searchComputerCmd.label;" onclick="NotImplementedYet();" disabled=""/>
</menu>
<menu name="&goMenu.label;">
<menuitem name="&goBackCmd.label;" onclick="BrowserBack();" disabled=""/>
<menuitem name="&goForwardCmd.label;" onclick="BrowserForward();" disabled=""/>
<menuitem name="&goHomeCmd.label;" onclick="BrowserHome();" disabled=""/>
</menu>
<menu name="&tasksMenu.label;">
<menuitem name="&navigatorCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&messengerCmd.label;" onclick="OpenMessenger();" />
<menuitem name="&editorCmd.label;" onclick="OpenEditor();" />
<menuitem name="&manageHistoryCmd.label;" onclick="OpenHistoryView();" />
<menuitem name="&chatCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&shoppingCartCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menu name="&toolsMenu.label;">
<menuitem name="&toolsPluginsInfoCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&toolsServerToolsCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&toolsJavaConsoleCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&toolsJavascriptDebuggerCmd.label;" onclick="NotImplementedYet();" disabled=""/>
</menu>
<separator />
<menuitem name="&securityInfo.label;" onclick="NotImplementedYet();" disabled=""/>
<separator/>
<menuitem name="&window1Cmd.label;" onclick="NotImplementedYet();" key="1" disabled=""/>
<menuitem name="&window2Cmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&window3Cmd.label;" onclick="NotImplementedYet();" disabled=""/>
</menu>
<menu name="&helpMenuCmd.label;">
<menuitem name="&helpContentsCmd.label;" onclick="window.frames[0].location.href = 'http://www.mozilla.org/projects/user-docs/local/browserhelp/browsertop.html'" disabled=""/>
<separator />
<menuitem name="&howTutorialCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&helpChannelCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<separator />
<menuitem name="&softwareUpdatesCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&technicalSupportCmd.label;" onclick="NotImplementedYet();" disabled=""/>
<menuitem name="&releaseNotesCmd.label;"
onclick="window.frames[0].location.href='http://www.mozilla.org/projects/seamonkey/release-notes/index.html'" disabled=""/>
<separator />
<menuitem name="&aboutCommunicatorCmd.label;"
onclick="window.frames[0].location.href='http://www.mozilla.org/projects/seamonkey/release-notes/index.html'" disabled=""/>
</menu>
</menubar>
<html:iframe id="content-frame" type="content" html:name="content" html:src="about:blank" flex="100%"/>
<box align="horizontal" id="status-bar">
<box id="security-box" class="insecure" align="horizontal" flex="100%">
<box align="vertical" style="width:100px">
<spring flex="100%"/>
<progressmeter id="statusbar-icon" mode="normal" value="0" onclick="dumpProgress()">
<observes element="Browser:LoadingProgress" attribute="mode"/>
<observes element="Browser:Throbber" attribute="busy" onchange="onProgress()"/>
</progressmeter>
<spring flex="100%"/>
</box>
<titledbutton id="statusText" align="right" flex="100%" value="Document: Done" style="font-family:sans-serif;font-size:2.5mm">
<observes element="Browser:Status" attribute="value" onchange="onStatus()"/>
</titledbutton>
<spring flex="100%"/>
<titledbutton align="right" value="Build ID: 1999040601" style="font-family:sans-serif;font-size:2.5mm;"/>
</box>
</box>
</window>

Просмотреть файл

@ -1,17 +0,0 @@
function StartupViewSource() {
// Generate unique name (var appCoreName declared in navigator.js).
appCoreName = "ViewSource." + ( new Date() ).getTime().toString();
// Create and initialize the browser app core.
appCore = new BrowserAppCore();
appCore.Init( appCoreName );
appCore.setContentWindow(window.frames[0]);
appCore.setWebShellWindow(window);
appCore.setToolbarWindow(window);
// Get url whose source to view.
var url = document.getElementById("args").getAttribute("value");
// Load the source (the app core will magically know what to do).
appCore.loadUrl(url);
}

Просмотреть файл

@ -1,957 +0,0 @@
/** this should only contain XUL dialog and document window widget defaults. Defaults for widgets of
a particular application should be in that application's style sheet.
For example style definitions for navigator can be found in navigator.css
**/
window {
background-color:#CCCCDD;
//background-image: url(bg.jpg);
display: block;
overflow: hidden;
font: 3mm tahoma,arial,helvetica,sans-serif;
padding: 0px;
height: 100%;
width: 100%;
}
window.dialog {
background-color:#CCCCDD;
display: block;
overflow: hidden;
font: 3mm tahoma,arial,helvetica,sans-serif;
padding-left: 11px;
padding-right: 10px;
padding-top: 10px;
padding-bottom: 11px;
}
/* generic elements*/
box {
display: block;
font: inherit;
}
popup {
display: none;
}
div {
background-color:inherit;
background-image:inherit;
}
div.textline {
background-color:inherit;
background-image:inherit;
}
spring {
display: block;
}
/* toolbar stuff*/
toolbox {
background-color:darkgray;
display: block;
}
:toolbox-normal {
background-color: #666699;
background-image: url("resource:/res/toolbar/TB_Tab.gif");
background-repeat: no-repeat;
color: lightgray;
border: solid darkGray 1px;
}
:toolbox-rollover {
background-color: #ccccff;
background-image: url("resource:/res/toolbar/TB_Tab_mo.gif");
background-repeat: no-repeat;
color: green;
border: outset #ccccff 1px;
}
toolbar {
display:block;
background-color: #CCCCDD;
border-bottom: 1px solid #9999cc;
font: inherit;
min-height: 2em;
width: 100%;
}
toolbar[collapsed="true"] {
display:none;
}
toolbar[hidden="true"] {
display:none;
}
/* misc input elements */
fieldset {
margin-bottom: 6px;
margin-top: 5px;
margin-left: 6px;
margin-right: 5px;
padding: 5px;
border: 2px groove white;
}
legend {
border: none;
margin-bottom: 5px;
margin-top: 0px;
margin-left: 4px;
margin-right: 3px;
}
label {
display: inline;
padding-bottom: 4px;
//background-color: inherit;
background-color:#CCCCDD;
background-image: inherit;
}
textarea {
border: 1px inset #DDDDDD;
padding-top: 1px;
padding-bottom: 2px;
padding-left: 4px;
padding-right: 3px;
margin-top: 1px;
margin-bottom: 2px;
margin-left: 4px;
margin-right: 3px;
background-color: white;
color: black;
}
input[type=text] {
border: 1px inset yellow;
padding-top: 3px;
padding-bottom: 2px;
padding-left: 4px;
padding-right: 3px;
margin-top: 0px;
margin-bottom: 2px;
margin-left: 4px;
margin-right: 3px;
background-color: white;
color: black;
min-height: 1.75em;
}
input[type=password] {
border: 1px inset rgb(192, 192, 192);
padding-top: 3px;
padding-bottom: 2px;
padding-left: 4px;
padding-right: 3px;
margin-top: 1px;
margin-bottom: 2px;
margin-left: 4px;
margin-right: 3px;
background-color: white;
color: black;
min-height: 1.75em;
}
input {
vertical-align: bottom;
border: 2px inset rgb(192, 192, 192);
background-color: transparent;
color: black;
}
input[type=radio] {
margin-left: 3px;
margin-right: 5px;
margin-top: 3px;
margin-bottom: 3px;
//border: 2px inset rgb(192, 192, 192);
background-color: inherit;
background-image: inherit;
color:black;
width:12px;
height:12px;
}
input[type=checkbox] {
margin-left: 3px;
margin-right: 5px;
margin-top: 3px;
margin-bottom: 4px;
border: 1px inset rgb(192, 192, 192);
color:black;
}
checkbox {
margin-left: 3px;
margin-right: 5px;
margin-top: 3px;
margin-bottom: 4px;
border: 1px inset white;
background-color: white;
color:black;
min-width: .7em;
min-height: .7em;
}
checkbox[depress] {
background-color: gray;
border: 1px inset white;
}
progressmeter {
display:inline;
border: 1px grey;
color : #9999CC;
height: 1em;
}
div.pmBackground {
border: 1px inset white;
padding: 1px;
margin: 1em;
margin-bottom: 3px;
background-color: #CCCCCC;
}
:progressmeter-stripe {
color: #BBBBCC;
}
broadcaster {
display: none;
}
observes {
display: none;
}
menubar {
display: none;
}
menu {
display: none;
}
menuitem {
display: none;
}
progressmeter {
display:inline;
border: 1px #666699;
color : #9999CC;
}
:progressmeter-stripe {
color: #BBBBCC;
}
/* titledbuttons are the preferred means of generating UI buttons in XUL (see below) */
button {
display: inline;
color:black;
// -moz-border-radius: 2px;
border: 1px outset white;
padding: 2px;
margin: 2px;
text-align: center;
font: inherit;
background-color: inherit;
background-image: inherit;
min-height: 1.25em;
max-height: 1.25em;
min-width: 7em;
}
button[default] {
font-weight: bold;
}
button:hover {
border: 1px outset white;
color:#333366;
text-decoration:underline;
padding: 2px;
}
button:hover:-moz-outline {
border : 1px solid black;
color:#666699;
padding: 2px;
}
button:active {
text-decoration:none;
border: 1px inset;
padding-left: 3px;
padding-right: 1px;
padding-top: 3px;
padding-bottom: 1px;
}
button:active:-moz-outline {
border : 1px solid black;
}
button[disabled] {
background-color: inherit;
background-image: inherit;
border : 1px solid #999999;
color: #999999;
text-decoration: none;
}
/* titledbuttons recommended for use with most XUL UI */
titledbutton {
display: inline;
color:black;
// -moz-border-radius: 2px;
border: 1px outset white;
padding: 2px;
margin: 2px;
text-align: center;
font: inherit;
background-color:inherit;
background-image: inherit;
}
window.dialog titledbutton{
min-width: 5em;
}
titledbutton[class~=popup] {
list-style-image:url(resource:/res/toolbar/TB_popup.gif);
}
titledbutton:hover {
border: 1px outset white;
color:#333366;
text-decoration:underline;
padding: 2px;
}
titledbutton:hover:-moz-outline {
border : 1px solid black;
color:#666699;
padding: 2px;
}
titledbutton:active {
text-decoration:none;
border: 1px inset;
padding-left: 3px;
padding-right: 1px;
padding-top: 3px;
padding-bottom: 1px;
}
titledbutton[toggled="1"] {
border: 1px inset;
padding-left: 3px;
padding-right: 1px;
padding-top: 3px;
padding-bottom: 1px;
}
titledbutton[toggled="2"] {
background-color: lightgray;
border: 1px solid gray;
}
titledbutton[default] {
//border-color: black;
font-weight: bold;
list-style-image: url("return.gif");
}
titledbutton:active:-moz-outline {
border : 1px solid black;
}
titledbutton[disabled="true"] {
background-color:inherit;
background-image: inherit;
border : 1px solid #999999;
color: #999999;
text-decoration: none;
}
titledbutton[disabled="true"]:hover {
background-color:inherit;
background-image: inherit;
border : 1px solid #999999;
color: #999999;
text-decoration: none;
}
titledbutton[disabled="true"]:active {
background-color:inherit;
background-image: inherit;
border : 1px solid #999999;
color: #999999;
text-decoration: none;
}
/* special class for plain titledbuttons */
titledbutton[class~=plain] {
border: 1px solid transparent;
padding: 2px;
font: inherit;
}
titledbutton[class~=plain]:hover {
border: 1px solid transparent;
padding: 2px;
text-decoration: none;
color: inherit;
}
titledbutton[class~=plain]:active {
border: 1px solid transparent;
padding: 2px;
text-decoration: none;
color: inherit;
}
titledbutton[class~=plain][disabled] {
border: 1px solid transparent;
padding: 2px;
}
titledbutton[class~=plain][disabled]:hover {
border: 1px solid transparent;
padding: 2px;
}
titledbutton[class~=plain][disabled]:active {
border: 1px solid transparent;
padding: 2px;
}
/* special class for borderless buttons */
/* titled button on toolbars are automatically set to be borderless (see below) */
titledbutton[class~=borderless] {
border: 1px solid transparent;
}
titledbutton[class~=borderless]:hover {
border: 1px outset white;
color:#333366;
text-decoration: underline;
}
titledbutton[class~=borderless]:hover:-moz-outline {
border : 1px solid black;
}
titledbutton[class~=borderless]:active {
text-decoration:none;
border: 1px inset;
}
titledbutton[class~=borderless]:active:-moz-outline {
border : 1px solid black;
}
titledbutton[class~=borderless][disabled] {
border: 1px solid transparent;
}
titledbutton[class~=borderless][disabled]:hover {
border: 1px solid transparent;
}
titledbutton[class~=borderless][disabled]:active {
border: 1px solid transparent;
padding: 2px;
}
/* as a convenience predefined for toolbar as being same as class borderless */
toolbar titledbutton {
border: 1px solid transparent;
}
toolbar.main-bar titledbutton[align="bottom"]{
min-width: 3.5em;
}
toolbar titledbutton:hover {
border: 1px outset white;
color:#333366;
text-decoration: underline;
}
toolbar titledbutton:hover:-moz-outline {
border : 1px solid black;
}
toolbar titledbutton:active {
text-decoration:none;
border: 1px inset;
}
toolbar titledbutton:active:-moz-outline {
border : 1px solid black;
}
toolbar titledbutton[disabled="true"] {
border: 1px solid transparent;
}
toolbar titledbutton[disabled="true"]:hover {
border: 1px solid transparent;
}
toolbar titledbutton[disabled="true"]:active {
border: 1px solid transparent;
padding: 2px;
}
toolbar titledbutton[toggled="1"] {
border: 1px inset white;
padding-left: 3px;
padding-right: 1px;
padding-top: 3px;
padding-bottom: 1px;
}
/* tree related stuff */
tree {
display: table;
background-color: white;
border: none;
border-spacing: 0px;
width: 100%;
table-layout: fixed;
font: inherit;
}
treeitem {
display: table-row-group;
font: inherit;
}
treerow {
display: table-row;
font: inherit;
}
treehead {
display: table-header-group;
font: inherit;
}
treechildren {
display: table-row-group;
font: inherit;
}
treerow[selectedrow="true"] {
color: white;
background-color: #666699;
font: inherit;
}
treecell {
display: table-cell;
white-space: nowrap;
font: inherit;
}
treehead treerow treecell {
font-size: 10pt;
background-color: #a0a0a0;
border: 1px white transparent;
color: black;
}
treeitem > treechildren {
visibility: collapse;
}
treeitem[open="true"] > treechildren {
visibility: visible;
}
treecol {
display: table-column;
}
/* tabs related stuff */
tab {
display: inline;
cursor: default;
border: 1px outset white;
//-moz-border-radius: 90;
color:black;
}
tab:active {
display: inline;
cursor: default;
border: 1px outset white;
//-moz-border-radius: 90;
color:red;
}
tabbox {
//border-bottom: 1px outset white;
}
tabcontrol[align="vertical"] tabpanel + tabbox[align="horizontal"] tab {
//bottom tabs
border-left: 1px outset white;
border-right: 1px outset white;
border-top: none;
border-bottom: 1px outset white;
padding-right: 3px;
padding-left: 3px;
padding-top: 1px;
padding-bottom: 3px;
margin-right: 2px;
margin-left: 2px;
margin-top: 1px;
margin-bottom: 1px;
}
tabcontrol[align="vertical"] tabbox[align="horizontal"] tab {
//top tabs
border-left: 1px outset white;
border-right: 1px outset white;
border-top: 1px outset white;
border-bottom: none;
padding-right: 3px;
padding-left: 3px;
padding-top: 3px;
padding-bottom: 1px;
margin-right: 2px;
margin-left: 2px;
margin-top: 1px;
margin-bottom: 1px;
}
tabcontrol[align="horizontal"] tabbox[align="vertical"] tab {
//left tabs
border-left: 1px outset white;
border-right: none;
border-top: 1px outset white;
border-bottom: 1px outset white;
padding-right: 1px;
padding-left: 3px;
padding-top: 3px;
padding-bottom: 3px;
margin-right: 1px;
margin-left: 1px;
margin-top: 2px;
margin-bottom: 2px;
}
tabcontrol[align="horizontal"] tabpanel + tabbox[align="vertical"] tab {
//right tabs
border-left: none;
border-right: 1px outset white;
border-top: 1px outset white;
border-bottom: 1px outset white;
padding-right: 3px;
padding-left: 1px;
padding-top: 3px;
padding-bottom: 3px;
margin-right: 1px;
margin-left: 1px;
margin-top: 2px;
margin-bottom: 2px;
}
tab:hover {
color: #000033;
text-decoration:underline;
}
tabcontrol {
display: block;
cursor: default;
border: none;
}
:-moz-deck-hidden {
visibility: hidden;
}
/* all the debug stuff
is here */
box[debug] box {
border: 1px solid blue;
}
box[debug][align="vertical"] {
border: 1px solid red;
}
box[debug][align="horizontal"] {
border: 1px solid blue;
}
box[debug] box[align="vertical"] {
border: 1px solid red;
}
box[debug] spring {
background-color: green;
}
box[debug] div{
background-color:inherit;
background-image:inherit;
border: 1px dashed yellow;
}
box[debug] div.textline {
background-color:inherit;
background-image:none;
border: 1px solid yellow;
}
box[debug] span{
background-color:inherit;
background-image:inherit;
border: 1px dotted yellow;
}
box[debug] button{
border: 1px outset yellow;
}
box[debug] button:active{
border: 1px inset yellow;
}
box[debug] titledbutton{
border: 1px outset yellow;
}
box[debug] titledbutton:active{
border: 1px inset yellow;
}
box[debug] legend {
border: 1px solid white;
}
box[debug] label {
border: 1px solid yellow;
}
box[debug] textarea {
border: 1px inset yellow;
}
box[debug] input[type=text]{
border: 2px inset yellow;
}
box[debug] input[type=password]{
border: 2px inset yellow;
}
box[debug] input{
border: 2px inset yellow;
}
box[debug] input[type=radio]{
border: 2px inset yellow;
}
box[debug] input[type=checkbox]{
border: 1px inset yellow;
}
box[debug] checkbox{
background-color: white;
border: 1px inset yellow;
}
box[debug] checkbox[depress]{
border: 1px inset yellow;
}
box[debug] div.pmBackground {
border: 1px inset yellow;
padding: 1px;
background-color: #CCCCCC;
}
box[debug] progressmeter {
display:inline;
border: 1px yellow;
color : #9999CC;
}
thumb {
background-color: rgb(206, 207, 206);
border: 2px outset rgb(156, 154, 156);
list-style-image: url(scrollThumb.gif)
}
thumb:hover {
list-style-image: url(scrollThumb_mo.gif);
}
thumb[disabled="true"] {
list-style-image: url(scrollThumb_dis.gif);
}
thumb:active {
background-color: rgb(220, 210, 210);
}
slider {
border: 1px solid black;
background-color: rgb(240,240,240);
}
scrollbarbutton {
display: inline;
vertical-align: bottom;
cursor: default;
border: 2px outset rgb(156, 154, 156);
background-color: rgb(206, 207, 206);
color:black;
padding: 1px;
}
scrollbarbutton:active {
border-style: inset;
padding-left: 2px;
padding-right: 0px;
padding-top: 2px;
padding-bottom: 0px;
}
scrollbarbutton.decrement {
list-style-image: url(scrollUp.gif)
}
scrollbarbutton.decrement:hover {
list-style-image: url(scrollUp_mo.gif)
}
scrollbarbutton.decrement[disabled="true"] {
list-style-image: url(scrollUp_dis.gif)
}
scrollbarbutton.increment {
list-style-image: url(scrollDown.gif)
}
scrollbarbutton.increment:hover {
list-style-image: url(scrollDown_mo.gif)
}
scrollbarbutton.increment[disabled="true"] {
list-style-image: url(scrollDown_dis.gif)
}
treepusher.increment {
list-style-image: url(moreCols_mo.gif)
}
treepusher.increment:hover {
list-style-image: url(moreCols_mo.gif)
}
treepusher.increment[disabled="true"] {
list-style-image: url(moreCols_dis.gif)
}
treepusher.decrement {
list-style-image: url(lessCols_mo.gif)
}
treepusher.decrement:hover {
list-style-image: url(lessCols_mo.gif)
}
treepusher.decrement[disabled="true"] {
list-style-image: url(lessCols_dis.gif)
}
splitter {
display: block;
}
grippy {
border: 1px outset white;
list-style-image: url(resource:/res/toolbar/grippy-horizontal-before.gif);
background-color: rgb(198,198,198);
display: block;
margin: 1px;
}
box[align="vertical"] splitter[collapse="after"] grippy {
list-style-image: url(resource:/res/toolbar/grippy-vertical-after.gif);
}
box splitter[collapse="after"] grippy {
list-style-image: url(resource:/res/toolbar/grippy-horizontal-after.gif);
}