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


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

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


#ifndef wppdr_h
#define wppdr_h


#include <som.h>

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

#define PDR_MajorVersion 1
#define PDR_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define PDRNewClass pdrc
#pragma linkage(pdrc, system)
#define PDRClassData pdrd
#define PDRCClassData pdrx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define PDR_classObj PDRClassData.classObject
#define _PDR PDR_classObj

/*
 * New and Renew macros for PDR
 */
#define _PDRNew() (_somNew(PDRClassData.classObject))
#define PDRNew() \
	( PDRClassData.classObject \
		? _PDRNew() \
		: ( PDRNewClass(PDR_MajorVersion, PDR_MinorVersion), _PDRNew() ) )
#define PDRRenew(buf) \
	( _somRenew(PDRClassData.classObject, buf) )

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct PDRClassDataStructure {
	SOMAny *classObject;
	somMToken prtGetPDriverInfo;
	somMToken prtSetPDriverInfo;
	somMToken prtGetPDriverName;
	somMToken prtGetPDeviceName;
	somMToken prtSetPdrIcon;
	somMToken prtSetPDriverDiscardhwndDlg;
	somMToken prtSetPDriverInstallhwndDlg;
} PDRClassData;

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

#endif       /* wppdr_h */

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

#ifndef wppdr_mh
#define wppdr_mh


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

#define M_PDR_MajorVersion 1
#define M_PDR_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define M_PDRNewClass pdrc
#pragma linkage(pdrc, system)
#define M_PDRClassData pdrd
#define M_PDRCClassData pdrx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define M_PDR_classObj M_PDRClassData.classObject
#define _M_PDR M_PDR_classObj

/*
 * New and Renew macros for M_PDR
 */
#define _M_PDRNew() (_somNew(M_PDRClassData.classObject))
#define M_PDRNew() \
	( M_PDRClassData.classObject \
		? _M_PDRNew() \
		: ( M_PDRNewClass(M_PDR_MajorVersion, M_PDR_MinorVersion), _M_PDRNew() ) )
#define M_PDRRenew(buf) \
	( _somRenew(M_PDRClassData.classObject, buf) )

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

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

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

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

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

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct M_PDRClassDataStructure {
	SOMAny *classObject;
} M_PDRClassData;

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

#endif       /* wppdr_h */
