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

Page Class Reference

#include </home/clem/local/src/opie/noncore/graphics/drawpad/page.h>

Collaboration diagram for Page:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Page ()
 Page (QString title, int w, int h)
 Page (QString title, const QSize &size)
 ~Page ()
QString title () const
QDateTime lastModified () const
QPixmap * pixmap () const
void setTitle (QString title)
void setLastModified (QDateTime lastModified)
bool undoEnabled ()
bool redoEnabled ()
void backup ()
void undo ()
void redo ()
 Page (XRef *xrefA, int numA, Dict *pageDict, PageAttrs *attrsA, GBool printCommandsA)
 ~Page ()
GBool isOk ()
PDFRectanglegetBox ()
PDFRectanglegetMediaBox ()
PDFRectanglegetCropBox ()
GBool isCropped ()
fouble getWidth ()
fouble getHeight ()
PDFRectanglegetBleedBox ()
PDFRectanglegetTrimBox ()
PDFRectanglegetArtBox ()
int getRotate ()
GStringgetLastModified ()
DictgetBoxColorInfo ()
DictgetGroup ()
StreamgetMetadata ()
DictgetPieceInfo ()
DictgetSeparationInfo ()
DictgetResourceDict ()
ObjectgetAnnots (Object *obj)
ObjectgetContents (Object *obj)
void display (OutputDev *out, fouble dpi, int rotate, Links *links, Catalog *catalog)

Private Attributes

QString m_title
QDateTime m_lastModified
QPixmap * m_pPixmap
QList< QPixmap > m_backHistory
QList< QPixmap > m_forwardHistory
XRefxref
int num
PageAttrsattrs
Object annots
Object contents
GBool printCommands
GBool ok

Constructor & Destructor Documentation

Page::Page  ) 
 

Definition at line 18 of file page.cpp.

References QDateTime::currentDateTime(), m_backHistory, m_forwardHistory, m_lastModified, m_pPixmap, and m_title.

Page::Page QString  title,
int  w,
int  h
 

Definition at line 28 of file page.cpp.

References QDateTime::currentDateTime(), m_backHistory, m_forwardHistory, m_lastModified, m_pPixmap, and m_title.

Page::Page QString  title,
const QSize &  size
 

Definition at line 38 of file page.cpp.

References QDateTime::currentDateTime(), m_backHistory, m_forwardHistory, m_lastModified, m_pPixmap, and m_title.

Page::~Page  ) 
 

Definition at line 48 of file page.cpp.

References m_pPixmap.

Page::Page XRef xrefA,
int  numA,
Dict pageDict,
PageAttrs attrsA,
GBool  printCommandsA
 

Definition at line 173 of file Page.cc.

References annots, attrs, contents, error(), Object::free(), Object::getTypeName(), gFalse, gTrue, Object::initNull(), Object::isArray(), Object::isNull(), Object::isRef(), Dict::lookupNF(), num, ok, printCommands, and xref.

Page::~Page  ) 
 


Member Function Documentation

void Page::backup  ) 
 

Definition at line 89 of file page.cpp.

References QDateTime::currentDateTime(), m_backHistory, m_forwardHistory, m_pPixmap, PAGE_BACKUPS, and setLastModified().

void Page::display OutputDev out,
fouble  dpi,
int  rotate,
Links links,
Catalog catalog
 

Definition at line 218 of file Page.cc.

References annots, attrs, contents, Gfx::display(), OutputDev::drawLink(), OutputDev::dump(), Object::fetch(), Object::free(), Annots::getAnnot(), getBox(), getCropBox(), Annots::getNumAnnots(), PageAttrs::getResourceDict(), getRotate(), PageAttrs::getRotate(), i, isCropped(), Object::isNull(), num, printCommands, printf, PDFRectangle::x1, PDFRectangle::x2, xref, PDFRectangle::y1, and PDFRectangle::y2.

Referenced by PDFDoc::displayPage().

Object* Page::getAnnots Object obj  )  [inline]
 

Definition at line 131 of file Page.h.

References annots, Object::fetch(), and xref.

Referenced by PDFDoc::getLinks().

PDFRectangle* Page::getArtBox  )  [inline]
 

Definition at line 118 of file Page.h.

References attrs, and PageAttrs::getArtBox().

PDFRectangle* Page::getBleedBox  )  [inline]
 

Definition at line 116 of file Page.h.

References attrs, and PageAttrs::getBleedBox().

PDFRectangle* Page::getBox  )  [inline]
 

Definition at line 110 of file Page.h.

References attrs, and PageAttrs::getBox().

Referenced by display().

Dict* Page::getBoxColorInfo  )  [inline]
 

Definition at line 121 of file Page.h.

References attrs, and PageAttrs::getBoxColorInfo().

Object* Page::getContents Object obj  )  [inline]
 

Definition at line 134 of file Page.h.

References contents, Object::fetch(), and xref.

PDFRectangle* Page::getCropBox  )  [inline]
 

Definition at line 112 of file Page.h.

References attrs, and PageAttrs::getCropBox().

Referenced by display().

Dict* Page::getGroup  )  [inline]
 

Definition at line 122 of file Page.h.

References attrs, and PageAttrs::getGroup().

fouble Page::getHeight  )  [inline]
 

Definition at line 115 of file Page.h.

References attrs, and PageAttrs::getBox().

GString* Page::getLastModified  )  [inline]
 

Definition at line 120 of file Page.h.

References attrs, and PageAttrs::getLastModified().

PDFRectangle* Page::getMediaBox  )  [inline]
 

Definition at line 111 of file Page.h.

References attrs, and PageAttrs::getMediaBox().

Stream* Page::getMetadata  )  [inline]
 

Definition at line 123 of file Page.h.

References attrs, and PageAttrs::getMetadata().

Dict* Page::getPieceInfo  )  [inline]
 

Definition at line 124 of file Page.h.

References attrs, and PageAttrs::getPieceInfo().

Dict* Page::getResourceDict  )  [inline]
 

Definition at line 128 of file Page.h.

References attrs, and PageAttrs::getResourceDict().

int Page::getRotate  )  [inline]
 

Definition at line 119 of file Page.h.

References attrs, and PageAttrs::getRotate().

Referenced by display().

Dict* Page::getSeparationInfo  )  [inline]
 

Definition at line 125 of file Page.h.

References attrs, and PageAttrs::getSeparationInfo().

PDFRectangle* Page::getTrimBox  )  [inline]
 

Definition at line 117 of file Page.h.

References attrs, and PageAttrs::getTrimBox().

fouble Page::getWidth  )  [inline]
 

Definition at line 114 of file Page.h.

References attrs, and PageAttrs::getBox().

GBool Page::isCropped  )  [inline]
 

Definition at line 113 of file Page.h.

References attrs, and PageAttrs::isCropped().

Referenced by display().

GBool Page::isOk  )  [inline]
 

Definition at line 107 of file Page.h.

References ok.

Referenced by Catalog::readPageTree().

QDateTime Page::lastModified  )  const
 

Definition at line 58 of file page.cpp.

References m_lastModified.

Referenced by PageInformationDialog::PageInformationDialog(), and PageListBoxItem::PageListBoxItem().

QPixmap * Page::pixmap  )  const
 

Definition at line 63 of file page.cpp.

References m_pPixmap.

Referenced by DrawPadCanvasXmlHandler::characters(), DrawPadCanvas::drawContents(), DrawPadCanvas::importPage(), DrawPadCanvas::importPixmap(), PageInformationDialog::PageInformationDialog(), and PageListBoxItem::PageListBoxItem().

void Page::redo  ) 
 

Definition at line 108 of file page.cpp.

References m_backHistory, and m_forwardHistory.

bool Page::redoEnabled  ) 
 

Definition at line 84 of file page.cpp.

References m_forwardHistory.

void Page::setLastModified QDateTime  lastModified  ) 
 

Definition at line 74 of file page.cpp.

References m_lastModified.

Referenced by backup(), and DrawPadCanvasXmlHandler::characters().

void Page::setTitle QString  title  ) 
 

Definition at line 69 of file page.cpp.

References m_title.

QString Page::title  )  const
 

Definition at line 53 of file page.cpp.

References m_title.

Referenced by PageInformationDialog::PageInformationDialog(), and PageListBoxItem::PageListBoxItem().

void Page::undo  ) 
 

Definition at line 101 of file page.cpp.

References m_backHistory, and m_forwardHistory.

bool Page::undoEnabled  ) 
 

Definition at line 79 of file page.cpp.

References m_backHistory.


Member Data Documentation

Object Page::annots [private]
 

Definition at line 145 of file Page.h.

Referenced by display(), getAnnots(), and Page().

PageAttrs* Page::attrs [private]
 

Definition at line 144 of file Page.h.

Referenced by display(), getArtBox(), getBleedBox(), getBox(), getBoxColorInfo(), getCropBox(), getGroup(), getHeight(), getLastModified(), getMediaBox(), getMetadata(), getPieceInfo(), getResourceDict(), getRotate(), getSeparationInfo(), getTrimBox(), getWidth(), isCropped(), and Page().

Object Page::contents [private]
 

Definition at line 146 of file Page.h.

Referenced by display(), getContents(), and Page().

QList<QPixmap> Page::m_backHistory [private]
 

Definition at line 51 of file page.h.

Referenced by backup(), Page(), redo(), undo(), and undoEnabled().

QList<QPixmap> Page::m_forwardHistory [private]
 

Definition at line 52 of file page.h.

Referenced by backup(), Page(), redo(), redoEnabled(), and undo().

QDateTime Page::m_lastModified [private]
 

Definition at line 48 of file page.h.

Referenced by lastModified(), Page(), and setLastModified().

QPixmap* Page::m_pPixmap [private]
 

Definition at line 49 of file page.h.

Referenced by backup(), Page(), pixmap(), and ~Page().

QString Page::m_title [private]
 

Definition at line 47 of file page.h.

Referenced by Page(), setTitle(), and title().

int Page::num [private]
 

Definition at line 143 of file Page.h.

Referenced by display(), and Page().

GBool Page::ok [private]
 

Definition at line 148 of file Page.h.

Referenced by isOk(), and Page().

GBool Page::printCommands [private]
 

Definition at line 147 of file Page.h.

Referenced by display(), and Page().

XRef* Page::xref [private]
 

Definition at line 142 of file Page.h.

Referenced by display(), getAnnots(), getContents(), and Page().


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