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 >
Wrap
Extensible Markup Language
|
2005-02-25
|
17KB
|
353 lines
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://aim/skin/chatWindow.css" type="text/css"?>
<?xml-stylesheet href="chrome://aim/content/editorFormatToolbar.css" type="text/css"?>
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/communicatorOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
<?xul-overlay href="chrome://browser/content/sidebar/sidebarOverlay.xul"?>
<?xul-overlay href="chrome://editor/content/editorOverlay.xul"?>
<?xul-overlay href="chrome://editor/content/editorSmileyOverlay.xul"?>
<!DOCTYPE window [
<!ENTITY % chatDTD SYSTEM "chrome://aim/locale/chatContent.dtd" >
%chatDTD;
<!ENTITY % styleDTD SYSTEM "chrome://communicator/locale/pref/pref-IM_style.dtd" >
%styleDTD;
<!ENTITY % ednavDTD SYSTEM "chrome://editor/locale/editorNavigatorOverlay.dtd" >
%ednavDTD;
]>
<window xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" onload="chatContentOnWinLoad()" onunload="chatContentOnWinUnLoad()"
orient="vertical" windowtype="Aim:AimChat" screenX="10" screenY="10" id="AimChat" name="AimChat" width="680" height="515"
persist="screenX screenY width height">
<broadcaster id="IMAttribs" imScreenName="" imMode="Bound" imAction="false" />
<observes element="IMAttribs" attribute="imMode" />
<observes element="IMAttribs" attribute="imAction" />
<!--<observes element="IMAttribs" attribute="imScreenName" onchange="AimIMUpdateFormTitle()" /> -->
<script language="JavaScript" src="chrome://aim/content/Aim.js" />
<script language="JavaScript" src="chrome://aim/content/App.js" />
<script language="JavaScript" src="chrome://aim/content/AimAppCommands.js" />
<script language="JavaScript" src="chrome://aim/content/AimSession.js"/>
<script language="JavaScript" src="chrome://aim/content/aimHelpers.js" />
<script language="JavaScript" src="chrome://aim/content/timestamps.js" />
<script language="JavaScript" src="chrome://global/content/strres.js" />
<!-- <script language="JavaScript" src="chrome://communicator/content/utilityOverlay.js" /> SLang Jan 10/04 18:37-->
<script language="JavaScript" src="chrome://aim/content/chatContent.js"/>
<script language="JavaScript" src="chrome://editor/content/editor.js"/>
<script language="JavaScript" src="chrome://aim/content/AimIM.js" />
<!-- <script language="JavaScript" src="chrome://editor/content/ComposerCommands.js"/> -->
<!-- MERC SL - Feb 17 - -->
<!-- found in editorOverlay.xul (above) -->
<!-- image pre-cacheing -->
<resourcebundle id="resource_bundle_aim" />
<commandset id="globalEditMenuItems"/>
<commandset id="selectEditMenuItems"/>
<commandset id="undoEditMenuItems"/>
<commandset id="clipboardEditMenuItems"/>
<commandset id="composerMenuItems"/>
<commandset id="composerEditMenuItems"/>
<commandset id="composerSaveMenuItems"/>
<commandset id="composerStyleMenuItems"/>
<commandset id="tasksCommands">
<!-- File Menu -->
<command id="cmd_newNavigator"/>
<command id="cmd_newMessage"/>
<command id="cmd_ChatContentIM" oncommand="cmdChatContentSendIM()"/>
<command id="cmd_close" oncommand="cmdFileClose()"/>
<command id="cmd_printSetup" oncommand="goPageSetup()"/>
<command id="cmd_print" oncommand="cmdFilePrint('chat')"/>
<command id="cmd_quit" disabled="true"/>
<!-- Edit Menu -->
<command id="cmd_undo"/>
<command id="cmd_redo"/>
<command id="cmd_cut"/>
<command id="cmd_copy"/>
<command id="cmd_paste"/>
<command id="cmd_delete"/>
<command id="cmd_selectAll"/>
<command id="cmd_preferences" oncommand="openPrefWindow()"/>
<!-- People Menu -->
<command id="cmd_GetMemberInfo" oncommand="cmdChatContentGetMemberInfo()"/>
<command id="cmd_buddyalert"
buddyAlertMsg1="&buddyAlertMsg1.label;"
buddyAlertMsg2="&buddyAlertMsg2.label;"
buddyAlertAccessKey="&buddyAlertCmd.accesskey;"
oncommand="cmdBuddyAlert();"/>
<command id="cmd_chat" oncommand="cmdNewChat('',null,'',false,'outgoingchat')"/>
<command id="cmd_chatInvite" oncommand="cmdPopUpInvite('')"/>
<command id="cmd_addbuddy" oncommand="cmdChatContentAddBuddy()"/>
<!-- View Menu -->
<command id="cmdViewToolbarsButtons" oncommand="goToggleToolbar( 'buttonToolbar','cmdViewToolbarsButtons');" checked="true"/>
<command id="cmdViewToolbarsCompose" oncommand="goToggleToolbar( 'FormatToolbar','cmdViewToolbarsCompose');" checked="true"/>
<command id="cmd_ShowTimeStamp" oncommand="cmdViewTimestamp()"/>
<command id="cmd_ChatRoomInfo" oncommand="cmdRoomInfo()"/>
<command id="cmd_peopleIgnore" oncommand="cmdIgnoreFromChat_PeopleMenu()"/>
</commandset>
<commandset id="commands">
<command id="toggleSidebar"/>
</commandset>
<keyset>
<key id="showHideSidebar"/>
</keyset>
<keyset id="tasksKeys">
<!-- File Menu -->
<key id="key_newNavigator"/>
<key id="key_newMessage"/>
<key id="key_newIM" key="&IMCmd.key;" command="cmd_ChatContentIM" modifiers="accel,shift"/>
<key id="key_close"/>
<key id="key_quit"/>
<!-- People Menu -->
<key id="key_chatInvite" key="&sendChatCmd.key;"
command="cmd_chatInvite" disabled="false" alt="false" modifiers="accel,shift"/>
<key id="key_addbuddy" key="&addBuddyCmd.key;"
command="cmd_addbuddy" disabled="false" alt="false" modifiers="accel,shift"/>
<key id="key_GetMemberInfo" key="&peopleGetMemberInfo.key;"
command="cmd_GetMemberInfo" disabled="false" alt="false" modifiers="accel,shift"/>
<key id="key_PeopleIgnore" key="&peopleIgnoreCmd.key;"
command="cmd_peopleIgnore" disabled="false" alt="false" modifiers="accel,shift"/>
<!-- View Menu -->
<key id="key_showTimeStamp" keycode="&miTimestamp.key;" command="cmd_ShowTimeStamp" />
<key id="key_ChatRoomInfo" keycode="&btnRoomInfo.key;" command="cmd_ChatRoomInfo" modifiers="accel,shift"/>
</keyset>
<keyset id="editorKeys"/>
<!-- Color pickers from the editorOverlay.xul -->
<popupset>
<popup id="TextColorPopup"/>
<popup id="BackColorPopup"/>
</popupset>
<popupset id="aTooltipSet">
<popup id="sidebarPopup"/>
</popupset>
<!-- Context Menu -->
<popupset id="aimContentContextPopup">
<popup id="aimContentContext">
<menuitem id="menu_undo_cm" label="&undoCmd.label;" accesskey="&undo.accesskey;" command="cmd_undo"/>
<menuitem id="menu_redo_cm" label="&redoCmd.label;" accesskey="&redo.accesskey;" command="cmd_redo"/>
<menuseparator id="undoredo-separator"/>
<menuitem id="menu_cut_cm" label="&cutCmd.label;" accesskey="&cut.accesskey;" command="cmd_cut"/>
<menuitem id="menu_copy_cm" label="©Cmd.label;" accesskey="©.accesskey;" command="cmd_copy"/>
<menuitem id="menu_paste_cm" label="&pasteCmd.label;" accesskey="&paste.accesskey;" command="cmd_paste"/>
<menuitem id="menu_delete_cm" label="&deleteCmd.label;" accesskey="&delete.accesskey;" command="cmd_delete"/>
<menuseparator id="edit-separator"/>
<menuitem id="menu_selectAll_cm" label="&selectAllCmd.label;" accesskey="&selectall.accesskey;" command="cmd_selectAll"/>
</popup>
</popupset>
<!-- Toolbar for the Window -->
<toolbox id="main_toolbox">
<menubar>
<!-- File Menu -->
<menu id="menu_File">
<menupopup id="menu_FilePopup">
<!-- New popup (Overlay Additions) -->
<menu id="menu_New">
<menupopup>
<menuitem id="menu_newNavigator"/>
<menuitem label="&newIMCmdSub.label;" key="key_newIM" accesskey="&IMCmd.accesskey;" command="cmd_ChatContentIM"/>
</menupopup>
</menu>
<menuseparator/>
<menuitem id="menu_close"/>
<menuitem accesskey="&fileSaveCmd.accesskey;" label="&fileSaveCmd.label;" oncommand="cmdFileSave()"/>
<menuitem id="menu_close"/>
<menuseparator/>
<!--menuitem label="&filePageSetupCmd.label;" accesskey="&filePageSetupCmd.accesskey;" /-->
<!-- page setup gets inserted here -->
<menuitem id="printMenuItem" accesskey="&filePrintCmd.accesskey;" label="&filePrintCmd.label;" command="cmd_print"/>
</menupopup>
</menu>
<!-- Edit Menu - Overlay Filled-->
<menu id="editMenu"/>
<!-- View Menu -->
<menu accesskey="&viewMenu.accesskey;" label="&viewMenu.label;">
<menupopup id="menu_View_Popup" onpopupshowing="cmdCreateTimestamp()">
<menu label="&viewToolbarsMenu.label;" accesskey="&viewToolbarsMenu.accesskey;">
<menupopup>
<menuitem label="&viewToolbarsButtonsCmd.label;" accesskey="&viewToolbarsButtonsCmd.accesskey;" command="cmdViewToolbarsButtons"/>
<menuitem label="&viewToolbarsComposeCmd.label;" accesskey="&viewToolbarsComposeCmd.accesskey;" command="cmdViewToolbarsCompose"/>
</menupopup>
</menu>
<menuseparator />
<menuitem name="miTimestamp" id="miTimestamp" label="" accesskey="&miTimestamp.accesskey;"
command="cmd_ShowTimeStamp" key="key_showTimeStamp"/>
<menuitem name="miRoomInfo" id="miRoomInfo" label="&btnRoomInfo.label;" accesskey="&btnRoomInfo.accesskey;"
command="cmd_ChatRoomInfo" key="key_ChatRoomInfo"/>
</menupopup>
</menu>
<!-- Insert Menu. Filled by editorOverlay.xul -->
<menu id="insertMenu" />
<!-- Format Menu -->
<menu id="formatMenu" label="&formatMenu.label;" accesskey="&formatMenu.accesskey;" command="cmd_insert">
<menupopup id="formatMenuPopup">
<menu id="tableMenu"/>
<menuseparator/>
<menuitem id="objectProperties"/>
<menuitem id="colorsAndBackground"/>
</menupopup>
</menu>
<!-- People Menu -->
<menu id="people_menu" accesskey="&peopleMenu.accesskey;" label="&peopleMenu.label;" hidden="false">
<menupopup id="menu_PeoplePopup" onpopupshowing="onItemFocus(event);">
<menuitem label="&sendChatCmd.label;" accesskey="&sendChatCmd.accesskey;" key="key_chatInvite"
command="cmd_chatInvite" id="menu_sendChat"/>
<menuseparator/>
<menuitem label="&sendIMCmd.label;" accesskey="&sendIMCmd.accesskey;"
key="key_newIM" command="cmd_ChatContentIM" id="menu_sendIM"/>
<menuitem label="&addBuddyCmd.label;" accesskey="&addBuddyCmd.accesskey;"
key="key_addbuddy" command="cmd_addbuddy" id="menu_addBuddy"/>
<menuitem label="&peopleGetMemberInfo.label;" accesskey="&peopleGetMemberInfo.accesskey;"
key="key_GetMemberInfo" command="cmd_GetMemberInfo" id="menu_GetMemberInfo" />
<menuseparator/>
<menuitem label="&peopleIgnoreCmd.label;" accesskey="&peopleIgnoreCmd.accesskey;"
command="cmd_peopleIgnore" id="menu_ignoreUser" key="key_PeopleIgnore"/>
</menupopup>
</menu>
<!-- Tasks Menu (Overlay Inserted) -->
<menu accesskey="&taskMenu.accesskey;" id="tasksMenu"/>
<menu id="windowMenu"/>
<menu accesskey="&helpMenu.accesskey;" id="menu_Help"/>
<spacer flex="1"/>
</menubar>
<toolbar id="buttonToolbar" class="toolbar-primary" persist="collapsed">
<hbox id="toolbar_button_box">
<toolbarbutton id="chatSave" label="&btnSave.label;"
tooltip="aTooltip" tooltiptext="&btnSave.tooltip;"
class="toolbarbutton-1" oncommand="cmdFileSave()"/>
<toolbarbutton id="chatInvite" label="&btnInvite.label;"
tooltip="aTooltip" tooltiptext="&btnInvite.tooltip;"
class="toolbarbutton-1" command="cmd_chatInvite"/>
<toolbarbutton id="chatRoomInfo" label="&btnRoomInfo.label;"
tooltip="aTooltip" tooltiptext="&btnRoomInfo.tooltip;"
class="toolbarbutton-1" oncommand="cmdRoomInfo()"/>
<!-- Commented S. Lang Feb 7, 2005
<toolbarbutton type="menu-button" id="chatPrint" class="toolbarbutton-1"
label="&btnPrint.label;"
crop="right" tooltip="aTooltip"
tooltiptext="&printButton.tooltip;" command="cmd_print">
<menupopup id="printMenu">
<menuitem label="&btnPrint.label;" default="true" command="cmd_print"/>
</menupopup>
</toolbarbutton>
-->
<toolbarbutton id="chatPrint" label="&btnPrint.label;"
class="toolbarbutton-1"
tooltip="aTooltip" tooltiptext="&printButton.tooltip;"
command="cmd_print"/>
<spacer flex="1"/>
</hbox>
<hbox id="throbber-box" autostretch="never">
<button id="navigator-throbber" oncommand="AimgoClickThrobber('&throbber.url;')" tooltip="aTooltip" tooltiptext="&throbber.tooltip;"/>
</hbox>
</toolbar>
</toolbox>
<!-- sidebar/toolbar/content/status -->
<hbox id="sidebar-parent" flex="1">
<vbox id="sidebar-box">
<sidebarheader id="numberchatting" class="sidebarheader-main" type="box"/>
<iframe src="chrome://aim/content/chatPanel.xul" id="chatpanel" name="chatpanel" class="iframe-panel" flex="1"/>
</vbox>
<splitter id="sidebar-splitter"/>
<vbox id="appcontent" flex="1">
<!-- Main Content Area of the Window -->
<hbox id="ContentOrg" flex="1">
<!-- Main Chat Area -->
<vbox flex="1">
<!-- Logging Window -->
<vbox id="LogOrg" flex="1" name="LogOrg">
<iframe onfocus="logWndFocus(true);" onblur="logWndFocus(false);" type="content" id="LogWnd" name="LogWnd" flex="1" src="about:blank" />
</vbox>
<splitter id="ComposeSplitter" collapse="none" persist="state">
<grippy/>
</splitter>
<!-- Composing Window -->
<vbox id="ComposeOrg" flex="1">
<toolbox id="imComposeToolbox">
<!-- These toolbar items get filled out from the editorOverlay -->
<toolbar id="FormatToolbar" persist="collapsed" >
<menulist class="toolbar-focustarget" id="FontFaceSelectStyle" crop="right">
<menupopup oncommand="changeFont();" id="FontFacePopupStyle">
<menuitem label="&fontTimes.label;" value="Times New Roman, Times, serif"/>
<menuitem label="&fontCourier.label;" value="Courier New, Courier, monospace"/>
<menuitem label="&fontHelveticaFont.label;" value="Helvetica, foo, sans-serif"/>
</menupopup>
</menulist>
<stack id="ColorButtons"/>
<popupset>
<popup id="TextColorPicker"/>
<popup id="BackColorPicker"/>
</popupset>
<toolbarbutton id="DecreaseFontSizeButton"/>
<toolbarbutton id="IncreaseFontSizeButton"/>
<toolbarbutton id="boldButton"/>
<toolbarbutton id="italicButton"/>
<toolbarbutton id="underlineButton"/>
<toolbarbutton id="smileButtonMenu"/>
<toolbarbutton id="aimlinkButton" observes="cmd_link" tooltiptext="&aimlinkToolbarCmd.tooltip;"/>
</toolbar>
</toolbox>
<!-- Compose Window and Send Button Organizational Grouping-->
<vbox id="ComposeBox" flex="1">
<!-- Editor Compose Window -->
<editor onfocus="composeWndFocus(true);" context="aimContentContext" onblur="composeWndFocus(false);" type="content-primary"
id="ComposeWnd" name="ComposeWnd" editortype="html" flex="1"/>
<!-- Send Button -->
<hbox id="imSendButtonBox" align="center" pack="start">
<label value="&chat.status;" id="statustext"/>
<spacer flex="1" />
<button class="aim-button" id="btnSend" label="&sendButton.label;" tooltip="aTooltip" tooltiptext="&sendButton.tooltip;" oncommand="chatContentSendMsg()"/>
</hbox>
</vbox>
</vbox> <!-- ComposeOrg -->
</vbox> <!-- Main Chat Area -->
</hbox> <!-- Main Content Area of the Window -->
</vbox> <!-- id = appcontent -->
<!-- end sidebar -->
</hbox>
<statusbar id="status-bar" class="chromeclass-status">
<statusbarpanel id="component-bar" class="component-bar-box"/>
<statusbarpanel id="statusbar-empty-spacer" flex="2"/>
</statusbar>
</window>