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

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


#ifndef wpport_h
#define wpport_h


#include <som.h>

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

#define WPPort_MajorVersion 1
#define WPPort_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define WPPortNewClass WPportc
#pragma linkage(WPportc, system)
#define WPPortClassData WPportd
#define WPPortCClassData WPportx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define WPPort_classObj WPPortClassData.classObject
#define _WPPort WPPort_classObj

/*
 * New and Renew macros for WPPort
 */
#define _WPPortNew() (_somNew(WPPortClassData.classObject))
#define WPPortNew() \
	( WPPortClassData.classObject \
		? _WPPortNew() \
		: ( WPPortNewClass(WPPort_MajorVersion, WPPort_MinorVersion), _WPPortNew() ) )
#define WPPortRenew(buf) \
	( _somRenew(WPPortClassData.classObject, buf) )

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

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

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

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

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

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

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

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

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

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

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

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

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

/*
 * Override method: wpCnrSetEmphasis
 */
#define WPPort_wpCnrSetEmphasis(somSelf,ulEmphasisAttr,fTurnOn) \
	WPObject_wpCnrSetEmphasis(somSelf,ulEmphasisAttr,fTurnOn)

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct WPPortClassDataStructure {
	SOMAny *classObject;
	somMToken prtGetPortInfo;
	somMToken prtSetPortInfo;
	somMToken prtSettings;
	somMToken prtGetDeviceObject;
	somMToken prtSetPortDiscardhwndDlg;
	somMToken prtSetPortInstallhwndDlg;
	somMToken prtPrintPort;
	somMToken prtSetIcon;
	somMToken prtChangePort;
} WPPortClassData;

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

#endif       /* wpport_h */

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

#ifndef wpport_mh
#define wpport_mh


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

#define M_WPPort_MajorVersion 1
#define M_WPPort_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define M_WPPortNewClass WPportc
#pragma linkage(WPportc, system)
#define M_WPPortClassData WPportd
#define M_WPPortCClassData WPportx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define M_WPPort_classObj M_WPPortClassData.classObject
#define _M_WPPort M_WPPort_classObj

/*
 * New and Renew macros for M_WPPort
 */
#define _M_WPPortNew() (_somNew(M_WPPortClassData.classObject))
#define M_WPPortNew() \
	( M_WPPortClassData.classObject \
		? _M_WPPortNew() \
		: ( M_WPPortNewClass(M_WPPort_MajorVersion, M_WPPort_MinorVersion), _M_WPPortNew() ) )
#define M_WPPortRenew(buf) \
	( _somRenew(M_WPPortClassData.classObject, buf) )

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

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

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

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

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

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct M_WPPortClassDataStructure {
	SOMAny *classObject;
} M_WPPortClassData;

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

#endif       /* wpport_h */
