#include <cpagechanges.h>
Public Types | |
| typedef std::vector < boost::shared_ptr < CContentStream > > | Changes |
Public Member Functions | |
| CPageChanges (CPage *page) | |
| ~CPageChanges () | |
| boost::shared_ptr< CContentStream > | getChange (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 |
Class representing changes in a page.
| typedef std::vector<boost::shared_ptr<CContentStream> > pdfobjects::CPageChanges::Changes |
| pdfobjects::CPageChanges::CPageChanges | ( | CPage * | page | ) | [inline] |
Ctor.
| pdfobjects::CPageChanges::~CPageChanges | ( | ) | [inline] |
Dtor.
References _page.
| void pdfobjects::CPageChanges::displayChange | ( | ::OutputDev & | out, | |
| const std::vector< size_t > | cs | |||
| ) | const |
References _page, pdfobjects::CPage::contents(), and displayChange().
| void pdfobjects::CPageChanges::displayChange | ( | ::OutputDev & | out, | |
| const Container & | cont | |||
| ) | const [inline] |
Draw nth change on an output device with last used display 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().
CPage* pdfobjects::CPageChanges::_page [private] |
Referenced by displayChange(), getChanges(), and ~CPageChanges().