Closed
Bug 42817
Opened 26 years ago
Closed 24 years ago
Page setup (Print setup) XP dialog needs to be implemented
Categories
(Core :: Printing: Output, defect, P3)
Core
Printing: Output
Tracking
()
VERIFIED
FIXED
mozilla0.9.8
People
(Reporter: kmcclusk, Assigned: law)
References
Details
(Keywords: helpwanted)
Attachments
(4 obsolete files)
This bug was broken off from bug 36796 which covers the printer API's and
bringing up printer driver specific dialogs.
there are two separate dialogs used to setup printing.
a cross-platform page setup dialog where the user specifies margins, whether or
not to print the background etc.
a printer driver specific dialog that is provided by the printer manufacturer.
This dialog is usually brought up using a button off the page setup dialog or it
is displayed when the page is told to print.
This bug covers the cross-platform page setup dialog. The API's that this dialog
will call to setup printing is covered in bug 36796.
This bug also covers the setting and getting of the values for the
cross-platform dialog from the user prefs.
| Reporter | ||
Comment 1•26 years ago
|
||
Marking as [nsbeta2+]Exception Feature since this bug was broken out of an
existing bug which was already marked [nsbeta2+]Exception Feature
Keywords: nsbeta2
Whiteboard: [nsbeta2+]Exception Feature
Comment 2•26 years ago
|
||
not sure if this is a toolkit issue or an XPApps issue, but it's probably not a
Browser General issue (if people are actually supposed to see it, that is) .
goint to XP Apps first.
Assignee: asa → ben
Component: Browser-General → XP Apps: GUI Features
QA Contact: doronr → sairuh
Comment 3•26 years ago
|
||
>page setup dialog where the user specifies margins, whether or
>not to print the background etc.
I don't think those settings belong to Page Setup in an app like Mozilla.
Ideally, these setting should go in a Print As... dialog (aka. Print Preview). Until there is
such a dialog, the Print dialog is a better place for settings that may get changed
depending on a particular page. The user shouldn't need to open the Page Setup dialog
to choose whether to print the background, close the dialog and then open the Print
dialog.
Comment 4•26 years ago
|
||
I agree with Henri there. In other mac applictions, per-print options like
margins, background etc should go into a panel of the print dialog (and APIs
exist to extend the print dialog for this very reason). Otherwise, the user has
to go through a series of two dialogs to print, which is bad.
Comment 5•26 years ago
|
||
these bugs need to go through don first. I already have a full plate for
nsbeta2. sorry.
Assignee: ben → don
| Reporter | ||
Comment 6•26 years ago
|
||
In WIN32 apps the page setup dialog usually contains the margin settings.
We need to have a single cross-platform page setup dialog which has the same
controls regardless of the platform it is running on. Inserting some of the page
setup controls onto the print dialog can not be done in an XP way.
| Reporter | ||
Comment 7•26 years ago
|
||
Ok, disregard my last comment. I talked to dcone and I think we have a design
which will make you happy. We will make a nsIPrintSetup interface that is
responsible for getting and setting the print data + bringing up the page setup
dialog. the nsIPrintSetup interface can be implemented natively for the Mac and
it will be totally up to the platform specific Mac implementation to decide what
goes on the page setup dialog and what goes on the print dialog. For win32 and
Linux the nsIPrintSetup will require a ShowPage Listener be registered to bring
up a XUL-based page setup dialog.
something like:
class nsIPrintSetup {
GetMargins(PRInt32 left, PRInt32 right,PRInt32 top,PRInt32 bottom);
SetMargins(PRInt32 left, PRInt32 right,PRInt32 top,PRInt32 bottom);
GetPrintBackground(PRBool& aPrintBackground);
SetPrintBackground(PRBool aPrintBackground);
...
// On WIN32 and Linux all this method does is ask the aListerner to show the
// page setup dialog.
// It is up to the browser to register an aListerner
// and bring up a XUL-based page-setup dialog when the aListener is asked
// to showdialog. the XUL-based page-setup will be modal. When it // //
returns after the user hits OK it
// must call the nsIPrintSetup's Set methods.
ShowPageSetupDialog();
// This method will be called in the Browser code to register the
// nsIPageSetupListener
SetShowPageSetupDialogListener(nsIPageSetupListener aListener)
}
class nsIPageSetupListener {
ShowPage();
}
The browser code will also be responsible for reading and setting the printer
prefs by calling nsIPrintSetup
Comment 8•26 years ago
|
||
Ideally the File menu should have two printing-related items (as in the Aphrodite menu
spec):
Print… (or Print One Copy)
Print As...
Print... would print the page with whatever default settings.
Print As... would bring up a preview window with all the relevant margin and font size
settings. That window would have a button for proceeding to the platform-specific Print
dialog.
The user would almost never need to access Page Setup. For the rare cases there would
be a button in the Print As... window for opening the platform-specific Page Setup dialog.
There would be no need to extend the platform-specific dialogs.
Why was the whiteboard status of this bug "[nsbeta2+]Exception Feature"? This
feature was killed for beta 2? Clearing whiteboard status for re-consideration.
Whiteboard: [nsbeta2+]Exception Feature
Comment 10•26 years ago
|
||
over to Printing component.
Component: XP Apps: GUI Features → Printing
QA Contact: sairuh → shrir
Comment 12•26 years ago
|
||
Sorry for butting in with my comment but from I can tell I don't even think it is
good user experience to have *two* cascading dialogs for the printer setup. This
end user will not care for the fact what we can do in XUL vs in native dialogs.
If localization is the only reason, I don;t think we should subject users to this
annoying workaround.
Considering the resources and time we have throwing up the native page setup
dialogs seems to the lesser evil here.
| Reporter | ||
Comment 13•26 years ago
|
||
The only platform that has a native PageSetup dialog is Mac. WIN32 and Linux do
not have native dialogs for PageSetup. If someone wants the invest the time to
add the additional controls to the native PageSetup dialog on the Mac thats fine
with me, but we still need a solution on WIN32 and Linux. The application
usually defines all of the settings that are present on the PageSetup dialog.
Mac has some of the settings that are usually on the native Print dialog on the
PageSetup dialog which is why you always need to be able to bring up the native
PageSetup dialog on the Mac.
Comment 14•26 years ago
|
||
>but from I can tell I don't even think it is good user experience to have *two*
>cascading dialogs
Do you mean the Print As... scenario? The first one would be more like a preview mode
than a regular dialog. The UE could be made very good. With a good preview
implementation, you don't want to print without it again.
Comment 16•26 years ago
|
||
nav triage team:
nsbeta3+
reassigned to johng to determine what minimum spec should be. cc'ing sol to get
input.
Assignee: mcafee → johng
Whiteboard: [nsbeta2-] → [nsbeta2-][nsbeta3+
Updated•25 years ago
|
Whiteboard: [nsbeta2-][nsbeta3+ → [nsbeta2-][nsbeta3+]
Comment 17•25 years ago
|
||
Adding nsbeta3 keyword to bugs which already have nsbeta3 status markings so
the queries don't get all screwed up.
Keywords: nsbeta3
Comment 18•25 years ago
|
||
this nsbeta3+ has remained dormant for a month and a half, not even assigned to
an engineer. reassigning to kevin to figure out what to do with this.
Assignee: johng → kmcclusk
| Reporter | ||
Comment 19•25 years ago
|
||
marking nsbeta3-. This is an exception feature that declared to be out by PDT a
while back.
Whiteboard: [nsbeta2-][nsbeta3+] → [nsbeta2-][nsbeta3-]
| Reporter | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Updated•25 years ago
|
Target Milestone: M18 → ---
Comment 20•25 years ago
|
||
*** Bug 39739 has been marked as a duplicate of this bug. ***
Comment 21•25 years ago
|
||
spam : changing qa to sujay (new qa contact for Printing)
QA Contact: shrir → sujay
| Reporter | ||
Comment 22•25 years ago
|
||
The backend work is covered by bug 36796. Reassigning this bug to vishy for the
front-end XUL/UI work.
Assignee: kmcclusk → vishy
Status: ASSIGNED → NEW
Comment 23•25 years ago
|
||
*** Bug 75822 has been marked as a duplicate of this bug. ***
| Reporter | ||
Comment 24•25 years ago
|
||
bug 36796 has been closed. It covers the backend work to bring up the Mac Native
PageSetup dialog.
We should add the PageSetup menu item for Mac and bring up the Native Mac Dialog
(This would allow Mac user's to specify landscape/portrait for the printer
output, etc.)
Comment 25•25 years ago
|
||
since 0.9.1 has branched, and there are only 0.9.2 and 0.9.3 planned before 1.0,
this can not be left nsbeta2 or nsbeta3, right?
nominating for 0.9.2.
Keywords: mozilla0.9.2
Comment 26•25 years ago
|
||
dcone/german: is there a spec for this? if not would someone please work on
proposing a spec (perhaps in newsgroups and then as a bug in bugzilla)?
Whiteboard: [nsbeta2-][nsbeta3-]
Comment 27•25 years ago
|
||
nav triage: vishy wont do this in mozilla0.9.2.
Target Milestone: --- → Future
Comment 28•25 years ago
|
||
*** Bug 89880 has been marked as a duplicate of this bug. ***
Comment 29•25 years ago
|
||
I appreciate the desire for parsimony, but without the Print Setup feature, Mac
printing is effectively only half under the user's control. If Mac users have
to invoke Netscape 4.77 everytime they need to print a webpage, what advantage
is that to using a more contemporary version like Mozilla?
fizzilla needs Page Setup too.
Comment 32•24 years ago
|
||
Is anybody still on this one?
0.9.3 passed long ago...
With the current situation, I always have to open NS4\IE to print a page with no
headers\footers, reduced margins etc...
Comment 33•24 years ago
|
||
Why milestone is set to future? Not really serious for Macuser...
Comment 34•24 years ago
|
||
nominating for 0.9.5
This certainly needs to be implemented before Mozilla can claim itself an
official release.
Keywords: mozilla0.9.3 → mozilla0.9.5
Comment 35•24 years ago
|
||
remove milestone and reassign
Assignee: vishy → dcone
Target Milestone: Future → ---
| Reporter | ||
Comment 36•24 years ago
|
||
Bill, I think this is probably a dup of a bug you already have. This bug covers
the UI and glue code necessary to implement the page setup dialog. All of the
backend work is complete see bug 36796.
Reassigning to law@netscape.com
Assignee: dcone → law
| Assignee | ||
Comment 37•24 years ago
|
||
Setting target milestone; I'll coalesce with the other (dup) bug when I run
across it.
Target Milestone: --- → mozilla1.0
Comment 38•24 years ago
|
||
Comment 39•24 years ago
|
||
Just added a dumb patch that shows the Page Setup menu item on all platforms. The
JS just gets the nsIPrintOptions service, and calls ShowNativeDialog() which only
does anything on Mac). We probably need some platform overlay magic here. Note
that to get mac to do anything useful, you'll need the patch in bug 36796.
Comment 40•24 years ago
|
||
Comment on attachment 53040 [details] [diff] [review]
Show Page Setup menu item in File menu for browser
r=brade
Attachment #53040 -
Flags: review+
| Assignee | ||
Comment 41•24 years ago
|
||
Paul is going to be dealing with printing stuff.
Assignee: law → pchen
Comment 42•24 years ago
|
||
There is a mail bug 65871 which may be a dup of this.
Comment 43•24 years ago
|
||
Is there really a plan to show an XP (read: XUL) dialog at some stage in the
printing process? If so, this raises may issues:
1. Is it shown in response to Page Setup, or Print?
2. How does it gel with the native page setup and print dialogs? You *have* to
show the native dialogs, because only they can allow access to features which are
specific to the print driver that the user has. And popping up native dialogs
before/after XUL dialogs will look like crap.
I propose that for Page Setup and Print, we only use native dialogs. We should
allow the user to specify mozilla-specifci printing options using a Preferencea
panel, or separate 'Printing options' dialog that is available on a different
menu item.
Comment 44•24 years ago
|
||
In my mind the current implantation in Internet Explorer under MacOS is the best
one.
With LW 8.6.x:
-----------------
| File |
-----------------
[...]
- Pages Setup
- Print Preview (IE options Header/Footer/Background... at the bottom)
- Print ... Drop down Menu: Internet Explorer > Same option as in
Print preview but w/o the preview
[...]
-----------------
My 2 cents.
Comment 45•24 years ago
|
||
The page setup backend support in bug 36796 is ready for review. Let's get the UI
sorted out soon so nothing is held up.
Updated•24 years ago
|
Attachment #53040 -
Attachment is obsolete: true
Comment 46•24 years ago
|
||
Comment 47•24 years ago
|
||
Comment 48•24 years ago
|
||
Comment 49•24 years ago
|
||
The last 3 patches enable Page Setup, which gets overlayed for Mac only, to work
in Editor, Navigator, and Mailnews (including 3-pane, message window, and addr
book).
Comment 50•24 years ago
|
||
Changes for AIM are in bugscape bug 10451.
Comment 51•24 years ago
|
||
Reviews please:
cmanske/brade (editor), pchen (navigator), hwaara (mailnews)
sr from blake, if you would be so kind.
Comment 52•24 years ago
|
||
Comment on attachment 53385 [details] [diff] [review]
Fix Page setup for mailnews windows
r/sr=sspitzer
Attachment #53385 -
Flags: superreview+
Comment 53•24 years ago
|
||
Comment on attachment 53385 [details] [diff] [review]
Fix Page setup for mailnews windows
mail code looks fine to me.
r=hwaara
Attachment #53385 -
Flags: superreview+ → review+
Updated•24 years ago
|
Attachment #53386 -
Flags: review+
Comment 54•24 years ago
|
||
Comment on attachment 53386 [details] [diff] [review]
Fix page setup for navigator
>Index: communicator/resources/content/utilityOverlay.js
>===================================================================
>RCS file: /cvsroot/mozilla/xpfe/communicator/resources/content/utilityOverlay.js,v
>retrieving revision 1.46
>diff -b -u -2 -r1.46 utilityOverlay.js
>--- utilityOverlay.js 2001/09/28 20:13:32 1.46
>+++ utilityOverlay.js 2001/10/13 01:23:42
>@@ -128,4 +128,14 @@
> function goPageSetup()
> {
>+ // This code brings up the native page setup dialog (for platforms that
>+ // implement nsIPrintOptions.ShowNativeDialog()).
>+ var printOptionsService = Components.classes["@mozilla.org/gfx/printoptions;1"]
>+ .getService(Components.interfaces.nsIPrintOptions);
>+ if (!printOptionsService)
>+ throw Components.results.NS_ERROR_FAILURE;
If getService() fails, an exception will automatically be thrown, so if you reach
the line after getService(), you can assume it to have worked.
If this is a service that may not always be present, check for it like this:
const PRINTOPTIONS_CONTRACTID = "@mozilla.org/gfx/printoptions;1";
if (!(PRINTOPTIONS_CONTRACTID in Components.classes))
return;
var printOptionsService = ...
>+
>+ printOptionsService.ReadPrefs();
>+ printOptionsService.ShowNativeDialog();
>+ printOptionsService.WritePrefs();
> }
>
>Index: global/resources/content/mac/platformGlobalOverlay.xul
>===================================================================
>RCS file: /cvsroot/mozilla/xpfe/global/resources/content/mac/platformGlobalOverlay.xul,v
>retrieving revision 1.15
>diff -b -u -2 -r1.15 platformGlobalOverlay.xul
>--- platformGlobalOverlay.xul 2001/04/05 19:53:09 1.15
>+++ platformGlobalOverlay.xul 2001/10/13 01:23:51
>@@ -15,4 +14,7 @@
> <!-- quit -->
> <menupopup id="menu_FilePopup">
>+ <!-- Page setup -->
>+ <menuitem id="printSetupMenuItem" insertbefore="printMenuItem"
>+ label="&printSetupCmd.label;" accesskey="&printSetupCmd.accesskey;" command="cmd_printSetup"/>
The most common style is to align attributes on the second, third, etc. lines with
the first attribute on the first line.
r=jag if you make the suggested changes as appropriate.
Comment 55•24 years ago
|
||
Comment on attachment 53387 [details] [diff] [review]
Fix page setup for editor
r=jag
Attachment #53387 -
Flags: review+
Comment 56•24 years ago
|
||
sr=blake on all of them with jag's comments. Too tired to update all 3 and
don't want to spam.
Comment 57•24 years ago
|
||
Those change are in (so I obsoleted teh patches). This bug stays open for the XP
print setup dialog, however that turns out.
Updated•24 years ago
|
Attachment #53385 -
Attachment is obsolete: true
Updated•24 years ago
|
Attachment #53386 -
Attachment is obsolete: true
Updated•24 years ago
|
Attachment #53387 -
Attachment is obsolete: true
Comment 58•24 years ago
|
||
These changes have been checked in on the 0.9.4 branch.
| Reporter | ||
Comment 59•24 years ago
|
||
*** Bug 106983 has been marked as a duplicate of this bug. ***
Comment 60•24 years ago
|
||
Is this a DUPLICATE of bug 84947 ("We need a "better" print dialog..." - we have
a ready-to-go patch there which is currently in the review queue...) ?
Comment 61•24 years ago
|
||
moving to mozilla0.9.8
Status: NEW → ASSIGNED
Target Milestone: mozilla1.0 → mozilla0.9.8
| Assignee | ||
Comment 63•24 years ago
|
||
Implemented as part of the patch for bug 113197.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 64•24 years ago
|
||
It seems that re-opening this one and bug 65871 is fair, since Mac shows now
this menu item, but the dialog needs more work. I've just try it and got first
Alert warning in both cases of selected message or focused Message pane. The
text on this "Alert" (instead of meaningful title) states: "Printsetting arg is
null!", which is usefull for developer, but not for a user.
1. Code warning instead of user friendly regular warning for Print Setup
warning message. BTW, when to expect it?
2. After closing that Alert, Print Setup dialog appears without title bar.
There is focus on OK but pressing Enter does not activate it. Pressing on ESC
does not activate Cancel. I realize it is new, I don't list other UI issues.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 65•24 years ago
|
||
Olga, re-opening this might be "fair" but I'd rather not, please?
The Mac problems with the XP dialog are covered by bug 118889.
This bug summary says "...XP dialog needs to be implemented." It is. There
are other more focused bugs to track remaining issues. There is litle
discussion here that's pertinent to those issues, so moving on is best, I think.
The problem is that leaving this bug open till the XP Page Setup dialog is
perfect means that it will *never* get closed.
Status: REOPENED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•