Structure for keeping data for all the links in a page (and some extra page-specific data). More...
#include <CCPrintData.h>
Public Member Functions | |
PageData () | |
Default constructor. | |
PageData (const PageData &other) | |
Copy constructor. | |
bool | ToFile (std::tstring &sData, int nPage) const |
Write the data in an INI file format. | |
bool | FromFile (class FileINI &file, int nPage) |
Read the data from an INI file. | |
bool | HasTextLink () const |
Checks if there's at least one text link in the data. | |
void | Clear () |
Clears the page data. | |
Public Attributes | |
SIZEL | szPage |
Size of page. |
Structure for keeping data for all the links in a page (and some extra page-specific data).
Definition at line 121 of file CCPrintData.h.
CCPrintData::PageData::PageData | ( | const PageData & | other | ) | [inline] |
bool CCPrintData::PageData::FromFile | ( | class FileINI & | file, | |
int | nPage | |||
) |
Read the data from an INI file.
file | INI file object to read from | |
nPage | Number of page to read from |
Definition at line 331 of file CCPrintData.cpp.
References Clear(), DATAFILE_LINK_COUNT, DATAFILE_PAGE_HEIGHT, DATAFILE_PAGE_WIDTH, DATAFILE_SECTION_PAGE, CCPrintData::LinkData::FromFile(), FileINI::GetKeys(), and szPage.
bool CCPrintData::PageData::HasTextLink | ( | ) | const [inline] |
Checks if there's at least one text link in the data.
Definition at line 145 of file CCPrintData.h.
bool CCPrintData::PageData::ToFile | ( | std::tstring & | sData, | |
int | nPage | |||
) | const |
Write the data in an INI file format.
sData | String to write the data to | |
nPage | The number of this page |
Definition at line 375 of file CCPrintData.cpp.
References DATAFILE_LINK_COUNT_WRITE, DATAFILE_PAGE_HEIGHT_WRITE, DATAFILE_PAGE_WIDTH_WRITE, DATAFILE_SECTION_PAGE_WRITE, and szPage.