Closed Bug 1631465 Opened 4 years ago Closed 4 years ago

Expose per-printer the non-writable paper areas to the frontend code

Categories

(Core :: Print Preview, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: jwatt, Assigned: alaskanemily)

References

(Blocks 1 open bug)

Details

(Whiteboard: [print2020_v81])

Attachments

(4 files)

The new print preview design [still] allows the paper margins to be given user supplied values. We do not have a way to inform the frontend code about the physical limitations of the selected printer however. We should implement a mechanism to do that so that the preview can be prevented from displaying the pages with smaller margins than the selected printer is capable of printing. Without that the preview could end up looking fine but the actual print could end up clipping what was shown in the print preview which would be frutrating.

Depends on: 608012
Depends on: 117233
No longer depends on: 608012
Blocks: 1651112
No longer blocks: 1631440
Whiteboard: [print2020] → [print2020_v80]
Whiteboard: [print2020_v80] → [print2020_v80][bobowen?][nordzilla?][alaskanemily?]
Assignee: nobody → emcdonough
Status: NEW → ASSIGNED
Whiteboard: [print2020_v80][bobowen?][nordzilla?][alaskanemily?] → [print2020_v80]
Attachment #9163306 - Attachment description: Bug 1631465 - Add unwritable margin information to nsIPaper → Bug 1631465 part 1 - Add unwritable margin information to nsIPaper
Blocks: 1652846
Keywords: leave-open
Pushed by emcdonough@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4fcf60c39b09
part 1 - Add unwritable margin information to nsIPaper r=jwatt
https://hg.mozilla.org/integration/autoland/rev/cc31df5b2aca
part 2 - Add unwritable margin information for OS X r=jwatt
Whiteboard: [print2020_v80] → [print2020_v81]

At some point it might be good to move all of the interaction with the native
Windows printer API into some sort of wrapper class, but this keeps it simple
for now.

This includes adding nsPrinterWin and nsPaperWin, so that we can retrieve
information from the printer device lazily.

Depends on D84008

Pushed by bobowencode@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/2870d4d0abb9
part 3: Move calculation of unwritable margins to WinUtils. r=jwatt
https://hg.mozilla.org/integration/autoland/rev/28c7e80eab2f
part 4: Add unwritable margin information for Windows. r=jwatt
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: