www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

quickFormat.xul (5706B)


      1 <?xml version="1.0"?>
      2 <!--
      3     ***** BEGIN LICENSE BLOCK *****
      4     
      5     Copyright © 2011 Center for History and New Media
      6                      George Mason University, Fairfax, Virginia, USA
      7                      http://zotero.org
      8     
      9     This file is part of Zotero.
     10     
     11     Zotero is free software: you can redistribute it and/or modify
     12     it under the terms of the GNU Affero General Public License as published by
     13     the Free Software Foundation, either version 3 of the License, or
     14     (at your option) any later version.
     15     
     16     Zotero is distributed in the hope that it will be useful,
     17     but WITHOUT ANY WARRANTY; without even the implied warranty of
     18     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     19     GNU Affero General Public License for more details.
     20     
     21     You should have received a copy of the GNU Affero General Public License
     22     along with Zotero.  If not, see <http://www.gnu.org/licenses/>.
     23     
     24     ***** END LICENSE BLOCK *****
     25 -->
     26 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
     27 <?xml-stylesheet href="chrome://global/skin/browser.css" type="text/css"?>
     28 <?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?>
     29 <?xml-stylesheet href="chrome://zotero/skin/integration.css" type="text/css"?>
     30 <?xml-stylesheet href="chrome://zotero-platform/content/integration.css" type="text/css"?>
     31 <!DOCTYPE window SYSTEM "chrome://zotero/locale/zotero.dtd">
     32 
     33 <window
     34 	id="quick-format-dialog"
     35 	orient="vertical"
     36 	title="&zotero.integration.quickFormatDialog.title;"
     37 	xmlns:html="http://www.w3.org/1999/xhtml"
     38 	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     39 	persist="screenX screenY"
     40 	onkeypress="Zotero_QuickFormat.onKeyPress(event)"
     41 	onunload="Zotero_QuickFormat.onUnload()">
     42 	
     43 	<script src="../include.js"/>
     44 	<script src="windowDraggingUtils.js" type="text/javascript;version=1.8"/>
     45 	<script src="quickFormat.js" type="text/javascript;version=1.8"/>
     46 	
     47 	<box orient="horizontal" id="quick-format-entry"> 
     48 		<deck id="quick-format-deck" selectedIndex="0" flex="1">
     49 			<hbox id="quick-format-search" flex="1" align="start">
     50 				<hbox flex="1">
     51 					<toolbarbutton id="zotero-icon" type="menu">
     52 						<menupopup>
     53 							<menuitem id="keep-sorted" label="&zotero.citation.keepSorted.label;"
     54 								oncommand="Zotero_QuickFormat.onKeepSortedCommand()" type="checkbox"
     55 								hidden="true"/>
     56 							<menuitem id="show-editor" label="&zotero.integration.showEditor.label;"
     57 								oncommand="Zotero_QuickFormat.onShowEditorCommand()" type="checkbox"
     58 								hidden="true"/>
     59 							<menuitem id="classic-view" label="&zotero.integration.classicView.label;"
     60 								oncommand="Zotero_QuickFormat.onClassicViewCommand()"/>
     61 						</menupopup>
     62 					</toolbarbutton>
     63 					<iframe id="quick-format-iframe" ondragstart="event.stopPropagation()" src="data:application/xhtml+xml,%3C!DOCTYPE%20html%20PUBLIC%20%22-//W3C//DTD%20XHTML%201.0%20Strict//EN%22%20%22http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd%22%3E%3Chtml%20xmlns=%22http://www.w3.org/1999/xhtml%22%3E%3Chead%3E%3Clink%20rel=%22stylesheet%22%20type=%22text/css%22%20href=%22chrome://zotero/skin/integration.css%22/%3E%3Clink%20rel=%22stylesheet%22%20type=%22text/css%22%20href=%22chrome://zotero-platform/content/integration.css%22/%3E%3C/head%3E%3Cbody%20contenteditable=%22true%22%20spellcheck=%22false%22%20id=%22quick-format-editor%22/%3E%3C/html%3E"
     64 						tabindex="1" flex="1"/>
     65 					<vbox id="quick-format-spinner" style="visibility: hidden">
     66 						<image class="zotero-spinner-16"/>
     67 					</vbox>
     68 				</hbox>
     69 			</hbox>
     70 			<progressmeter id="quick-format-progress-meter" mode="undetermined" value="0" flex="1"/>
     71 		</deck>
     72 	</box>
     73 	<panel id="quick-format-reference-panel" noautofocus="true" norestorefocus="true"
     74 			height="0" width="0">
     75 		<richlistbox id="quick-format-reference-list" flex="1"/>
     76 	</panel>
     77 	<panel id="citation-properties" type="arrow" orient="vertical"
     78 			onkeypress="Zotero_QuickFormat.onPanelKeyPress(event)"
     79 			onpopuphidden="Zotero_QuickFormat.onCitationPropertiesClosed(event)">
     80 		<vbox flex="1">
     81 			<description id="citation-properties-title"/>
     82 			<hbox id="citation-properties-info"/>
     83 		</vbox>
     84 		<grid flex="1">
     85 			<columns>
     86 				<column/>
     87 				<column flex="1"/>
     88 			</columns>
     89 			<rows>
     90 				<row align="center">
     91 					<menulist id="locator-label" sizetopopup="none"
     92 							oncommand="Zotero_QuickFormat.onCitationPropertiesChanged(event)">
     93 						<menupopup id="locator-label-popup"/>
     94 					</menulist>
     95 					<textbox id="locator" flex="1"
     96 							oninput="window.setTimeout(function(event) { Zotero_QuickFormat.onCitationPropertiesChanged(event) }, 0)"/>
     97 				</row>
     98 				<row align="center">
     99 					<label value="&zotero.citation.prefix.label;"/>
    100 					<textbox class="citation-textbox" id="prefix" flex="1"
    101 							oninput="window.setTimeout(function(event) { Zotero_QuickFormat.onCitationPropertiesChanged(event) }, 0)"/>
    102 				</row>
    103 				<row align="center">
    104 					<label value="&zotero.citation.suffix.label;"/>
    105 					<textbox class="citation-textbox" id="suffix" flex="1"
    106 							oninput="window.setTimeout(function(event) { Zotero_QuickFormat.onCitationPropertiesChanged(event) }, 0)"/>
    107 				</row>
    108 				<html:div>
    109 					<html:input type="checkbox" id="suppress-author"
    110 							onchange="Zotero_QuickFormat.onCitationPropertiesChanged(event)"/>
    111 					<html:label for="suppress-author">
    112 						&zotero.citation.suppressAuthor.label;
    113 					</html:label>
    114 				</html:div>
    115 			</rows>
    116 		</grid>
    117 		<vbox flex="1" align="center">
    118 			<button id="citation-properties-library-link" onclick="Zotero_QuickFormat.showInLibrary()"/>
    119 		</vbox>
    120 	</panel>
    121 	<zoteroguidancepanel id="quick-format-guidance" about="quickFormat"
    122 			for="zotero-icon" x="26"/>
    123 </window>