1999-04-21 00:48:46 +04:00
|
|
|
<?xml version="1.0"?>
|
1999-08-27 17:07:40 +04: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) 1999 Netscape Communications Corporation. All
|
|
|
|
- Rights Reserved.
|
|
|
|
-
|
|
|
|
- Contributor(s):
|
|
|
|
- Ben Goodger
|
1999-08-31 02:17:27 +04:00
|
|
|
- Michael Lowe
|
1999-08-31 16:51:30 +04:00
|
|
|
- Sammy Ford
|
1999-08-27 17:07:40 +04:00
|
|
|
-->
|
|
|
|
|
1999-05-06 03:29:18 +04:00
|
|
|
<?xml-stylesheet href="chrome://editor/skin/" type="text/css"?>
|
1999-09-02 08:55:52 +04:00
|
|
|
<?xul-overlay href="chrome://editor/content/editorOverlay.xul"?>
|
1999-10-14 04:13:27 +04:00
|
|
|
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
|
|
|
|
<?xul-overlay href="chrome://global/content/tasksOverlay.xul"?>
|
1999-09-30 00:19:26 +04:00
|
|
|
<?xul-overlay href="chrome://sidebar/content/sidebarOverlay.xul"?>
|
1999-04-21 00:48:46 +04:00
|
|
|
|
1999-10-28 05:51:07 +04:00
|
|
|
<!DOCTYPE window SYSTEM "chrome://editor/locale/editor.dtd">
|
1999-04-21 00:48:46 +04:00
|
|
|
|
|
|
|
<window id="main-window" xmlns:html="http://www.w3.org/TR/REC-html40"
|
1999-08-26 07:27:56 +04:00
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
1999-09-15 00:36:19 +04:00
|
|
|
onload="EditorOnLoad()"
|
1999-10-26 05:54:39 +04:00
|
|
|
onunload="EditorShutdown()"
|
1999-12-04 04:46:23 +03:00
|
|
|
onclose="return EditorCanClose()"
|
1999-11-03 03:48:26 +03:00
|
|
|
titlemodifier="&editorWindow.titlemodifier;"
|
1999-10-26 05:54:39 +04:00
|
|
|
titlemenuseparator="&editorWindow.titlemodifiermenuseparator;"
|
1999-11-11 03:10:05 +03:00
|
|
|
windowtype="composer:html"
|
1999-10-26 05:54:39 +04:00
|
|
|
align="vertical"
|
1999-08-26 07:27:56 +04:00
|
|
|
width="640" height="480">
|
1999-04-21 00:48:46 +04:00
|
|
|
|
1999-10-14 04:13:27 +04:00
|
|
|
<html:script language="JavaScript" src="chrome://editor/content/EditorCommands.js"/>
|
1999-08-03 18:50:24 +04:00
|
|
|
|
1999-10-26 05:54:39 +04:00
|
|
|
<!-- Use this when we abandon the default startup page -->
|
|
|
|
<!-- broadcaster id="args" value="about:blank"/ -->
|
1999-05-13 02:25:45 +04:00
|
|
|
<broadcaster id="args" value="chrome://editor/content/EditorInitPage.html"/>
|
1999-04-21 00:48:46 +04:00
|
|
|
<broadcaster id="canPrint"/>
|
|
|
|
|
1999-06-07 23:21:33 +04:00
|
|
|
<!-- Interim hack to transition from nsIXULWindowCallbacks/ShowWindowWithArgs -->
|
|
|
|
<broadcaster id="dialog.start" ready="false"/>
|
1999-09-22 03:02:35 +04:00
|
|
|
<observes element="dialog.start" attribute="ready" onbroadcast="EditorStartup('html')"/>
|
1999-09-02 08:55:52 +04:00
|
|
|
|
|
|
|
<!-- broadcaster nodes are appended here from the overlays -->
|
|
|
|
<broadcasterset id="broadcasterset">
|
1999-10-29 06:33:51 +04:00
|
|
|
<broadcaster id="Editor:Throbber" busy="false"/>
|
1999-09-02 08:55:52 +04:00
|
|
|
</broadcasterset>
|
1999-12-02 01:20:50 +03:00
|
|
|
|
|
|
|
<popupset>
|
2000-01-13 00:45:13 +03:00
|
|
|
<popup id="TextColorPopup"/>
|
|
|
|
<popup id="BackColorPopup"/>
|
1999-12-02 01:20:50 +03:00
|
|
|
</popupset>
|
1999-09-02 08:55:52 +04:00
|
|
|
|
|
|
|
<!-- keys are appended from the overlay -->
|
|
|
|
<keyset id="defaultKeySet"/>
|
1999-08-26 07:27:56 +04:00
|
|
|
|
1999-10-28 05:51:07 +04:00
|
|
|
<menubar id="main-menubar" chromeclass="menubar">
|
1999-09-02 08:55:52 +04:00
|
|
|
<menu id="fileMenu"/>
|
|
|
|
<menu id="editMenu"/>
|
1999-04-21 00:48:46 +04:00
|
|
|
|
1999-08-06 02:19:58 +04:00
|
|
|
<menu value="&viewMenu.label;" accesskey="&viewmenu.accesskey;">
|
1999-12-02 01:20:50 +03:00
|
|
|
<!-- id pulls in "Show Sidebar" item from sidebarOverlay -->
|
|
|
|
<menupopup id="menu_View_Popup">
|
|
|
|
<menu id="viewToolbar"/>
|
|
|
|
|
1999-09-08 03:25:59 +04:00
|
|
|
<!-- menuseparator /> Put this back when it works.
|
|
|
|
<menuitem id="viewSourceMenuitem"/ -->
|
1999-08-31 16:51:30 +04:00
|
|
|
<menuseparator />
|
1999-09-02 08:55:52 +04:00
|
|
|
<menu id="charsetMenu"/>
|
1999-10-28 03:10:51 +04:00
|
|
|
<menu id="charsetMenu1"/>
|
|
|
|
<menu id="charsetMenu2"/>
|
|
|
|
<menu id="charsetMenu3"/>
|
|
|
|
<menu id="charsetMenu4"/>
|
|
|
|
<menu id="charsetMenu5"/>
|
1999-08-26 07:27:56 +04:00
|
|
|
</menupopup>
|
1999-04-21 00:48:46 +04:00
|
|
|
</menu>
|
|
|
|
|
1999-09-02 08:55:52 +04:00
|
|
|
<menu id="insertMenu"/>
|
1999-07-31 11:24:01 +04:00
|
|
|
|
1999-12-04 04:46:23 +03:00
|
|
|
<menu id="formatMenu" value="&formatMenu.label;" accesskey="&formatmenu.accesskey;">
|
|
|
|
<menupopup id="formatMenuPopup">
|
|
|
|
<!-- Property items that are only in web composer -->
|
|
|
|
<menuitem id="pageProperties"/>
|
1999-08-04 06:06:03 +04:00
|
|
|
</menupopup>
|
|
|
|
</menu>
|
|
|
|
|
1999-12-04 04:46:23 +03:00
|
|
|
<menu id="tableMenu"/>
|
|
|
|
|
1999-09-02 08:55:52 +04:00
|
|
|
<!-- tasks menu filled from tasksOverlay -->
|
|
|
|
<menu id="tasksMenu" accesskey="t"/>
|
1999-08-31 02:17:27 +04:00
|
|
|
|
1999-09-02 08:55:52 +04:00
|
|
|
<!-- DEBUG only -->
|
|
|
|
<menu id="debugMenu" />
|
|
|
|
<!-- end DEBUG only -->
|
|
|
|
|
|
|
|
<!-- help menu filled from globalOverlay -->
|
1999-09-12 06:50:24 +04:00
|
|
|
<menu id="menu_Help" accesskey="h"/>
|
1999-08-31 02:17:27 +04:00
|
|
|
|
1999-09-02 08:55:52 +04:00
|
|
|
<spring flex="100%"/>
|
|
|
|
</menubar>
|
1999-08-31 02:17:27 +04:00
|
|
|
|
1999-10-28 05:51:07 +04:00
|
|
|
<toolbox>
|
1999-12-23 02:52:10 +03:00
|
|
|
<!-- toolbar filled out from editorOverlay -->
|
|
|
|
<!-- add class="standard" for dark blue background (icons need rework first) -->
|
|
|
|
<toolbar id="EditToolbar" class="standard" persist="collapsed">
|
|
|
|
<titledbutton id="newButton"/>
|
|
|
|
<titledbutton id="openButton"/>
|
|
|
|
<titledbutton id="saveButton"/>
|
|
|
|
<toolbarseparator/>
|
|
|
|
<titledbutton id="printButton"/>
|
|
|
|
<titledbutton id="findButton"/>
|
|
|
|
<titledbutton id="spellingButton"/>
|
|
|
|
<toolbarseparator/>
|
|
|
|
<titledbutton id="imageButton"/>
|
|
|
|
<titledbutton id="hlineButton"/>
|
|
|
|
<titledbutton id="tableButton"/>
|
|
|
|
<titledbutton id="linkButton"/>
|
|
|
|
<titledbutton id="namedAnchorButton"/>
|
|
|
|
<spring flex="100%"/>
|
|
|
|
|
|
|
|
<box id="toolbar_throbber_box" align="vertical">
|
|
|
|
<titledbutton id="Throbber" onclick="window.open('http://www.mozilla.org/editor');">
|
|
|
|
<observes element="Editor:Throbber" attribute="busy"/>
|
|
|
|
</titledbutton>
|
|
|
|
</box>
|
|
|
|
</toolbar>
|
1999-09-02 08:55:52 +04:00
|
|
|
|
1999-12-23 02:52:10 +03:00
|
|
|
<toolbar id="FormatToolbar" persist="collapsed">
|
|
|
|
<html:div>
|
|
|
|
<!-- items are filled out from editorOverlay -->
|
|
|
|
<html:select id="ParagraphSelect"/>
|
|
|
|
<html:select id="FontFaceSelect"/>
|
|
|
|
</html:div>
|
|
|
|
|
|
|
|
<html:div id="ColorButtons"/>
|
|
|
|
|
|
|
|
<titledbutton id="DecreaseFontSizeButton"/>
|
|
|
|
<titledbutton id="IncreaseFontSizeButton"/>
|
|
|
|
<titledbutton id="boldButton"/>
|
|
|
|
<titledbutton id="italicButton"/>
|
|
|
|
<titledbutton id="underlineButton"/>
|
|
|
|
<titledbutton id="ulButton"/>
|
|
|
|
<titledbutton id="olButton"/>
|
|
|
|
<titledbutton id="outdentButton"/>
|
|
|
|
<titledbutton id="indentButton"/>
|
|
|
|
|
|
|
|
<menu>
|
|
|
|
<titledbutton id="AlignPopupButton"/>
|
|
|
|
<menupopup id="AlignmentPopup"/>
|
|
|
|
</menu>
|
|
|
|
<spring flex="100%"/>
|
|
|
|
</toolbar>
|
|
|
|
</toolbox>
|
1999-05-27 01:40:51 +04:00
|
|
|
|
1999-10-28 05:51:07 +04:00
|
|
|
<!-- sidebar/toolbar/content/status -->
|
|
|
|
<box id="sidebar-parent" align="horizontal" flex="100%">
|
|
|
|
<!-- toolbar/content/status -->
|
|
|
|
|
1999-12-02 01:20:50 +03:00
|
|
|
<box id="sidebar-box" chromeclass="extrachrome"/>
|
|
|
|
<splitter id="sidebar-splitter" chromeclass="extrachrome"/>
|
1999-10-28 05:51:07 +04:00
|
|
|
|
|
|
|
<box id="appcontent" align="vertical" flex="100%">
|
1999-10-26 05:54:39 +04:00
|
|
|
<editor type="content-primary" id="content-frame" src="about:blank" flex="100%"/>
|
1999-05-27 01:40:51 +04:00
|
|
|
|
1999-10-29 06:33:51 +04:00
|
|
|
<box align="horizontal" id="DisplayModeBar">
|
|
|
|
<spring class="spacer5"/>
|
1999-10-29 10:04:48 +04:00
|
|
|
<box align="vertical">
|
|
|
|
<spring style="height: 1px;"/>
|
|
|
|
<html:div>&displayMode.label;</html:div>
|
|
|
|
</box>
|
1999-10-29 06:33:51 +04:00
|
|
|
<spring class="spacer3"/>
|
1999-09-30 01:45:50 +04:00
|
|
|
<titledbutton id="EditModeButton" class="DisplayModeButton" selected="1" value="&editModeButton.label;" onclick="EditorSetDisplayStyle(0)"/>
|
|
|
|
<titledbutton id="BrowserModeButton" class="DisplayModeButton" selected="0" value="&browserModeButton.label;" onclick="EditorSetDisplayStyle(1)"/>
|
|
|
|
<html:div class="VerticalSeparator"/>
|
|
|
|
<spring flex="100%"/>
|
1999-10-29 06:33:51 +04:00
|
|
|
<!--
|
|
|
|
Use this when implemented...
|
|
|
|
<html:div>View Mode:</html:div>
|
|
|
|
<spring class="spacer3"/>
|
|
|
|
<titledbutton id="HTMLModeButton" class="DisplayModeButton" selected="0" value="HTML Source" onclick="EditorSetDisplayStyle(1)"/>
|
|
|
|
<titledbutton id="TagModeButton" class="DisplayModeButton" selected="0" value="Tag Tree" onclick="EditorSetDisplayStyle(1)"/>
|
|
|
|
<titledbutton id="PreviewModeButton" class="DisplayModeButton" selected="0" value="Full Preview" onclick="EditorSetDisplayStyle(0)"/>
|
|
|
|
-->
|
1999-09-30 01:45:50 +04:00
|
|
|
</box>
|
|
|
|
|
1999-09-02 08:55:52 +04:00
|
|
|
<!-- status bar, from editorOverlay.xul -->
|
1999-10-28 05:51:07 +04:00
|
|
|
<box id="status-bar" />
|
1999-12-02 01:20:50 +03:00
|
|
|
</box> <!-- appcontent -->
|
|
|
|
</box><!-- sidebar-parent -->
|
|
|
|
<toolbar id="taskbar" chromeclass="extrachrome" />
|
1999-05-27 01:40:51 +04:00
|
|
|
</window>
|