Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Cohen-Scali <rcoscali@cvs.gnome.org>2004-01-12 19:32:08 (GMT)
committer RĂ©mi Cohen-Scali <rcoscali@src.gnome.org>2004-01-12 19:32:08 (GMT)
commitf2997fd226b070703dd15be8a159d4d11eeb1753 (patch)
treecaf3d274366bb0c3cd349e7111ede3a3ad885704
parent8122abe385056ddfb68c622d12687ba9d9ed3a21 (diff)
Added getSubtype, getDict and getRefNum/Gen methods for easier annots
2004-01-12 Remi Cohen-Scali <rcoscali@cvs.gnome.org> * xpdf/Annot.h: Added getSubtype, getDict and getRefNum/Gen methods for easier annots identification. Added dict & subtype fields.
-rw-r--r--pdf/xpdf/Annot.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/pdf/xpdf/Annot.h b/pdf/xpdf/Annot.h
index 89dde0f..092b613 100644
--- a/pdf/xpdf/Annot.h
+++ b/pdf/xpdf/Annot.h
@@ -34,9 +34,21 @@ public:
// Get appearance object.
Object *getAppearance(Object *obj) { return appearance.fetch(xref, obj); }
+ // Get subtype object
+ Object *getSubtype(Object *obj) {return subtype.copy(obj); };
+
+ // Get dictionary
+ Dict *getDict() {return dict; };
+
+ // Get annot appearance ID
+ int getRefNum() {return appearance.getRefNum();};
+ int getRefGen() {return appearance.getRefGen();};
+
private:
XRef *xref; // the xref table for this PDF file
+ Dict *dict;
+ Object subtype;
Object appearance; // a reference to the Form XObject stream
// for the normal appearance
double xMin, yMin, // annotation rectangle