Closed Bug 303951 Opened 19 years ago Closed 19 years ago

Make printing use the new interfaces

Categories

(Calendar :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jminta, Assigned: jminta)

Details

Attachments

(1 file, 1 obsolete file)

Print support in Sunbird 0.2 was rather weak, but right now trunk has no print
support whatsoever.  This doesn't block 0.3a1, but it'd be nice to have.
Attached patch use new interfaces (obsolete) β€” β€” Splinter Review
Makes printing use the new interfaces, as well as the HTML export mechanism. 
In the future we may want to have a separate print-exporting tool, but this
gets basic support going again.
Assignee: mostafah → jminta
Status: NEW → ASSIGNED
Attachment #192024 - Flags: first-review?(mvl)
Does printing currently work (without the patch)? If so, we shouldn't swtich
until the new exporter van export the different formats printing can handle.
(In reply to comment #2)
> Does printing currently work (without the patch)? If so, we shouldn't swtich
> until the new exporter van export the different formats printing can handle.

http://lxr.mozilla.org/mozilla/source/calendar/resources/content/calPrintEngine.js
322       var calendarEventDisplay
323       // add each calendarEvent
324       dayEventList = eventSource.getEventsForDay( thisDaysDate );

In other words, no, it doesn't currently work.
Any chance of getting this rolled into the trunk? I tried patching the Oct 7
trunk source but it didn't quite work. Really would be good to have some basic
printing back...
Comment on attachment 192024 [details] [diff] [review]
use new interfaces

patch has rotted, removing review request.
Attachment #192024 - Flags: first-review?(mvl)
Attached patch use new interfaces v2 β€” β€” Splinter Review
Updated patch, same as before.
Attachment #192024 - Attachment is obsolete: true
Attachment #199174 - Flags: first-review?(mvl)
Comment on attachment 199174 [details] [diff] [review]
use new interfaces v2

Looks good, but i can't test, due to the lack of a printer.
Please file some followup bugs to add new print layouts (more exporters), to
add a better UI and to stop using a tempfile (and anything else you can come up
with)
Attachment #199174 - Flags: first-review?(mvl) → first-review+
patch checked in
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: