[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] Printing Code in kaddressbook
From:       Mirko Boehm <mirco.boehm () comcast ! net>
Date:       2002-05-21 11:45:37
[Download RAW message or body]

Anders Lund wrote:

> Sharing code for printing is not really cool for printing, du to the fact that
> printing must be sure to actually display all the data, and also consider
> page breaks. For most views, that is not compatible with painting on a
> window.

Right, you need special page handling code. But you can nicely share code that
paints objects like business cards. This is what I do, it has the advantage that
there is just one piece of painting code.


> > As far as the selected or current contact goes, yes, there is a way to
> > figure that out. The KAddressBookPrinter object will get a call to print
> > with a list of selected addressees. If there is only one selected, it is
> > current. If there are none selected, then there is no selected addressee.
>
> Let me add that all the list views (table, card, icon) has the notation of a
> current item, and even a currentItem() method. Maybe that should be part of
> the api?

Good, I will look at this.

CU,
--Mirko.

_______________________________________________
kde-pim mailing list
kde-pim@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic