Logo Search packages:      
Sourcecode: scantailor version File versions  Download package

Public Member Functions | Private Attributes

SelectedPage Class Reference

#include <SelectedPage.h>

Collaboration diagram for SelectedPage:
Collaboration graph

List of all members.

Public Member Functions

PageId get (PageView view) const
bool isNull () const
 SelectedPage (PageId const &page_id, PageView view)
void set (PageId const &page_id, PageView view)

Private Attributes

PageId m_pageId

Detailed Description

The whole point of this class can be demonstrated with a few lines of code:

 ImageId image_id = ...;
 SelectedPage page;
 page.set(PageId(image_id, PageId::RIGHT_PAGE), PAGE_VIEW);
 page.set(PageId(image_id, PageId::SINGLE_PAGE), IMAGE_VIEW);
 page.get(PAGE_VIEW); // Returns a RIGHT_PAGE PageId.

As seen above, this class remembers the sub-page as long as image id stays the same. Note that set(..., PAGE_VIEW) will always overwrite the sub-page, while get(IMAGE_VIEW) will always return SINGLE_PAGE sub-pages.

Definition at line 38 of file SelectedPage.h.

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

Generated by  Doxygen 1.6.0   Back to index