Hook up Page Setup and Print to view source.

This commit is contained in:
chanial%noos.fr 2003-10-26 20:24:17 +00:00
parent f1c41fadbe
commit ef1a3e7026
3 changed files with 16 additions and 6 deletions

View File

@ -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/>

View File

@ -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/>

View File

@ -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">