#ifdef GIFSTUFF
#include <QDOffscreen.h>
#endif

/* A DocumentRecord contains the WindowRecord for one of our document windows,
   as well as the TEHandle for the text we are editing. Other document fields
   can be added to this record as needed. For a similar example, see how the
   Window Manager and Dialog Manager add fields after the GrafPort. */
typedef struct {
	WindowRecord	docWindow;
	TEHandle		docTE;
	ControlHandle	docVScroll;
	ControlHandle	docHScroll;
	ProcPtr			docClik;
#ifdef GIFSTUFF
	short			imageType;		/* 0 for bitmap, 1 for GWorld */
	GWorldPtr		gw;				/* Off-screen cache for the image */
#endif
} DocumentRecord, *DocumentPeek;

