Closed Bug 127646 Opened 23 years ago Closed 22 years ago

Need Getter/Setter for paper name in nsIPrintSettings

Categories

(Core :: Printing: Output, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: roland.mainz, Assigned: rods)

References

Details

[as discussed with rods]
We need getter/setter method for the paper name in nsIPrintSettings
Currently we only have getter/setters for the paper size in nsIPrintSettings -
which is not enougth information when we want to support tray selection.

Currently we match a paper via it's size - when the size in nsIPrintSettings
matches a size supported by the device then we choose that paper. But what
happens if the printer has more than one tray - and multiple trays support the
same paper size ? Then we always match the first one we find... ;-(

Solution:
Add the paper name to nsIPrintSettings.
Then we could add the tray name to the paper, e.g. name_of_tray/paper_name
(Examples: "main/DIN-A4" or "manual/DIN-C4") - adding seperate getter/setters
for the tray name makes the things only more compliciated (paper sizes are bound
to trays anyway) - this scheme can fit perfectly into the current dialogs ...
Fix is included in Bug 128142 - futuring for now
Status: NEW → ASSIGNED
Depends on: 128142
Priority: -- → P1
Target Milestone: --- → Future
Blocks: 125824
Blocks: 128003
Blocks: 132563
Uhm - this looks fixed for me...
... can we close this bug or is there an issue left (follow-up is bug 132563
("Print job options dialog should use paper name instead of paper size to
set/get the selected paper size") ?
No longer blocks: 132563
Blocks: 132563
++ Paper size not remembered on Windows +++
On Windows (Windows 2000) mozilla still doesn't remember the papersize when it 
is closed an re-opened.

US-users would just be as annoyed if the standard papersize was A4. 
Suggestd behaviour on windows:

1. mozilla should remember the last paper size for each printer.

2. Mozilla does currently use the hard-coded value "letter" as default for all 
printers, which is convenient for U.S. users, but not for europe. The default 
paper size should be a customizable value in the preferences. This value should 
by default be set to "A4" for all european versions of mozilla.
On Windows the paper the size should ALWAYS come from the printer's default
paper size. If on Windows you want aA4 as your paper size then set it as the
default size for your printer.

It would be confusing to have Mozilla override this when there is a way to set
it externally.
Per http://lxr.mozilla.org/seamonkey/source/gfx/idl/nsIPrintSettings.idl -
"papername" getter/setter has been implemented long ago:
-- snip --
217   attribute boolean showPrintProgress;   /* indicates whether the progress
dialog should be shown */
218 
219   /* Additional XP Related */
220   attribute wstring paperName;     /* name of paper */
221   attribute short   paperSizeType; /* use native data or is defined here */
-- snip --

Marking bug as FIXED.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.