1 //========================================================================
5 // Copyright 1996-2003 Glyph & Cog, LLC
7 //========================================================================
14 #ifdef USE_GCC_PRAGMAS
22 //------------------------------------------------------------------------
24 //------------------------------------------------------------------------
35 // Reference counting.
36 int incRef() { return ++ref
; }
37 int decRef() { return --ref
; }
39 // Get number of elements.
40 int getLength() { return length
; }
43 void add(xObject
*elem
);
46 xObject
*get(int i
, xObject
*obj
);
47 xObject
*getNF(int i
, xObject
*obj
);
51 XRef
*xref
; // the xref table for this PDF file
52 xObject
*elems
; // array of elements
53 int size
; // size of <elems> array
54 int length
; // number of elements in array
55 int ref
; // reference count