1999-05-27 22:21:48 +00:00
|
|
|
<?xml version="1.0"?>
|
1999-08-25 14:40:33 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
- 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):
|
2001-04-04 04:08:13 +00:00
|
|
|
- Ryan Cassin (rcassin@supernova.org)
|
1999-08-25 14:40:33 +00:00
|
|
|
-->
|
|
|
|
|
2000-04-19 21:42:30 +00:00
|
|
|
<?xml-stylesheet href="chrome://editor/skin/editor.css" type="text/css"?>
|
2001-03-28 21:16:44 +00:00
|
|
|
<?xul-overlay href="chrome://editor/content/editorOverlay.xul"?>
|
2001-01-09 21:38:47 +00:00
|
|
|
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
|
2001-03-28 21:16:44 +00:00
|
|
|
<?xul-overlay href="chrome://global/content/charsetOverlay.xul"?>
|
2000-06-05 06:31:41 +00:00
|
|
|
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
|
2000-06-17 03:26:47 +00:00
|
|
|
<?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
|
2001-03-28 21:16:44 +00:00
|
|
|
<?xul-overlay href="chrome://communicator/content/sidebar/sidebarOverlay.xul"?>
|
|
|
|
<?xul-overlay href="chrome://communicator/content/communicatorOverlay.xul"?>
|
1999-05-27 22:21:48 +00:00
|
|
|
|
1999-10-28 01:51:07 +00:00
|
|
|
<!DOCTYPE window SYSTEM "chrome://editor/locale/editor.dtd">
|
1999-05-27 22:21:48 +00:00
|
|
|
|
1999-10-26 23:13:00 +00:00
|
|
|
<!-- NOTE: If we don't have "title" set, text editor doesn't work! -->
|
2000-06-15 09:54:41 +00:00
|
|
|
<window id="main-window" xmlns:html="http://www.w3.org/1999/xhtml"
|
2000-03-17 03:03:13 +00:00
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
1999-10-25 21:57:11 +00:00
|
|
|
onload="TextEditorOnLoad()"
|
2000-03-17 03:03:13 +00:00
|
|
|
onunload="EditorShutdown()"
|
2001-03-28 21:16:44 +00:00
|
|
|
onclose="return EditorCanClose()"
|
|
|
|
onfocus="EditorOnFocus()"
|
2001-05-02 04:33:05 +00:00
|
|
|
contenttitlesetting="true"
|
2001-03-28 21:16:44 +00:00
|
|
|
title=""
|
2000-03-17 03:03:13 +00:00
|
|
|
titlemodifier="&textEditorWindow.titlemodifier;"
|
1999-10-20 14:15:25 +00:00
|
|
|
titlemenuseparator="&editorWindow.titlemodifiermenuseparator;"
|
2000-03-17 03:03:13 +00:00
|
|
|
windowtype="composer:text"
|
1999-10-20 14:15:25 +00:00
|
|
|
align="vertical"
|
2000-03-17 03:03:13 +00:00
|
|
|
width="640" height="480"
|
|
|
|
screenX="10" screenY="10"
|
2001-03-28 21:16:44 +00:00
|
|
|
persist="screenX screenY width height sizemode"
|
2000-03-17 03:03:13 +00:00
|
|
|
>
|
1999-05-27 22:21:48 +00:00
|
|
|
|
2001-03-13 15:35:07 +00:00
|
|
|
<script type="application/x-javascript" src="chrome://editor/content/editor.js"/>
|
|
|
|
<script type="application/x-javascript" src="chrome://editor/content/ComposerCommands.js"/>
|
|
|
|
<script type="application/x-javascript" src="chrome://editor/content/EditorCommandsDebug.js"/>
|
|
|
|
<script type="application/x-javascript" src="chrome://global/content/strres.js"/>
|
2001-03-28 21:16:44 +00:00
|
|
|
<script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
|
|
|
|
<script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
|
|
|
|
<script type="application/x-javascript" src="chrome://communicator/content/contentAreaDD.js"/>
|
|
|
|
<!--
|
|
|
|
editor.xul has these - do we need them?
|
|
|
|
<script type="application/x-javascript" src="chrome://communicator/content/contentAreaUtils.js"/>
|
|
|
|
<script type="application/x-javascript" src="chrome://global/content/nsJSSupportsUtils.js"/>
|
|
|
|
<script type="application/x-javascript" src="chrome://global/content/nsJSComponentManager.js"/>
|
|
|
|
-->
|
1999-07-08 20:05:35 +00:00
|
|
|
|
2000-03-17 03:03:13 +00:00
|
|
|
<commands id="commands">
|
|
|
|
<commandset id="globalEditMenuItems"/>
|
|
|
|
<commandset id="selectEditMenuItems"/>
|
|
|
|
<commandset id="undoEditMenuItems"/>
|
2001-03-28 21:16:44 +00:00
|
|
|
<commandset id="clipboardEditMenuItems"/>
|
2000-07-14 21:58:50 +00:00
|
|
|
<commandset id="commonEditorMenuItems"/>
|
2000-05-01 22:15:40 +00:00
|
|
|
<commandset id="composerEditMenuItems"/>
|
|
|
|
<commandset id="composerSaveMenuItems"/>
|
2001-03-28 21:16:44 +00:00
|
|
|
<commandset id="composerMenuItems"/>
|
2000-03-17 03:03:13 +00:00
|
|
|
</commands>
|
|
|
|
|
1999-05-27 22:21:48 +00:00
|
|
|
<broadcaster id="args" value="chrome://editor/content/EditorInitPagePlain.html"/>
|
|
|
|
<broadcaster id="canPrint"/>
|
|
|
|
|
2001-03-28 21:16:44 +00:00
|
|
|
<!-- Interim hack to transition from nsIXULWindowCallbacks/ShowWindowWithArgs
|
1999-06-07 19:21:33 +00:00
|
|
|
<broadcaster id="dialog.start" ready="false"/>
|
2000-03-17 03:03:13 +00:00
|
|
|
<observes element="dialog.start" attribute="ready" onbroadcast="EditorStartup('text')"/>
|
2001-03-28 21:16:44 +00:00
|
|
|
-->
|
|
|
|
|
1999-09-02 04:55:52 +00:00
|
|
|
<!-- broadcaster nodes are appended here from the overlays -->
|
|
|
|
<broadcasterset id="broadcasterset">
|
2000-03-17 03:03:13 +00:00
|
|
|
<broadcaster id="Editor:Throbber" busy="false"/>
|
1999-09-02 04:55:52 +00:00
|
|
|
</broadcasterset>
|
1999-07-31 11:30:46 +00:00
|
|
|
|
2001-03-22 00:59:29 +00:00
|
|
|
<!-- keys are appended from the overlay -->
|
2000-10-08 05:32:07 +00:00
|
|
|
<keyset id="keyset"/>
|
1999-10-25 21:57:11 +00:00
|
|
|
|
2001-03-28 21:16:44 +00:00
|
|
|
<toolbox id="EditorToolbox">
|
|
|
|
<menubar id="main-menubar" class="chromeclass-menubar">
|
|
|
|
<menu id="fileMenu"/>
|
|
|
|
<menu id="editMenu"/>
|
|
|
|
|
|
|
|
<menu label="&viewMenu.label;" accesskey="&viewmenu.accesskey;">
|
|
|
|
<!-- id pulls in "Show Sidebar" item from sidebarOverlay -->
|
|
|
|
<menupopup id="menu_View_Popup">
|
|
|
|
<menu id="viewToolbar"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menu id = "composerCharsetMenu" />
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
|
|
|
|
|
|
|
<menu id="insertMenuPlainText"/>
|
|
|
|
|
|
|
|
<!-- tasks menu filled from tasksOverlay -->
|
|
|
|
<menu accesskey="t" id="tasksMenu"/>
|
1999-05-27 22:21:48 +00:00
|
|
|
|
2001-03-28 21:16:44 +00:00
|
|
|
<!-- DEBUG only -->
|
|
|
|
<menu id="debugMenu" />
|
|
|
|
<!-- end DEBUG only -->
|
1999-05-27 22:21:48 +00:00
|
|
|
|
2001-03-28 21:16:44 +00:00
|
|
|
<!-- help menu filled from globalOverlay -->
|
|
|
|
<menu accesskey="h" id="menu_Help"/>
|
|
|
|
|
|
|
|
<spring flex="1"/>
|
|
|
|
</menubar>
|
|
|
|
|
|
|
|
<!-- toolbar filled out from editorOverlay -->
|
|
|
|
<toolbar class="toolbar-primary" id="EditToolbar" persist="collapsed">
|
2000-04-22 01:12:52 +00:00
|
|
|
<button id="newButton"/>
|
|
|
|
<button id="openButton"/>
|
|
|
|
<button id="saveButton"/>
|
2000-07-14 21:58:50 +00:00
|
|
|
<spring class="separator_small"/>
|
2001-04-04 04:08:13 +00:00
|
|
|
<menubutton id="printButton"/>
|
2000-04-22 01:49:00 +00:00
|
|
|
<button id="spellingButton"/>
|
2000-04-28 05:59:16 +00:00
|
|
|
<spring flex="1"/>
|
2001-03-28 21:16:44 +00:00
|
|
|
</toolbar>
|
|
|
|
</toolbox>
|
|
|
|
|
|
|
|
<box id="sidebar-parent" flex="1">
|
|
|
|
<!-- From sidebarOverlay.xul -->
|
|
|
|
<box id="sidebar-box" class="chromeclass-extrachrome" hidden="true"/>
|
|
|
|
<splitter id="sidebar-splitter" class="chromeclass-extrachrome" hidden="true"/>
|
|
|
|
<box id="appcontent" orient="vertical" flex="1">
|
|
|
|
|
|
|
|
<editor type="content-primary" id="content-frame" src="about:blank" flex="1"/>
|
|
|
|
|
|
|
|
<statusbar id="status-bar">
|
|
|
|
<statusbarpanel class="statusbarpanel-icononly" id="offline-status"/>
|
|
|
|
<progressmeter class="progressmeter-statusbar" statusbar="true" id="statusbar-icon" mode="normal" value="0">
|
|
|
|
<observes element="Editor:Throbber" attribute="busy"/>
|
|
|
|
</progressmeter>
|
|
|
|
<statusbarpanel id="statusText" label="&statusText.label;" flex="1" crop="right"/>
|
|
|
|
</statusbar>
|
1999-05-27 22:21:48 +00:00
|
|
|
|
2001-03-28 21:16:44 +00:00
|
|
|
</box> <!-- appcontent -->
|
|
|
|
</box><!-- sidebar-parent -->
|
1999-05-27 22:21:48 +00:00
|
|
|
|
2001-03-28 21:16:44 +00:00
|
|
|
<box id="taskbar" class="toolbox-bottom"/>
|
1999-05-27 22:21:48 +00:00
|
|
|
|
|
|
|
</window>
|