pdfobjects::CPageChanges Class Reference

#include <cpagechanges.h>

Inheritance diagram for pdfobjects::CPageChanges:
pdfobjects::ICPageModule

List of all members.

Public Types

typedef std::vector
< boost::shared_ptr
< CContentStream > > 
Changes

Public Member Functions

 CPageChanges (CPage *page)
 ~CPageChanges ()
boost::shared_ptr< CContentStreamgetChange (size_t nthchange=0) const
void getChanges (Changes &cont) const
size_t getChangeCount () const
template<typename Container >
void displayChange (::OutputDev &out, const Container &cont) const
void displayChange (::OutputDev &out, const std::vector< size_t > cs) const

Private Attributes

CPage_page

Detailed Description

Class representing changes in a page.


Member Typedef Documentation

typedef std::vector<boost::shared_ptr<CContentStream> > pdfobjects::CPageChanges::Changes

Constructor & Destructor Documentation

pdfobjects::CPageChanges::CPageChanges ( CPage page  )  [inline]

Ctor.

pdfobjects::CPageChanges::~CPageChanges (  )  [inline]

Dtor.

References _page.


Member Function Documentation

void pdfobjects::CPageChanges::displayChange ( ::OutputDev &  out,
const std::vector< size_t >  cs 
) const
template<typename Container >
void pdfobjects::CPageChanges::displayChange ( ::OutputDev &  out,
const Container &  cont 
) const [inline]

Draw nth change on an output device with last used display parameters.

Parameters:
out Output device.
cont Container of content streams to display

References _page, pdfobjects::CPage::display(), pdfobjects::CPage::getDictionary(), pdfobjects::hasValidPdf(), and pdfobjects::CPageContents::setContents().

Referenced by displayChange().

shared_ptr< CContentStream > pdfobjects::CPageChanges::getChange ( size_t  nthchange = 0  )  const

Get n-th change. Higher change means older change.

References getChanges().

size_t pdfobjects::CPageChanges::getChangeCount (  )  const

Get count of our changes.

References getChanges().

void pdfobjects::CPageChanges::getChanges ( Changes cont  )  const

Get our changes sorted. The first change is the last change. If there are no changes container is empty.

References _page, pdfobjects::CPage::contents(), and iterator::DoubleListIterator< Item >::valid().

Referenced by getChange(), and getChangeCount().


Member Data Documentation


The documentation for this class was generated from the following files: