[Okular-devel] Generic Generator for QTextDocument

Pino Toscano toscano.pino at tiscali.it
Wed Jan 17 16:44:58 CET 2007


Alle 17:54, mercoledì 10 gennaio 2007, Tobias Koenig ha scritto:
> One issue that crossed my plans you can see in addLink( Link*, int, int ).
> I want to pass the Link object here, so the developer can choose what
> type of link he wants to use in the Converter. However the passed object
> is use for an object rect which is deleted at every pixmapRequest, so
> passing the link here once doesn't work, because a new object is needed
> for every pixmapRequest.
>
> Does somebody have an idea how to solve this problem?

I've understood what you wanted (quite quickly, eh ;) ).
The problem is because every generator should be less dull. I mean, some of 
our generators use to recalc and readd stuff like links at every 
PixmapRequest, most probably because the first generator (the poppler one) 
used this way, due to the fact that links can be calculated only after the 
first pixmap generation of a page.
IMHO this must change: a generator should add all the stuff it can (links, 
annotations, etc) when creating a Page, not when processing a PixmapRequest.

What do you think?

Regards,

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/okular-devel/attachments/20070117/7cfdfbf2/attachment.pgp 


More information about the Okular-devel mailing list