Helper class used to install the port monitor along with the PDF printer. More...
#include <CCPrintInstallFunctions.h>
Inherits PrinterInstall.
Public Member Functions | |
CCPDFPrinterInstaller (HWND hWnd) | |
Default constructor. | |
bool | DoInstall (HMODULE hModule=NULL, LPTSTR installationPath="") |
CC PDF Printer driver install function. | |
bool | DoRemove () |
CC PDF Printer driver removal function. | |
bool | IsPrinterInstalled () |
Tests if the CC PDF Printer driver is installed on this system. | |
Protected Member Functions | |
void | ShowError (LPCTSTR lpError) |
Display an error message dialog. | |
Protected Attributes | |
HWND | m_hWnd |
Parent window handle. |
Helper class used to install the port monitor along with the PDF printer.
Definition at line 35 of file CCPrintInstallFunctions.h.
CCPDFPrinterInstaller::CCPDFPrinterInstaller | ( | HWND | hWnd | ) |
Default constructor.
hWnd | Handle to the parent window |
Definition at line 120 of file CCPrintInstallFunctions.cpp.
bool CCPDFPrinterInstaller::DoInstall | ( | HMODULE | hModule = NULL , |
|
LPTSTR | installationPath = "" | |||
) |
CC PDF Printer driver install function.
hModule | Handle to the module that should be used to retrieve the driver files path from; NULL to use this module |
Definition at line 157 of file CCPrintInstallFunctions.cpp.
References PrinterInstall::AddPortMonitor(), CanOpenPDFFiles(), ConcatPaths(), PrinterInstall::GetError(), PrinterInstall::GetLastError(), PrinterInstall::Install(), m_hWnd, MONITOR_DLL, MONITOR_NAME, PORT_NAME, PRINTER_NAME, PrinterInstall::RemovePortMonitor(), CCPrintRegistry::SetRegistryBool(), CCPrintRegistry::SetRegistryString(), SETTINGS_AUTOOPEN, ShowError(), tstring, and PrinterInstall::Uninstall().
Referenced by InstallPrinter().
bool CCPDFPrinterInstaller::DoRemove | ( | ) |
CC PDF Printer driver removal function.
Definition at line 297 of file CCPrintInstallFunctions.cpp.
References PrinterInstall::GetError(), PrinterInstall::GetLastError(), m_hWnd, MONITOR_NAME, PrinterInstall::RemovePortMonitor(), ShowError(), and PrinterInstall::Uninstall().
Referenced by RemovePrinter().
bool CCPDFPrinterInstaller::IsPrinterInstalled | ( | ) |
Tests if the CC PDF Printer driver is installed on this system.
hWnd | Handle to the parent window |
Definition at line 137 of file CCPrintInstallFunctions.cpp.
References PrinterInstall::IsPrinterInstalled(), and ShowError().
Referenced by IsInstalled().
void CCPDFPrinterInstaller::ShowError | ( | LPCTSTR | lpError | ) | [protected] |
Display an error message dialog.
lpError | Error string |
Definition at line 128 of file CCPrintInstallFunctions.cpp.
References m_hWnd.
Referenced by DoInstall(), DoRemove(), and IsPrinterInstalled().