Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Catalog Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/qpdf/xpdf/Catalog.h>

Collaboration diagram for Catalog:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Catalog (XRef *xrefA, GBool printCommands=gFalse)
 ~Catalog ()
GBool isOk ()
int getNumPages ()
PagegetPage (int i)
RefgetPageRef (int i)
GStringgetBaseURI ()
GStringreadMetadata ()
ObjectgetStructTreeRoot ()
int findPage (int num, int gen)
LinkDestfindDest (GString *name)

Private Member Functions

int readPageTree (Dict *pages, PageAttrs *attrs, int start, GBool printCommands)
ObjectfindDestInTree (Object *tree, GString *name, Object *obj)

Private Attributes

XRefxref
Page ** pages
RefpageRefs
int numPages
int pagesSize
Object dests
Object nameTree
GStringbaseURI
Object metadata
Object structTreeRoot
GBool ok

Constructor & Destructor Documentation

Catalog::Catalog XRef xrefA,
GBool  printCommands = gFalse
 

Definition at line 29 of file Catalog.cc.

References baseURI, dests, Object::dictLookup(), error(), Object::free(), Ref::gen, XRef::getCatalog(), Object::getDict(), Object::getInt(), Object::getString(), Object::getTypeName(), gFalse, gmalloc(), gTrue, i, Object::initNull(), Object::isDict(), Object::isInt(), metadata, nameTree, NULL, Ref::num, numPages, ok, pageRefs, pages, pagesSize, readPageTree(), structTreeRoot, and xref.

Catalog::~Catalog  ) 
 

Definition at line 117 of file Catalog.cc.

References baseURI, dests, Object::free(), gfree(), i, metadata, nameTree, pageRefs, pages, pagesSize, and structTreeRoot.


Member Function Documentation

LinkDest * Catalog::findDest GString name  ) 
 

Definition at line 243 of file Catalog.cc.

References Opie::MM::dest, dests, Object::dictLookup(), error(), findDestInTree(), Object::free(), Object::getArray(), gFalse, gTrue, Object::isArray(), Object::isDict(), Object::isNull(), nameTree, and NULL.

Referenced by PDFDoc::findDest().

Object * Catalog::findDestInTree Object tree,
GString name,
Object obj
[private]
 

Definition at line 283 of file Catalog.cc.

References Object::arrayGet(), Object::arrayGetLength(), GString::cmp(), cmp(), Object::dictLookup(), Object::free(), Object::getString(), gFalse, gTrue, i, Object::initNull(), and low.

Referenced by findDest().

int Catalog::findPage int  num,
int  gen
 

Definition at line 233 of file Catalog.cc.

References i, numPages, and pageRefs.

Referenced by PDFDoc::findPage().

GString* Catalog::getBaseURI  )  [inline]
 

Definition at line 49 of file Catalog.h.

References baseURI.

Referenced by PDFDoc::getLinks().

int Catalog::getNumPages  )  [inline]
 

Definition at line 40 of file Catalog.h.

References numPages.

Referenced by PDFDoc::getNumPages().

Page* Catalog::getPage int  i  )  [inline]
 

Definition at line 43 of file Catalog.h.

References pages.

Referenced by PDFDoc::displayPage(), PDFDoc::getPageHeight(), PDFDoc::getPageRotate(), and PDFDoc::getPageWidth().

Ref* Catalog::getPageRef int  i  )  [inline]
 

Definition at line 46 of file Catalog.h.

References pageRefs.

Object* Catalog::getStructTreeRoot  )  [inline]
 

Definition at line 56 of file Catalog.h.

References structTreeRoot.

Referenced by PDFDoc::getStructTreeRoot().

GBool Catalog::isOk  )  [inline]
 

Definition at line 37 of file Catalog.h.

References ok.

Referenced by PDFDoc::setup().

GString * Catalog::readMetadata  ) 
 

Definition at line 138 of file Catalog.cc.

References GString::append(), error(), Object::free(), Object::getName(), Object::isName(), Object::isStream(), Dict::lookup(), metadata, NULL, s, Object::streamClose(), Object::streamGetChar(), Object::streamGetDict(), and Object::streamReset().

Referenced by PDFDoc::readMetadata().

int Catalog::readPageTree Dict pages,
PageAttrs attrs,
int  start,
GBool  printCommands
[private]
 

Definition at line 162 of file Catalog.cc.

References Object::arrayGet(), Object::arrayGetLength(), Object::arrayGetNF(), error(), Object::free(), Ref::gen, Object::getDict(), Object::getRefGen(), Object::getRefNum(), Object::getTypeName(), gFalse, grealloc(), i, Object::isArray(), Object::isDict(), Page::isOk(), Object::isRef(), NULL, Ref::num, ok, pageRefs, pages, pagesSize, and xref.

Referenced by Catalog().


Member Data Documentation

GString* Catalog::baseURI [private]
 

Definition at line 75 of file Catalog.h.

Referenced by Catalog(), getBaseURI(), and ~Catalog().

Object Catalog::dests [private]
 

Definition at line 73 of file Catalog.h.

Referenced by Catalog(), findDest(), and ~Catalog().

Object Catalog::metadata [private]
 

Definition at line 76 of file Catalog.h.

Referenced by Catalog(), readMetadata(), and ~Catalog().

Object Catalog::nameTree [private]
 

Definition at line 74 of file Catalog.h.

Referenced by Catalog(), findDest(), and ~Catalog().

int Catalog::numPages [private]
 

Definition at line 71 of file Catalog.h.

Referenced by Catalog(), findPage(), and getNumPages().

GBool Catalog::ok [private]
 

Definition at line 78 of file Catalog.h.

Referenced by Catalog(), isOk(), and readPageTree().

Ref* Catalog::pageRefs [private]
 

Definition at line 70 of file Catalog.h.

Referenced by Catalog(), findPage(), getPageRef(), readPageTree(), and ~Catalog().

Page** Catalog::pages [private]
 

Definition at line 69 of file Catalog.h.

Referenced by Catalog(), getPage(), readPageTree(), and ~Catalog().

int Catalog::pagesSize [private]
 

Definition at line 72 of file Catalog.h.

Referenced by Catalog(), readPageTree(), and ~Catalog().

Object Catalog::structTreeRoot [private]
 

Definition at line 77 of file Catalog.h.

Referenced by Catalog(), getStructTreeRoot(), and ~Catalog().

XRef* Catalog::xref [private]
 

Definition at line 68 of file Catalog.h.

Referenced by Catalog(), and readPageTree().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:28:05 2005 for OPIE by  doxygen 1.4.2