Class: Print_Dialog_Mixin
**************************************************************************** //
** ** //
** Class : Print_Dialog_Mixin ** //
** ** //
** Purpose : This class defines properties and funcions common to both ** //
** the PrintDialog and PageSetupDialog dialog boxes. ** //
** ** //
**************************************************************************** //
Class Hierarchy:
cObjectMixinPrint_Dialog_MixinClass Definition
Properties
IntegerCollate
IntegerColor
IntegerCopies
IntegerDefaultSource
StringDeviceName
HandleDevModeHandle
HandleDevNamesHandle
IntegerDitherType
StringDriverName
Property String DevMode ""
Property String DevNames ""
DEVMODE and DEVNAMES properties
IntegerDuplex
StringFormName
HandlehWindow
PRINTDLG and PAGESETUPDLG properties
This has been changed. -1 means to use the main_window's window_handle, 0 means
use no parent (it will be modeless), any other value is a window_handle. Note that
this is used indirectly by ParentWindowHandle to get the real window handle. Normally
a developer will never need to change this.
IntegerICMIntent
IntegerICMMethod
IntegerMediaType
IntegerOrientation
DEVMODE properties
StringOutputName
IntegerPaperLength
IntegerPaperSize
IntegerPaperWidth
IntegerPrintQuality
IntegerScale
IntegerTTOption
IntegerYResolution
Functions and Procedures
Define_Print_Dialog()
************************************************************************ //
** ** //
** Procedure : Define_Print_Dialog ** //
** ** //
** Purpose : Define properties common to the PrintDialog and ** //
** PageSetupDialog boxes. ** //
** ** //
************************************************************************ //
HandleInitDevMode()
************************************************************************ //
** ** //
** Function : InitDevMode ** //
** ** //
** Purpose : This function returns a handle to a global memory ** //
** object that contains a DEVMODE structure. ** //
** ** //
** Returns : Returns the handle to the global memory object, zero if ** //
** the global memory object could not be allocated. ** //
** ** //
************************************************************************ //
HandleInitDevNames()
************************************************************************ //
** ** //
** Function : InitDevNames ** //
** ** //
** Purpose : This function returns a handle to a global memory ** //
** object that contains a DEVNAMES structure. ** //
** ** //
** Returns : Returns the handle to the global memory object, zero if ** //
** the global memory object could not be allocated. ** //
** ** //
************************************************************************ //
handleParentWindowHandle()
************************************************************************ //
** ** //
** Function : ParentWindowHandle ** //
** ** //
** Purpose : This function returns the windows handle to be used ** //
** as the parent window handle ** //
** ** //
** Returns : Should return a valid handle or 0. If zero the dialog ** //
** will be modeless (which you probably would never want) ** //
** ** //
************************************************************************ //
StringPointerToString(Pointer pString)
**************************************************************************** //
** ** //
** Function : PointerToString ** //
** ** //
** Purpose : This function takes a pointer to a null terminated string ** //
** and returns the string without the null. ** //
** ** //
**************************************************************************** //
IntegerReadDevMode(Handle hDevMode)
************************************************************************ //
** ** //
** Function : ReadDevMode ** //
** ** //
** Purpose : This function reads the members of the DEVMODE ** //
** structure when the PrintDialog or PageSetupDlg function ** //
** returns. ** //
** ** //
************************************************************************ //
IntegerReadDevNames(Handle hDevNames)
************************************************************************ //
** ** //
** Function : ReadDevNames ** //
** ** //
** Purpose : This function reads the members of the DEVNAMES ** //
** structure when the PrintDialog or PageSetupDlg function ** //
** returns. ** //
** ** //
************************************************************************ //