home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / browser.xpi / bin / chrome / comm.jar / content / editor / EdImageMap.xul < prev    next >
Encoding:
Extensible Markup Language  |  2001-07-09  |  8.1 KB  |  175 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.  
  28. <?xml-stylesheet href="chrome://editor/skin/" type="text/css"?>
  29.  
  30. <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
  31. <?xul-overlay href="chrome://editor/content/EdDialogOverlay.xul"?> 
  32.  
  33. <!DOCTYPE window SYSTEM "chrome://editor/locale/EditorImageMap.dtd">
  34.  
  35. <!-- dialog containing a control requiring initial setup -->
  36. <window title="&windowTitle.label;"
  37.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  38.     xmlns:html="http://www.w3.org/1999/xhtml"
  39.     onload = "Startup()"
  40.     onunload=""
  41.     orient="vertical"
  42.     width="640" height="480">
  43.  
  44.   <!-- Methods common to all editor dialogs -->
  45.   <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js" />
  46.   <script type="application/x-javascript" src="chrome://global/content/dialogOverlay.js" />
  47.   <script type="application/x-javascript" src="chrome://help/content/help.js"/>
  48.  
  49.   <!-- Methods for Image Map only -->
  50.   <script type="application/x-javascript" src="chrome://editor/content/EdImageMap.js" />
  51.   <script type="application/x-javascript" src="chrome://editor/content/EdImageMapShapes.js" />
  52.  
  53.   <broadcaster id="args" value=""/>
  54.  
  55.   <keyset id="dialogKeys">
  56.  
  57.     <key id="deletespot"   keycode="VK_DELETE"   oncommand="deleteElement(currentElement)" />
  58.     <key id="nudgeup"      keycode="VK_UP"       oncommand="nudge(event, 'up')" />
  59.     <key id="nudgeleft"    keycode="VK_LEFT"     oncommand="nudge(event, 'left')" />
  60.     <key id="nudgedown"    keycode="VK_DOWN"     oncommand="nudge(event, 'down')" />
  61.     <key id="nudgeright"   keycode="VK_RIGHT"    oncommand="nudge(event, 'right')" />
  62.     <key id="mapclearkb"    key="&clear.accesskey;" command="Map:Clear"  modifiers="accel"/>
  63.     <key id="mapselectkb"   key="&selectall.accesskey;" command="Map:SelectAll"  modifiers="accel"/>
  64.     <key id="mapclosekb"    key="&close.accesskey;" command="Map:Close"  modifiers="accel"/>
  65.     <key id="mapcutkb"      key="&cut.accesskey;" command="Map:Cut"  modifiers="accel"/>
  66.     <key id="mapcopykb"     key="©.accesskey;" command="Map:Copy"  modifiers="accel"/>
  67.     <key id="mappastekb"    key="&paste.accesskey;" command="Map:Paste"  modifiers="accel"/>
  68.     <key id="mappropskb"    key="&props.accesskey;" command="Map:Props"  modifiers="accel"/>
  69.     <key id="maptbarkb"     key="&tbar.accesskey;" command="Map:ViewToolbar"  modifiers="accel"/>
  70.  
  71.   </keyset>
  72.  
  73.   <commandset id="commands">
  74.     <command id="Map:Clear" label="&clearCmd.label;" oncommand=""/>
  75.     <command id="Map:Close" label="&closeCmd.label;" oncommand="exitImageMap()"/>
  76.     <command id="Map:Copy" label="©Cmd.label;" disabled="true" oncommand="cutCopy()"/>
  77.     <command id="Map:Cut" label="&cutCmd.label;" disabled="true" oncommand="cutCopy(true)"/>
  78.     <command id="Map:Paste" label="&pasteCmd.label;" disabled="true" oncommand="paste()"/>
  79.     <command id="Map:Props" label="&propsCmd.label;" oncommand="hotSpotProps(currentElement[0])"/>
  80.     <command id="Map:ViewToolbar" label="&showhideTbarCmd.label;" oncommand="hideToolbar()"/>
  81.     <command id="Map:Apercent" label="&apercentCmd.label;" checked="true" oncommand="zoom('', 1)"/>
  82.     <command id="Map:Bpercent" label="&bpercentCmd.label;" oncommand="zoom('', 2)"/>
  83.     <command id="Map:Cpercent" label="&cpercentCmd.label;" oncommand="zoom('', 4)"/>
  84.     <command id="Map:ZoomIn" label="&zoominCmd.label;" oncommand="zoom('in')"/>
  85.     <command id="Map:ZoomOut" label="&zoomoutCmd.label;" disabled="true" oncommand="zoom('out')"/>
  86.     <command id="Map:SelectAll" label="&selectallCmd.label;" oncommand="selectAll()"/>
  87.   </commandset>
  88.  
  89.   <!-- Interim hack to transition from nsIXULWindowCallbacks/ShowWindowWithArgs -->
  90.   <broadcaster id="dialog.start" ready="false"/>
  91.   <observes element="dialog.start" attribute="ready" onchange="EditorStartup('html')"/>
  92.  
  93. <toolbox class="toolbox-top" id="ImageMapToolbox">    
  94. <menubar persist="collapsed">
  95.   <!-- File menu -->
  96.   <menu id="mapfileMenu" label="&mapfileMenu.label;" accesskey="&mapfilemenu.accesskey;">
  97.     <menupopup>
  98.       <menuitem accesskey="&mapfileclear.accesskey;" key="mapclearkb" command="Map:Clear"/>
  99.       <menuitem accesskey="&mapfileclose.accesskey;" key="mapclosekb" command="Map:Close"/>
  100.     </menupopup>
  101.   </menu>
  102.  
  103.   <!-- Edit menu -->
  104.   <menu id="mapeditMenu" label="&mapeditMenu.label;" accesskey="&mapeditmenu.accesskey;">
  105.     <menupopup>
  106.       <menuitem accesskey="&mapselectall.accesskey;" key="mapselectkb" command="Map:SelectAll"/>
  107.       <menuitem accesskey="&mapeditcut.accesskey;" key="mapcutkb" command="Map:Cut"/>
  108.       <menuitem accesskey="&mapeditcopy.accesskey;" key="mapcopykb" command="Map:Copy"/>
  109.       <menuitem accesskey="&mapeditpaste.accesskey;" key="mappastekb" command="Map:Paste"/>
  110.       <menuseparator/>
  111.       <menuitem accesskey="&mapeditprops.accesskey;" key="mappropskb" command="Map:Props"/>
  112.     </menupopup>
  113.   </menu>
  114.  
  115.   <!-- View menu -->
  116.   <menu id="mapviewMenu" label="&mapviewMenu.label;" accesskey="&mapviewmenu.accesskey;">
  117.     <menupopup>
  118.       <menuitem id="view_hidetoolbar" accesskey="&mapviewtbar.accesskey;" key="maptbarkb" command="Map:ViewToolbar"/>
  119.       <menu id="mapscalingMenu" label="&mapviewScale.label;" accesskey="&mapviewscale.accesskey;">
  120.         <menupopup>
  121.           <menuitem accesskey="&zoomone.accesskey;" key="" command="Map:Apercent"/>
  122.           <menuitem accesskey="&zoomtwo.accesskey;" key="" command="Map:Bpercent"/>
  123.           <menuitem accesskey="&zoomthree.accesskey;" key="" command="Map:Cpercent"/>
  124.         </menupopup>
  125.       </menu>
  126.     </menupopup>
  127.   </menu>
  128.  
  129.   <spring flex="1"/>
  130. </menubar>
  131.  
  132.  
  133. <toolbar id="toolbar" class="toolbar-primary" persist="collapsed">
  134.   <button id="cutButton" class="button-toolbar-2 top" command="Map:Cut"/>
  135.   <button id="copyButton" class="button-toolbar-2 top" command="Map:Copy"/>
  136.   <button id="pasteButton" class="button-toolbar-2 top" command="Map:Paste"/>
  137.   <button id="zoomInButton" class="button-toolbar-2 top" command="Map:ZoomIn"/>
  138.   <button id="zoomOutButton" class="button-toolbar-2 top" command="Map:ZoomOut"/>
  139.   <spring flex="1"/>
  140. </toolbar> 
  141. </toolbox>
  142.  
  143. <hbox id="outer-box" flex="1">
  144.  
  145.   <toolbar id="toolbox" orient="vertical">
  146.   <vbox>
  147.     <button id="pointerButton" class="tool" toggled="1" oncommand="changeTool(event, 'pointer');"/>
  148.     <button id="rectButton" class="tool" oncommand="changeTool(event, 'rect');"/>
  149.     <button id="cirButton" class="tool" oncommand="changeTool(event, 'cir');"/>
  150.     <button id="polyButton" class="tool" oncommand="changeTool(event, 'poly');"/>
  151.     <spring flex="1"/>
  152.   </vbox>
  153.   </toolbar>
  154.  
  155.   <!-- Content Area -->
  156.   <iframe id="content" src="EdImageMapPage.html" flex="1"
  157.     onmousedown="top.downMouse(event)"
  158.     onmouseup="top.upMouse(event)" 
  159.     onmousemove="top.moveMouse(event)"
  160.     onclick="top.clickMouse(event)" 
  161.   />
  162.  
  163. </hbox>
  164.  
  165.   <!-- from EdDialogOverlay -->
  166.   <!-- not sure if this is needed, but put it in just in case 
  167.   <hbox id="AdvancedEditButton"/> -->
  168.  
  169.   <separator class="groove"/>
  170.  
  171.   <!-- from global dialogOverlay -->
  172.   <hbox id="okCancelHelpButtonsRight"/>
  173.  
  174. </window>
  175.