author | sandman <sandman> | 2002-05-23 23:51:52 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-05-23 23:51:52 (UTC) |
commit | 2f3bb7b07f833273d966d41813e68bfe8b9d8d76 (patch) (side-by-side diff) | |
tree | 00beb1bd9e7f4ba79e22334a0d258269b28f4564 /noncore/unsupported/qpdf/xpdf/FormWidget.h | |
parent | 6e82b45dd416ceeba78765717b700e853c96a137 (diff) | |
download | opie-2f3bb7b07f833273d966d41813e68bfe8b9d8d76.zip opie-2f3bb7b07f833273d966d41813e68bfe8b9d8d76.tar.gz opie-2f3bb7b07f833273d966d41813e68bfe8b9d8d76.tar.bz2 |
Port to xpdf 1.01
Diffstat (limited to 'noncore/unsupported/qpdf/xpdf/FormWidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/qpdf/xpdf/FormWidget.h | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/noncore/unsupported/qpdf/xpdf/FormWidget.h b/noncore/unsupported/qpdf/xpdf/FormWidget.h deleted file mode 100644 index 7f07889..0000000 --- a/noncore/unsupported/qpdf/xpdf/FormWidget.h +++ b/dev/null @@ -1,67 +0,0 @@ -//======================================================================== -// -// FormWidget.h -// -// Copyright 2000 Derek B. Noonburg -// -//======================================================================== - -#ifndef FORMWIDGET_H -#define FORMWIDGET_H - -#ifdef __GNUC__ -#pragma interface -#endif - -class XRef; -class Gfx; - -//------------------------------------------------------------------------ -// FormWidget -//------------------------------------------------------------------------ - -class FormWidget { -public: - - FormWidget(XRef *xrefA, Dict *dict); - ~FormWidget(); - GBool isOk() { return ok; } - - void draw(Gfx *gfx); - - // Get appearance object. - Object *getAppearance(Object *obj) { return appearance.fetch(xref, obj); } - -private: - - XRef *xref; // the xref table for this PDF file - Object appearance; // a reference to the Form XObject stream - // for the normal appearance - fouble xMin, yMin, // widget rectangle - xMax, yMax; - GBool ok; -}; - -//------------------------------------------------------------------------ -// FormWidgets -//------------------------------------------------------------------------ - -class FormWidgets { -public: - - // Extract widgets from array of annotations. - FormWidgets(XRef *xref, Object *annots); - - ~FormWidgets(); - - // Iterate through list of widgets. - int getNumWidgets() { return nWidgets; } - FormWidget *getWidget(int i) { return widgets[i]; } - -private: - - FormWidget **widgets; - int nWidgets; -}; - -#endif |