You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



Print Preview (2 of 2, BE and FE)

Detailed Description

re: Zooming in Print Preview...

The following is based on the following presumptions:

  • That similar zooming in and out of web pages works. This feature is discussed here.
  • That this zooming takes effect even while the nsIWebBrowser/nsIWebBrowserPrint object is in "print preview" mode. More specifically, the plan is for the Print Preview window to QI from the nsIPrintPreviewNavigation interface to the appropriate interface to do the zooming.

This means that implementing this feature will be relatively straightforward.

re: Frame printing options in print preview...

The options are already offered via the nsIPrintSetting interface so this feature should just require front-end work.

Tasks

  1. Add to Print Preview toolbar:
    • "Zoom in" and "Zoom out" graphic buttons,
    • a "Zoom level" selection widget, and
    • a "Frame print options"dropdown widget.

    2 days

  2. Add supporting JavaScript code to the Print Preview window to wire up those widgets to the underlying interfaces/objects. 3 days

Issues

  • Dependent on new "zoom" capabilities in Gecko.
  • Dependent on those capabilities being supported in Print Preview mode.

    Note that this greatly magnifies the risk since it basically depends not only on the two new features being implemented, but on them working together.

Links