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


/*
 * 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 PORT
#define PORT SOMAny
#endif
#include "wptrans.h"

#define PORT_MajorVersion 1
#define PORT_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define PORTNewClass portc
#pragma linkage(portc, system)
#define PORTClassData portd
#define PORTCClassData portx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define PORT_classObj PORTClassData.classObject
#define _PORT PORT_classObj

/*
 * New and Renew macros for PORT
 */
#define _PORTNew() (_somNew(PORTClassData.classObject))
#define PORTNew() \
	( PORTClassData.classObject \
		? _PORTNew() \
		: ( PORTNewClass(PORT_MajorVersion, PORT_MinorVersion), _PORTNew() ) )
#define PORTRenew(buf) \
	( _somRenew(PORTClassData.classObject, buf) )

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#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_PORT
#define M_PORT SOMAny
#endif

#define M_PORT_MajorVersion 1
#define M_PORT_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define M_PORTNewClass portc
#pragma linkage(portc, system)
#define M_PORTClassData portd
#define M_PORTCClassData portx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define M_PORT_classObj M_PORTClassData.classObject
#define _M_PORT M_PORT_classObj

/*
 * New and Renew macros for M_PORT
 */
#define _M_PORTNew() (_somNew(M_PORTClassData.classObject))
#define M_PORTNew() \
	( M_PORTClassData.classObject \
		? _M_PORTNew() \
		: ( M_PORTNewClass(M_PORT_MajorVersion, M_PORT_MinorVersion), _M_PORTNew() ) )
#define M_PORTRenew(buf) \
	( _somRenew(M_PORTClassData.classObject, buf) )

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

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

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

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

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

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct M_PORTClassDataStructure {
	SOMAny *classObject;
} M_PORTClassData;

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

#endif       /* wpport_h */
