X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fxpdf%2FAnnot.h;h=e5fd8416e80d168044f21a3838e0f920ad82aa0a;hb=1ab98ed6db3874c0a9ab243f2efd05bf39066eda;hp=4113a0bd59609fb1c6751ce15ebaf4657bdcfbd5;hpb=3df3a8d12d7a516579a4eae276b077c015df0f70;p=swftools.git diff --git a/pdf2swf/xpdf/Annot.h b/pdf2swf/xpdf/Annot.h index 4113a0b..e5fd841 100644 --- a/pdf2swf/xpdf/Annot.h +++ b/pdf2swf/xpdf/Annot.h @@ -2,18 +2,21 @@ // // Annot.h // -// Copyright 2000-2002 Glyph & Cog, LLC +// Copyright 2000-2003 Glyph & Cog, LLC // //======================================================================== #ifndef ANNOT_H #define ANNOT_H -#ifdef __GNUC__ +#include + +#ifdef USE_GCC_PRAGMAS #pragma interface #endif class XRef; +class Catalog; class Gfx; //------------------------------------------------------------------------ @@ -23,7 +26,7 @@ class Gfx; class Annot { public: - Annot(XRef *xrefA, Dict *dict); + Annot(XRef *xrefA, Dict *acroForm, Dict *dict); ~Annot(); GBool isOk() { return ok; } @@ -33,10 +36,13 @@ public: Object *getAppearance(Object *obj) { return appearance.fetch(xref, obj); } private: + + void generateAppearance(Dict *acroForm, Dict *dict); XRef *xref; // the xref table for this PDF file Object appearance; // a reference to the Form XObject stream // for the normal appearance + GString *appearBuf; double xMin, yMin, // annotation rectangle xMax, yMax; GBool ok; @@ -50,7 +56,7 @@ class Annots { public: // Extract non-link annotations from array of annotations. - Annots(XRef *xref, Object *annotsObj); + Annots(XRef *xref, Catalog *catalog, Object *annotsObj); ~Annots();