home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 December / PCWorld_2006-12_cd.bin / komunikace / netscape / nsb-install-8-1-2.exe / chrome / aim.jar / content / aim / IMConverseOverlay.xul < prev    next >
Extensible Markup Language  |  2006-01-06  |  19KB  |  379 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://aim/content/editorFormatToolbar.css" type="text/css"?>
  4. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  5. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  6. <?xul-overlay href="chrome://editor/content/editorOverlay.xul"?>
  7. <?xul-overlay href="chrome://editor/content/editorSmileyOverlay.xul"?>
  8.  
  9. <!DOCTYPE window [
  10. <!ENTITY % imDTD SYSTEM "chrome://aim/locale/IM.dtd" >
  11. %imDTD;
  12. <!ENTITY % cmdDTD SYSTEM "chrome://aim/locale/contentAreaCommands.dtd" >
  13. %cmdDTD;
  14. <!ENTITY % ednavDTD SYSTEM "chrome://aim/locale/editorNavigatorOverlay.dtd" >
  15. %ednavDTD;
  16. <!ENTITY % styleDTD SYSTEM "chrome://communicator/locale/pref/pref-IM_style.dtd" >
  17. %styleDTD;
  18. ]>
  19.  
  20. <overlay id="ConverseOrg"
  21.         xmlns:html="http://www.w3.org/1999/xhtml"
  22.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  23.         onload="setStyles()"
  24.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  25.  
  26.   <broadcaster id="IM:WarningPercent" label="" />
  27.  
  28.  
  29. <commandset id="converseOverlayMenuItems">
  30.    <command id="cmd_AddToBuddyList"  oncommand="cmdAddABuddy()"/>
  31.    <command id="cmd_Block"  oncommand="cmdPeopleBlock()"/>
  32.    <command id="cmd_Unblock" oncommand="cmdPeopleUnblock()"/>
  33.    <command id="cmd_Warn"   oncommand="cmdPeopleWarn()"/>
  34.    <command id="cmd_ShowTimeStamp"   oncommand="cmdViewTimestamp()"/>
  35. </commandset>
  36.  
  37. <commandset id="aimContextMenuItems">
  38.   <command id="cmd_copyLink"/>
  39.   <command id="cmd_copyImageLocation"/>
  40. </commandset>
  41.  
  42.   <keyset id="defaultKeySet"/>
  43.   <keyset id="dialogKeys"/>
  44.   <keyset id="editorKeys"/>
  45.  
  46.   <keyset id="converseOverlayMenuKeys">
  47.          <key id="key_peopleAddToBuddyList"  key="&peopleAddToBuddyListCmd.key;" command="cmd_AddToBuddyList" modifiers="accel,shift"/>
  48.          <key id="key_peopleBlock"  key="&peopleBlockCmd.key;" command="cmd_Block" modifiers="accel,shift"/>
  49.          <key id="key_peopleUnblock"  key="&peopleUnblockCmd.key;" command="cmd_Unblock" modifiers="accel,shift"/>
  50.          <key id="key_peopleWarn"  key="&peopleWarnCmd.key;" command="cmd_Warn" modifiers="accel,shift"/>
  51.          <key id="key_showTimeStamp"  keycode="&miTimestamp.key;" command="cmd_ShowTimeStamp" />
  52.   </keyset>
  53.  
  54.   <script type="application/x-javascript">
  55.   <![CDATA[
  56.     var gAimLogContextMenu = null;
  57.   ]]>
  58.   </script>
  59.  
  60.  
  61.    <!-- S. Lang Feb 10, 2005 -->
  62.   <script type="application/x-javascript" src="chrome://aim/content/aimHelpers.js"/>
  63.   
  64.   <script type="application/x-javascript" src="chrome://communicator/content/nsContextMenu.js"/>
  65.   <script type="application/x-javascript" src="chrome://browser/content/contentAreaUtils.js"/>
  66.   <script type="application/x-javascript" src="chrome://browser/content/utilityOverlay.js"/>
  67.  
  68.   <script type="application/x-javascript" src="chrome://browser/content/bookmarks/bookmarks.js"/>
  69.   
  70.   <!-- for edit this link in composer--> 
  71.   <script type="application/x-javascript" src="chrome://editor/content/editorApplicationOverlay.js"/>
  72.  
  73.   <!-- Color pickers from the editorOverlay.xul -->
  74.   <popupset id="popup_set">
  75.     <popup id="TextColorPopup"/>
  76.     <popup id="BackColorPopup"/>
  77.   </popupset>
  78.  
  79.   <popupset id="aTooltipSet"/>
  80.  
  81.   <popupset id="aimContentContextPopup">
  82.   
  83.     <popup id="aimLogContext"
  84.       onpopupshowing="gAimLogContextMenu = new nsContextMenu(this); return initializeIMLogContextPane(gAimLogContextMenu);"
  85.       onpopuphiding="gAimLogContextMenu.onDestroy(); gAimLogContextMenu = null;">
  86.  
  87.       <!-- Open ==================================== -->
  88.       <menuitem id="context-openlinkintab"
  89.                  label="&openLinkInWindowCmd.label;"
  90.                  accesskey="&openLinkInWindowCmd.accesskey;"
  91.                  oncommand="openUILinkIM(gAimLogContextMenu.linkURL(), 'default');"/>
  92.  
  93.       <menuitem id="context-openlink"
  94.                  label="&openLinkCmd.label;"
  95.                  accesskey="&openLinkCmd.accesskey;"
  96.                  oncommand="openUILinkIM(gAimLogContextMenu.linkURL(), 'window');"/>
  97.   
  98.       <menuseparator id="context-sep-open"/>
  99.  
  100.        <!-- Misc ==================================== -->
  101.        <menuitem id="context-bookmarklink"
  102.                  label="&bookmarkLinkCmd.label;"
  103.                  accesskey="&bookmarkLinkCmd.accesskey;"
  104.                  oncommand="BookmarksUtils.addBookmark(gAimLogContextMenu.linkURL(), gAimLogContextMenu.linkText(),undefined,true);"/>
  105.        <menuitem id="context-copylink"
  106.                   label="©LinkCmd.label;"
  107.                   accesskey="©LinkCmd.accesskey;"
  108.                   oncommand="goDoCommand('cmd_copyLink')" />
  109.        <menuseparator id="context-sep-bookmark"/>
  110.  
  111.        <!-- Save ==================================== -->
  112.        <menuitem id="context-savelink"
  113.                  label="&saveLinkCmd.label;"
  114.                  accesskey="&saveLinkCmd.accesskey;"
  115.                  oncommand="gAimLogContextMenu.saveLink();"/>
  116.        <menuitem id="context-saveimage"
  117.                  accesskey="&saveImageCmd.accesskey;"
  118.                  oncommand="gAimLogContextMenu.saveImage();"/>       
  119.        <menuseparator id="context-sep-save"/>
  120.  
  121.       <!-- Clipboard =============================== -->
  122.       <menuitem id="context-selectall"
  123.                  label="&selectAllCmd.label;"
  124.                  accesskey="&selectAllCmd.accesskey;"
  125.                  command="cmd_selectAll"/>
  126.       <menuitem id="context-copy"
  127.                  label="©Cmd.label;"
  128.                  accesskey="©Cmd.accesskey;"
  129.                  command="cmd_copy"/>
  130.       <menuitem id="context-paste"
  131.                 label="&pasteCmd.label;"
  132.                 accesskey="&pasteCmd.accesskey;"
  133.                 command="cmd_paste"/>
  134.        <menuitem id="context-copyimage"
  135.                  label="©ImageCmd.label;"
  136.                  accesskey="©ImageCmd.accesskey;"
  137.                  command="cmd_copyImageLocation"/>   
  138.        
  139.     </popup>
  140.   
  141.     <popup id="aimContentContext">
  142.       <menuitem id="menu_undo_cm"   label="&undoCmd.label;" accesskey="&undo.accesskey;"  command="cmd_undo"/>
  143.       <menuitem id="menu_redo_cm"   label="&redoCmd.label;" accesskey="&redo.accesskey;"  command="cmd_redo"/>
  144.       <menuseparator id="undoredo-separator"/>
  145.       <menuitem id="menu_cut_cm"    label="&cutCmd.label;"    accesskey="&cut.accesskey;"    command="cmd_cut"/>
  146.       <menuitem id="menu_copy_cm"   label="©Cmd.label;"   accesskey="©.accesskey;"   command="cmd_copy"/>
  147.       <menuitem id="menu_paste_cm"  label="&pasteCmd.label;"  accesskey="&paste.accesskey;"  command="cmd_paste"/>
  148.       <menuitem id="menu_delete_cm" label="&deleteCmd.label;" accesskey="&delete.accesskey;" command="cmd_delete"/>
  149.       <menuseparator id="edit-separator"/>
  150.       <menuitem id="menu_selectAll_cm" label="&selectAllCmd.label;" accesskey="&selectall.accesskey;" command="cmd_selectAll"/>
  151.     </popup>
  152.   </popupset>
  153.  
  154.   <!-- Toolbar for the Window -->
  155.  
  156.   <toolbox id="main_toolbox">
  157.   <!-- Menu for the Window -->
  158.     <menubar id="IMMenuBar">
  159.       <!-- File Menu -->
  160.       <menu id="menu_File">
  161.         <menupopup id="menu_FilePopup">
  162.           <!-- New popup (Overlay Additions) -->
  163.           <menu id="menu_New">
  164.             <menupopup>
  165.               <menuitem id="menu_newNavigator"/>
  166.               <menuitem id="menu_newMsg" label="&newIMCmdSub.label;" icqlabel="&newIMCmdSub_ICQ.label;" oncommand="aimIMInvokeIMForm(null, null)" key="key_newIM" accesskey="&IMCmd.accesskey;" command="cmd_IM"/>
  167.             </menupopup>
  168.           </menu>
  169.           <menuitem name="miSend" id="miSend" label="&sendButton.label;" accesskey="&IMSend.key;" 
  170.             command="cmd_Send" key="key_sendIM" modifiers="alt"/>
  171.           <menuseparator/>
  172.           <menuitem accesskey="&fileSaveCmd.accesskey;" label="&fileSaveCmd.label;" oncommand="cmdFileSave()"/>
  173.           <menuitem id="menu_close"/>
  174.           <menuseparator/>
  175.           <!-- page setup gets inserted here -->
  176.           <menuitem id="printMenuItem" accesskey="&filePrintCmd.accesskey;" label="&filePrintCmd.label;" command="cmd_print"/>
  177.         </menupopup>
  178.       </menu>
  179.   
  180.       <!-- Edit Menu -->
  181.       <menu id="editMenu">
  182.         <!-- Filled by editorOverlay.xul -->
  183.       </menu>
  184.        
  185.       <!-- View Menu -->
  186.       <menu accesskey="&viewMenu.accesskey;" label="&viewMenu.label;">
  187.         <menupopup id="menu_View_Popup" onpopupshowing="cmdCreateTimestamp()">
  188.           <menu label="&viewToolbarsMenu.label;" accesskey="&viewToolbarsMenu.accesskey;">
  189.             <menupopup>
  190.               <menuitem id="composetoolbarmenu" label="&viewToolbarsButtonsCmd.label;" accesskey="&viewToolbarsButtonsCmd.accesskey;" command="cmdViewToolbarsButtons" icqlabel="&viewToolbarsButtonsCmd_ICQ.label;">
  191.                 <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  192.               </menuitem>
  193.               <menuitem label="&viewToolbarsComposeCmd.label;" accesskey="&viewToolbarsComposeCmd.accesskey;" command="cmdViewToolbarsCompose" class="Hide-in-Icq">
  194.                 <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  195.               </menuitem>
  196.             </menupopup>
  197.           </menu>
  198.           <menuseparator />
  199.           <menuitem name="miTimestamp" id="miTimestamp" label="" accesskey="&miTimestamp.accesskey;" 
  200.           command="cmd_ShowTimeStamp" key="key_showTimeStamp"/>
  201.         </menupopup>
  202.       </menu>
  203.  
  204.       <!-- Insert Menu. Filled by editorOverlay.xul -->
  205.       <menu id="insertMenu" />
  206.  
  207.       <!-- Format Menu -->
  208.       <menu id="formatMenu" label="&formatMenu.label;" accesskey="&formatMenu.accesskey;" command="cmd_insert">
  209.         <menupopup id="formatMenuPopup">
  210.           <menu id="tableMenu"/>
  211.             <menuseparator/>
  212.             <menuitem id="objectProperties"/>
  213.             <menuitem id="colorsAndBackground"/>
  214.           </menupopup>
  215.         <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  216.       </menu>
  217.  
  218.       <!-- People Menu -->
  219.       <menu accesskey="&peopleMenu.accesskey;" label="&peopleMenu.label;">
  220.         <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  221.         <menupopup>
  222.           <!-- <menuitem label="&peopleSendChatInvitationCmd.label;" oncommand="cmdPeopleSendChatInvitation()"/> -->
  223.           <menuitem id="menu_peopleadd" label="&peopleAddToBuddyListCmd.label;" accesskey="&peopleAddToBuddyListCmd.accesskey;" oncommand="cmdAddABuddy()" icqlabel="&peopleAddToBuddyListCmd_ICQ.label;">
  224.             <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  225.           </menuitem>
  226.           <menuitem label="&peopleWarnCmd.label;" accesskey="&peopleWarnCmd.accesskey;"  class="Hide-in-Icq" oncommand="cmdPeopleWarn()">
  227.             <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  228.           </menuitem>
  229.           <menuitem label="&peopleBlockCmd.label;" accesskey="&peopleBlockCmd.accesskey;"  class="Hide-in-Icq" oncommand="cmdPeopleBlock()">
  230.             <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  231.           </menuitem>
  232.           <menuitem label="&peopleUnblockCmd.label;" accesskey="&peopleUnblockCmd.accesskey;"  class="Hide-in-Icq" oncommand="cmdPeopleUnblock()">
  233.             <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  234.           </menuitem>  
  235. <!--                   
  236.           <menuitem label="&selectbi.label;" accesskey="&selectbi.accesskey;"  class="Hide-in-Icq"  
  237.                  oncommand="goAIMPreferences('instantmessenger', 'chrome://aim/content/pref-IM_buddyicon.xul', 'biinstantmessenger');">  
  238.          
  239.                oncommand="window.open('chrome://aim/content/pref-IM_buddyicon.xul',
  240.                                    'Buddy Icon',
  241.                                    'chrome,titlebar,dialog=yes' );"> 
  242.                oncommand="goPreferences('instantmessenger', 'chrome://aim/content/pref-IM_instantmessage.xul', 'biinstantmessenger');"> 
  243.             <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  244.           </menuitem>
  245. -->          
  246.           <menuitem label="&sendfile.label;" accesskey="&sendfile.accesskey;"  class="Hide-in-Icq"
  247.             command="cmd_sendFile">
  248.             <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  249.           </menuitem>
  250.         </menupopup>
  251.       </menu>
  252.  
  253.   
  254.       <menu accesskey="&taskMenu.accesskey;" id="tasksMenu"/>
  255.       
  256.       <menu id="windowMenu"/>
  257.       
  258.       <menu accesskey="&helpMenu.accesskey;" id="menu_Help"/>
  259.       <spacer flex="1"/>
  260.       <label id="statusBar" class="Hide-in-Icq" observes="IM:WarningPercent">
  261.         <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  262.       </label>
  263.     </menubar>
  264.  
  265.     <toolbar id="buttonToolbar" class="toolbar-primary">
  266.       <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  267.       <hbox id="toolbar_button_box">
  268.         <toolbarbutton id="tbAddBuddy" label="&addbuddyButton.label;" icqlabel="&addbuddyButton_ICQ.label;" class="toolbarbutton-1" oncommand="cmdAddABuddy()" tooltip="aTooltip"  tooltiptext="&addbuddyButton.tooltip;" icqtooltip="&addbuddyButton_ICQ.tooltip;">
  269.           <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  270.         </toolbarbutton>
  271.         <toolbarbutton id="tbWarn" label="&warnButton.label;" class="toolbarbutton-1 Hide-in-Icq" oncommand="cmdPeopleWarn()" tooltip="aTooltip"  tooltiptext="&warnButton.tooltip;">
  272.           <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  273.         </toolbarbutton>
  274.         <toolbarbutton id="tbBlock" label="&blockButton.label;" icqlabel="&blockButton_ICQ.label;" class="toolbarbutton-1" oncommand="cmdPeopleBlock()" tooltip="aTooltip"  tooltiptext="&blockButton.tooltip;" icqtooltip="&blockButton_ICQ.tooltip;">
  275.           <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  276.         </toolbarbutton>             
  277.         <toolbarbutton id="imPrint" label="&btnPrint.label;" class="toolbarbutton-1" 
  278.           command="cmd_print"  tooltip="aTooltip"  tooltiptext="&printButton.tooltip;">
  279.           <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  280.         </toolbarbutton>                
  281.         <spacer flex="1"/>
  282.         <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  283.       </hbox>
  284.       <hbox id="throbber-box" autostretch="never">
  285.         <button id="navigator-throbber" oncommand="AimgoClickThrobber('&throbber.url;')" tooltip="aTooltip"  tooltiptext="&throbber.tooltip;"/>
  286.       </hbox>
  287.     </toolbar>
  288.     
  289.     <toolbar id="ScreenNameOrg" tbautostretch="never">
  290.       <label value="&fldScreenName.label;" control="fldScreenName"/>
  291.       <textbox name="fldScreenName" id="fldScreenName" flex="1" class="toolbar" oncommand="converseKeyListener()" onkeypress="toKeyPress(event);"/>
  292.       <label id="icqDisplayFields" value="&fldDisplayName.label;" control="fldDisplayName" hidden="true"/>
  293.       <textbox name="fldDisplayName" id="fldDisplayName" flex="1" class="toolbar" disabled="true" value="" hidden="true"/>
  294.  
  295.     </toolbar>
  296.   </toolbox>
  297.  
  298.   <vbox id="ConverseOrg" flex="1">
  299.     <!-- Main Content Area of the Window -->
  300.     <hbox id="ContentOrg" flex="1">
  301.       <!-- Main IM Area -->
  302.       <vbox flex="1">
  303.         <!-- IM Logging Window -->
  304.         <vbox id="LogOrg" flex="1" name="LogOrg">
  305.           <iframe onfocus="logWndFocus(true);" onblur="logWndFocus(false);" 
  306.           context="aimLogContext"
  307.           type="content" id="LogWnd" name="LogWnd" flex="1" src="about:blank"/>
  308.         </vbox>  
  309.     
  310.         <splitter id="ComposeSplitter" collapse="none" persist="state"/>
  311.  
  312.         <!-- IM Composing Window -->
  313.         <vbox id="ComposeOrg" flex="1">
  314.           <toolbox id="imComposeToolbox" >
  315.             <!-- These toolbar items get filled out from the editorOverlay -->
  316.             <toolbar id="FormatToolbar" persist="collapsed" tbautostretch="never" class="Hide-in-Icq">
  317.               <menulist class="toolbar-focustarget" id="FontFaceSelectStyle" crop="right">
  318.                 <menupopup oncommand="changeFont();" id="FontFacePopupStyle">
  319.                   <menuitem label="&fontHelveticaFont.label;" value="Helvetica, foo, sans-serif"/>
  320.                   <menuitem label="&fontTimes.label;"         value="Times New Roman, Times, serif"/>
  321.                   <menuitem label="&fontCourier.label;"       value="Courier New, Courier, monospace"/>
  322.                 </menupopup>
  323.               </menulist> 
  324.  
  325.               <stack id="ColorButtons"/>
  326.               <popupset> 
  327.                 <popup id="TextColorPicker"/> 
  328.                 <popup id="BackColorPicker"/> 
  329.               </popupset> 
  330.  
  331.               <toolbarbutton id="DecreaseFontSizeButton"/> 
  332.               <toolbarbutton id="IncreaseFontSizeButton"/> 
  333.               <toolbarbutton id="boldButton"/>
  334.               <toolbarbutton id="italicButton"/>
  335.               <toolbarbutton id="underlineButton"/>
  336.               <toolbarbutton id="smileButtonMenu" />
  337.               <toolbarbutton id="aimlinkButton" observes="cmd_link" tooltiptext="&aimlinkToolbarCmd.tooltip;"/>
  338.  
  339.               <spacer flex="1"/>
  340.               <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  341.             </toolbar>
  342.           </toolbox>
  343.       
  344.           <!-- Compose Window and Send Button Organizational Grouping-->
  345.           <vbox id="ComposeWndBox" flex="1">
  346.             <editor onfocus="composeWndFocus(true);" context="aimContentContext"
  347.                     onblur="composeWndFocus(false);" type="content-primary" id="ComposeWnd" 
  348.                     editortype="html" name="ComposeWnd" src="about:blank" flex="1"/>
  349.             <hbox id="bottomOfIMWindow" autostretch="never" align="center">
  350.               <image id="BuddyIcon" class="biImage Hide-in-Icq cursorpointer"
  351.                      onclick="goPreferences('instantmessenger', 'chrome://aim/content/pref-IM_instantmessage.xul', 'biinstantmessenger');">
  352.                 <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  353.               </image>
  354.               <label id="typingBar" class="Hide-in-Icq" >
  355.                 <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  356.               </label>
  357.               <spacer flex="1"/>
  358.               <!-- Send Button -->
  359.               <button id="btnSend" class="aim-button" label="&sendButton.label;" disabled = "true"
  360.                       tooltip="aTooltip"  tooltiptext="&sendButton.tooltip;" oncommand="AimIMCmdSend(false);"
  361.                       icqtooltip="&sendButton_ICQ.tooltip;"
  362.                       onkeypress="if ((event.keyCode == 13) || (event.keyCode == 10)) AimIMCmdSend(false); if (event.keyCode ==9) UnFocusSend();">
  363.                 <observes element="cmd_smiley" attribute="state" onbroadcast="EnableSendButton()"/>
  364.                 <observes element="sessionComposeWatcher"  attribute="sessionMode"/>
  365.               </button>
  366.             </hbox>
  367.           </vbox>
  368.         </vbox>
  369.       </vbox> 
  370.     </hbox> 
  371.  
  372.     <hbox id="taskbar" persist="collapsed">  
  373.       <!-- hide the channels menus because of the narrow form factor -->
  374.       <box id="taskbarMenuBox" hidden="true"/>
  375.     </hbox>
  376.   </vbox>
  377.   
  378. </overlay>
  379.