]> www.fi.muni.cz Git - evince.git/commitdiff
Added getSubtype, getDict and getRefNum/Gen methods for easier annots
authorRemi Cohen-Scali <rcoscali@cvs.gnome.org>
Mon, 12 Jan 2004 19:32:08 +0000 (19:32 +0000)
committerRémi Cohen-Scali <rcoscali@src.gnome.org>
Mon, 12 Jan 2004 19:32:08 +0000 (19:32 +0000)
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.

pdf/xpdf/Annot.h

index 89dde0f90f17a012493b1998d4d69621a36d391d..092b6133432d8db2e3c5ef2bc48c82725b06e14a 100644 (file)
@@ -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