home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-macos9-1.3.1.sea.bin / Mozilla1.3.1 / Chrome / comm.jar / content / editor / TextEditorAppShell.xul < prev   
Extensible Markup Language  |  2003-06-08  |  7KB  |  163 lines

  1. <?xml version="1.0"?> 
  2.  
  3. <!--
  4.    - The contents of this file are subject to the Netscape Public
  5.    - License Version 1.1 (the "License"); you may not use this file
  6.    - except in compliance with the License. You may obtain a copy of
  7.    - the License at http://www.mozilla.org/NPL/
  8.    -  
  9.    - Software distributed under the License is distributed on an "AS
  10.    - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11.    - implied. See the License for the specific language governing
  12.    - rights and limitations under the License.
  13.    -  
  14.    - The Original Code is Mozilla Communicator client code, released
  15.    - March 31, 1998.
  16.    - 
  17.    - The Initial Developer of the Original Code is Netscape
  18.    - Communications Corporation. Portions created by Netscape are
  19.    - Copyright (C) 1998-1999 Netscape Communications Corporation. All
  20.    - Rights Reserved.
  21.    - 
  22.    - Contributor(s): 
  23.    -   Ryan Cassin (rcassin@supernova.org)
  24.   -->
  25.  
  26. <?xml-stylesheet href="chrome://editor/skin/editor.css" type="text/css"?> 
  27. <?xml-stylesheet href="chrome://editor/skin/textEditor.css" type="text/css"?> 
  28.  
  29. <?xml-stylesheet href="chrome://editor/skin/editorPrimaryToolbar.css" type="text/css"?> 
  30. <?xul-overlay href="chrome://editor/content/editorOverlay.xul"?>
  31. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  32. <?xul-overlay href="chrome://global/content/charsetOverlay.xul"?>
  33. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  34. <?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
  35. <?xul-overlay href="chrome://communicator/content/contentAreaContextOverlay.xul"?>
  36. <?xul-overlay href="chrome://communicator/content/sidebar/sidebarOverlay.xul"?>
  37. <?xul-overlay href="chrome://communicator/content/communicatorOverlay.xul"?>
  38.  
  39. <!DOCTYPE window SYSTEM "chrome://editor/locale/editor.dtd"> 
  40.  
  41. <!-- NOTE: If we don't have "title" set, text editor doesn't work! -->
  42. <window id="main-window"
  43.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  44.         onload="TextEditorOnLoad()"
  45.         onunload="EditorShutdown()"
  46.         onclose="return EditorCanClose()"
  47.         onfocus="EditorOnFocus()"
  48.         contenttitlesetting="true"
  49.         title=""
  50.         titlemodifier="&textEditorWindow.titlemodifier;"
  51.         titlemenuseparator="&editorWindow.titlemodifiermenuseparator;"
  52.         windowtype="composer:text"
  53.         width="640" height="480"
  54.         screenX="10" screenY="10"
  55.         persist="screenX screenY width height sizemode"
  56.         >
  57.  
  58.   <script type="application/x-javascript" src="chrome://editor/content/editor.js"/>
  59.   <script type="application/x-javascript" src="chrome://editor/content/ComposerCommands.js"/>
  60.   <script type="application/x-javascript" src="chrome://editor/content/EditorCommandsDebug.js"/>
  61.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  62.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  63.   <script type="application/x-javascript" src="chrome://communicator/content/contentAreaDD.js"/>
  64. <!--
  65. editor.xul has these - do we need them?
  66.   <script type="application/x-javascript" src="chrome://communicator/content/contentAreaUtils.js"/>
  67.   <script type="application/x-javascript" src="chrome://global/content/nsJSSupportsUtils.js"/>
  68.   <script type="application/x-javascript" src="chrome://global/content/nsJSComponentManager.js"/>
  69. -->
  70.  
  71.   <commands id="commands">
  72.     <commandset id="globalEditMenuItems"/>
  73.     <commandset id="selectEditMenuItems"/>
  74.     <commandset id="undoEditMenuItems"/>
  75.     <commandset id="clipboardEditMenuItems"/>
  76.     <commandset id="commonEditorMenuItems"/>
  77.     <commandset id="composerEditMenuItems"/>
  78.     <commandset id="composerSaveMenuItems"/>    
  79.     <commandset id="composerMenuItems"/>
  80.   </commands>
  81.  
  82.   <broadcaster id="args" value="chrome://editor/content/EditorInitPagePlain.html"/>
  83.   <broadcaster id="canPrint"/>
  84.   
  85. <!-- Interim hack to transition from nsIXULWindowCallbacks/ShowWindowWithArgs
  86.   <broadcaster id="dialog.start" ready="false"/>
  87.   <observes element="dialog.start" attribute="ready" onbroadcast="EditorStartup('text')"/>
  88.  -->
  89.    
  90.   <!-- broadcaster nodes are appended here from the overlays -->
  91.   <broadcasterset id="broadcasterset">
  92.     <broadcaster id="Editor:Throbber" busy="false"/>
  93.   </broadcasterset>
  94.  
  95.   <!-- keys are appended from the overlay -->
  96.   <keyset id="keyset"/>
  97.  
  98.   <toolbox id="EditorToolbox">
  99.     <menubar id="main-menubar" class="chromeclass-menubar">
  100.       <menu id="fileMenu"/>
  101.       <menu id="editMenu"/>
  102.  
  103.       <menu label="&viewMenu.label;" accesskey="&viewmenu.accesskey;">
  104.         <!-- id pulls in "Show Sidebar" item from sidebarOverlay -->
  105.         <menupopup id="menu_View_Popup">
  106.           <menu id="viewToolbar"/>
  107.           <menuseparator/>
  108.           <menu id = "composerCharsetMenu" />
  109.         </menupopup>
  110.       </menu>
  111.  
  112.       <menu id="insertMenuPlainText"/>
  113.  
  114.       <!-- tasks menu filled from tasksOverlay -->
  115.       <menu accesskey="t" id="tasksMenu"/>
  116.  
  117.       <!-- DEBUG only -->
  118.       <!-- <menu id="debugMenu" /> -->
  119.       <!-- end DEBUG only -->
  120.  
  121.       <!-- help menu filled from globalOverlay -->
  122.       <menu accesskey="h" id="menu_Help"/>
  123.  
  124.       <spacer flex="1"/>
  125.     </menubar>
  126.  
  127.      <!-- toolbar filled out from editorOverlay -->
  128.     <toolbar class="toolbar-primary" id="EditToolbar" persist="collapsed">
  129.       <toolbarbutton id="newButton"/>
  130.       <toolbarbutton id="openButton"/>
  131.       <toolbarbutton id="saveButton"/>
  132.       <spacer class="separator-small"/>
  133.       <toolbarbutton id="printButton"/>
  134.       <toolbarbutton id="spellingButton"/>
  135.       <spacer flex="1"/>
  136.     </toolbar>    
  137.   </toolbox>
  138.  
  139.   <hbox id="sidebar-parent" flex="1">
  140.     <!-- From sidebarOverlay.xul -->
  141.     <vbox id="sidebar-box" class="chromeclass-extrachrome" hidden="true"/>
  142.     <splitter id="sidebar-splitter" class="chromeclass-extrachrome" hidden="true"/>
  143.     <vbox id="appcontent" flex="1">
  144.  
  145.       <editor editortype="text" type="content-primary" id="content-frame" src="about:blank" flex="1"/>
  146.  
  147.       <statusbar id="status-bar">
  148.         <statusbarpanel class="statusbarpanel-iconic" id="offline-status"/>
  149.         <statusbarpanel class="statusbarpanel-progress">
  150.           <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0">
  151.               <observes element="Editor:Throbber" attribute="busy"/>
  152.           </progressmeter>
  153.         </statusbarpanel>
  154.         <statusbarpanel id="statusText" label="&statusText.label;" flex="1" crop="right"/>
  155.       </statusbar>
  156.  
  157.     </vbox> <!-- appcontent -->
  158.   </hbox><!-- sidebar-parent -->
  159.  
  160.   <hbox id="taskbar" class="toolbox-bottom"/>
  161.  
  162. </window>
  163.