CCPrintData::PageData Struct Reference

Structure for keeping data for all the links in a page (and some extra page-specific data). More...

#include <CCPrintData.h>

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

CCPrintData::PageData::PageData ( const PageData other  )  [inline]

Copy constructor.

Parameters:
other Data to copy

Definition at line 131 of file CCPrintData.h.


Member Function Documentation

bool CCPrintData::PageData::FromFile ( class FileINI file,
int  nPage 
)

Read the data from an INI file.

Parameters:
file INI file object to read from
nPage Number of page to read from
Returns:
true if read successfully, false if failed

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.

Returns:
true if there's a text link, false if all the links are location-based

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.

Parameters:
sData String to write the data to
nPage The number of this page
Returns:
true if writen successfully, false if failed

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.


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

Generated on Mon Jun 18 12:40:43 2012 for CC PDF Converter by doxygen 1.6.1