zotero/chrome/content/zotero/reader.xul
2021-08-05 11:27:54 +03:00

216 lines
6.6 KiB
XML

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?>
<?xul-overlay href="chrome://zotero/content/standalone/editMenuOverlay.xul"?>
<?xul-overlay href="chrome://zotero-platform/content/standalone/menuOverlay.xul"?>
<!DOCTYPE window [
<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd"> %globalDTD;
<!ENTITY % standaloneDTD SYSTEM "chrome://zotero/locale/standalone.dtd" > %standaloneDTD;
<!ENTITY % zoteroDTD SYSTEM "chrome://zotero/locale/zotero.dtd"> %zoteroDTD;
]>
<window
id="pdf-reader"
windowtype="zotero:reader"
orient="vertical"
width="1300"
height="800"
persist="screenX screenY width height"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<script type="application/javascript">
Components.utils.import('resource://gre/modules/Services.jsm');
</script>
<script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
<script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
<script type="application/javascript" src="chrome://global/content/inlineSpellCheckUI.js"/>
<script src="include.js"/>
<commandset id="mainCommandSet">
<!--FILE-->
<command id="cmd_quitApplication" oncommand="goQuitApplication();"/>
<command id="cmd_close" oncommand="window.close();"/>
<!--EDIT-->
<commandset id="editMenuCommands"/>
<command id="cmd_find"
oncommand="document.getElementById('zotero-tb-search').select()"/>
</commandset>
<keyset id="mainKeyset">
<key id="key_back"/>
<key id="key_forward"/>
</keyset>
<!-- TODO: Localize -->
<tooltip id="iframeTooltip" onpopupshowing="if (tooltipTitleNode = document.tooltipNode.closest('*[title]')) {this.setAttribute('label', tooltipTitleNode.getAttribute('title')); return true; } return false"/>
<menubar>
<menu id="fileMenu" label="&fileMenu.label;" accesskey="&fileMenu.accesskey;">
<menupopup id="menu_FilePopup">
<!-- TODO: Localize -->
<menuitem label="Save As…" oncommand="menuCmd('export')"/>
<menuitem label="Print" oncommand="menuCmd('print')"/>
<menuitem label="&zotero.items.menu.showInLibrary;" oncommand="menuCmd('showInLibrary')"/>
<menuseparator/>
<menuitem id="menu_close" label="&closeCmd.label;" key="key_close"
accesskey="&closeCmd.accesskey;" command="cmd_close"/>
</menupopup>
</menu>
<menu id="menu_edit">
<menupopup id="menu_EditPopup">
<menuitem id="menu_undo"/>
<menuitem id="menu_redo"/>
<menuseparator/>
<menuitem id="menu_cut"/>
<menuitem id="menu_copy"/>
<menuitem id="menu_paste"/>
<menuitem id="menu_delete"/>
</menupopup>
</menu>
<menu label="View" onpopupshowing="onViewMenuOpen()">
<menupopup>
<!--
To make presentation mode work it's necessary to set
full-screen-api.enabled=true
full-screen-api.allow-trusted-requests-only=false
and then hide all other visible window elements like toolbar, note sidebar, tabs, etc.
-->
<!-- <menuitem label="Switch to Presentation Mode" oncommand="menuCmd('presentationmode')"/>-->
<!-- <menuseparator/>-->
<menuitem
label="&zotero.pdfReader.rotateClockwise;"
oncommand="menuCmd('rotatecw')"
/>
<menuitem
label="&zotero.pdfReader.rotateCounterclockwise;"
oncommand="menuCmd('rotateccw')"
/>
<menuseparator/>
<menuitem
id="view-menuitem-hand-tool"
label="&zotero.pdfReader.handTool;"
type="checkbox"
oncommand="menuCmd('switchcursortool_hand')"
/>
<menuseparator/>
<menuitem
id="view-menuitem-vertical-scrolling"
label="&zotero.pdfReader.verticalScrolling;"
type="checkbox"
oncommand="menuCmd('switchscrollmode_vertical')"
/>
<menuitem
id="view-menuitem-horizontal-scrolling"
label="&zotero.pdfReader.horizontalScrolling;"
type="checkbox"
oncommand="menuCmd('switchscrollmode_horizontal')"
/>
<menuitem
id="view-menuitem-wrapped-scrolling"
label="&zotero.pdfReader.wrappedScrolling;"
type="checkbox"
oncommand="menuCmd('switchscrollmode_wrapped')"
/>
<menuseparator/>
<menuitem
id="view-menuitem-no-spreads"
label="&zotero.pdfReader.noSpreads;"
type="checkbox"
oncommand="menuCmd('switchspreadmode_none')"
/>
<menuitem
id="view-menuitem-odd-spreads"
label="&zotero.pdfReader.oddSpreads;"
type="checkbox"
oncommand="menuCmd('switchspreadmode_odd')"
/>
<menuitem
id="view-menuitem-even-spreads"
label="&zotero.pdfReader.evenSpreads;"
type="checkbox"
oncommand="menuCmd('switchspreadmode_even')"
/>
<menuseparator class="menu-type-reader"/>
<menuitem
id="view-menuitem-zoom-in"
label="&zotero.pdfReader.zoomIn;"
oncommand="menuCmd('zoomIn')"
/>
<menuitem
id="view-menuitem-zoom-out"
label="&zotero.pdfReader.zoomOut;"
oncommand="menuCmd('zoomOut')"
/>
<menuitem
id="view-menuitem-zoom-auto"
type="checkbox"
label="&zotero.pdfReader.zoomAuto;"
oncommand="menuCmd('zoomAuto')"
/>
<menuitem
id="view-menuitem-zoom-page-width"
type="checkbox"
label="&zotero.pdfReader.zoomPageWidth;"
oncommand="menuCmd('zoomPageWidth')"
/>
</menupopup>
</menu>
<menu
id="go-menu"
class="menu-type-reader"
label="&goMenu.label;"
onpopupshowing="onGoMenuOpen()"
>
<menupopup id="menu_goPopup">
<menuitem
id="go-menuitem-first-page"
class="menu-type-reader"
label="&zotero.pdfReader.firstPage;"
oncommand="menuCmd('firstpage')"
/>
<menuitem
id="go-menuitem-last-page"
class="menu-type-reader"
label="&zotero.pdfReader.lastPage;"
oncommand="menuCmd('lastpage')"
/>
<menuseparator class="menu-type-reader"/>
<menuitem
id="go-menuitem-back"
class="menu-type-reader"
label="&zotero.pdfReader.back;"
oncommand="menuCmd('back')"
/>
<menuitem
id="go-menuitem-forward"
class="menu-type-reader"
label="&zotero.pdfReader.forward;"
oncommand="menuCmd('forward')"
/>
</menupopup>
</menu>
<menu id="windowMenu"
label="&windowMenu.label;"
onpopupshowing="macWindowMenuDidShow();"
onpopuphidden="macWindowMenuDidHide();"
>
</menu>
</menubar>
<hbox flex="1">
<vbox id="zotero-reader" flex="3">
<browser id="reader"
tooltip="iframeTooltip"
type="content"
primary="true"
transparent="transparent"
src="resource://zotero/pdf-reader/viewer.html"
flex="1"/>
<popupset id="zotero-reader-popupset">
</popupset>
</vbox>
</hbox>
</window>