home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 July & August / PCWorld_2005-07-08_cd.bin / komunikace / netscape / nsb-install-8-0.exe / chrome / aim.jar / content / aim / chatContent.xul < prev    next >
Extensible Markup Language  |  2005-02-25  |  17KB  |  353 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://aim/skin/chatWindow.css" type="text/css"?>
  4. <?xml-stylesheet href="chrome://aim/content/editorFormatToolbar.css" type="text/css"?>
  5.  
  6. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  7. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  8. <?xul-overlay href="chrome://communicator/content/communicatorOverlay.xul"?>
  9. <?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
  10. <?xul-overlay href="chrome://browser/content/sidebar/sidebarOverlay.xul"?> 
  11. <?xul-overlay href="chrome://editor/content/editorOverlay.xul"?>
  12. <?xul-overlay href="chrome://editor/content/editorSmileyOverlay.xul"?>
  13.  
  14. <!DOCTYPE window [
  15. <!ENTITY % chatDTD SYSTEM "chrome://aim/locale/chatContent.dtd" >
  16. %chatDTD;
  17. <!ENTITY % styleDTD SYSTEM "chrome://communicator/locale/pref/pref-IM_style.dtd" >
  18. %styleDTD;
  19. <!ENTITY % ednavDTD SYSTEM "chrome://editor/locale/editorNavigatorOverlay.dtd" >
  20. %ednavDTD;
  21. ]>
  22.  
  23. <window xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  24.   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" onload="chatContentOnWinLoad()" onunload="chatContentOnWinUnLoad()"
  25.   orient="vertical" windowtype="Aim:AimChat" screenX="10" screenY="10" id="AimChat" name="AimChat" width="680" height="515"
  26.   persist="screenX screenY width height"> 
  27.  
  28.   <broadcaster id="IMAttribs" imScreenName="" imMode="Bound" imAction="false"  />
  29.   <observes element="IMAttribs" attribute="imMode" />
  30.   <observes element="IMAttribs" attribute="imAction" />
  31.   <!--<observes element="IMAttribs" attribute="imScreenName" onchange="AimIMUpdateFormTitle()" /> -->
  32.  
  33.   <script language="JavaScript" src="chrome://aim/content/Aim.js" />
  34.   <script language="JavaScript" src="chrome://aim/content/App.js" />
  35.   <script language="JavaScript" src="chrome://aim/content/AimAppCommands.js" />
  36.   <script language="JavaScript" src="chrome://aim/content/AimSession.js"/>
  37.   <script language="JavaScript" src="chrome://aim/content/aimHelpers.js" />
  38.   <script language="JavaScript" src="chrome://aim/content/timestamps.js" />
  39.   <script language="JavaScript" src="chrome://global/content/strres.js" />
  40.   <!-- <script language="JavaScript" src="chrome://communicator/content/utilityOverlay.js" /> SLang Jan 10/04 18:37-->
  41.   <script language="JavaScript" src="chrome://aim/content/chatContent.js"/>
  42.   <script language="JavaScript" src="chrome://editor/content/editor.js"/>
  43.   <script language="JavaScript" src="chrome://aim/content/AimIM.js" />  
  44.   <!-- <script language="JavaScript" src="chrome://editor/content/ComposerCommands.js"/> -->  
  45.               <!-- MERC SL - Feb 17 -   -->
  46.               <!-- found in editorOverlay.xul (above) -->
  47.  
  48.   <!-- image pre-cacheing  -->
  49.   <resourcebundle id="resource_bundle_aim" />
  50.   
  51.   <commandset id="globalEditMenuItems"/>
  52.   <commandset id="selectEditMenuItems"/>
  53.   <commandset id="undoEditMenuItems"/>
  54.   <commandset id="clipboardEditMenuItems"/>
  55.   <commandset id="composerMenuItems"/>
  56.   <commandset id="composerEditMenuItems"/>
  57.   <commandset id="composerSaveMenuItems"/>    
  58.   <commandset id="composerStyleMenuItems"/>
  59.   
  60.   <commandset id="tasksCommands">
  61.     <!-- File Menu -->
  62.     <command id="cmd_newNavigator"/>
  63.     <command id="cmd_newMessage"/>
  64.     <command id="cmd_ChatContentIM" oncommand="cmdChatContentSendIM()"/>
  65.     <command id="cmd_close" oncommand="cmdFileClose()"/>
  66.     <command id="cmd_printSetup" oncommand="goPageSetup()"/>
  67.     <command id="cmd_print" oncommand="cmdFilePrint('chat')"/>
  68.     <command id="cmd_quit" disabled="true"/>
  69.     <!-- Edit Menu -->
  70.     <command id="cmd_undo"/>
  71.     <command id="cmd_redo"/>
  72.     <command id="cmd_cut"/>
  73.     <command id="cmd_copy"/>
  74.     <command id="cmd_paste"/>
  75.     <command id="cmd_delete"/>
  76.     <command id="cmd_selectAll"/>
  77.     <command id="cmd_preferences" oncommand="openPrefWindow()"/> 
  78.     <!-- People Menu -->
  79.     <command id="cmd_GetMemberInfo" oncommand="cmdChatContentGetMemberInfo()"/>
  80.     <command id="cmd_buddyalert" 
  81.              buddyAlertMsg1="&buddyAlertMsg1.label;"
  82.              buddyAlertMsg2="&buddyAlertMsg2.label;"
  83.              buddyAlertAccessKey="&buddyAlertCmd.accesskey;"
  84.              oncommand="cmdBuddyAlert();"/>
  85.     <command id="cmd_chat" oncommand="cmdNewChat('',null,'',false,'outgoingchat')"/>
  86.     <command id="cmd_chatInvite" oncommand="cmdPopUpInvite('')"/>
  87.     <command id="cmd_addbuddy" oncommand="cmdChatContentAddBuddy()"/>    
  88.     <!-- View Menu -->
  89.     <command id="cmdViewToolbarsButtons" oncommand="goToggleToolbar( 'buttonToolbar','cmdViewToolbarsButtons');" checked="true"/>
  90.     <command id="cmdViewToolbarsCompose" oncommand="goToggleToolbar( 'FormatToolbar','cmdViewToolbarsCompose');" checked="true"/>
  91.     <command id="cmd_ShowTimeStamp"   oncommand="cmdViewTimestamp()"/>
  92.     <command id="cmd_ChatRoomInfo"   oncommand="cmdRoomInfo()"/>
  93.     <command id="cmd_peopleIgnore"   oncommand="cmdIgnoreFromChat_PeopleMenu()"/>
  94.  
  95.   </commandset>
  96.  
  97.   <commandset id="commands">
  98.     <command id="toggleSidebar"/>
  99.   </commandset>
  100.   
  101.   <keyset>
  102.     <key id="showHideSidebar"/>
  103.   </keyset>
  104.  
  105.   <keyset id="tasksKeys">
  106.     <!-- File Menu -->
  107.     <key id="key_newNavigator"/>
  108.     <key id="key_newMessage"/>
  109.     <key id="key_newIM"  key="&IMCmd.key;" command="cmd_ChatContentIM" modifiers="accel,shift"/>
  110.     <key id="key_close"/>
  111.     <key id="key_quit"/>
  112.     <!-- People Menu -->
  113.     <key id="key_chatInvite" key="&sendChatCmd.key;" 
  114.          command="cmd_chatInvite" disabled="false"   alt="false" modifiers="accel,shift"/>
  115.     <key id="key_addbuddy" key="&addBuddyCmd.key;" 
  116.          command="cmd_addbuddy" disabled="false"   alt="false" modifiers="accel,shift"/>
  117.     <key id="key_GetMemberInfo" key="&peopleGetMemberInfo.key;" 
  118.          command="cmd_GetMemberInfo" disabled="false"   alt="false" modifiers="accel,shift"/>
  119.     <key id="key_PeopleIgnore" key="&peopleIgnoreCmd.key;" 
  120.          command="cmd_peopleIgnore" disabled="false"   alt="false" modifiers="accel,shift"/>
  121.  
  122.     <!-- View Menu -->
  123.     <key id="key_showTimeStamp"  keycode="&miTimestamp.key;" command="cmd_ShowTimeStamp" />
  124.     <key id="key_ChatRoomInfo"  keycode="&btnRoomInfo.key;" command="cmd_ChatRoomInfo" modifiers="accel,shift"/>
  125.      
  126.   </keyset>
  127.   <keyset id="editorKeys"/>
  128.  
  129.   <!-- Color pickers from the editorOverlay.xul -->
  130.   <popupset> 
  131.     <popup id="TextColorPopup"/> 
  132.     <popup id="BackColorPopup"/> 
  133.   </popupset>
  134.  
  135.   <popupset id="aTooltipSet">
  136.     <popup id="sidebarPopup"/>
  137.   </popupset>
  138.   
  139.   <!-- Context Menu -->
  140.   <popupset id="aimContentContextPopup">
  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.   <toolbox id="main_toolbox">
  156.   <menubar>
  157.     <!-- File Menu -->
  158.     <menu id="menu_File">
  159.       <menupopup id="menu_FilePopup">
  160.         <!-- New popup (Overlay Additions) -->
  161.         <menu id="menu_New">
  162.           <menupopup>
  163.             <menuitem id="menu_newNavigator"/>
  164.             <menuitem label="&newIMCmdSub.label;"  key="key_newIM" accesskey="&IMCmd.accesskey;" command="cmd_ChatContentIM"/>
  165.           </menupopup>
  166.         </menu>
  167.         <menuseparator/>
  168.         <menuitem id="menu_close"/>
  169.         <menuitem accesskey="&fileSaveCmd.accesskey;" label="&fileSaveCmd.label;" oncommand="cmdFileSave()"/> 
  170.         <menuitem id="menu_close"/>
  171.         <menuseparator/>  
  172.         <!--menuitem label="&filePageSetupCmd.label;" accesskey="&filePageSetupCmd.accesskey;" /-->
  173.         <!-- page setup gets inserted here -->
  174.         <menuitem id="printMenuItem" accesskey="&filePrintCmd.accesskey;" label="&filePrintCmd.label;" command="cmd_print"/>
  175.       </menupopup>
  176.     </menu>
  177.  
  178.     <!-- Edit Menu - Overlay Filled-->
  179.     <menu id="editMenu"/>
  180.     <!-- View Menu -->
  181.     <menu accesskey="&viewMenu.accesskey;" label="&viewMenu.label;">
  182.       <menupopup id="menu_View_Popup" onpopupshowing="cmdCreateTimestamp()">
  183.         <menu label="&viewToolbarsMenu.label;" accesskey="&viewToolbarsMenu.accesskey;">
  184.           <menupopup>
  185.             <menuitem label="&viewToolbarsButtonsCmd.label;" accesskey="&viewToolbarsButtonsCmd.accesskey;" command="cmdViewToolbarsButtons"/>
  186.             <menuitem label="&viewToolbarsComposeCmd.label;" accesskey="&viewToolbarsComposeCmd.accesskey;" command="cmdViewToolbarsCompose"/>
  187.           </menupopup>
  188.         </menu>
  189.         <menuseparator />
  190.          <menuitem name="miTimestamp" id="miTimestamp" label="" accesskey="&miTimestamp.accesskey;" 
  191.           command="cmd_ShowTimeStamp" key="key_showTimeStamp"/>
  192.          <menuitem name="miRoomInfo" id="miRoomInfo" label="&btnRoomInfo.label;" accesskey="&btnRoomInfo.accesskey;" 
  193.           command="cmd_ChatRoomInfo" key="key_ChatRoomInfo"/>
  194.       </menupopup>
  195.     </menu>
  196.  
  197.     <!-- Insert Menu. Filled by editorOverlay.xul -->
  198.     <menu id="insertMenu" />
  199.  
  200.     <!-- Format Menu -->
  201.     <menu id="formatMenu" label="&formatMenu.label;" accesskey="&formatMenu.accesskey;" command="cmd_insert">
  202.       <menupopup id="formatMenuPopup">
  203.         <menu id="tableMenu"/>
  204.           <menuseparator/>
  205.           <menuitem id="objectProperties"/>
  206.           <menuitem id="colorsAndBackground"/>
  207.         </menupopup>
  208.     </menu>
  209.  
  210.       <!-- People Menu -->
  211.       <menu id="people_menu" accesskey="&peopleMenu.accesskey;" label="&peopleMenu.label;" hidden="false">
  212.         <menupopup id="menu_PeoplePopup"  onpopupshowing="onItemFocus(event);"> 
  213.           <menuitem label="&sendChatCmd.label;" accesskey="&sendChatCmd.accesskey;" key="key_chatInvite" 
  214.                     command="cmd_chatInvite" id="menu_sendChat"/>
  215.           <menuseparator/>
  216.           <menuitem label="&sendIMCmd.label;" accesskey="&sendIMCmd.accesskey;" 
  217.                     key="key_newIM" command="cmd_ChatContentIM" id="menu_sendIM"/>
  218.           <menuitem label="&addBuddyCmd.label;" accesskey="&addBuddyCmd.accesskey;" 
  219.                     key="key_addbuddy" command="cmd_addbuddy" id="menu_addBuddy"/>
  220.           <menuitem label="&peopleGetMemberInfo.label;" accesskey="&peopleGetMemberInfo.accesskey;" 
  221.                     key="key_GetMemberInfo" command="cmd_GetMemberInfo" id="menu_GetMemberInfo" />
  222.           <menuseparator/>
  223.           <menuitem label="&peopleIgnoreCmd.label;" accesskey="&peopleIgnoreCmd.accesskey;" 
  224.                     command="cmd_peopleIgnore" id="menu_ignoreUser" key="key_PeopleIgnore"/>
  225.           
  226.         </menupopup>
  227.       </menu>
  228.     <!-- Tasks Menu (Overlay Inserted) -->
  229.     <menu accesskey="&taskMenu.accesskey;" id="tasksMenu"/>
  230.     
  231.     <menu id="windowMenu"/>
  232.     
  233.     <menu accesskey="&helpMenu.accesskey;" id="menu_Help"/>
  234.     <spacer flex="1"/>
  235.   </menubar>
  236.  
  237.   <toolbar id="buttonToolbar" class="toolbar-primary" persist="collapsed">
  238.     <hbox id="toolbar_button_box">
  239.       <toolbarbutton id="chatSave" label="&btnSave.label;" 
  240.                tooltip="aTooltip"  tooltiptext="&btnSave.tooltip;" 
  241.                      class="toolbarbutton-1" oncommand="cmdFileSave()"/>
  242.                      
  243.       <toolbarbutton id="chatInvite" label="&btnInvite.label;"  
  244.             tooltip="aTooltip"  tooltiptext="&btnInvite.tooltip;" 
  245.                      class="toolbarbutton-1" command="cmd_chatInvite"/> 
  246.                      
  247.       <toolbarbutton id="chatRoomInfo" label="&btnRoomInfo.label;" 
  248.                    tooltip="aTooltip"  tooltiptext="&btnRoomInfo.tooltip;"  
  249.                      class="toolbarbutton-1" oncommand="cmdRoomInfo()"/> 
  250.                      
  251. <!-- Commented S. Lang Feb 7, 2005                     
  252.       <toolbarbutton type="menu-button" id="chatPrint" class="toolbarbutton-1"
  253.                      label="&btnPrint.label;" 
  254.                      crop="right" tooltip="aTooltip"  
  255.                      tooltiptext="&printButton.tooltip;" command="cmd_print">
  256.         <menupopup id="printMenu">
  257.           <menuitem label="&btnPrint.label;" default="true" command="cmd_print"/>
  258.         </menupopup>
  259.       </toolbarbutton>
  260. -->
  261.       <toolbarbutton id="chatPrint" label="&btnPrint.label;" 
  262.                class="toolbarbutton-1"
  263.                tooltip="aTooltip"  tooltiptext="&printButton.tooltip;"  
  264.                     command="cmd_print"/>         
  265.       
  266.       <spacer flex="1"/>
  267.     </hbox>
  268.     <hbox id="throbber-box" autostretch="never">
  269.       <button id="navigator-throbber" oncommand="AimgoClickThrobber('&throbber.url;')" tooltip="aTooltip"  tooltiptext="&throbber.tooltip;"/>
  270.     </hbox>
  271.   </toolbar>
  272. </toolbox>
  273.  
  274.   <!-- sidebar/toolbar/content/status -->
  275.   <hbox id="sidebar-parent" flex="1">
  276.     <vbox id="sidebar-box">
  277.       <sidebarheader id="numberchatting" class="sidebarheader-main" type="box"/>
  278.       <iframe src="chrome://aim/content/chatPanel.xul" id="chatpanel" name="chatpanel" class="iframe-panel" flex="1"/>
  279.     </vbox> 
  280.     
  281.     <splitter id="sidebar-splitter"/>
  282.     
  283.     <vbox id="appcontent" flex="1">
  284.       
  285.       <!-- Main Content Area of the Window -->
  286.       <hbox id="ContentOrg" flex="1">
  287.       
  288.         <!-- Main Chat Area -->
  289.         <vbox flex="1">
  290.           <!-- Logging Window -->
  291.           <vbox id="LogOrg" flex="1" name="LogOrg">
  292.             <iframe onfocus="logWndFocus(true);" onblur="logWndFocus(false);" type="content" id="LogWnd" name="LogWnd" flex="1" src="about:blank" />
  293.           </vbox>
  294.       
  295.           <splitter id="ComposeSplitter" collapse="none" persist="state">
  296.             <grippy/>
  297.           </splitter>
  298.  
  299.           <!-- Composing Window -->
  300.           <vbox id="ComposeOrg" flex="1">
  301.             <toolbox id="imComposeToolbox">
  302.             <!-- These toolbar items get filled out from the editorOverlay -->
  303.               <toolbar id="FormatToolbar" persist="collapsed" >
  304.                 <menulist class="toolbar-focustarget" id="FontFaceSelectStyle" crop="right">
  305.                   <menupopup oncommand="changeFont();" id="FontFacePopupStyle">                 
  306.                     <menuitem label="&fontTimes.label;"         value="Times New Roman, Times, serif"/>
  307.                     <menuitem label="&fontCourier.label;"       value="Courier New, Courier, monospace"/>
  308.                     <menuitem label="&fontHelveticaFont.label;" value="Helvetica, foo, sans-serif"/>
  309.  
  310.                   </menupopup>
  311.                 </menulist> 
  312.  
  313.                 <stack id="ColorButtons"/>
  314.                 <popupset> 
  315.                   <popup id="TextColorPicker"/> 
  316.                   <popup id="BackColorPicker"/> 
  317.                 </popupset> 
  318.  
  319.                 <toolbarbutton id="DecreaseFontSizeButton"/> 
  320.                 <toolbarbutton id="IncreaseFontSizeButton"/> 
  321.                 <toolbarbutton id="boldButton"/>
  322.                 <toolbarbutton id="italicButton"/>
  323.                 <toolbarbutton id="underlineButton"/>
  324.                 <toolbarbutton id="smileButtonMenu"/>
  325.                 <toolbarbutton id="aimlinkButton" observes="cmd_link" tooltiptext="&aimlinkToolbarCmd.tooltip;"/>
  326.               </toolbar>
  327.             </toolbox>
  328.         
  329.             <!-- Compose Window and Send Button Organizational Grouping-->
  330.             <vbox id="ComposeBox" flex="1">
  331.               <!-- Editor Compose Window -->
  332.               <editor onfocus="composeWndFocus(true);" context="aimContentContext" onblur="composeWndFocus(false);" type="content-primary"
  333.                       id="ComposeWnd" name="ComposeWnd" editortype="html" flex="1"/>
  334.               <!-- Send Button -->
  335.               <hbox id="imSendButtonBox" align="center" pack="start">
  336.                 <label value="&chat.status;" id="statustext"/>
  337.                 <spacer flex="1" />
  338.                 <button class="aim-button" id="btnSend" label="&sendButton.label;" tooltip="aTooltip"  tooltiptext="&sendButton.tooltip;" oncommand="chatContentSendMsg()"/>
  339.               </hbox>
  340.             </vbox>
  341.           </vbox> <!-- ComposeOrg -->
  342.         </vbox> <!-- Main Chat Area -->
  343.       </hbox> <!-- Main Content Area of the Window -->
  344.     </vbox> <!-- id = appcontent -->
  345.     <!-- end sidebar -->
  346.   </hbox>
  347.   
  348.   <statusbar id="status-bar" class="chromeclass-status">
  349.     <statusbarpanel id="component-bar" class="component-bar-box"/>
  350.     <statusbarpanel id="statusbar-empty-spacer" flex="2"/>
  351.   </statusbar> 
  352. </window>
  353.