home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
- <?xml-stylesheet href="chrome://yasearch/skin/yasearch.css"?>
- <?xml-stylesheet href="chrome://yasearch/skin/bookmarks/favicons.bookmarks.menu.css"?>
- <?xul-overlay href="bar:browser-overlay"?>
- <!DOCTYPE overlay [
- <!ENTITY images "chrome://yasearch/skin/images/">
- <!ENTITY % yaBrandDTD SYSTEM "chrome://yasearch/locale/yasearch.dtd">
- %yaBrandDTD;
- <!ENTITY % yaBloggersDTD SYSTEM "chrome://yasearch/locale/bloggers/bloggers.dtd">
- %yaBloggersDTD;
- <!ENTITY % yaLinksDTD SYSTEM "chrome://yasearch/locale/links/links.dtd">
- %yaLinksDTD;
- ]>
-
- <overlay id="yasearch"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- xmlns:html="http://www.w3.org/1999/xhtml">
-
- <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
- <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
-
- <script type="application/x-javascript" src="chrome://yasearch/content/utils.js"/>
- <script type="application/x-javascript" src="chrome://yasearch/content/modules/progresslistener.js"/>
- <script type="application/x-javascript" src="chrome://yasearch/content/bloggers/bloggers.js"/>
- <script type="application/x-javascript" src="chrome://yasearch/content/yasearch.js"/>
- <script type="application/x-javascript" src="chrome://yasearch/content/bookmarks/bookmarksutils.js"/>
- <script type="application/x-javascript" src="chrome://yasearch/content/ftab/ftab.overlay.js"/>
-
- <script type="application/x-javascript" src="chrome://yasearch/content/translate/translate.js"/>
-
- <popup id="contentAreaContextMenu">
- <menuitem id="yasearchMenuIdPrefix-yandex-search-menu" class="menuitem-iconic"
- image="&images;yandex.png" label="&yasearch.context.menu.search.label;"
- accesskey="&yasearch.context.menu.search.accesskey;" tooltiptext="&yasearch.context.menu.search.label;"
- oncommand="Ya.search('www', event);"
- insertbefore="context-keywordfield,context-searchselect,frame-sep"/>
-
- <menuitem id="yasearchQTranslateItem-lingvo" class="menuitem-iconic"
- image="&images;slovari.lingvo.png" label="&yasearch.lingvo.label;"
- accesskey="&yasearch.lingvo.accesskey;" tooltiptext="&yasearch.lingvo.desc;"
- oncommand="Ya.search('lingvo', event);"
- insertbefore="context-keywordfield,context-searchselect,frame-sep"/>
-
- <menu id="yasearchMenuIdPrefix-yandex-menu"
- insertbefore="context-keywordfield,context-searchselect,frame-sep"/>
-
- <menuitem id="yasearchQSendToMail" class="menuitem-iconic" image="&images;mail.png"
- label="&yasearch.mail.send.page.label;"
- yaLabelSend_page="&yasearch.mail.send.page.label;"
- yaLabelSend_selected="&yasearch.mail.send.selected.label;"
- yaLabelSend_image="&yasearch.mail.send.image.label;"
- accesskey="&yasearch.mail.send.accesskey;"
- oncommand="Ya.pageDataSender.sendToService('mail', event, {action:1050})"
- insertbefore="context-keywordfield,context-searchselect,frame-sep"/>
- <menuitem id="yasearchQSendToYaru" class="menuitem-iconic" image="&images;yaru.png"
- label="&yasearch.yaru.send.page.label;"
- yaLabelSend_page="&yasearch.yaru.send.page.label;"
- yaLabelSend_selected="&yasearch.yaru.send.selected.label;"
- yaLabelSend_image="&yasearch.yaru.send.image.label;"
- accesskey="&yasearch.yaru.send.accesskey;"
- oncommand="Ya.pageDataSender.sendToService('yaru', event, {action:3460})"
- insertbefore="context-keywordfield,context-searchselect,frame-sep"/>
- </popup>
-
- <popupset id="mainPopupSet">
- <popup id="yaBookmarksPopup"
- onpopupshowing="return YaBookmarksUtils.bookmarksPopupShow(this);"
- onpopuphidden="YaBookmarksUtils.bookmarksPopupHidden();">
- <menuitem label="&yasearch.bookmarks.openBookmark.label;"
- oncommand="YaBookmarksUtils.openBookmark();"
- accesskey="&yasearch.bookmarks.openBookmark.accesskey;"/>
- <menuitem label="&yasearch.bookmarks.openBookmark.inNewWindow.label;"
- oncommand="YaBookmarksUtils.openBookmark('window');"
- accesskey="&yasearch.bookmarks.openBookmark.inNewWindow.accesskey;"/>
- <menuitem label="&yasearch.bookmarks.openBookmark.inNewTab.label;"
- oncommand="YaBookmarksUtils.openBookmark('tab');"
- accesskey="&yasearch.bookmarks.openBookmark.inNewTab.accesskey;"/>
-
- <menuitem label="&yasearch.bookmarks.openAllInTabs.label;"
- oncommand="YaBookmarksUtils.openAllInTabs();"
- accesskey="&yasearch.bookmarks.openAllInTabs.accesskey;"/>
-
- <menuseparator/>
-
- <menuitem label="&yasearch.bookmarks.newBookmark.label;"
- oncommand="YaBookmarksUtils.addBookmark();"
- accesskey="&yasearch.bookmarks.newBookmark.accesskey;"/>
-
- <menuseparator/>
-
- <menuitem label="&yasearch.bookmarks.copy.label;"
- oncommand="YaBookmarksUtils.copyBookmarkToPersonalPanel();"
- accesskey="&yasearch.bookmarks.copy.accesskey;"/>
-
- <menuseparator/>
-
- <menuitem label="&yasearch.bookmarks.delete.label;"
- oncommand="YaBookmarksUtils.deleteBookmark();"
- accesskey="&yasearch.bookmarks.delete.accesskey;"/>
-
- <menuseparator/>
-
- <menuitem label="&yasearch.bookmarks.edit.bookmark.label;"
- oncommand="YaBookmarksUtils.editBookmark();"
- accesskey="&yasearch.bookmarks.edit.accesskey;"/>
-
- <menuitem label="&yasearch.bookmarks.edit.folder.label;"
- oncommand="YaBookmarksUtils.editBookmark();"
- accesskey="&yasearch.bookmarks.edit.accesskey;"/>
- </popup>
- </popupset>
-
- <keyset id="mainKeyset">
- <key id="yasearch-key-focus-search-1" modifiers="accel,shift"
- key="f" oncommand="Ya.focusSearch();"/>
- <key id="yasearch-key-focus-search-2" modifiers="accel,shift"
- key="k" oncommand="Ya.focusSearch();"/>
- <key id="yasearch-key-focus-search-3" modifiers="accel,shift"
- key="e" oncommand="Ya.focusSearch();"/>
- </keyset>
-
- <stringbundleset id="stringbundleset">
- <stringbundle id="yasearch-string-bundle-global" src="chrome://yasearch/locale/yasearch.properties"/>
- <stringbundle id="yasearch-string-bundle-bookmarks" src="chrome://yasearch/locale/bookmarks/bookmarks.properties"/>
- <stringbundle id="yasearch-string-bundle-city" src="chrome://yasearch/locale/city/city.properties"/>
- </stringbundleset>
-
- <toolbarpalette id="BrowserToolbarPalette">
-
- <toolbaritem id="yasearch-search"
- title="&yasearch.bar.label;" label="&yasearch.bar.label;"
- tooltiptext="&yasearch.bar.tooltiptext;"/>
-
- <toolbaritem id="yasearch-container"
- title="&yasearch.yandex.label;" label="&yasearch.yandex.label;">
- <yasearchbox id="yasearchbox" yaDefaultWidth="408"/>
- </toolbaritem>
-
- <!-- cy -->
- <toolbaritem id="yasearch-cy"
- title="&yasearch.cy.full.label;" label="&yasearch.cy.full.label;">
- <tooltip orient="vertical" id="yasearch-cy-tooltip" noautohide="true"/>
- <toolbarbutton id="yasearch-cy-button" type="menu-button" class="yasearch-tb-label-hack yasearch-no-label"
- oncommand="if (event.target == this) Ya.loadCY(event);"
- tooltip="yasearch-cy-tooltip"
- label="&yasearch.cy.label;"
- yaLabel="0" yaLabelHidden="true">
- <menupopup>
- <menuitem label="&yasearch.cy.full.label;"
- oncommand="Ya.loadCY(event);"/>
- <menuseparator/>
- <menuitem label="&yasearch.cy.pages.similar.label;"
- oncommand="Ya.loadCY(event, 'similar');"/>
- <menuitem label="&yasearch.cy.pages.all.label;"
- oncommand="Ya.loadCY(event, 'all');"/>
- </menupopup>
- </toolbarbutton>
- </toolbaritem>
-
- <toolbaritem id="yasearch-spam"
- title="&yasearch.spam.label;" label="&yasearch.spam.label;">
- <toolbarbutton id="yasearch-spam-button" type="menu-button" disabled="true"
- tooltiptext="&yasearch.spam.tooltiptext;" label="&yasearch.spam.label;"
- class="yasearch-no-label">
- <menupopup>
- <menuitem id="yasearch-spam-button-confirm-item" label="&yasearch.spam.action.label;"/>
- <menuseparator/>
- <menuitem label="&yasearch.spam.help.label;" oncommand="Ya.loadURI('&yasearch.link.bar.help;', 'tab');"/>
- </menupopup>
- </toolbarbutton>
- </toolbaritem>
-
- <toolbaritem id="yasearch-bloggers"
- title="&yasearch.bloggers.label;" label="&yasearch.bloggers.label;">
- <tooltip orient="vertical" id="yasearch-bloggers-tooltip" noautohide="true"
- onpopupshowing="return Ya.Bloggers.onTooltipShowing(event);">
- <vbox>
- <description value="&yasearch.bloggers.win.title;" style="text-align:center; font-weight:bold"/>
- </vbox>
- <deck id="yasearch-bloggers-tooltip-deck" selectedIndex="0">
- <description style="text-align:center" value="(...&yasearch.no-data.label;...)"/>
- <hbox pack="center">
- <label style="margin:0" value="&yasearch.bloggers.count.label;: "/>
- <label style="margin:0" id="yasearch-bloggers-tooltip-count" value=""/>
- </hbox>
- </deck>
- </tooltip>
- <toolbarbutton id="yasearch-bloggers-button" type="menu-button"
- oncommand="if (event.target == this) Ya.Bloggers.showHide();"
- tooltip="yasearch-bloggers-tooltip" label="&yasearch.bloggers.label;"
- yaLabel="0" yaLabelHidden="true" class="yasearch-tb-label-hack yasearch-no-label">
- <menupopup id="yasearch-bloggers-menupopup">
- <menuitem label="&yasearch.bloggers.reloadInfo.label;"
- oncommand="Ya.Bloggers.refreshData(true, true, true);"/>
- <menuseparator/>
- <menuitem label="&yasearch.bloggers.openLink.label;"
- oncommand="Ya.Bloggers.openLink(event);"/>
- <menuseparator/>
- <menuitem label="&yasearch.bloggers.addComment.label;"
- yaPageDataSendType="page-link"
- oncommand="Ya.pageDataSender.sendToService('yaru', event, {action:3310})"/>
- </menupopup>
- </toolbarbutton>
- </toolbaritem>
-
- <toolbaritem id="yasearch-spellchecker" title="&yasearch.spellchecker.label;"
- label="&yasearch.spellchecker.label;">
- <toolbarseparator/>
- <toolbarbutton id="yasearch-spellchecker-button" type="menu-button"
- tooltiptext="&yasearch.spellchecker.tooltiptext;" label="&yasearch.spellchecker.label;">
- <menupopup>
- <menuitem anonid="spellchecker-enabled" type="checkbox" label="&yasearch.spellchecker.enable.label;"/>
- <menuseparator/>
- <menuseparator anonid="spellchecker-dict-separator"/>
- <menuitem anonid="spellchecker-user-dict" label="&yasearch.spellchecker.userDict.label;"/>
- <menuseparator/>
- <menuitem anonid="spellchecker-get-more-dict" label="&yasearch.spellchecker.getMoreDict.label;"/>
- </menupopup>
- </toolbarbutton>
- </toolbaritem>
-
- <toolbaritem id="yasearch-translate" title="&yasearch.translate.label;"
- label="yasearch.translate.label;">
- <toolbarbutton id="yasearch-translate-button" type="menu-button"
- tooltiptext="&yasearch.translate.tooltiptext;" label="&yasearch.translate.label;">
- <menupopup>
- <menuitem anonid="translate-enable" type="checkbox" label="&yasearch.translate.enable.label;"/>
- <menuseparator/>
- <menuitem anonid="translate-reverse" type="checkbox" label="&yasearch.translate.reverse.enable.label;"/>
- <menuseparator/>
- <menuitem type="radio" anonid="translate-direction" from="en" to="ru" label="&yasearch.translate.language.en.label;&yasearch.translate.direction-left-right.label;&yasearch.translate.language.ru.label;"/>
- <menuitem type="radio" anonid="translate-direction" from="de" to="ru" label="&yasearch.translate.language.de.label;&yasearch.translate.direction-left-right.label;&yasearch.translate.language.ru.label;"/>
- <menuitem type="radio" anonid="translate-direction" from="fr" to="ru" label="&yasearch.translate.language.fr.label;&yasearch.translate.direction-left-right.label;&yasearch.translate.language.ru.label;"/>
- <menuitem type="radio" anonid="translate-direction" from="es" to="ru" label="&yasearch.translate.language.es.label;&yasearch.translate.direction-left-right.label;&yasearch.translate.language.ru.label;"/>
- <menuitem type="radio" anonid="translate-direction" from="it" to="ru" label="&yasearch.translate.language.it.label;&yasearch.translate.direction-right.label;&yasearch.translate.language.ru.label;"/>
- </menupopup>
- </toolbarbutton>
- </toolbaritem>
-
- <toolbaritem id="yasearch-login" class="yasearch-login-not"
- title="&yasearch.go-login.label;" label="&yasearch.go-login.label;">
- <toolbarbutton id="yasearch-login-button" type="menu-button"
- tooltiptext="&yasearch.go-login.desc;" _deftooltiptext="&yasearch.go-login.desc;"
- label="&yasearch.go-login.go.label;"
- yaLabel="0" class="yasearch-tb-label-hack"
- oncommand="Ya.openWelcomeWindow();"/>
- </toolbaritem>
-
- <toolbaritem id="yasearch-mail" class="yasearch-login-not"
- title="&yasearch.mail.label;" label="&yasearch.mail.label;">
- <toolbarbutton id="yasearch-mail-button" type="menu-button" yaAuthDisabled="true"
- oncommand="if (Ya.checkOnCommandEvent(event)) Ya.loadConditionalURI('mail', event, {action:1000});"
- tooltiptext="&yasearch.mail.tooltiptext;" label="&yasearch.mail.label;"
- yaLabel="0" class="yasearch-tb-label-hack yasearch-counter">
-
- <menupopup id="yasearch-mail-menupopup">
- <menuitem label="&yasearch.mail.reloadCounter.label;"
- oncommand="Ya.nsIYa.manualRefreshHTTPData('mail')"/>
- <menuseparator/>
- <menuitem label="&yasearch.mail.open.label;"
- oncommand="Ya.loadConditionalURI('mail', event, {action:1000});"/>
- <menuitem label="&yasearch.mail.openAdBook.label;"
- oncommand="Ya.loadURI('&yasearch.link.mail.host;/abook', event, {action:1010});"/>
- <menuitem label="&yasearch.mail.writeMail.label;"
- oncommand="Ya.loadURI('&yasearch.link.mail.host;/compose', event, {action:1020});"/>
- <menuitem label="&yasearch.mail.sendPage.label;"
- oncommand="Ya.pageDataSender.sendToService('mail', event, {action:1050})"/>
- <menuseparator style="display:none"/>
- </menupopup>
- </toolbarbutton>
- <tooltip orient="vertical" id="yasearch-mail-tooltip" noautohide="true"/>
- </toolbaritem>
-
- <toolbaritem id="yasearch-fotki" class="yasearch-login-not"
- title="&yasearch.fotki.label;" label="&yasearch.fotki.label;">
- <toolbarbutton id="yasearch-fotki-button" type="menu-button" yaAuthDisabled="true"
- oncommand="if (Ya.checkOnCommandEvent(event)) Ya.loadConditionalURI('fotki', event, {action:3530});"
- tooltiptext="&yasearch.fotki.tooltiptext;" label="&yasearch.fotki.label;"
- yaLabel="0" class="yasearch-tb-label-hack yasearch-counter">
- <menupopup id="yasearch-fotki-menupopup"/>
- </toolbarbutton>
- </toolbaritem>
-
- <toolbaritem id="yasearch-yaru" class="yasearch-login-not"
- title="&yasearch.yaru.label;" label="&yasearch.yaru.label;">
- <toolbarbutton id="yasearch-yaru-button" type="menu-button" yaAuthDisabled="true"
- oncommand="if (Ya.checkOnCommandEvent(event)) Ya.loadConditionalURI('yaru', event, {action:3450});"
- tooltiptext="&yasearch.yaru.tooltiptext;" label="&yasearch.yaru.label;"
- yaLabel="0" class="yasearch-tb-label-hack yasearch-counter">
- <menupopup id="yasearch-yaru-menupopup"/>
- </toolbarbutton>
- </toolbaritem>
-
- <toolbaritem id="yasearch-moikrug" class="yasearch-login-not"
- title="&yasearch.moikrug.label;" label="&yasearch.moikrug.label;">
- <toolbarbutton id="yasearch-moikrug-button" type="menu-button" yaAuthDisabled="true"
- oncommand="if (Ya.checkOnCommandEvent(event)) Ya.loadURI('http://moikrug.ru/threads/?from=bar', event, {action:1660});"
- tooltiptext="&yasearch.moikrug.tooltiptext;" label="&yasearch.moikrug.label;"
- yaLabel="0" class="yasearch-tb-label-hack yasearch-counter">
- <menupopup id="yasearch-moikrug-menupopup"/>
- </toolbarbutton>
- </toolbaritem>
-
- <toolbaritem id="yasearch-lenta" class="yasearch-login-not" hasFeeds="false"
- title="&yasearch.lenta.label;" label="&yasearch.lenta.label;">
- <toolbarbutton id="yasearch-lenta-button" type="menu-button" yaAuthDisabled="true"
- oncommand="if (Ya.checkOnCommandEvent(event)) Ya.loadConditionalURI('lenta', event, {action:1100});"
- tooltiptext="&yasearch.lenta.tooltiptext;" label="&yasearch.lenta.label;"
- yaLabel="0" class="yasearch-tb-label-hack yasearch-no-label yasearch-counter">
- <menupopup id="yasearch-lenta-menupopup" onpopupshowing="Ya.onLentaPopupshowing();">
- <menuitem label="&yasearch.lenta.reloadCounter.label;"
- oncommand="Ya.nsIYa.manualRefreshHTTPData('lenta')"/>
- <menuseparator/>
- <menuitem label="&yasearch.lenta.open.label;"
- oncommand="Ya.loadConditionalURI('lenta', event, {action:1100})"/>
- <menuseparator/>
- <menuitem label="&yasearch.lenta.add.feeds.label;"
- oncommand="Ya.buildFeedsMenu();"
- disabled="true"/>
- <menuitem label="&yasearch.lenta.open.settings.label;"
- oncommand="Ya.loadURI('http://lenta.yandex.ru/settings.xml?name=replace', event, {action:1110});"/>
- </menupopup>
- </toolbarbutton>
- </toolbaritem>
-
- <toolbaritem id="yasearch-money" class="yasearch-login-not"
- title="&yasearch.money.label;" label="&yasearch.money.label;">
- <toolbarbutton id="yasearch-money-button" type="menu-button" yaAuthDisabled="true"
- oncommand="if (Ya.checkOnCommandEvent(event)) Ya.loadURI('money.yandex.ru', event, {action:1500});"
- tooltiptext="&yasearch.money.tooltiptext;" label="&yasearch.money.label;"
- yaLabel="0" class="yasearch-tb-label-hack yasearch-no-label yasearch-counter">
- <menupopup id="yasearch-money-menupopup">
- <menuitem label="&yasearch.money.reloadCounter.label;"
- oncommand="Ya.nsIYa.manualRefreshHTTPData('money')"/>
- <menuseparator/>
- <menuitem label="&yasearch.money.open.label;"
- oncommand="Ya.loadURI('money.yandex.ru/shops.xml', event, {action:1520})"/>
- <menuitem label="&yasearch.money.open.prepaid.label;"
- oncommand="Ya.loadURI('money.yandex.ru/prepaid.xml', event, {action:1510});"/>
- </menupopup>
- </toolbarbutton>
- </toolbaritem>
-
- <toolbaritem id="yasearch-bookmarks" class="yasearch-login-not"
- title="&yasearch.bookmarks.label;" label="&yasearch.bookmarks.label;">
- <toolbarbutton id="yasearch-bookmarks-button" type="menu-button" yaAuthDisabled="true"
- label="&yasearch.bookmarks.label;"
- yaNeedAuthTooltiptext="&yasearch.bookmarks.needauth.tooltiptext;"
- yaLabel="0" class="yasearch-tb-label-hack yasearch-no-label"/>
- <tooltip orient="vertical" id="yasearch-bookmarks-tooltip" noautohide="true">
- <grid flex="1">
- <columns><column/><column flex="1"/></columns>
- <rows>
- <row align="center">
- <hbox pack="end"><label value="&yasearch.bookmarks.tooltip.url;: "/></hbox>
- <label crop="right"/>
- </row>
- <row align="center">
- <hbox pack="end"><label value="&yasearch.bookmarks.tooltip.name;: "/></hbox>
- <label crop="right"/>
- </row>
- <row align="center">
- <hbox pack="end"><label value="&yasearch.bookmarks.tooltip.descr;: "/></hbox>
- <label crop="right"/>
- </row>
- </rows>
- </grid>
- </tooltip>
- </toolbaritem>
-
- <toolbaritem id="yasearch-preferences"
- title="&yasearch.preferences.label;" label="&yasearch.preferences.label;">
- <toolbarseparator/>
- <toolbarbutton id="yasearch-preferences-button" class="yasearch-no-label"
- tooltiptext="&yasearch.preferences.label;" label="&yasearch.preferences.label;"
- oncommand="Ya.openPrefWindow();"/>
- </toolbaritem>
-
- <toolbaritem id="yasearch-partner"/>
-
- <toolbaritem id="yasearch-city" yadouble="parent"
- title="&yasearch.city.label;" label="&yasearch.city.label;"/>
-
- </toolbarpalette>
-
- <toolbox id="navigator-toolbox" crop="end">
- <toolbar id="yasearch-bar" accesskey="&yasearch.bar.accesskey;"
- toolbarname="&yasearch.bar.title;" class="chromeclass-toolbar-additional"
- context="toolbar-context-menu" hidden="false" iconsize="small"
- customizable="true" crop="end" mode="full"
- defaultset = "yasearch-search,yasearch-container,yasearch-bloggers,yasearch-spellchecker,yasearch-translate,separator,yasearch-login,yasearch-mail,yasearch-money,yasearch-bookmarks,yasearch-preferences,yasearch-partner,spring,yasearch-city,separator,yasearch.cb-default-0,yasearch.cb-default-1"
- persist="yaNmbSaved"/>
- </toolbox>
- </overlay>