зеркало из https://github.com/mozilla/pjs.git
Initial check in for print preview work it is complied in for Windows and linix only
The bulk of print preview can be turned on/off with NS_PRINT_PREVIEW define Bug 107562 r=kmcclusk sr=attinasi
This commit is contained in:
Родитель
f1f7df9351
Коммит
accd6b78cc
|
@ -852,9 +852,18 @@ function BrowserEditBookmarks()
|
|||
|
||||
function BrowserPrintPreview()
|
||||
{
|
||||
// implement me
|
||||
// using _content.print() until printing becomes scriptable on docShell
|
||||
try {
|
||||
_content.printPreview();
|
||||
} catch (e) {
|
||||
// Pressing cancel is expressed as an NS_ERROR_FAILURE return value,
|
||||
// causing an exception to be thrown which we catch here.
|
||||
// Unfortunately this will also consume helpful failures, so add a
|
||||
// dump(e); // if you need to debug
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function BrowserPrintSetup()
|
||||
{
|
||||
goPageSetup(); // from utilityOverlay.js
|
||||
|
|
|
@ -191,7 +191,7 @@
|
|||
<menuitem label="&editPageCmd.label;" accesskey="&editPageCmd.accesskey;" key="key_editPage" command="Browser:EditPage" />
|
||||
<menuseparator/>
|
||||
<!-- Page setup gets inserted here on some platforms -->
|
||||
<!-- <menuitem id="printPreviewMenuItem" label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;" command="Browser:PrintPreview"/> -->
|
||||
<menuitem id="printPreviewMenuItem" label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;" command="Browser:PrintPreview"/>
|
||||
<menuitem id="printMenuItem" label="&printCmd.label;" accesskey="&printCmd.accesskey;" key="printKb" command="Browser:Print"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="offlineGoOfflineCmd"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче