gecko-dev/editor/ui/composer/content/editor.xul

235 строки
8.4 KiB
Plaintext
Исходник Обычный вид История

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
- Michael Lowe
- Sammy Ford
1999-08-27 17:07:40 +04:00
-->
2000-04-30 06:49:23 +04:00
<?xml-stylesheet href="chrome://editor/skin/" type="text/css"?>
<?xul-overlay href="chrome://editor/content/editorOverlay.xul"?>
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
<?xul-overlay href="chrome://global/content/tasksOverlay.xul"?>
2000-04-20 01:42:30 +04:00
<?xul-overlay href="chrome://communicator/content/sidebar/sidebarOverlay.xul"?>
1999-04-21 00:48:46 +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"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="EditorOnLoad()"
onunload="EditorShutdown()"
onclose="return EditorCanClose()"
contenttitlesettting="true"
titlemodifier="&editorWindow.titlemodifier;"
titlemenuseparator="&editorWindow.titlemodifiermenuseparator;"
windowtype="composer:html"
orient="vertical"
width="640" height="480"
screenX="10" screenY="10"
persist="screenX screenY width height"
>
1999-04-21 00:48:46 +04:00
<script language="JavaScript" src="chrome://editor/content/EditorCommands.js"/>
<script language="JavaScript" src="chrome://editor/content/ComposerCommands.js"/>
<script language="JavaScript" src="chrome://editor/content/EditorCommandsDebug.js"/>
<script language="javascript" src="chrome://global/content/strres.js"/>
1999-08-03 18:50:24 +04:00
<commands id="commands">
<commandset id="globalEditMenuItems"/>
<commandset id="selectEditMenuItems"/>
<commandset id="undoEditMenuItems"/>
<commandset id="composerMenuItems"/>
<commandset id="composerEditMenuItems"/>
<commandset id="composerSaveMenuItems"/>
<commandset id="composerStyleMenuItems"/>
</commands>
<!-- Use this when we abandon the default startup page -->
<!-- broadcaster id="args" value="about:blank"/ -->
<broadcaster id="args" value="chrome://editor/content/EditorInitPage.html"/>
1999-04-21 00:48:46 +04:00
<broadcaster id="canPrint"/>
<!-- Interim hack to transition from nsIXULWindowCallbacks/ShowWindowWithArgs -->
<broadcaster id="dialog.start" ready="false"/>
<observes element="dialog.start" attribute="ready" onbroadcast="EditorStartup('html')"/>
<!-- command nodes are appended here from the overlays -->
<broadcasterset id="broadcasterset">
<broadcaster id="Editor:Throbber" busy="false"/>
</broadcasterset>
<popupset>
<popup id="BackColorPopup"/>
<popup id="TextColorPopup"/>
</popupset>
<!-- keys are appended from the overlay -->
<keyset id="defaultKeySet"/>
2000-04-26 06:27:56 +04:00
<menubar id="main-menubar" class="chromeclass-menubar">
<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;">
<!-- id pulls in "Show Sidebar" item from sidebarOverlay -->
<menupopup id="menu_View_Popup">
<menu id="viewToolbar"/>
<menuitem id="showEditModeBar"/>
<menuseparator/>
<menuitem id="viewSourceMenuitem"/>
<menuitem id="viewParagraphMarks"/>
<menuseparator />
<menu id="charsetMenu"/>
<menu id="charsetMenu1"/>
<menu id="charsetMenu2"/>
<menu id="charsetMenu3"/>
<menu id="charsetMenu4"/>
<menu id="charsetMenu5"/>
</menupopup>
1999-04-21 00:48:46 +04:00
</menu>
<menu id="insertMenu"/>
<menu id="formatMenu" value="&formatMenu.label;" accesskey="&formatmenu.accesskey;">
<menupopup id="formatMenuPopup">
<menuitem id="objectProperties"/>
<menuitem id="colorsAndBackground"/>
<menuitem id="pageProperties"/>
1999-08-04 06:06:03 +04:00
</menupopup>
</menu>
<menu id="tableMenu"/>
<!-- tasks menu filled from tasksOverlay -->
<menu id="tasksMenu" accesskey="t"/>
<!-- DEBUG only -->
<menu id="debugMenu" />
<!-- end DEBUG only -->
<!-- help menu filled from globalOverlay -->
<menu id="menu_Help"/>
<spring flex="1"/>
</menubar>
<toolbox id="EditorToolbox">
<!-- toolbar filled out from editorOverlay -->
<!-- add class="standard" for dark blue background (icons need rework first) -->
<toolbar class="toolbar-primary" id="EditToolbar" persist="collapsed">
2000-03-23 07:15:10 +03:00
<button id="newButton"/>
<button id="openButton"/>
<button id="saveButton"/>
<button id="previewButton"/>
<button id="printButton" />
<button id="findButton"/>
<button id="spellingButton"/>
<spring class="separator_small"/>
2000-03-23 07:15:10 +03:00
<button id="imageButton"/>
<button id="hlineButton"/>
<button id="tableButton"/>
<button id="linkButton"/>
<button id="namedAnchorButton"/>
<spring flex="1"/>
2000-04-30 06:49:23 +04:00
<button class="plain" id="navigator-throbber" oncommand='goClickThrobber("editor.throbber.url")'>
<observes element="Editor:Throbber" attribute="busy"/>
</button>
</toolbar>
<toolbar id="FormatToolbar" class="chromeclass-toolbar" persist="collapsed">
<!-- We need this else menulists get stretched -->
<box autostretch="never" flex="1">
<!-- from editorOverlay -->
<menulist id="ParagraphSelect"/>
<menulist id="FontFaceSelect"/>
<stack id="ColorButtons"/>
<button id="DecreaseFontSizeButton"/>
<button id="IncreaseFontSizeButton"/>
<button id="boldButton"/>
<button id="italicButton"/>
<button id="underlineButton"/>
<spring class="separator_small"/>
<button id="ulButton"/>
<button id="olButton"/>
<button id="outdentButton"/>
<button id="indentButton"/>
<spring class="separator_small"/>
<!-- TODO: Change to a menulist? -->
<menu>
<button id="AlignPopupButton"/>
<menupopup id="AlignmentPopup"/>
</menu>
</box>
<spring flex="1"/>
</toolbar>
</toolbox>
<!-- sidebar/toolbar/content/status -->
<box id="sidebar-parent" flex="1">
<!-- From sidebarOverlay.xul -->
2000-04-26 06:27:56 +04:00
<box id="sidebar-box" class="chromeclass-extrachrome"/>
<splitter id="sidebar-splitter" class="chromeclass-extrachrome"/>
<box id="appcontent" orient="vertical" flex="1">
<deck id="ContentWindowDeck" index="0" flex="1">
<editor type="content-primary" id="content-frame" src="about:blank" flex="1"/>
<textfield class="source-editor" id="content-source" multiline="true" rows="1"
flex="1" style="width:1em; height:1em;"/>
</deck>
<!-- TODO: Set collapsed="true" so default is to not show the editmode toolbar -->
<toolbar id="EditModeToolbar" chromeclass="extrachrome" persist="collapsed">
<text class="margin-left-right" value="&editMode.label;"/>
<!-- From editorOverlay.xul -->
<text id="NormalModeButton"/>
<text id="TagModeButton"/>
<text id="SourceModeButton"/>
<text id="PreviewModeButton"/>
<spring flex="1"/>
</toolbar>
<!-- Some of this is from globarOverlay.xul -->
<box id="status-bar" class="chromeclass-status">
<box flex="1" style="min-width: 1px">
<box orient="vertical" style="width:100px">
<spring flex="1"/>
<progressmeter id="statusbar-icon" mode="normal" value="0">
<observes element="Editor:Throbber" attribute="busy"/>
</progressmeter>
<spring flex="1"/>
</box>
<spring style="width: 1em"/>
<text id="statusText" class="status-bar" align="left" flex="1"
value="&statusText.label;" style="min-width: 1px"/>
<!-- This is used for buildID in browser -->
<text class="status-bar" align="left"/>
<text id="lock-button" class="borderless" align="left"/>
</box>
</box><!-- status-bar -->
</box> <!-- appcontent -->
</box><!-- sidebar-parent -->
<toolbar id="taskbar" chromeclass="extrachrome" style="min-width: 1px" />
</window>