Class handling the license selection page of the Printer UI. More...
#include <CCLicensePropPage.h>
Inherits CCPrintUIPropPage.
Public Member Functions | |
CCLicensePropPage (HANDLE hPrinter, IPrintOemDriverUI *pHelper, POEMDEV pDevMode=NULL, PDEVMODE pPublicDM=NULL) | |
Constructor. | |
~CCLicensePropPage () | |
Destructor: deletes the license image if available. | |
Protected Member Functions | |
virtual BOOL | PageProc (UINT uMsg, WPARAM wParam, LPARAM lParam) |
Called when a window message is sent to the page. | |
void | UpdateControls () |
Updates the page controls (enabling/showing according to the current settings). | |
void | UpdateLicenseControls () |
Updates the license selection controls. | |
void | UpdateLicenseLocationControls () |
Updates the license location controls. | |
void | InitControls () |
Resets the license and location data and updates the page controls. | |
SIZE | GetPageSize () |
Returns the size of the currently selected print page. | |
SIZE | GetLicenseSize () |
Returns the size of the currently selected license stamp. | |
Protected Attributes | |
HBITMAP | m_hBmp |
Handle to the license image. | |
LicenseInfoLoader | m_license |
License data. | |
LicenseLocationInfo | m_location |
License location data. | |
BOOL | m_bSetProperties |
Flag incidating if the license properties should be added to the PDF's XMP. | |
PDEVMODE | m_pPublicDM |
Pointer to the general printer data structure. |
Class handling the license selection page of the Printer UI.
Definition at line 39 of file CCLicensePropPage.h.
CCLicensePropPage::CCLicensePropPage | ( | HANDLE | hPrinter, | |
IPrintOemDriverUI * | pHelper, | |||
POEMDEV | pDevMode = NULL , |
|||
PDEVMODE | pPublicDM = NULL | |||
) | [inline] |
Constructor.
hPrinter | Handle to the printer | |
pHelper | Pointer to the Print UI Core object | |
pDevMode | Pointer to the CCPrinter data structure (can be NULL) | |
pPublicDM | Pointer to the General printer data structure (can be NULL) |
Definition at line 50 of file CCLicensePropPage.h.
SIZE CCLicensePropPage::GetLicenseSize | ( | ) | [protected] |
Returns the size of the currently selected license stamp.
Definition at line 396 of file CCLicensePropPage.cpp.
References m_pPublicDM.
Referenced by PageProc().
SIZE CCLicensePropPage::GetPageSize | ( | ) | [protected] |
Returns the size of the currently selected print page.
Definition at line 373 of file CCLicensePropPage.cpp.
References m_pPublicDM.
Referenced by PageProc().
BOOL CCLicensePropPage::PageProc | ( | UINT | uMsg, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [protected, virtual] |
Called when a window message is sent to the page.
uMsg | ID of the message | |
wParam | First parameter of the message | |
lParam | Second parameter of the message |
Reimplemented from CCPrintDlg.
Definition at line 43 of file CCLicensePropPage.cpp.
References CCPrintDlg::AddDlgComboString(), tagOEMDEV::bSetProperties, CCPrintDlg::DoModal(), CCLicenseWizard::DoModal(), LicenseLocationInfo::eFirstPage, LicenseLocationInfo::eOtherPages, CCPrintDlg::GetCheckedRadioBtn(), CCPrintDlg::GetDlgComboSelData(), CCPrintDlg::GetDlgItem(), CCPrintDlg::GetDlgItemCheck(), GetLicenseSize(), CCLicenseLocationDlg::GetLocation(), GetPageSize(), tagOEMDEV::info, InitControls(), LicenseInfoLoader::LoadLicenseData(), tagOEMDEV::location, LicenseLocationInfo::LocationForPage(), m_bSetProperties, CCPrintUIPropPage::m_hComPropSheet, CCPrintDlg::m_hDlg, CCPrintUIPropPage::m_hPage, m_license, m_location, CCPrintUIPropPage::m_pDevMode, CCPrintPropPage::m_pHelper, m_pPublicDM, LicenseLocationInfo::ptFirstPage, LicenseLocationInfo::ptOtherPages, CCPrintUIPropPage::SetChanged(), UpdateControls(), and UpdateLicenseLocationControls().