/* Copyright (c) 1992 Colin Jensen.  All Rights Reserved. */


/*
 * This file was generated by the SOM Compiler.
 * FileName: ..\..\ibmh\wpprint.h.
 * Generated using:
 *     SOM Precompiler spc: 1.22
 *     SOM Emitter emith: 1.11
 */

/*
 * 
 *  Module Header
 * 
 *  Module Name: WPPRINT
 * 
 *  OS/2 Presentation Manager Workplace class definitions
 * 
 *  Copyright (c) International Business Machines Corporation 1991, 1992
 * 
 */


#ifndef wpprint_h
#define wpprint_h


#include <som.h>

/*
 * Define the class name as an object type
 */
#ifndef WPPrinter
#define WPPrinter SOMAny
#endif
#include "wpabs.h"

#define WPPrinter_MajorVersion 1
#define WPPrinter_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define WPPrinterNewClass WPPrintc
#pragma linkage(WPPrintc, system)
#define WPPrinterClassData WPPrintd
#define WPPrinterCClassData WPPrintx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define WPPrinter_classObj WPPrinterClassData.classObject
#define _WPPrinter WPPrinter_classObj

/*
 * New and Renew macros for WPPrinter
 */
#define _WPPrinterNew() (_somNew(WPPrinterClassData.classObject))
#define WPPrinterNew() \
	( WPPrinterClassData.classObject \
		? _WPPrinterNew() \
		: ( WPPrinterNewClass(WPPrinter_MajorVersion, WPPrinter_MinorVersion), _WPPrinterNew() ) )
#define WPPrinterRenew(buf) \
	( _somRenew(WPPrinterClassData.classObject, buf) )

/*
 * Override method: wpInitData
 */
#define WPPrinter_wpInitData(somSelf) \
	WPObject_wpInitData(somSelf)

/*
 * Override method: wpUnInitData
 */
#define WPPrinter_wpUnInitData(somSelf) \
	WPObject_wpUnInitData(somSelf)

/*
 * Override method: somDumpSelfInt
 */
#define WPPrinter_somDumpSelfInt(somSelf,level) \
	SOMObject_somDumpSelfInt(somSelf,level)

/*
 * Override method: wpSetTitle
 */
#define WPPrinter_wpSetTitle(somSelf,pszNewTitle) \
	WPObject_wpSetTitle(somSelf,pszNewTitle)

/*
 * Override method: wpSaveState
 */
#define WPPrinter_wpSaveState(somSelf) \
	WPObject_wpSaveState(somSelf)

/*
 * Override method: wpRestoreState
 */
#define WPPrinter_wpRestoreState(somSelf,ulReserved) \
	WPObject_wpRestoreState(somSelf,ulReserved)

/*
 * Override method: wpAddSettingsPages
 */
#define WPPrinter_wpAddSettingsPages(somSelf,hwndNotebook) \
	WPObject_wpAddSettingsPages(somSelf,hwndNotebook)

/*
 * Override method: wpQueryTitle
 */
#define WPPrinter_wpQueryTitle(somSelf) \
	WPObject_wpQueryTitle(somSelf)

/*
 * Override method: wpQueryIcon
 */
#define WPPrinter_wpQueryIcon(somSelf) \
	WPObject_wpQueryIcon(somSelf)

/*
 * Override method: wpSetIcon
 */
#define WPPrinter_wpSetIcon(somSelf,hptrNewIcon) \
	WPObject_wpSetIcon(somSelf,hptrNewIcon)

/*
 * Override method: wpFilterPopupMenu
 */
#define WPPrinter_wpFilterPopupMenu(somSelf,ulFlags,hwndCnr,fMultiSelect) \
	WPObject_wpFilterPopupMenu(somSelf,ulFlags,hwndCnr,fMultiSelect)

/*
 * Override method: wpFree
 */
#define WPPrinter_wpFree(somSelf) \
	WPObject_wpFree(somSelf)

/*
 * Override method: wpModifyPopupMenu
 */
#define WPPrinter_wpModifyPopupMenu(somSelf,hwndMenu,hwndCnr,iPosition) \
	WPObject_wpModifyPopupMenu(somSelf,hwndMenu,hwndCnr,iPosition)

/*
 * Override method: wpMenuItemSelected
 */
#define WPPrinter_wpMenuItemSelected(somSelf,hwndFrame,ulMenuId) \
	WPObject_wpMenuItemSelected(somSelf,hwndFrame,ulMenuId)

/*
 * Override method: wpMenuItemHelpSelected
 */
#define WPPrinter_wpMenuItemHelpSelected(somSelf,MenuId) \
	WPObject_wpMenuItemHelpSelected(somSelf,MenuId)

/*
 * Override method: wpQueryDefaultHelp
 */
#define WPPrinter_wpQueryDefaultHelp(somSelf,pHelpPanelId,HelpLibrary) \
	WPObject_wpQueryDefaultHelp(somSelf,pHelpPanelId,HelpLibrary)

/*
 * Override method: wpOpen
 */
#define WPPrinter_wpOpen(somSelf,hwndCnr,ulView,param) \
	WPObject_wpOpen(somSelf,hwndCnr,ulView,param)

/*
 * Override method: wpDrop
 */
#define WPPrinter_wpDrop(somSelf,hwndCnr,pdrgInfo,pdrgItem) \
	WPObject_wpDrop(somSelf,hwndCnr,pdrgInfo,pdrgItem)

/*
 * Override method: wpDragOver
 */
#define WPPrinter_wpDragOver(somSelf,hwndCnr,pdrgInfo) \
	WPObject_wpDragOver(somSelf,hwndCnr,pdrgInfo)

/*
 * Override method: wpCreateAnother
 */
#define WPPrinter_wpCreateAnother(somSelf,pszTitle,pszSetupEnv,Folder) \
	WPObject_wpCreateAnother(somSelf,pszTitle,pszSetupEnv,Folder)

/*
 * Override method: wpCopyObject
 */
#define WPPrinter_wpCopyObject(somSelf,Folder,fLock) \
	WPObject_wpCopyObject(somSelf,Folder,fLock)

/*
 * Override method: wpCopiedFromTemplate
 */
#define WPPrinter_wpCopiedFromTemplate(somSelf) \
	WPObject_wpCopiedFromTemplate(somSelf)

/*
 * Override method: wpCreateFromTemplate
 */
#define WPPrinter_wpCreateFromTemplate(somSelf,folder,fLock) \
	WPObject_wpCreateFromTemplate(somSelf,folder,fLock)

/*
 * Override method: wpQueryStyle
 */
#define WPPrinter_wpQueryStyle(somSelf) \
	WPObject_wpQueryStyle(somSelf)

/*
 * Override method: wpMoveObject
 */
#define WPPrinter_wpMoveObject(somSelf,Folder) \
	WPObject_wpMoveObject(somSelf,Folder)

/*
 * Override method: wpCreateShadowObject
 */
#define WPPrinter_wpCreateShadowObject(somSelf,Folder,fLock) \
	WPObject_wpCreateShadowObject(somSelf,Folder,fLock)

/*
 * Override method: wpQueryIconData
 */
#define WPPrinter_wpQueryIconData(somSelf,pIconInfo) \
	WPObject_wpQueryIconData(somSelf,pIconInfo)

/*
 * New Method: wpDeleteAllJobs
 */
typedef BOOL    SOMLINK somTP_WPPrinter_wpDeleteAllJobs(WPPrinter *somSelf);
#pragma linkage(somTP_WPPrinter_wpDeleteAllJobs, system)
typedef somTP_WPPrinter_wpDeleteAllJobs *somTD_WPPrinter_wpDeleteAllJobs;
#define somMD_WPPrinter_wpDeleteAllJobs "----"
#define WPPrinter_wpDeleteAllJobs(somSelf) \
    (SOM_Resolve(somSelf, WPPrinter, wpDeleteAllJobs) \
	(somSelf))
#define _wpDeleteAllJobs WPPrinter_wpDeleteAllJobs

/*
 * New Method: wpHoldPrinter
 */
typedef BOOL    SOMLINK somTP_WPPrinter_wpHoldPrinter(WPPrinter *somSelf);
#pragma linkage(somTP_WPPrinter_wpHoldPrinter, system)
typedef somTP_WPPrinter_wpHoldPrinter *somTD_WPPrinter_wpHoldPrinter;
#define somMD_WPPrinter_wpHoldPrinter "----"
#define WPPrinter_wpHoldPrinter(somSelf) \
    (SOM_Resolve(somSelf, WPPrinter, wpHoldPrinter) \
	(somSelf))
#define _wpHoldPrinter WPPrinter_wpHoldPrinter

/*
 * New Method: wpReleasePrinter
 */
typedef BOOL    SOMLINK somTP_WPPrinter_wpReleasePrinter(WPPrinter *somSelf);
#pragma linkage(somTP_WPPrinter_wpReleasePrinter, system)
typedef somTP_WPPrinter_wpReleasePrinter *somTD_WPPrinter_wpReleasePrinter;
#define somMD_WPPrinter_wpReleasePrinter "----"
#define WPPrinter_wpReleasePrinter(somSelf) \
    (SOM_Resolve(somSelf, WPPrinter, wpReleasePrinter) \
	(somSelf))
#define _wpReleasePrinter WPPrinter_wpReleasePrinter

/*
 * New Method: wpQueryComputerName
 */
typedef ULONG    SOMLINK somTP_WPPrinter_wpQueryComputerName(WPPrinter *somSelf,
		PSZ pszComputerName);
#pragma linkage(somTP_WPPrinter_wpQueryComputerName, system)
typedef somTP_WPPrinter_wpQueryComputerName *somTD_WPPrinter_wpQueryComputerName;
#define somMD_WPPrinter_wpQueryComputerName "----"
#define WPPrinter_wpQueryComputerName(somSelf,pszComputerName) \
    (SOM_Resolve(somSelf, WPPrinter, wpQueryComputerName) \
	(somSelf,pszComputerName))
#define _wpQueryComputerName WPPrinter_wpQueryComputerName

/*
 * New Method: wpQueryPrinterName
 */
typedef BOOL    SOMLINK somTP_WPPrinter_wpQueryPrinterName(WPPrinter *somSelf,
		PSZ pszPrinterName);
#pragma linkage(somTP_WPPrinter_wpQueryPrinterName, system)
typedef somTP_WPPrinter_wpQueryPrinterName *somTD_WPPrinter_wpQueryPrinterName;
#define somMD_WPPrinter_wpQueryPrinterName "----"
#define WPPrinter_wpQueryPrinterName(somSelf,pszPrinterName) \
    (SOM_Resolve(somSelf, WPPrinter, wpQueryPrinterName) \
	(somSelf,pszPrinterName))
#define _wpQueryPrinterName WPPrinter_wpQueryPrinterName

/*
 * New Method: wpSetComputerName
 */
typedef BOOL    SOMLINK somTP_WPPrinter_wpSetComputerName(WPPrinter *somSelf,
		PSZ pszComputerName);
#pragma linkage(somTP_WPPrinter_wpSetComputerName, system)
typedef somTP_WPPrinter_wpSetComputerName *somTD_WPPrinter_wpSetComputerName;
#define somMD_WPPrinter_wpSetComputerName "----"
#define WPPrinter_wpSetComputerName(somSelf,pszComputerName) \
    (SOM_Resolve(somSelf, WPPrinter, wpSetComputerName) \
	(somSelf,pszComputerName))
#define _wpSetComputerName WPPrinter_wpSetComputerName

/*
 * New Method: wpSetPrinterName
 */
typedef BOOL    SOMLINK somTP_WPPrinter_wpSetPrinterName(WPPrinter *somSelf,
		PSZ pszPrinterName);
#pragma linkage(somTP_WPPrinter_wpSetPrinterName, system)
typedef somTP_WPPrinter_wpSetPrinterName *somTD_WPPrinter_wpSetPrinterName;
#define somMD_WPPrinter_wpSetPrinterName "----"
#define WPPrinter_wpSetPrinterName(somSelf,pszPrinterName) \
    (SOM_Resolve(somSelf, WPPrinter, wpSetPrinterName) \
	(somSelf,pszPrinterName))
#define _wpSetPrinterName WPPrinter_wpSetPrinterName

/*
 * New Method: wpSetDefaultPrinter
 */
typedef BOOL    SOMLINK somTP_WPPrinter_wpSetDefaultPrinter(WPPrinter *somSelf);
#pragma linkage(somTP_WPPrinter_wpSetDefaultPrinter, system)
typedef somTP_WPPrinter_wpSetDefaultPrinter *somTD_WPPrinter_wpSetDefaultPrinter;
#define somMD_WPPrinter_wpSetDefaultPrinter "----"
#define WPPrinter_wpSetDefaultPrinter(somSelf) \
    (SOM_Resolve(somSelf, WPPrinter, wpSetDefaultPrinter) \
	(somSelf))
#define _wpSetDefaultPrinter WPPrinter_wpSetDefaultPrinter

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMAny * SOMLINK WPPrinterNewClass(integer4 scemajorVersion,
		integer4 sceminorVersion);
#pragma linkage(WPPrinterNewClass, system)

/*
 * Declare the class data structure
 */
SOMEXTERN struct WPPrinterClassDataStructure {
	SOMAny *classObject;
	somMToken pdvNew;
	somMToken pdvOpen;
	somMToken pdvPrintDestType;
	somMToken pdvQueueName;
	somMToken pdvComputerName;
	somMToken pdvSetViewStatus;
	somMToken pdvSetDialogPrintFlag;
	somMToken pdvIsDialogPrintOn;
	somMToken pdvGetJobFolderhWnd;
	somMToken pdvSetPrintDestType;
	somMToken pdvSetQueueName;
	somMToken pdvSetComputerName;
	somMToken pdvSetTitle;
	somMToken pdvHoldQueue;
	somMToken pdvReleaseQueue;
	somMToken pdvChangeQueue;
	somMToken pdvAddJob;
	somMToken pdvDeleteJob;
	somMToken pdvDeleteAllJob;
	somMToken pdvHoldJob;
	somMToken pdvReleaseJob;
	somMToken pdvChangeJob;
	somMToken pdvHasThisPort;
	somMToken pdvHasThisPDriver;
	somMToken pdvHasThisQDriver;
	somMToken pdvGetQueueObject;
	somMToken pdvGetCountryData;
	somMToken pdvSetCountryData;
	somMToken pdvGetJobDetailTable;
	somMToken pdvGetJobFieldInfo;
	somMToken pdvPrintPD;
	somMToken pdvFreePrintDest;
	somMToken pdvNewRemote;
	somMToken pdvCopyRemote;
	somMToken pdvCapabilities;
	somMToken pdvSetCapabilities;
	somMToken pdvLogonName;
	somMToken pdvSetLogonName;
	somMToken pdvLocalPrintDriverOnly;
	somMToken pdvSetLocalPrintDriverOnly;
	somMToken pdvRemotePDriverList;
	somMToken pdvSetRemotePDriverList;
	somMToken pdvPrintSpecificFormat;
	somMToken pdvSetPrintSpecificFormat;
	somMToken pdvRemoteAdminCopy;
	somMToken pdvRemoteAdminCreate;
	somMToken pdvRemoteAdminDelete;
	somMToken pdvAddJobViewer;
	somMToken pdvDelJobViewer;
	somMToken pdvTimerTicks;
	somMToken pdvSetTimerTicks;
	somMToken wpDeleteAllJobs;
	somMToken wpHoldPrinter;
	somMToken wpReleasePrinter;
	somMToken wpQueryComputerName;
	somMToken wpQueryPrinterName;
	somMToken wpSetComputerName;
	somMToken wpSetPrinterName;
	somMToken wpSetDefaultPrinter;
	somMToken pdvSetLSAlias;
	somMToken pdvLSAlias;
	somMToken pdvLocalAlias;
	somMToken pdvSetLocalAlias;
	somMToken pdvRemoteJobView;
	somMToken pdvSetRemoteData;
	somMToken pdvCopy;
	somMToken pdvSetJobDetailTable;
	somMToken pdvGetQueueStatusLine;
	somMToken pdvSetQueueStatusLine;
} WPPrinterClassData;

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct WPPrinterCClassDataStructure {
	somMethodTab *parentMtab;
	somDToken instanceDataToken;
} WPPrinterCClassData;

#endif       /* wpprint_h */

/*
 * This file was generated by the SOM Compiler.
 * FileName: ..\..\ibmh\wpprint.h.
 * Generated using:
 *     SOM Precompiler spc: 1.22
 *     SOM Emitter emith: 1.11
 */

#ifndef wpprint_mh
#define wpprint_mh


/*
 * Define the class name as an object type
 */
#ifndef M_WPPrinter
#define M_WPPrinter SOMAny
#endif

#define M_WPPrinter_MajorVersion 1
#define M_WPPrinter_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define M_WPPrinterNewClass WPPrintc
#pragma linkage(WPPrintc, system)
#define M_WPPrinterClassData WPPrintd
#define M_WPPrinterCClassData WPPrintx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define M_WPPrinter_classObj M_WPPrinterClassData.classObject
#define _M_WPPrinter M_WPPrinter_classObj

/*
 * New and Renew macros for M_WPPrinter
 */
#define _M_WPPrinterNew() (_somNew(M_WPPrinterClassData.classObject))
#define M_WPPrinterNew() \
	( M_WPPrinterClassData.classObject \
		? _M_WPPrinterNew() \
		: ( M_WPPrinterNewClass(M_WPPrinter_MajorVersion, M_WPPrinter_MinorVersion), _M_WPPrinterNew() ) )
#define M_WPPrinterRenew(buf) \
	( _somRenew(M_WPPrinterClassData.classObject, buf) )

/*
 * Override method: wpclsQueryTitle
 */
#define M_WPPrinter_wpclsQueryTitle(somSelf) \
	M_WPObject_wpclsQueryTitle(somSelf)

/*
 * Override method: wpclsQueryIcon
 */
#define M_WPPrinter_wpclsQueryIcon(somSelf) \
	M_WPObject_wpclsQueryIcon(somSelf)

/*
 * Override method: wpclsQueryDefaultHelp
 */
#define M_WPPrinter_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary) \
	M_WPObject_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary)

/*
 * Override method: wpclsQueryDefaultView
 */
#define M_WPPrinter_wpclsQueryDefaultView(somSelf) \
	M_WPObject_wpclsQueryDefaultView(somSelf)

/*
 * Override method: wpclsQueryStyle
 */
#define M_WPPrinter_wpclsQueryStyle(somSelf) \
	M_WPObject_wpclsQueryStyle(somSelf)

/*
 * Override method: wpclsQueryIconData
 */
#define M_WPPrinter_wpclsQueryIconData(somSelf,pIconInfo) \
	M_WPObject_wpclsQueryIconData(somSelf,pIconInfo)

/*
 * Override method: wpclsInitData
 */
#define M_WPPrinter_wpclsInitData(somSelf) \
	M_WPObject_wpclsInitData(somSelf)

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMAny * SOMLINK M_WPPrinterNewClass(integer4 scemajorVersion,
		integer4 sceminorVersion);
#pragma linkage(M_WPPrinterNewClass, system)

/*
 * Declare the class data structure
 */
SOMEXTERN struct M_WPPrinterClassDataStructure {
	SOMAny *classObject;
} M_WPPrinterClassData;

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct M_WPPrinterCClassDataStructure {
	somMethodTab *parentMtab;
	somDToken instanceDataToken;
} M_WPPrinterCClassData;

#endif       /* wpprint_h */
