//
// Annot.h
//
-// Copyright 2000-2002 Glyph & Cog, LLC
+// Copyright 2000-2003 Glyph & Cog, LLC
//
//========================================================================
#ifndef ANNOT_H
#define ANNOT_H
-#ifdef __GNUC__
+#include <aconf.h>
+
+#ifdef USE_GCC_PRAGMAS
#pragma interface
#endif
// 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