CCPrintUIPropPage Class Reference

Parent class for Print UI main property pages (non-wizard). More...

#include <CCPrintUIPropPage.h>

Inherits CCPrintPropPage.

Inherited by CCLicensePropPage, and CCPDFPropPage.

Collaboration diagram for CCPrintUIPropPage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CCPrintUIPropPage (UINT uResourceID, HANDLE hPrinter, IPrintOemDriverUI *pHelper, POEMDEV pDevMode=NULL)
 Constructor.
bool IsDevicePage () const
 Tests if the current page is in device properties mode (as opposed to specific printing properties).
void SetCallbackData (PFNCOMPROPSHEET pfnComPropSheet, HANDLE hComPropSheet, HANDLE hPage)
 Sets the Common Property Sheet members.

Protected Member Functions

bool GetRegistryBool (LPCTSTR lpSetting, bool bDefault) const
 Retrieves a boolean value from the printer settings in the registry.
int GetRegistryInt (LPCTSTR lpSetting, int nDefault) const
 Retrieves an integer value from the printer settings in the registry.
std::tstring GetRegistryString (LPCTSTR lpSetting, LPCTSTR lpDefault) const
 Retrieves a string value from the printer settings in the registry.
void SetRegistryInt (LPCTSTR lpSetting, int nValue) const
 Sets an integer value in the printer settings in the registry.
void SetChanged ()
 Sets the page to changed status (enabling the Apply button).

Protected Attributes

POEMDEV m_pDevMode
 Pointer to the plugin data structure (can be NULL for device property pages).
HANDLE m_hPrinter
 Handle to the printer.
PFNCOMPROPSHEET m_pfnComPropSheet
 Pointer to the Common Property Sheet handler function.
HANDLE m_hComPropSheet
 Handle of the common property sheet.
HANDLE m_hPage
 Handle of the page.

Detailed Description

Parent class for Print UI main property pages (non-wizard).

Definition at line 37 of file CCPrintUIPropPage.h.


Constructor & Destructor Documentation

CCPrintUIPropPage::CCPrintUIPropPage ( UINT  uResourceID,
HANDLE  hPrinter,
IPrintOemDriverUI *  pHelper,
POEMDEV  pDevMode = NULL 
)

Constructor.

Parameters:
uResourceID ID of the page resource
hPrinter Handle to the printer
pHelper Pointer to the Print UI Core object
pDevMode Pointer to the CCPrinter data structure (can be NULL)

Definition at line 36 of file CCPrintUIPropPage.cpp.


Member Function Documentation

bool CCPrintUIPropPage::GetRegistryBool ( LPCTSTR  lpSetting,
bool  bDefault 
) const [inline, protected]

Retrieves a boolean value from the printer settings in the registry.

Parameters:
lpSetting Name of the value to retrieve
bDefault Default value returned (if not found in the registry)
Returns:
The value from the registry, or the default value if not found

Definition at line 79 of file CCPrintUIPropPage.h.

References m_hPrinter.

int CCPrintUIPropPage::GetRegistryInt ( LPCTSTR  lpSetting,
int  nDefault 
) const [inline, protected]

Retrieves an integer value from the printer settings in the registry.

Parameters:
lpSetting Name of the value to retrieve
nDefault Default value returned (if not found in the registry)
Returns:
The value from the registry, or the default value if not found

Definition at line 86 of file CCPrintUIPropPage.h.

References m_hPrinter.

std::tstring CCPrintUIPropPage::GetRegistryString ( LPCTSTR  lpSetting,
LPCTSTR  lpDefault 
) const [inline, protected]

Retrieves a string value from the printer settings in the registry.

Parameters:
lpSetting Name of the value to retrieve
lpDefault Default value returned (if not found in the registry)
Returns:
The value from the registry, or the default value if not found

Definition at line 93 of file CCPrintUIPropPage.h.

References m_hPrinter.

bool CCPrintUIPropPage::IsDevicePage (  )  const [inline]

Tests if the current page is in device properties mode (as opposed to specific printing properties).

Returns:
true if the page is in device properties mode

Definition at line 62 of file CCPrintUIPropPage.h.

References m_pDevMode.

void CCPrintUIPropPage::SetCallbackData ( PFNCOMPROPSHEET  pfnComPropSheet,
HANDLE  hComPropSheet,
HANDLE  hPage 
) [inline]

Sets the Common Property Sheet members.

Parameters:
pfnComPropSheet Pointer to the Common Property Sheet handler function
hComPropSheet Handle of the common property sheet
hPage Handle of the page

Definition at line 69 of file CCPrintUIPropPage.h.

References m_hComPropSheet, m_hPage, and m_pfnComPropSheet.

Referenced by hrOEMDocumentPropertySheets().

void CCPrintUIPropPage::SetRegistryInt ( LPCTSTR  lpSetting,
int  nValue 
) const [inline, protected]

Sets an integer value in the printer settings in the registry.

Parameters:
lpSetting Name of the value to set
nValue Value to set

Definition at line 99 of file CCPrintUIPropPage.h.

References m_hPrinter.


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

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