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:
rods%netscape.com 2006-09-14 06:00:52 +00:00
Родитель 4a740f3f4d
Коммит 4d0d5a4094
2 изменённых файлов: 11 добавлений и 2 удалений

Просмотреть файл

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