diff options
author | Remi Cohen-Scali <rcoscali@cvs.gnome.org> | 2004-01-13 01:24:20 (GMT) |
---|---|---|
committer | RĂ©mi Cohen-Scali <rcoscali@src.gnome.org> | 2004-01-13 01:24:20 (GMT) |
commit | 46cf76f4f26e82b21c69a1d616c6435e9560e642 (patch) | |
tree | 3df4c900d3278204948164774f7b857d362c7c2b /pdf/xpdf/PDFDoc.h | |
parent | 78fb2c9e5e81b2c169c77ce28e0b7d90874a9803 (diff) |
Added annots display CB.
2004-01-13 Remi Cohen-Scali <rcoscali@cvs.gnome.org>
* xpdf/PDFDoc.h:
* xpdf/PDFDoc.cc: Added annots display CB.
Diffstat (limited to 'pdf/xpdf/PDFDoc.h')
-rw-r--r-- | pdf/xpdf/PDFDoc.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/pdf/xpdf/PDFDoc.h b/pdf/xpdf/PDFDoc.h index 99832f8..ea73282 100644 --- a/pdf/xpdf/PDFDoc.h +++ b/pdf/xpdf/PDFDoc.h @@ -20,6 +20,7 @@ #include "Link.h" #include "Catalog.h" #include "Page.h" +#include "Annot.h" class GString; class BaseStream; @@ -82,20 +83,26 @@ public: void displayPage(OutputDev *out, int page, double zoom, int rotate, GBool doLinks, GBool (*abortCheckCbk)(void *data) = NULL, - void *abortCheckCbkData = NULL); + void *abortCheckCbkData = NULL, + GBool (*annotDisplayDecideCbk)(Annot *annot, void *user_data) = NULL, + void *annotDisplayDecideCbkData = NULL); // Display a range of pages. void displayPages(OutputDev *out, int firstPage, int lastPage, int zoom, int rotate, GBool doLinks, 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 displayPageSlice(OutputDev *out, int page, double zoom, int rotate, int sliceX, int sliceY, int sliceW, int sliceH, GBool (*abortCheckCbk)(void *data) = NULL, - void *abortCheckCbkData = NULL); + void *abortCheckCbkData = NULL, + GBool (*annotDisplayDecideCbk)(Annot *annot, void *user_data) = NULL, + void *annotDisplayDecideCbkData = NULL); // Find a page, given its object ID. Returns page number, or 0 if // not found. @@ -144,7 +151,6 @@ public: // Save this file with another name. GBool saveAs(GString *name); - private: GBool setup(GString *ownerPassword, GString *userPassword); @@ -162,7 +168,6 @@ private: Outline *outline; #endif - GBool ok; int errCode; }; |