gecko-dev/editor/ui/dialogs/content/EdImageMap.xul
2000-01-25 15:44:28 +00:00

181 lines
7.3 KiB
XML

<?xml version="1.0"?>
<!--
- 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-2000 Netscape Communications Corporation. All
- Rights Reserved.
-
- Contributor(s):
- Brian King
- Dan Haddix (dan6992@hotmail.com)
-->
<?xml-stylesheet href="chrome://editor/skin/EdImageMap.css" type="text/css"?>
<!-- <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?> -->
<?xml-stylesheet href="chrome://editor/skin/" type="text/css"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
<?xul-overlay href="chrome://editor/content/EdDialogOverlay.xul"?>
<!DOCTYPE window SYSTEM "chrome://editor/locale/EditorImageMap.dtd">
<!-- dialog containing a control requiring initial setup -->
<window class="dialog" title="&windowTitle.label;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/TR/REC-html40"
onload = "Startup()"
onunload="//finishMap();"
align="vertical"
width="640" height="480">
<!-- Methods common to all editor dialogs -->
<html:script language="JavaScript" src="chrome://editor/content/EdDialogCommon.js" />
<html:script language="JavaScript" src="chrome://global/content/dialogOverlay.js" />
<!-- Methods for Image Map only -->
<html:script language="JavaScript" src="chrome://editor/content/EdImageMap.js" />
<html:script language="JavaScript" src="chrome://editor/content/EdImageMapShapes.js" />
<broadcaster id="args" value=""/>
<keyset id="defaultKeySet">
<key id="mapclearkb" xulkey="true" key="a" observes="Map:Clear" />
<key id="mapclosekb" xulkey="true" key="l" observes="Map:Close" />
<key id="mapcutkb" xulkey="true" key="x" observes="Map:Cut" />
<key id="mapcopykb" xulkey="true" key="c" observes="Map:Copy" />
<key id="mappastekb" xulkey="true" key="v" observes="Map:Paste" />
<key id="mappropskb" xulkey="true" key="p" observes="Map:Props" />
<key id="maptbarkb" xulkey="true" key="t" observes="Map:ViewToolbar" />
</keyset>
<broadcaster id="Map:Clear" value="&clearCmd.label;" oncommand=""/>
<broadcaster id="Map:Close" value="&closeCmd.label;" oncommand="exitImageMap()"/>
<broadcaster id="Map:Cut" value="&cutCmd.label;" oncommand=""/>
<broadcaster id="Map:Copy" value="&copyCmd.label;" oncommand=""/>
<broadcaster id="Map:Paste" value="&pasteCmd.label;" oncommand=""/>
<broadcaster id="Map:Props" value="&propsCmd.label;" oncommand="hotSpotProps(currentElement[0])"/>
<broadcaster id="Map:ViewToolbar" value="&showhideTbarCmd.label;" oncommand="hideToolbar()"/>
<broadcaster id="Map:Apercent" value="&apercentCmd.label;" oncommand=""/>
<broadcaster id="Map:Bpercent" value="&bpercentCmd.label;" oncommand=""/>
<broadcaster id="Map:Cpercent" value="&cpercentCmd.label;" oncommand=""/>
<broadcaster id="Map:Contrast" value="&contrastCmd.label;" onaction=""/>
<broadcaster id="Map:About" value="&aboutCmd.label;" onaction=""/>
<!-- Interim hack to transition from nsIXULWindowCallbacks/ShowWindowWithArgs -->
<broadcaster id="dialog.start" ready="false"/>
<observes element="dialog.start" attribute="ready" onchange="EditorStartup('html')"/>
<menubar>
<!-- File menu -->
<menu id="mapfileMenu" value="&mapfileMenu.label;" accesskey="&mapfilemenu.accesskey;">
<menupopup>
<menuitem accesskey="&mapfileclear.accesskey;" key="mapclearkb" observes="Map:Clear"/>
<menuitem accesskey="&mapfileclose.accesskey;" key="mapclosekb" observes="Map:Close"/>
</menupopup>
</menu>
<!-- Edit menu -->
<menu id="mapeditMenu" value="&mapeditMenu.label;" accesskey="&mapeditmenu.accesskey;">
<menupopup>
<menuitem accesskey="&mapeditcut.accesskey;" key="mapcutkb" observes="Map:Cut"/>
<menuitem accesskey="&mapeditcopy.accesskey;" key="mapcopykb" observes="Map:Copy"/>
<menuitem accesskey="&mapeditpaste.accesskey;" key="mappastekb" observes="Map:Paste"/>
<menuseparator/>
<menuitem accesskey="&mapeditprops.accesskey;" key="mappropskb" observes="Map:Props"/>
</menupopup>
</menu>
<!-- View menu -->
<menu id="mapviewMenu" value="&mapviewMenu.label;" accesskey="&mapviewmenu.accesskey;">
<menupopup>
<menuitem id="view_hidetoolbar" accesskey="&mapviewtbar.accesskey;" key="maptbarkb" observes="Map:ViewToolbar"/>
<menu id="mapscalingMenu" value="&mapviewScale.label;" accesskey="&mapviewscale.accesskey;">
<menupopup>
<menuitem accesskey="&zoomone.accesskey;" key="" observes="Map:Apercent"/>
<menuitem accesskey="&zoomtwo.accesskey;" key="" observes="Map:Bpercent"/>
<menuitem accesskey="&zoomthree.accesskey;" key="" observes="Map:Cpercent"/>
</menupopup>
</menu>
<menuseparator/>
<menuitem accesskey="&contrast.accesskey;" observes="Map:Contrast" />
</menupopup>
</menu>
<menu id="maphelpMenu" value="&maphelpMenu.label;" accesskey="&maphelpmenu.accesskey;">
<menupopup>
<menuitem accesskey="&about.accesskey;" observes="Map:About"/>
</menupopup>
</menu>
<spring flex="100%"/>
</menubar>
<toolbar id="toolbar" class="standard" persist="collapsed">
<titledbutton id="cutButton" class="button28" onclick=""/>
<titledbutton id="copyButton" class="button28" onclick=""/>
<titledbutton id="pasteButton" class="button28" onclick=""/>
<titledbutton id="zoomInButton" class="button28" onclick=""/>
<titledbutton id="zoomOutButton" class="button28" onclick=""/>
<titledbutton id="contrastButton" class="button28" toggled="0" onclick="highContrast()"/>
<spring flex="100%"/>
</toolbar>
<box align="horizontal" flex="100">
<toolbar id="toolbox" align="vertical">
<titledbutton id="pointer" class="other28" onclick="changeTool(event, 'pointer')"/>
<titledbutton id="rect" class="other28" onclick="changeTool(event, 'rect')"/>
<titledbutton id="cir" class="other28" onclick="changeTool(event, 'cir')"/>
<titledbutton id="poly" class="other28" onclick="changeTool(event, 'poly')"/>
<spring flex="100%"/>
</toolbar>
<!-- Content Area -->
<html:iframe id="content" src="EdImageMapPage.html" flex="100%"/>
</box>
<!-- from EdDialogOverlay -->
<!-- not sure if this is needed, but put it in just in case
<box id="AdvancedEditButton"/> -->
<box align="horizontal">
<!-- Cheap hack untill I get key events hooked up -->
<titledbutton
class = "push dialog"
id = "DelButton"
value="&delSpotCmd.label;"
onclick="deleteElement(currentElement)"/>
<spring flex="100%"/>
<!-- from global dialogOverlay -->
<box id="okCancelButtons"/>
</box>
</window>