home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Complet / thunderbird / chrome / mail.jar / content / editor / TextEditorAppShell.xul < prev   
Encoding:
Extensible Markup Language  |  2003-10-24  |  6.4 KB  |  161 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. -->
  68.  
  69.   <commands id="commands">
  70.     <commandset id="globalEditMenuItems"/>
  71.     <commandset id="selectEditMenuItems"/>
  72.     <commandset id="undoEditMenuItems"/>
  73.     <commandset id="clipboardEditMenuItems"/>
  74.     <commandset id="commonEditorMenuItems"/>
  75.     <commandset id="composerEditMenuItems"/>
  76.     <commandset id="composerSaveMenuItems"/>    
  77.     <commandset id="composerMenuItems"/>
  78.   </commands>
  79.  
  80.   <broadcaster id="args" value="chrome://editor/content/EditorInitPagePlain.html"/>
  81.   <broadcaster id="canPrint"/>
  82.   
  83. <!-- Interim hack to transition from nsIXULWindowCallbacks/ShowWindowWithArgs
  84.   <broadcaster id="dialog.start" ready="false"/>
  85.   <observes element="dialog.start" attribute="ready" onbroadcast="EditorStartup('text')"/>
  86.  -->
  87.    
  88.   <!-- broadcaster nodes are appended here from the overlays -->
  89.   <broadcasterset id="broadcasterset">
  90.     <broadcaster id="Editor:Throbber" busy="false"/>
  91.   </broadcasterset>
  92.  
  93.   <!-- keys are appended from the overlay -->
  94.   <keyset id="keyset"/>
  95.  
  96.   <toolbox id="EditorToolbox">
  97.     <menubar id="main-menubar" class="chromeclass-menubar">
  98.       <menu id="fileMenu"/>
  99.       <menu id="editMenu"/>
  100.  
  101.       <menu label="&viewMenu.label;" accesskey="&viewmenu.accesskey;">
  102.         <!-- id pulls in "Show Sidebar" item from sidebarOverlay -->
  103.         <menupopup id="menu_View_Popup">
  104.           <menu id="viewToolbar"/>
  105.           <menuseparator/>
  106.           <menu id = "composerCharsetMenu" />
  107.         </menupopup>
  108.       </menu>
  109.  
  110.       <menu id="insertMenuPlainText"/>
  111.  
  112.       <!-- tasks menu filled from tasksOverlay -->
  113.       <menu accesskey="t" id="tasksMenu"/>
  114.  
  115.       <!-- DEBUG only -->
  116.       <menu id="debugMenu" />
  117.       <!-- end DEBUG only -->
  118.  
  119.       <!-- help menu filled from globalOverlay -->
  120.       <menu accesskey="h" id="menu_Help"/>
  121.  
  122.       <spacer flex="1"/>
  123.     </menubar>
  124.  
  125.      <!-- toolbar filled out from editorOverlay -->
  126.     <toolbar class="toolbar-primary" id="EditToolbar" persist="collapsed">
  127.       <toolbarbutton id="newButton"/>
  128.       <toolbarbutton id="openButton"/>
  129.       <toolbarbutton id="saveButton"/>
  130.       <spacer class="separator-small"/>
  131.       <toolbarbutton id="printButton"/>
  132.       <toolbarbutton id="spellingButton"/>
  133.       <spacer flex="1"/>
  134.     </toolbar>    
  135.   </toolbox>
  136.  
  137.   <hbox id="sidebar-parent" flex="1">
  138.     <!-- From sidebarOverlay.xul -->
  139.     <vbox id="sidebar-box" class="chromeclass-extrachrome" hidden="true"/>
  140.     <splitter id="sidebar-splitter" class="chromeclass-extrachrome" hidden="true"/>
  141.     <vbox id="appcontent" flex="1">
  142.  
  143.       <editor editortype="text" type="content-primary" id="content-frame" src="about:blank" flex="1"/>
  144.  
  145.       <statusbar id="status-bar">
  146.         <statusbarpanel class="statusbarpanel-iconic" id="offline-status"/>
  147.         <statusbarpanel class="statusbarpanel-progress">
  148.           <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0">
  149.               <observes element="Editor:Throbber" attribute="busy"/>
  150.           </progressmeter>
  151.         </statusbarpanel>
  152.         <statusbarpanel id="statusText" label="&statusText.label;" flex="1" crop="right"/>
  153.       </statusbar>
  154.  
  155.     </vbox> <!-- appcontent -->
  156.   </hbox><!-- sidebar-parent -->
  157.  
  158.   <hbox id="taskbar" class="toolbox-bottom"/>
  159.  
  160. </window>
  161.