gecko-dev/mailnews/addrbook/resources/content/addressbook.xul
1999-07-27 23:38:29 +00:00

194 lines
8.3 KiB
XML

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://addressbook/skin/" type="text/css"?>
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
<?xul-overlay href="chrome://global/content/tasksOverlay.xul"?>
<!DOCTYPE window
[
<!ENTITY addressbookWindow.title "Address Book">
<!-- menu items: the . means that the menu item isn't implemented yet -->
<!ENTITY fileMenu.label "File">
<!ENTITY newMenu.label "New">
<!ENTITY newNavCmd.label ".Navigator">
<!ENTITY newMessageCmd.label "Message">
<!ENTITY newCardCmd.label "New Card...">
<!ENTITY newListCmd.label ".New List...">
<!ENTITY newAddressBookCmd.label ".New Address Book...">
<!ENTITY newDirectoryCmd.label ".New Directory...">
<!ENTITY importCmd.label ".Import...">
<!ENTITY exportCmd.label ".Export...">
<!ENTITY printPreviewCmd.label ".Print Preview">
<!ENTITY printCardViewCmd.label ".Print Card View...">
<!ENTITY printAddressBook.label ".Print Address Book...">
<!ENTITY closeCmd.label "Close">
<!ENTITY editMenu.label "Edit">
<!ENTITY undoCmd.label ".Undo">
<!ENTITY redoCmd.label ".Redo">
<!ENTITY cutCmd.label ".Cut">
<!ENTITY copyCmd.label ".Copy">
<!ENTITY pasteCmd.label ".Paste">
<!ENTITY deleteCmd.label "Delete">
<!ENTITY selectAllCmd.label ".Select All">
<!ENTITY searchCmd.label ".Search...">
<!ENTITY htmlDomainCmd.label ".HTML Domains...">
<!ENTITY abPropsCmd.label "Properties">
<!ENTITY prefsCmd.label ".Preferences">
<!ENTITY viewMenu.label "View">
<!ENTITY showMenu.label ".Show">
<!ENTITY showAbToolbarCmd.label ".Address Book Toolbar">
<!ENTITY showCardPane.label ".Card Pane">
<!ENTITY showTaskbar.label ".Taskbar">
<!ENTITY sortMenu.label ".Sort">
<!ENTITY sortByNameCmd.label ".by Name">
<!ENTITY sortByEmailCmd.label ".by Email">
<!ENTITY sortByOrganizationCmd.label ".by Organization">
<!ENTITY sortByNicknameCmd.label ".by Nickname">
<!ENTITY sortByPhoneCmd.label ".by Phone Number">
<!ENTITY sortByCityCmd.label ".by City">
<!ENTITY sortAscendingCmd.label ".Ascending">
<!ENTITY sortDescendingCmd.label ".Descending">
<!ENTITY stopSearchingCmd.label ".Stop Searching">
<!-- Toolbar items -->
<!ENTITY newcardButton.img "chrome://addressbook/skin/newcard.gif">
<!ENTITY newcardButton.label "New Card">
<!ENTITY newlistButton.img "chrome://addressbook/skin/newlist.gif">
<!ENTITY newlistButton.label ".New List">
<!ENTITY editButton.img "chrome://addressbook/skin/property.gif">
<!ENTITY editButton.label "Edit">
<!ENTITY newmsgButton.img "chrome://addressbook/skin/abnewmsg.gif">
<!ENTITY newmsgButton.label "New Msg">
<!ENTITY deleteButton.img "chrome://messenger/skin/trash.gif">
<!ENTITY deleteButton.label "Delete">
<!ENTITY stopButton.img "resource:/res/toolbar/TB_Stop.gif">
<!ENTITY stopButton.label ".Stop">
<!ENTITY searchButton.img "resource:/res/toolbar/TB_Search.gif">
<!ENTITY searchButton.label ".Search">
<!ENTITY showNames.label "Show names containing:">
<!ENTITY throbber.img "resource:/res/throbber/anims00.gif">
<!ENTITY throbber.url "http://www.mozilla.org/">
]>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
height="420"
width="600"
align="vertical"
title="&addressbookWindow.title;"
windowtype="mail:addressbook"
onload="OnLoadAddressBook()">
<html:script language="JavaScript" src="chrome://addressbook/content/addressbook.js"/>
<html:script language="javascript" src="chrome://addressbook/content/resultPane.js"/>
<html:script language="javascript" src="chrome://addressbook/content/cardviewPane.js"/>
<html:script language="JavaScript" src="chrome://addressbook/content/editcard.js"/>
<!--
<html:script language="JavaScript" src="chrome://messenger/content/commandglue.js"/>
<html:script language="JavaScript" src="resource:/res/samples/DumpDOM.js"/>
-->
<menubar>
<menu id="fileMenu" name="&fileMenu.label;">
<menu name="&newMenu.label;">
<menuitem name="&newNavCmd.label;" onclick="NewBrowserWindow();"/>
<menuitem name="&newMessageCmd.label;" onclick="AbNewMessage();"/>
</menu>
<menuitem name="&newCardCmd.label;" onclick="AbNewCardDialog()"/>
<menuitem name="&newListCmd.label;" onclick="AbNewList()"/>
<menuitem name="&newAddressBookCmd.label;" onclick="AbNewAddressBook()"/>
<menuitem name="&newDirectoryCmd.label;" onclick="AbNewDirectoryt()"/>
<separator/>
<menuitem name="&importCmd.label;" onclick="AbImport()"/>
<menuitem name="&exportCmd.label;" onclick="AbExport()"/>
<separator/>
<menuitem id="pageSetup"/>
<menuitem name="&printPreviewCmd.label;" onclick="AbPrintPreview()"/>
<menuitem name="&printCardViewCmd.label;" onclick="AbCardView()"/>
<menuitem name="&printAddressBook.label;" onclick="AbPrintAddressBook()"/>
<separator/>
<menuitem name="&closeCmd.label;" onclick="AbClose()"/>
</menu>
<menu name="&editMenu.label;">
<menuitem name="&undoCmd.label;" onclick="AbEditUndo()"/>
<menuitem name="&redoCmd.label;" onclick="AbEditRedo()"/>
<separator/>
<menuitem name="&cutCmd.label;" onclick="AbEditCut();"/>
<menuitem name="&copyCmd.label;" onclick="AbEditCopy();"/>
<menuitem name="&pasteCmd.label;" onclick="AbEditPaste();"/>
<menuitem name="&deleteCmd.label;" onclick="AbDelete();"/>
<menuitem name="&selectAllCmd.label;" onclick="AbSelectAll();"/>
<separator/>
<menuitem name="&searchCmd.label;" onclick="AbSearch();"/>
<separator/>
<menuitem name="&htmlDomainCmd.label;" onclick="AbHTMLDomain();"/>
<menuitem name="&abPropsCmd.label;" onclick="EditCard();"/>
<separator/>
<menuitem name="&prefsCmd.label;" onclick="MsgPreferences();"/>
</menu>
<menu name="&viewMenu.label;">
<menu name="&showMenu.label;">
<menuitem name="&showAbToolbarCmd.label;" onclick="AbShowToolbar()"/>
<menuitem name="&showCardPane.label;" onclick="AbShowCardPane()"/>
<menuitem name="&showTaskbar.label;" onclick="AbShowTaskbar()"/>
</menu>
<menu name="&sortMenu.label;">
<menuitem name="&sortByNameCmd.label;" onclick="AbSortByName()"/>
<menuitem name="&sortByEmailCmd.label;" onclick="AbSortByEmail()"/>
<menuitem name="&sortByOrganizationCmd.label;" onclick="AbSortByOrganization()"/>
<menuitem name="&sortByNicknameCmd.label;" onclick="AbSortByNickname()"/>
<menuitem name="&sortByPhoneCmd.label;" onclick="AbSortByPhoneNumber()"/>
<menuitem name="&sortByCityCmd.label;" onclick="AbSortByCity()"/>
<separator/>
<menuitem name="&sortAscendingCmd.label;" onclick="AbSortAscending()"/>
<menuitem name="&sortDescendingCmd.label;" onclick="AbSortDescending()"/>
</menu>
</menu>
<menu id="tasksMenu"/>
<menu id="helpMenu"/>
</menubar>
<toolbox>
<toolbar>
<titledbutton src="&newcardButton.img;" align="bottom" value="&newcardButton.label;" onclick="AbNewCardDialog()"/>
<titledbutton src="&newlistButton.img;" align="bottom" value="&newlistButton.label;" onclick="AbNewList()"/>
<titledbutton src="&editButton.img;" align="bottom" value="&editButton.label;" onclick="EditCard()"/>
<titledbutton src="&newmsgButton.img;" align="bottom" value="&newmsgButton.label;" onclick="AbNewMessage()"/>
<titledbutton src="&deleteButton.img;" align="bottom" value="&deleteButton.label;" onclick="AbDelete()"/>
<html:div class="separator" align="vertical"/>
<box align="vertical">
<spring flex="100%"/>
<html:div style="padding-left:5px; padding-bottom:2px">&showNames.label;</html:div>
<html:input id="searchtext" type="text" align="bottom" style="min-width:100px; min-height:25px; padding-bottom:0px"/>
</box>
<titledbutton src="&stopButton.img;" align="bottom" value="&stopButton.label;" onclick="AbStop()"/>
<titledbutton src="&searchButton.img;" align="bottom" value="&searchButton.label;" onclick="AbSearch()"/>
<spring flex="100%"/>
<titledbutton src="&throbber.img;" align="right" onclick="MsgHome('&throbber.url;')"/>
</toolbar>
</toolbox>
<!-- The main address book three pane frame -->
<html:iframe src="chrome://addressbook/content/addresspanes.html" name="3paneaddressbook" flex="100%" />
<toolbox id="taskbox"/>
</window>