From: Remi Cohen-Scali Date: Tue, 13 Jan 2004 01:22:37 +0000 (+0000) Subject: Added getThumb method. Added annots display CB decl. Added Thumb object X-Git-Tag: GPDF_0_122~6 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=78fb2c9e5e81b2c169c77ce28e0b7d90874a9803;p=evince.git Added getThumb method. Added annots display CB decl. Added Thumb object 2004-01-13 Remi Cohen-Scali * xpdf/Page.h: Added getThumb method. Added annots display CB decl. Added Thumb object field for thumbnails management. --- diff --git a/pdf/xpdf/Page.h b/pdf/xpdf/Page.h index cb8706bb..8b339eb4 100644 --- a/pdf/xpdf/Page.h +++ b/pdf/xpdf/Page.h @@ -22,6 +22,8 @@ class XRef; class OutputDev; class Links; class Catalog; +class Annots; +class Annot; //------------------------------------------------------------------------ @@ -140,18 +142,25 @@ public: // Get contents. Object *getContents(Object *obj) { return contents.fetch(xref, obj); } + // Get thumb. + Object *getThumb(Object *obj) { return thumb.fetch(xref, obj); } + // Display a page. void display(OutputDev *out, double dpi, int rotate, Links *links, Catalog *catalog, GBool (*abortCheckCbk)(void *data) = NULL, - void *abortCheckCbkData = NULL); + void *abortCheckCbkData = NULL, + GBool (*annotDisplayDecideCbk)(Annot *annot, void *user_data) = NULL, + void *annotDisplayDecideCbkData = NULL); // Display part of a page. void displaySlice(OutputDev *out, double dpi, int rotate, int sliceX, int sliceY, int sliceW, int sliceH, Links *links, Catalog *catalog, GBool (*abortCheckCbk)(void *data) = NULL, - void *abortCheckCbkData = NULL); + void *abortCheckCbkData = NULL, + GBool (*annotDisplayDecideCbk)(Annot *annot, void *user_data) = NULL, + void *annotDisplayDecideCbkData = NULL); private: @@ -160,6 +169,7 @@ private: PageAttrs *attrs; // page attributes Object annots; // annotations array Object contents; // page contents + Object thumb; // page thumbnail GBool ok; // true if page is valid };