csledit.xul (3300B)
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 --> 26 <?xml-stylesheet href="chrome://global/skin/global.css"?> 27 <?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?> 28 29 <!DOCTYPE window [ 30 <!ENTITY % csleditDTD SYSTEM "chrome://zotero/locale/csledit.dtd"> %csleditDTD; 31 <!ENTITY % zoteroDTD SYSTEM "chrome://zotero/locale/zotero.dtd"> %zoteroDTD; 32 ]> 33 34 <window 35 id="csl-edit" 36 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 37 onload="Zotero_CSL_Editor.init();" 38 title="&styles.editor;"> 39 40 <script src="chrome://zotero/content/include.js"/> 41 <script src="csledit.js"/> 42 43 <vbox flex="1"> 44 <hbox align="center"> 45 <button id="preview-refresh-button" label="&zotero.general.refresh;" oncommand="Zotero_CSL_Editor.refresh()"/> 46 <button id="zotero-csl-save" label="&zotero.general.saveAs;" oncommand="Zotero_CSL_Editor.save()"/> 47 <menulist id="zotero-csl-page-type" style="min-height: 1.6em; min-width: 50px" oncommand="Zotero_CSL_Editor.refresh()" /> 48 <label value=":" /> 49 <textbox size="5" id="preview-pages" type="timed" timeout="250" oncommand="Zotero_CSL_Editor.refresh()"/> 50 <checkbox oncommand="Zotero_CSL_Editor.refresh()" id="preview-suppress-author" label="&zotero.citation.suppressAuthor.label;" /> 51 <label value="&styles.editor.citePosition;" /> 52 <menulist id="zotero-ref-position" oncommand="Zotero_CSL_Editor.refresh()"> 53 <menupopup> 54 <menuitem label="first" value="0"/> 55 <menuitem label="subsequent" value="1"/> 56 <menuitem label="ibid" value="2"/> 57 <menuitem label="ibid-with-locator" value="3"/> 58 <menuitem label="near-note" value="4"/> 59 </menupopup> 60 </menulist> 61 <menulist id="locale-menu" oncommand="Zotero.Prefs.set('export.lastLocale', this.value); Zotero_CSL_Editor.refresh()"/> 62 <menulist id="zotero-csl-list" style="min-height: 1.6em; min-width: 100px" flex="1" oncommand="Zotero_CSL_Editor.onStyleSelected(this.value)"/> 63 </hbox> 64 <textbox id="zotero-csl-editor" type="timed" timeout="250" multiline="true" 65 flex="1" 66 onkeypress="Zotero_CSL_Editor.handleKeyPress(event)" 67 oncommand="Zotero_CSL_Editor.onStyleModified()"/> 68 <splitter id="csledit-splitter" collapse="before" persist="state"> 69 <grippy/> 70 </splitter> 71 <iframe id="zotero-csl-preview-box" flex="1" style="padding: 0 1em;background:white" overflow="auto" type="content"/> 72 </vbox> 73 74 </window>