CCPrintUI/oemui.cpp File Reference

Main file for Printer Plugin UI functions. More...

#include "precomp.h"
#include "resource.h"
#include "debug.h"
#include "oemui.h"
#include "winbase.h"
#include "helpers.h"
#include "CCPDFPropPage.h"
#include "CCLicensePropPage.h"
#include <PRCOMOEM.H>
Include dependency graph for oemui.cpp:

Go to the source code of this file.

Classes

struct  DocUserData
 Structure containing information for document property pages. More...

Functions

LONG APIENTRY OEMPrinterUICallBack (PCPSUICBPARAM pCallbackParam, POEMCUIPPARAM pOEMUIParam)
 Callback for device UI option data items changes.
LONG APIENTRY OEMDocUICallBack (PCPSUICBPARAM pCallbackParam, POEMCUIPPARAM pOEMUIParam)
 Callback for document UI option data item changes.
HRESULT hrOEMPropertyPage (DWORD dwMode, POEMCUIPPARAM pOEMUIParam)
 Initializes OptItems to display the device or document property UI.
HRESULT hrOEMDocumentPropertySheets (PPROPSHEETUI_INFO pPSUIInfo, LPARAM lParam, IPrintOemDriverUI *pOEMHelp)
 Document property page callback function.
HRESULT hrOEMDevicePropertySheets (PPROPSHEETUI_INFO pPSUIInfo, LPARAM lParam, IPrintOemDriverUI *pOEMHelp)
 Device property page callback function.

Detailed Description

Main file for Printer Plugin UI functions.

Definition in file oemui.cpp.


Function Documentation

HRESULT hrOEMDevicePropertySheets ( PPROPSHEETUI_INFO  pPSUIInfo,
LPARAM  lParam,
IPrintOemDriverUI *  pOEMHelp 
)

Device property page callback function.

Parameters:
pPSUIInfo Pointer to the property pages data structure
lParam Additional data (depends on values in pPSUIInfo
pOEMHelp Pointer to the core PS printer object
Returns:
S_OK if all went well, E_FAIL otherwise

Definition at line 380 of file oemui.cpp.

HRESULT hrOEMDocumentPropertySheets ( PPROPSHEETUI_INFO  pPSUIInfo,
LPARAM  lParam,
IPrintOemDriverUI *  pOEMHelp 
)

Document property page callback function.

Parameters:
pPSUIInfo Pointer to the property pages data structure
lParam Additional data (depends on values in pPSUIInfo
pOEMHelp Pointer to the core PS printer object
Returns:
S_OK if all went well, E_FAIL otherwise

Definition at line 272 of file oemui.cpp.

References DocUserData::bSave, DocUserData::hPrinter, DocUserData::pDevMode, CCPrintPropPage::PreparePage(), CCPrintUIPropPage::SetCallbackData(), and WriteOEMDevToRegistry().

HRESULT hrOEMPropertyPage ( DWORD  dwMode,
POEMCUIPPARAM  pOEMUIParam 
)

Initializes OptItems to display the device or document property UI.

Parameters:
dwMode Type of pages to initialize
pOEMUIParam Pointer to UI data structure
Returns:
S_OK if all went well, E_FAIL otherwise

Definition at line 106 of file oemui.cpp.

LONG APIENTRY OEMDocUICallBack ( PCPSUICBPARAM  pCallbackParam,
POEMCUIPPARAM  pOEMUIParam 
)

Callback for document UI option data item changes.

Parameters:
pCallbackParam Callback information structure
pOEMUIParam Pointer to the UI option data items structure
Returns:
Appropriate action value (see _CPSUICALLBACK in MSDN)

Definition at line 478 of file oemui.cpp.

References tagOEMDEV::bAutoOpen, and WriteOEMDevToRegistry().

LONG APIENTRY OEMPrinterUICallBack ( PCPSUICBPARAM  pCallbackParam,
POEMCUIPPARAM  pOEMUIParam 
)

Callback for device UI option data items changes.

Parameters:
pCallbackParam Callback information structure
pOEMUIParam Pointer to the UI option data items structure
Returns:
CPSUICB_ACTION_NONE or CPSUICB_ACTION_ITEMS_APPLIED if changes were applied

Definition at line 446 of file oemui.cpp.

References SETTINGS_AUTOOPEN.


Generated on Mon Jun 18 12:52:24 2012 for Excel to PDF Converter by doxygen 1.6.1