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 / EdImageMap.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  8KB  |  169 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.    - The contents of this file are subject to the Netscape Public
  4.    - License Version 1.1 (the "License"); you may not use this file
  5.    - except in compliance with the License. You may obtain a copy of
  6.    - the License at http://www.mozilla.org/NPL/
  7.    -  
  8.    - Software distributed under the License is distributed on an "AS
  9.    - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  10.    - implied. See the License for the specific language governing
  11.    - rights and limitations under the License.
  12.    -  
  13.    - The Original Code is Mozilla Communicator client code, released
  14.    - March 31, 1998.
  15.    - 
  16.    - The Initial Developer of the Original Code is Netscape
  17.    - Communications Corporation. Portions created by Netscape are
  18.    - Copyright (C) 1999-2000 Netscape Communications Corporation. All
  19.    - Rights Reserved.
  20.    - 
  21.    - Contributor(s): 
  22.     - Brian King (briano9@yahoo.com)
  23.     - Dan Haddix (dan6992@hotmail.com)
  24.   -->
  25.  
  26. <?xml-stylesheet href="chrome://editor/skin/EdImageMap.css" type="text/css"?> 
  27. <?xml-stylesheet href="chrome://editor/skin/" type="text/css"?>
  28.  
  29. <?xul-overlay href="chrome://editor/content/EdDialogOverlay.xul"?> 
  30.  
  31. <!DOCTYPE window SYSTEM "chrome://editor/locale/EditorImageMap.dtd">
  32.  
  33. <!-- dialog containing a control requiring initial setup -->
  34. <dialog title="&windowTitle.label;"
  35.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  36.     onload = "Startup()"
  37.     buttons="accept,cancel,help"
  38.     ondialogaccept="return finishMap();"
  39.     ondialogcancel="return onCancel();"
  40.     ondialoghelp="return doHelpButton();">
  41.  
  42.   <!-- Methods common to all editor dialogs -->
  43.   <script type="application/x-javascript" src="chrome://editor/content/editorUtilities.js"/>
  44.   <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js" />
  45.   <script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>
  46.  
  47.   <!-- Methods for Image Map only -->
  48.   <script type="application/x-javascript" src="chrome://editor/content/EdImageMap.js" />
  49.   <script type="application/x-javascript" src="chrome://editor/content/EdImageMapShapes.js" />
  50.  
  51.   <broadcaster id="args" value=""/>
  52.  
  53.   <keyset id="dialogKeys">
  54.  
  55.     <key id="deletespot"   keycode="VK_DELETE"   oncommand="deleteElement(currentElement)" />
  56.     <key id="nudgeup"      keycode="VK_UP"       oncommand="nudge(event, 'up')" />
  57.     <key id="nudgeleft"    keycode="VK_LEFT"     oncommand="nudge(event, 'left')" />
  58.     <key id="nudgedown"    keycode="VK_DOWN"     oncommand="nudge(event, 'down')" />
  59.     <key id="nudgeright"   keycode="VK_RIGHT"    oncommand="nudge(event, 'right')" />
  60.     <key id="mapclearkb"    key="&clear.accesskey;" command="Map:Clear"  modifiers="accel"/>
  61.     <key id="mapselectkb"   key="&selectall.accesskey;" command="Map:SelectAll"  modifiers="accel"/>
  62.     <key id="mapclosekb"    key="&close.accesskey;" command="Map:Close"  modifiers="accel"/>
  63.     <key id="mapcutkb"      key="&cut.accesskey;" command="Map:Cut"  modifiers="accel"/>
  64.     <key id="mapcopykb"     key="©.accesskey;" command="Map:Copy"  modifiers="accel"/>
  65.     <key id="mappastekb"    key="&paste.accesskey;" command="Map:Paste"  modifiers="accel"/>
  66.     <key id="mappropskb"    key="&props.accesskey;" command="Map:Props"  modifiers="accel"/>
  67.     <key id="maptbarkb"     key="&tbar.accesskey;" command="Map:ViewToolbar"  modifiers="accel"/>
  68.  
  69.   </keyset>
  70.  
  71.   <commandset id="commands">
  72.     <command id="Map:Clear" label="&clearCmd.label;" oncommand=""/>
  73.     <command id="Map:Close" label="&closeCmd.label;" oncommand="exitImageMap()"/>
  74.     <command id="Map:Copy" label="©Cmd.label;" disabled="true" oncommand="cutCopy()"/>
  75.     <command id="Map:Cut" label="&cutCmd.label;" disabled="true" oncommand="cutCopy(true)"/>
  76.     <command id="Map:Paste" label="&pasteCmd.label;" disabled="true" oncommand="paste()"/>
  77.     <command id="Map:Props" label="&propsCmd.label;" oncommand="hotSpotProps(currentElement[0])"/>
  78.     <command id="Map:ViewToolbar" label="&showhideTbarCmd.label;" oncommand="hideToolbar()"/>
  79.     <command id="Map:Apercent" label="&apercentCmd.label;" checked="true" oncommand="zoom('', 1)"/>
  80.     <command id="Map:Bpercent" label="&bpercentCmd.label;" oncommand="zoom('', 2)"/>
  81.     <command id="Map:Cpercent" label="&cpercentCmd.label;" oncommand="zoom('', 4)"/>
  82.     <command id="Map:ZoomIn" label="&zoominCmd.label;" oncommand="zoom('in')"/>
  83.     <command id="Map:ZoomOut" label="&zoomoutCmd.label;" disabled="true" oncommand="zoom('out')"/>
  84.     <command id="Map:SelectAll" label="&selectallCmd.label;" oncommand="selectAll()"/>
  85.   </commandset>
  86.  
  87.   <!-- Interim hack to transition from nsIXULWindowCallbacks/ShowWindowWithArgs -->
  88.   <broadcaster id="dialog.start" ready="false"/>
  89.   <observes element="dialog.start" attribute="ready" onchange="EditorStartup('html')"/>
  90.  
  91. <toolbox class="toolbox-top" id="ImageMapToolbox">    
  92. <menubar persist="collapsed">
  93.   <!-- File menu -->
  94.   <menu id="mapfileMenu" label="&mapfileMenu.label;" accesskey="&mapfilemenu.accesskey;">
  95.     <menupopup>
  96.       <menuitem accesskey="&mapfileclear.accesskey;" key="mapclearkb" command="Map:Clear"/>
  97.       <menuitem accesskey="&mapfileclose.accesskey;" key="mapclosekb" command="Map:Close"/>
  98.     </menupopup>
  99.   </menu>
  100.  
  101.   <!-- Edit menu -->
  102.   <menu id="mapeditMenu" label="&mapeditMenu.label;" accesskey="&mapeditmenu.accesskey;">
  103.     <menupopup>
  104.       <menuitem accesskey="&mapselectall.accesskey;" key="mapselectkb" command="Map:SelectAll"/>
  105.       <menuitem accesskey="&mapeditcut.accesskey;" key="mapcutkb" command="Map:Cut"/>
  106.       <menuitem accesskey="&mapeditcopy.accesskey;" key="mapcopykb" command="Map:Copy"/>
  107.       <menuitem accesskey="&mapeditpaste.accesskey;" key="mappastekb" command="Map:Paste"/>
  108.       <menuseparator/>
  109.       <menuitem accesskey="&mapeditprops.accesskey;" key="mappropskb" command="Map:Props"/>
  110.     </menupopup>
  111.   </menu>
  112.  
  113.   <!-- View menu -->
  114.   <menu id="mapviewMenu" label="&mapviewMenu.label;" accesskey="&mapviewmenu.accesskey;">
  115.     <menupopup>
  116.       <menuitem id="view_hidetoolbar" accesskey="&mapviewtbar.accesskey;" key="maptbarkb" command="Map:ViewToolbar"/>
  117.       <menu id="mapscalingMenu" label="&mapviewScale.label;" accesskey="&mapviewscale.accesskey;">
  118.         <menupopup>
  119.           <menuitem accesskey="&zoomone.accesskey;" key="" command="Map:Apercent"/>
  120.           <menuitem accesskey="&zoomtwo.accesskey;" key="" command="Map:Bpercent"/>
  121.           <menuitem accesskey="&zoomthree.accesskey;" key="" command="Map:Cpercent"/>
  122.         </menupopup>
  123.       </menu>
  124.     </menupopup>
  125.   </menu>
  126.  
  127.   <spacer flex="1"/>
  128. </menubar>
  129.  
  130.  
  131. <toolbar id="toolbar" class="toolbar-primary" persist="collapsed">
  132.   <button id="cutButton" class="button-toolbar-2 top" command="Map:Cut"/>
  133.   <button id="copyButton" class="button-toolbar-2 top" command="Map:Copy"/>
  134.   <button id="pasteButton" class="button-toolbar-2 top" command="Map:Paste"/>
  135.   <button id="zoomInButton" class="button-toolbar-2 top" command="Map:ZoomIn"/>
  136.   <button id="zoomOutButton" class="button-toolbar-2 top" command="Map:ZoomOut"/>
  137.   <spacer flex="1"/>
  138. </toolbar> 
  139. </toolbox>
  140.  
  141. <hbox id="outer-box" flex="1">
  142.  
  143.   <toolbar id="toolbox" orient="vertical">
  144.   <vbox>
  145.     <button id="pointerButton" class="tool" toggled="1" oncommand="changeTool(event, 'pointer');"/>
  146.     <button id="rectButton" class="tool" oncommand="changeTool(event, 'rect');"/>
  147.     <button id="cirButton" class="tool" oncommand="changeTool(event, 'cir');"/>
  148.     <button id="polyButton" class="tool" oncommand="changeTool(event, 'poly');"/>
  149.     <spacer flex="1"/>
  150.   </vbox>
  151.   </toolbar>
  152.  
  153.   <!-- Content Area -->
  154.   <iframe id="content" src="EdImageMapPage.html" flex="1"
  155.     onmousedown="top.downMouse(event)"
  156.     onmouseup="top.upMouse(event)" 
  157.     onmousemove="top.moveMouse(event)"
  158.     onclick="top.clickMouse(event)" 
  159.   />
  160.  
  161. </hbox>
  162.  
  163.   <!-- from EdDialogOverlay -->
  164.   <!-- not sure if this is needed, but put it in just in case 
  165.   <hbox id="AdvancedEditButton"/> -->
  166.  
  167.   <separator class="groove"/>
  168. </dialog>
  169.