mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 10:27:03 +00:00
Hook up Page Setup and Print to view source.
This commit is contained in:
parent
f1c41fadbe
commit
ef1a3e7026
@ -65,18 +65,20 @@
|
||||
|
||||
<script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
|
||||
<script type="application/x-javascript" src="chrome://global/content/findUtils.js"/>
|
||||
<script type="application/x-javascript" src="chrome://global/content/printUtils.js"/>
|
||||
<script type="application/x-javascript" src="chrome://global/content/viewSource.js"/>
|
||||
<script type="application/x-javascript" src="chrome://global/content/viewPartialSource.js"/>
|
||||
|
||||
<stringbundle id="findBundle" src="chrome://global/locale/finddialog.properties"/>
|
||||
|
||||
<commandset id="editMenuCommands"/>
|
||||
<command id="cmd_print" disabled="true"/>
|
||||
<command id="cmd_savePage" disabled="true" oncommand="ViewSourceSavePage();"/>
|
||||
<command id="cmd_print" oncommand="PrintUtils.print();"/>
|
||||
<command id="cmd_pagesetup" oncommand="PrintUtils.showPageSetup();"/>
|
||||
<command id="cmd_close" oncommand="window.close();"/>
|
||||
<commandset id="editMenuCommands"/>
|
||||
<command id="cmd_goToLine" oncommand="ViewSourceGoToLine();" disabled="true"/>
|
||||
<command id="cmd_highlightSyntax" oncommand="highlightSyntax();"/>
|
||||
<command id="cmd_wrapLongLines" oncommand="wrapLongLines()"/>
|
||||
<command id="cmd_goToLine" oncommand="ViewSourceGoToLine();" disabled="true"/>
|
||||
|
||||
<keyset id="editMenuKeys"/>
|
||||
<keyset id="viewSourceKeys">
|
||||
@ -102,6 +104,8 @@
|
||||
<menupopup id="filemenu-popup">
|
||||
<menuitem key="key_savePage" command="cmd_savePage"
|
||||
label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;"/>
|
||||
<menuitem command="cmd_pagesetup"
|
||||
label="&pageSetupCmd.label;" accesskey="&pageSetupCmd.accesskey;"/>
|
||||
<menuitem key="key_print" command="cmd_print"
|
||||
label="&printCmd.label;" accesskey="&printCmd.accesskey;"/>
|
||||
<menuseparator/>
|
||||
|
@ -65,16 +65,18 @@
|
||||
|
||||
<script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
|
||||
<script type="application/x-javascript" src="chrome://global/content/findUtils.js"/>
|
||||
<script type="application/x-javascript" src="chrome://global/content/printUtils.js"/>
|
||||
<script type="application/x-javascript" src="chrome://global/content/viewSource.js"/>
|
||||
|
||||
<stringbundle id="findBundle" src="chrome://global/locale/finddialog.properties"/>
|
||||
<stringbundle id="viewSourceBundle" src="chrome://global/locale/viewSource.properties"/>
|
||||
|
||||
<commandset id="editMenuCommands"/>
|
||||
<command id="cmd_goToLine" oncommand="ViewSourceGoToLine();" disabled="true"/>
|
||||
<command id="cmd_print" disabled="true"/>
|
||||
<command id="cmd_print" oncommand="PrintUtils.print();"/>
|
||||
<command id="cmd_pagesetup" oncommand="PrintUtils.showPageSetup();"/>
|
||||
<command id="cmd_savePage" disabled="true" oncommand="ViewSourceSavePage();"/>
|
||||
<command id="cmd_close" oncommand="window.close();"/>
|
||||
<commandset id="editMenuCommands"/>
|
||||
<command id="cmd_goToLine" oncommand="ViewSourceGoToLine();" disabled="true"/>
|
||||
<command id="cmd_highlightSyntax" oncommand="highlightSyntax();"/>
|
||||
<command id="cmd_wrapLongLines" oncommand="wrapLongLines()"/>
|
||||
|
||||
@ -103,6 +105,8 @@
|
||||
<menupopup id="filemenu-popup">
|
||||
<menuitem key="key_savePage" command="cmd_savePage"
|
||||
label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;"/>
|
||||
<menuitem command="cmd_pagesetup"
|
||||
label="&pageSetupCmd.label;" accesskey="&pageSetupCmd.accesskey;"/>
|
||||
<menuitem key="key_print" command="cmd_print"
|
||||
label="&printCmd.label;" accesskey="&printCmd.accesskey;"/>
|
||||
<menuseparator/>
|
||||
|
@ -13,6 +13,8 @@
|
||||
<!ENTITY savePageCmd.label "Save Page As...">
|
||||
<!ENTITY savePageCmd.accesskey "A">
|
||||
<!ENTITY savePageCmd.commandkey "S">
|
||||
<!ENTITY pageSetupCmd.label "Page Setup...">
|
||||
<!ENTITY pageSetupCmd.accesskey "u">
|
||||
<!ENTITY printCmd.label "Print...">
|
||||
<!ENTITY printCmd.accesskey "P">
|
||||
<!ENTITY printCmd.commandkey "P">
|
||||
|
Loading…
x
Reference in New Issue
Block a user