[Okular-devel] Better separation of okular core library from the frontend
Bogdan Cristea
cristeab at gmail.com
Sun Apr 29 13:38:50 UTC 2012
On Sunday 29 April 2012 15:33:00 Pino Toscano wrote:
> This has always been the case: Document does not asks for pixmaps on its
> own, but it does on behalf of PixmapRequest's sent by the observers.
> When a pixmap for a page is available, Document notifies the observers
> about that and they will act accordingly.
> Please also note that this part (observers) is not totally "public API",
> especially (as already said) the public okularcore API is currently
> taylored for generator plugins, not really for users of Document.
>
> > Again, when using only the okular core library this seems pointless.
>
> Given that this is the pixmap generation workflow, it is not pointless
> at all.
Yes, I agree with you that it makes sense to use the observers, but observer
header is not made public. I have reasoned from the point of view of someone
trying to use okular core library as a backend. So, make public observer
header and ensure some mechanism for pixmap manipulation.
--
Bogdan
More information about the Okular-devel
mailing list