CCLicenseWizBasePage Class Reference

Base class for the license wizard pages. More...

#include <CCLicenseWizBasePage.h>

Inherits CCPrintPropPage.

Inherited by CCLicenseWizJurisdictionPage, CCLicenseWizModificationPage, CCLicenseWizSamplingPage, CCLicenseWizSummeryPage, CCLicenseWizTypePage, and CCLicenseWizUsagePage.

Collaboration diagram for CCLicenseWizBasePage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CCLicenseWizBasePage (UINT uResourceID, IPrintOemDriverUI *pHelper, LicenseInfo *pInfo)
 Constructor.

Protected Member Functions

virtual BOOL PageProc (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Called when a windows message is sent to the page.
virtual BOOL OnSetActive ()
 Called when the page is being activated (displayed).
virtual BOOL OnKillActive ()
 Called when the page is being deactivated (hidden).
virtual int OnWizNext ()
 Called when the user clicks the wizard's Next button.
virtual int OnWizBack ()
 Called when the user clicks the wizard's Back button.
virtual BOOL OnWizFinish ()
 Called when the user clicks the wizard's Finish button.
void SetDescriptionFromField (LicenseInfo::LoadedLicenseDataType eType, LPCTSTR lpName)
 Called to write the description of an XML license field in a control named IDC_DESCRIPTION.
void SetWizardButtons (DWORD dwFlags)
 Called to set the wizard's buttons (disabling/enabling and changing the captions).

Protected Attributes

LicenseInfom_pLicenseInfo
 Pointer to the license information structure.

Detailed Description

Base class for the license wizard pages.

Definition at line 36 of file CCLicenseWizBasePage.h.


Constructor & Destructor Documentation

CCLicenseWizBasePage::CCLicenseWizBasePage ( UINT  uResourceID,
IPrintOemDriverUI *  pHelper,
LicenseInfo pInfo 
) [inline]

Constructor.

Parameters:
uResourceID ID of the page resource
pHelper Pointer to the Print UI Core object
pInfo Pointer to the current license information structure

Definition at line 46 of file CCLicenseWizBasePage.h.


Member Function Documentation

virtual BOOL CCLicenseWizBasePage::OnKillActive (  )  [inline, protected, virtual]

Called when the page is being deactivated (hidden).

Returns:
TRUE to allow hidding the page (also closing the wizard!), FALSE to keep it

Reimplemented in CCLicenseWizJurisdictionPage, CCLicenseWizModificationPage, CCLicenseWizSamplingPage, CCLicenseWizTypePage, and CCLicenseWizUsagePage.

Definition at line 68 of file CCLicenseWizBasePage.h.

Referenced by PageProc().

virtual BOOL CCLicenseWizBasePage::OnSetActive (  )  [inline, protected, virtual]

Called when the page is being activated (displayed).

Returns:
TRUE to allow displaying the page, FALSE not to

Reimplemented in CCLicenseWizJurisdictionPage, CCLicenseWizModificationPage, CCLicenseWizSamplingPage, CCLicenseWizSummeryPage, CCLicenseWizTypePage, and CCLicenseWizUsagePage.

Definition at line 63 of file CCLicenseWizBasePage.h.

Referenced by PageProc().

virtual int CCLicenseWizBasePage::OnWizBack (  )  [inline, protected, virtual]

Called when the user clicks the wizard's Back button.

Returns:
The ID of the resource of the page to display, or -1 to stay on this page

Reimplemented in CCLicenseWizJurisdictionPage, CCLicenseWizSamplingPage, and CCLicenseWizSummeryPage.

Definition at line 78 of file CCLicenseWizBasePage.h.

Referenced by PageProc().

virtual BOOL CCLicenseWizBasePage::OnWizFinish (  )  [inline, protected, virtual]

Called when the user clicks the wizard's Finish button.

Returns:
TRUE to allow closing the wizard, FALSE not to

Definition at line 83 of file CCLicenseWizBasePage.h.

Referenced by PageProc().

virtual int CCLicenseWizBasePage::OnWizNext (  )  [inline, protected, virtual]

Called when the user clicks the wizard's Next button.

Returns:
The ID of the resource of the page to display, or -1 to stay on the page

Reimplemented in CCLicenseWizJurisdictionPage, CCLicenseWizSamplingPage, and CCLicenseWizTypePage.

Definition at line 73 of file CCLicenseWizBasePage.h.

Referenced by PageProc().

BOOL CCLicenseWizBasePage::PageProc ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
) [protected, virtual]

Called when a windows message is sent to the page.

Parameters:
uMsg ID of the message
wParam First parameter of the message
lParam Second parameter of the message
Returns:
TRUE if handled, FALSE to continue handling the message

Reimplemented from CCPrintDlg.

Reimplemented in CCLicenseWizJurisdictionPage, CCLicenseWizModificationPage, CCLicenseWizSamplingPage, CCLicenseWizTypePage, and CCLicenseWizUsagePage.

Definition at line 64 of file CCLicenseWizBasePage.cpp.

References OnKillActive(), OnSetActive(), OnWizBack(), OnWizFinish(), OnWizNext(), and CCPrintDlg::SetWindowLong().

void CCLicenseWizBasePage::SetDescriptionFromField ( LicenseInfo::LoadedLicenseDataType  eType,
LPCTSTR  lpName 
) [protected]

Called to write the description of an XML license field in a control named IDC_DESCRIPTION.

Parameters:
eType The type of the license
lpName Name of the XML field

Definition at line 37 of file CCLicenseWizBasePage.cpp.

References LicenseInfoLoader::GetLicenseXML(), CCPrintDlg::SetDlgItemText(), and tstring.

Referenced by CCLicenseWizUsagePage::PageProc(), CCLicenseWizSamplingPage::PageProc(), and CCLicenseWizModificationPage::PageProc().

void CCLicenseWizBasePage::SetWizardButtons ( DWORD  dwFlags  )  [protected]

Called to set the wizard's buttons (disabling/enabling and changing the captions).

Parameters:
dwFlags Wizard button flags, see PSM_SETWIZBUTTONS message in MSDN

Definition at line 113 of file CCLicenseWizBasePage.cpp.

References CCPrintDlg::m_hDlg.

Referenced by CCLicenseWizTypePage::OnSetActive(), CCLicenseWizSummeryPage::OnSetActive(), CCLicenseWizTypePage::PageProc(), CCLicenseWizUsagePage::UpdateControls(), CCLicenseWizSamplingPage::UpdateControls(), CCLicenseWizModificationPage::UpdateControls(), and CCLicenseWizJurisdictionPage::UpdateControls().


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

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