www

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

cslpreview.xul (2675B)


      1 <?xml version="1.0"?>
      2 <!--
      3     ***** BEGIN LICENSE BLOCK *****
      4     
      5     Copyright © 2009 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     Contributed by Julian Onions
     26 -->
     27 <?xml-stylesheet href="chrome://global/skin/global.css"?>
     28 <?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?>
     29 
     30 <!DOCTYPE window [
     31 	<!ENTITY % cslpreviewDTD SYSTEM "chrome://zotero/locale/cslpreview.dtd"> %cslpreviewDTD;
     32 	<!ENTITY % zoteroDTD SYSTEM "chrome://zotero/locale/zotero.dtd"> %zoteroDTD;
     33 ]>
     34 
     35 <window
     36 	id="csl-preview"
     37 	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     38 	onload="Zotero_CSL_Preview.init();"
     39 	title="&styles.preview;">
     40 	
     41 	<script src="chrome://zotero/content/include.js"/>
     42 	<script src="cslpreview.js"/>
     43 
     44 	<vbox flex="1">
     45 		<hbox align="center">
     46 			<button id="preview-refresh-button" label="&zotero.general.refresh;" oncommand="Zotero_CSL_Preview.refresh()"/>
     47 			
     48 			<label value="&styles.preview.citationFormat;" />
     49 			<menulist id="citation-format" oncommand="Zotero_CSL_Preview.refresh()">
     50 				<menupopup>
     51 					<menuitem value="all" label="&styles.preview.citationFormat.all;"/>
     52 					<menuitem value="author" label="&styles.preview.citationFormat.author;"/>
     53 					<menuitem value="author-date" label="&styles.preview.citationFormat.authorDate;"/>
     54 					<menuitem value="label" label="&styles.preview.citationFormat.label;"/>
     55 					<menuitem value="note" label="&styles.preview.citationFormat.note;"/>
     56 					<menuitem value="numeric" label="&styles.preview.citationFormat.numeric;"/>
     57 				</menupopup>
     58 			</menulist>
     59 			
     60 			<menulist id="locale-menu" oncommand="Zotero.Prefs.set('export.lastLocale', this.value); Zotero_CSL_Preview.refresh()"/>
     61 		</hbox>
     62 		<iframe id="zotero-csl-preview-box" flex="1" style="padding: 0 1em; background:white;" overflow="auto" type="content"/>
     63 	</vbox>
     64 	
     65 </window>