Closed Bug 340195 Opened 18 years ago Closed 18 years ago

Enable printing in Lightning

Categories

(Calendar :: Lightning Only, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jminta, Assigned: mattwillis)

References

Details

(Whiteboard: [ui-review+])

Attachments

(1 file, 1 obsolete file)

I started poking around in Lightning to get printing working.  Right now we're missing a couple of key ingredients.  For starters, we need to unify the view code, so that we have an easy way to get the current view.  Then we need to probably unify the selection too.

Note that both of these can be worked around with some simple if clauses, but we should really just get more of this code unified and then Do The Right Thing
blocking0.3?

Filter bugspam out using maggieIsMyCat
Flags: blocking0.3?(dmose)
Flags: blocking0.3?(dmose) → blocking0.3+
Attached patch make printDialog.js neutral (obsolete) — — Splinter Review
mvl loves printing so much, he gets this review.

This patch makes printDialog.js neutral with respect to the app that its used in.  That means it can't care about gCalendarWindow or view-deck.  To do this, I've added a helper function to get selected items regardless of whether we're in sunbird or lightning.
Assignee: nobody → jminta
Status: NEW → ASSIGNED
Attachment #231120 - Flags: first-review?(mvl)
Comment on attachment 231120 [details] [diff] [review]
make printDialog.js neutral

r=mvl
Attachment #231120 - Flags: first-review?(mvl) → first-review+
We need to figure out the best way to integrate printing into the menubar in thunderbird.  The current proposal here is to add it to the Calendar menu, where import/export are.  dmose has also suggested tying into the normal Thunderbird print options.  Asking for UI-review prior to checkin, to get this sorted out.
Whiteboard: [cal-ui-review needed]
Thunderbird already has Printing UI in the file menu.  Tb + Ltn are intended to behave like a single app, so we should use that.  As jminta pointed out, this probably depends on us getting our selection model sorted out.
Whiteboard: [cal-ui-review needed] → ui-review-
Whiteboard: ui-review- → [ui-review-][needs ui][swag:.5d]
(In reply to comment #5)
> Thunderbird already has Printing UI in the file menu.  Tb + Ltn
> are intended to behave like a single app, so we should use that.
> As jminta pointed out, this probably depends on us getting our
> selection model sorted out.

I suggest to just add an additional 'Print Calendar' menu item to the 'File' menu and use the same print dialog as in Sunbird for 0.3 release. 
This allows to enable and test printing in Lightning 0.3.

In future Lightning version - when the selection model is sorted out - we should look for a better integration in the Thunderbirds print model.
(In reply to comment #2)
> Created an attachment (id=231120) [edit]
> make printDialog.js neutral

You'll also need to move radioGroupSelectItem out of applicationUtil.js and into calUtils.js, and remove applicationUtils.js from printDialog.xul.
Depends on: 321384
I agree with dmose. It shouldn't be its own menu item. The File|Print command can launch a different dialog if it needs to, but printing should still go through File|Print.

(In reply to comment #6)
> I suggest to just add an additional 'Print Calendar' menu item to the 'File'
> menu and use the same print dialog as in Sunbird for 0.3 release.
Whiteboard: [ui-review-][needs ui][swag:.5d] → [ui-review-][needs ui][swag:.5d][no l10n impact]
Added entity to lightning.dtd to get it in before string freeze

<!ENTITY lightning.toolbar.print.label       "Print Calendar…">

uir=dmose, rs=dmose
Whiteboard: [ui-review-][needs ui][swag:.5d][no l10n impact] → [ui-review+][needs patch]
Nice to have, but in a pinch, we could live without.
Flags: blocking0.3+ → blocking0.3-
This is similar to the patch of jminta's that you've already reviewed. Many of the changes in the original patch made it in as part of the printDialog rework or the select all work.

After speaking with dmose, we agreed that we can work to integrate this into Thunderbird's native Print command in a later bug.

This also needs a spinoff to clean up uses of radioGroupSelectItem and radioGroupIndexOf to use the versions in calendarUtils.js.
Assignee: jminta → lilmatt
Attachment #231120 - Attachment is obsolete: true
Attachment #244010 - Flags: first-review?(mvl)
Whiteboard: [ui-review+][needs patch] → [ui-review+]
Comment on attachment 244010 [details] [diff] [review]
adds printing using separate menuitem

r=mvl, but make sure you file followup bugs for the better integrated UI.
Attachment #244010 - Flags: first-review?(mvl) → first-review+
Blocks: 358803
Spinoffs:
 - bug 358805: radioGroupSelectItem/radioGroupIndexOf cleanup
 - bug 358803: better printing UI integration

Patch landed on MOZILLA_1_8_BRANCH and trunk.

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

Attachment

General

Creator:
Created:
Updated:
Size: