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
/
IMConverseOverlay.xul
< prev
next >
Wrap
Extensible Markup Language
|
2005-05-01
|
19KB
|
379 lines
<?xml version="1.0"?>
<?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://editor/content/editorOverlay.xul"?>
<?xul-overlay href="chrome://editor/content/editorSmileyOverlay.xul"?>
<!DOCTYPE window [
<!ENTITY % imDTD SYSTEM "chrome://aim/locale/IM.dtd" >
%imDTD;
<!ENTITY % cmdDTD SYSTEM "chrome://aim/locale/contentAreaCommands.dtd" >
%cmdDTD;
<!ENTITY % ednavDTD SYSTEM "chrome://aim/locale/editorNavigatorOverlay.dtd" >
%ednavDTD;
<!ENTITY % styleDTD SYSTEM "chrome://communicator/locale/pref/pref-IM_style.dtd" >
%styleDTD;
]>
<overlay id="ConverseOrg"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="setStyles()"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<broadcaster id="IM:WarningPercent" label="" />
<commandset id="converseOverlayMenuItems">
<command id="cmd_AddToBuddyList" oncommand="cmdAddABuddy()"/>
<command id="cmd_Block" oncommand="cmdPeopleBlock()"/>
<command id="cmd_Unblock" oncommand="cmdPeopleUnblock()"/>
<command id="cmd_Warn" oncommand="cmdPeopleWarn()"/>
<command id="cmd_ShowTimeStamp" oncommand="cmdViewTimestamp()"/>
</commandset>
<commandset id="aimContextMenuItems">
<command id="cmd_copyLink"/>
<command id="cmd_copyImageLocation"/>
</commandset>
<keyset id="defaultKeySet"/>
<keyset id="dialogKeys"/>
<keyset id="editorKeys"/>
<keyset id="converseOverlayMenuKeys">
<key id="key_peopleAddToBuddyList" key="&peopleAddToBuddyListCmd.key;" command="cmd_AddToBuddyList" modifiers="accel,shift"/>
<key id="key_peopleBlock" key="&peopleBlockCmd.key;" command="cmd_Block" modifiers="accel,shift"/>
<key id="key_peopleUnblock" key="&peopleUnblockCmd.key;" command="cmd_Unblock" modifiers="accel,shift"/>
<key id="key_peopleWarn" key="&peopleWarnCmd.key;" command="cmd_Warn" modifiers="accel,shift"/>
<key id="key_showTimeStamp" keycode="&miTimestamp.key;" command="cmd_ShowTimeStamp" />
</keyset>
<script type="application/x-javascript">
<![CDATA[
var gAimLogContextMenu = null;
]]>
</script>
<!-- S. Lang Feb 10, 2005 -->
<script type="application/x-javascript" src="chrome://aim/content/aimHelpers.js"/>
<script type="application/x-javascript" src="chrome://communicator/content/nsContextMenu.js"/>
<script type="application/x-javascript" src="chrome://browser/content/contentAreaUtils.js"/>
<script type="application/x-javascript" src="chrome://browser/content/utilityOverlay.js"/>
<script type="application/x-javascript" src="chrome://browser/content/bookmarks/bookmarks.js"/>
<!-- for edit this link in composer-->
<script type="application/x-javascript" src="chrome://editor/content/editorApplicationOverlay.js"/>
<!-- Color pickers from the editorOverlay.xul -->
<popupset id="popup_set">
<popup id="TextColorPopup"/>
<popup id="BackColorPopup"/>
</popupset>
<popupset id="aTooltipSet"/>
<popupset id="aimContentContextPopup">
<popup id="aimLogContext"
onpopupshowing="gAimLogContextMenu = new nsContextMenu(this); return initializeIMLogContextPane(gAimLogContextMenu);"
onpopuphiding="gAimLogContextMenu.onDestroy(); gAimLogContextMenu = null;">
<!-- Open ==================================== -->
<menuitem id="context-openlinkintab"
label="&openLinkInWindowCmd.label;"
accesskey="&openLinkInWindowCmd.accesskey;"
oncommand="openUILinkIM(gAimLogContextMenu.linkURL(), 'default');"/>
<menuitem id="context-openlink"
label="&openLinkCmd.label;"
accesskey="&openLinkCmd.accesskey;"
oncommand="openUILinkIM(gAimLogContextMenu.linkURL(), 'window');"/>
<menuseparator id="context-sep-open"/>
<!-- Misc ==================================== -->
<menuitem id="context-bookmarklink"
label="&bookmarkLinkCmd.label;"
accesskey="&bookmarkLinkCmd.accesskey;"
oncommand="BookmarksUtils.addBookmark(gAimLogContextMenu.linkURL(), gAimLogContextMenu.linkText(),undefined,true);"/>
<menuitem id="context-copylink"
label="©LinkCmd.label;"
accesskey="©LinkCmd.accesskey;"
oncommand="goDoCommand('cmd_copyLink')" />
<menuseparator id="context-sep-bookmark"/>
<!-- Save ==================================== -->
<menuitem id="context-savelink"
label="&saveLinkCmd.label;"
accesskey="&saveLinkCmd.accesskey;"
oncommand="gAimLogContextMenu.saveLink();"/>
<menuitem id="context-saveimage"
accesskey="&saveImageCmd.accesskey;"
oncommand="gAimLogContextMenu.saveImage();"/>
<menuseparator id="context-sep-save"/>
<!-- Clipboard =============================== -->
<menuitem id="context-selectall"
label="&selectAllCmd.label;"
accesskey="&selectAllCmd.accesskey;"
command="cmd_selectAll"/>
<menuitem id="context-copy"
label="©Cmd.label;"
accesskey="©Cmd.accesskey;"
command="cmd_copy"/>
<menuitem id="context-paste"
label="&pasteCmd.label;"
accesskey="&pasteCmd.accesskey;"
command="cmd_paste"/>
<menuitem id="context-copyimage"
label="©ImageCmd.label;"
accesskey="©ImageCmd.accesskey;"
command="cmd_copyImageLocation"/>
</popup>
<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">
<!-- Menu for the Window -->
<menubar id="IMMenuBar">
<!-- File Menu -->
<menu id="menu_File">
<menupopup id="menu_FilePopup">
<!-- New popup (Overlay Additions) -->
<menu id="menu_New">
<menupopup>
<menuitem id="menu_newNavigator"/>
<menuitem id="menu_newMsg" label="&newIMCmdSub.label;" icqlabel="&newIMCmdSub_ICQ.label;" oncommand="aimIMInvokeIMForm(null, null)" key="key_newIM" accesskey="&IMCmd.accesskey;" command="cmd_IM"/>
</menupopup>
</menu>
<menuitem name="miSend" id="miSend" label="&sendButton.label;" accesskey="&IMSend.key;"
command="cmd_Send" key="key_sendIM" modifiers="alt"/>
<menuseparator/>
<menuitem accesskey="&fileSaveCmd.accesskey;" label="&fileSaveCmd.label;" oncommand="cmdFileSave()"/>
<menuitem id="menu_close"/>
<menuseparator/>
<!-- page setup gets inserted here -->
<menuitem id="printMenuItem" accesskey="&filePrintCmd.accesskey;" label="&filePrintCmd.label;" command="cmd_print"/>
</menupopup>
</menu>
<!-- Edit Menu -->
<menu id="editMenu">
<!-- Filled by editorOverlay.xul -->
</menu>
<!-- 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 id="composetoolbarmenu" label="&viewToolbarsButtonsCmd.label;" accesskey="&viewToolbarsButtonsCmd.accesskey;" command="cmdViewToolbarsButtons" icqlabel="&viewToolbarsButtonsCmd_ICQ.label;">
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</menuitem>
<menuitem label="&viewToolbarsComposeCmd.label;" accesskey="&viewToolbarsComposeCmd.accesskey;" command="cmdViewToolbarsCompose" class="Hide-in-Icq">
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</menuitem>
</menupopup>
</menu>
<menuseparator />
<menuitem name="miTimestamp" id="miTimestamp" label="" accesskey="&miTimestamp.accesskey;"
command="cmd_ShowTimeStamp" key="key_showTimeStamp"/>
</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>
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</menu>
<!-- People Menu -->
<menu accesskey="&peopleMenu.accesskey;" label="&peopleMenu.label;">
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
<menupopup>
<!-- <menuitem label="&peopleSendChatInvitationCmd.label;" oncommand="cmdPeopleSendChatInvitation()"/> -->
<menuitem id="menu_peopleadd" label="&peopleAddToBuddyListCmd.label;" accesskey="&peopleAddToBuddyListCmd.accesskey;" oncommand="cmdAddABuddy()" icqlabel="&peopleAddToBuddyListCmd_ICQ.label;">
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</menuitem>
<menuitem label="&peopleWarnCmd.label;" accesskey="&peopleWarnCmd.accesskey;" class="Hide-in-Icq" oncommand="cmdPeopleWarn()">
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</menuitem>
<menuitem label="&peopleBlockCmd.label;" accesskey="&peopleBlockCmd.accesskey;" class="Hide-in-Icq" oncommand="cmdPeopleBlock()">
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</menuitem>
<menuitem label="&peopleUnblockCmd.label;" accesskey="&peopleUnblockCmd.accesskey;" class="Hide-in-Icq" oncommand="cmdPeopleUnblock()">
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</menuitem>
<!--
<menuitem label="&selectbi.label;" accesskey="&selectbi.accesskey;" class="Hide-in-Icq"
oncommand="goAIMPreferences('instantmessenger', 'chrome://aim/content/pref-IM_buddyicon.xul', 'biinstantmessenger');">
oncommand="window.open('chrome://aim/content/pref-IM_buddyicon.xul',
'Buddy Icon',
'chrome,titlebar,dialog=yes' );">
oncommand="goPreferences('instantmessenger', 'chrome://aim/content/pref-IM_instantmessage.xul', 'biinstantmessenger');">
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</menuitem>
-->
<menuitem label="&sendfile.label;" accesskey="&sendfile.accesskey;" class="Hide-in-Icq"
command="cmd_sendFile">
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</menuitem>
</menupopup>
</menu>
<menu accesskey="&taskMenu.accesskey;" id="tasksMenu"/>
<menu id="windowMenu"/>
<menu accesskey="&helpMenu.accesskey;" id="menu_Help"/>
<spacer flex="1"/>
<label id="statusBar" class="Hide-in-Icq" observes="IM:WarningPercent">
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</label>
</menubar>
<toolbar id="buttonToolbar" class="toolbar-primary">
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
<hbox id="toolbar_button_box">
<toolbarbutton id="tbAddBuddy" label="&addbuddyButton.label;" icqlabel="&addbuddyButton_ICQ.label;" class="toolbarbutton-1" oncommand="cmdAddABuddy()" tooltip="aTooltip" tooltiptext="&addbuddyButton.tooltip;" icqtooltip="&addbuddyButton_ICQ.tooltip;">
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</toolbarbutton>
<toolbarbutton id="tbWarn" label="&warnButton.label;" class="toolbarbutton-1 Hide-in-Icq" oncommand="cmdPeopleWarn()" tooltip="aTooltip" tooltiptext="&warnButton.tooltip;">
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</toolbarbutton>
<toolbarbutton id="tbBlock" label="&blockButton.label;" icqlabel="&blockButton_ICQ.label;" class="toolbarbutton-1" oncommand="cmdPeopleBlock()" tooltip="aTooltip" tooltiptext="&blockButton.tooltip;" icqtooltip="&blockButton_ICQ.tooltip;">
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</toolbarbutton>
<toolbarbutton id="imPrint" label="&btnPrint.label;" class="toolbarbutton-1"
command="cmd_print" tooltip="aTooltip" tooltiptext="&printButton.tooltip;">
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</toolbarbutton>
<spacer flex="1"/>
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</hbox>
<hbox id="throbber-box" autostretch="never">
<button id="navigator-throbber" oncommand="AimgoClickThrobber('&throbber.url;')" tooltip="aTooltip" tooltiptext="&throbber.tooltip;"/>
</hbox>
</toolbar>
<toolbar id="ScreenNameOrg" tbautostretch="never">
<label value="&fldScreenName.label;" control="fldScreenName"/>
<textbox name="fldScreenName" id="fldScreenName" flex="1" class="toolbar" oncommand="converseKeyListener()" onkeypress="toKeyPress(event);"/>
<label id="icqDisplayFields" value="&fldDisplayName.label;" control="fldDisplayName" hidden="true"/>
<textbox name="fldDisplayName" id="fldDisplayName" flex="1" class="toolbar" disabled="true" value="" hidden="true"/>
</toolbar>
</toolbox>
<vbox id="ConverseOrg" flex="1">
<!-- Main Content Area of the Window -->
<hbox id="ContentOrg" flex="1">
<!-- Main IM Area -->
<vbox flex="1">
<!-- IM Logging Window -->
<vbox id="LogOrg" flex="1" name="LogOrg">
<iframe onfocus="logWndFocus(true);" onblur="logWndFocus(false);"
context="aimLogContext"
type="content" id="LogWnd" name="LogWnd" flex="1" src="about:blank"/>
</vbox>
<splitter id="ComposeSplitter" collapse="none" persist="state"/>
<!-- IM Composing Window -->
<vbox id="ComposeOrg" flex="1">
<toolbox id="imComposeToolbox" >
<!-- These toolbar items get filled out from the editorOverlay -->
<toolbar id="FormatToolbar" persist="collapsed" tbautostretch="never" class="Hide-in-Icq">
<menulist class="toolbar-focustarget" id="FontFaceSelectStyle" crop="right">
<menupopup oncommand="changeFont();" id="FontFacePopupStyle">
<menuitem label="&fontHelveticaFont.label;" value="Helvetica, foo, sans-serif"/>
<menuitem label="&fontTimes.label;" value="Times New Roman, Times, serif"/>
<menuitem label="&fontCourier.label;" value="Courier New, Courier, monospace"/>
</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;"/>
<spacer flex="1"/>
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</toolbar>
</toolbox>
<!-- Compose Window and Send Button Organizational Grouping-->
<vbox id="ComposeWndBox" flex="1">
<editor onfocus="composeWndFocus(true);" context="aimContentContext"
onblur="composeWndFocus(false);" type="content-primary" id="ComposeWnd"
editortype="html" name="ComposeWnd" src="about:blank" flex="1"/>
<hbox id="bottomOfIMWindow" autostretch="never" align="center">
<image id="BuddyIcon" class="biImage Hide-in-Icq cursorpointer"
onclick="goPreferences('instantmessenger', 'chrome://aim/content/pref-IM_instantmessage.xul', 'biinstantmessenger');">
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</image>
<label id="typingBar" class="Hide-in-Icq" >
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</label>
<spacer flex="1"/>
<!-- Send Button -->
<button id="btnSend" class="aim-button" label="&sendButton.label;" disabled = "true"
tooltip="aTooltip" tooltiptext="&sendButton.tooltip;" oncommand="AimIMCmdSend(false);"
icqtooltip="&sendButton_ICQ.tooltip;"
onkeypress="if ((event.keyCode == 13) || (event.keyCode == 10)) AimIMCmdSend(false); if (event.keyCode ==9) UnFocusSend();">
<observes element="cmd_smiley" attribute="state" onbroadcast="EnableSendButton()"/>
<observes element="sessionComposeWatcher" attribute="sessionMode"/>
</button>
</hbox>
</vbox>
</vbox>
</vbox>
</hbox>
<hbox id="taskbar" persist="collapsed">
<!-- hide the channels menus because of the narrow form factor -->
<box id="taskbarMenuBox" hidden="true"/>
</hbox>
</vbox>
</overlay>