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


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

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


#ifndef wppgmf_h
#define wppgmf_h


#include <som.h>

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

#define WPProgramFile_MajorVersion 1
#define WPProgramFile_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define WPProgramFileNewClass wppgmc
#pragma linkage(wppgmc, system)
#define WPProgramFileClassData wppgmd
#define WPProgramFileCClassData wppgmx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define WPProgramFile_classObj WPProgramFileClassData.classObject
#define _WPProgramFile WPProgramFile_classObj

/*
 * New and Renew macros for WPProgramFile
 */
#define _WPProgramFileNew() (_somNew(WPProgramFileClassData.classObject))
#define WPProgramFileNew() \
	( WPProgramFileClassData.classObject \
		? _WPProgramFileNew() \
		: ( WPProgramFileNewClass(WPProgramFile_MajorVersion, WPProgramFile_MinorVersion), _WPProgramFileNew() ) )
#define WPProgramFileRenew(buf) \
	( _somRenew(WPProgramFileClassData.classObject, buf) )

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

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

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

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

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

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

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

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

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

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

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

/*
 * Override method: wpConfirmRenameFileWithExt
 */
#define WPProgramFile_wpConfirmRenameFileWithExt(somSelf) \
	WPFileSystem_wpConfirmRenameFileWithExt(somSelf)

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

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

/*
 * Override method: wpSetup
 */
#define WPProgramFile_wpSetup(somSelf,pszSetupString) \
	WPObject_wpSetup(somSelf,pszSetupString)

/*
 * Override method: wpQueryNameClashOptions
 */
#define WPProgramFile_wpQueryNameClashOptions(somSelf,menuID) \
	WPObject_wpQueryNameClashOptions(somSelf,menuID)

/*
 * New Name Lookup Method: wpAddProgramAssociationPage
 */
typedef ULONG    SOMLINK somTP_WPProgramFile_wpAddProgramAssociationPage(WPProgramFile *somSelf,
		HWND hwndNotebook);
#pragma linkage(somTP_WPProgramFile_wpAddProgramAssociationPage, system)
typedef somTP_WPProgramFile_wpAddProgramAssociationPage *somTD_WPProgramFile_wpAddProgramAssociationPage;
#define somMD_WPProgramFile_wpAddProgramAssociationPage "----"
#define WPProgramFile_wpAddProgramAssociationPage(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPProgramFile, wpAddProgramAssociationPage) \
	(somSelf,hwndNotebook))

#ifndef lookup_wpAddProgramAssociationPage
static char *somLMN_wpAddProgramAssociationPage = "wpAddProgramAssociationPage";
static somId somLId_wpAddProgramAssociationPage = &somLMN_wpAddProgramAssociationPage;
#define lookup_wpAddProgramAssociationPage(somSelf,hwndNotebook) \
    ((( somTD_WPProgramFile_wpAddProgramAssociationPage ) \
	_somFindSMethodOk(SOM_GetClass(somSelf), somLId_wpAddProgramAssociationPage)) \
	    (somSelf,hwndNotebook))
#define _wpAddProgramAssociationPage lookup_wpAddProgramAssociationPage
#endif     /* _wpAddProgramAssociationPage */

/*
 * New Name Lookup Method: wpQueryProgDetails
 */
typedef BOOL    SOMLINK somTP_WPProgramFile_wpQueryProgDetails(WPProgramFile *somSelf,
		PPROGDETAILS pProgDetails,
		PULONG pulSize);
#pragma linkage(somTP_WPProgramFile_wpQueryProgDetails, system)
typedef somTP_WPProgramFile_wpQueryProgDetails *somTD_WPProgramFile_wpQueryProgDetails;
#define somMD_WPProgramFile_wpQueryProgDetails "----"
#define WPProgramFile_wpQueryProgDetails(somSelf,pProgDetails,pulSize) \
    (SOM_Resolve(somSelf, WPProgramFile, wpQueryProgDetails) \
	(somSelf,pProgDetails,pulSize))

#ifndef lookup_wpQueryProgDetails
static char *somLMN_wpQueryProgDetails = "wpQueryProgDetails";
static somId somLId_wpQueryProgDetails = &somLMN_wpQueryProgDetails;
#define lookup_wpQueryProgDetails(somSelf,pProgDetails,pulSize) \
    ((( somTD_WPProgramFile_wpQueryProgDetails ) \
	_somFindSMethodOk(SOM_GetClass(somSelf), somLId_wpQueryProgDetails)) \
	    (somSelf,pProgDetails,pulSize))
#define _wpQueryProgDetails lookup_wpQueryProgDetails
#endif     /* _wpQueryProgDetails */

/*
 * New Name Lookup Method: wpSetProgDetails
 */
typedef BOOL    SOMLINK somTP_WPProgramFile_wpSetProgDetails(WPProgramFile *somSelf,
		PPROGDETAILS pProgDetails);
#pragma linkage(somTP_WPProgramFile_wpSetProgDetails, system)
typedef somTP_WPProgramFile_wpSetProgDetails *somTD_WPProgramFile_wpSetProgDetails;
#define somMD_WPProgramFile_wpSetProgDetails "----"
#define WPProgramFile_wpSetProgDetails(somSelf,pProgDetails) \
    (SOM_Resolve(somSelf, WPProgramFile, wpSetProgDetails) \
	(somSelf,pProgDetails))

#ifndef lookup_wpSetProgDetails
static char *somLMN_wpSetProgDetails = "wpSetProgDetails";
static somId somLId_wpSetProgDetails = &somLMN_wpSetProgDetails;
#define lookup_wpSetProgDetails(somSelf,pProgDetails) \
    ((( somTD_WPProgramFile_wpSetProgDetails ) \
	_somFindSMethodOk(SOM_GetClass(somSelf), somLId_wpSetProgDetails)) \
	    (somSelf,pProgDetails))
#define _wpSetProgDetails lookup_wpSetProgDetails
#endif     /* _wpSetProgDetails */

/*
 * New Name Lookup Method: wpAddProgramPage
 */
typedef ULONG    SOMLINK somTP_WPProgramFile_wpAddProgramPage(WPProgramFile *somSelf,
		HWND hwndNotebook);
#pragma linkage(somTP_WPProgramFile_wpAddProgramPage, system)
typedef somTP_WPProgramFile_wpAddProgramPage *somTD_WPProgramFile_wpAddProgramPage;
#define somMD_WPProgramFile_wpAddProgramPage "----"
#define WPProgramFile_wpAddProgramPage(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPProgramFile, wpAddProgramPage) \
	(somSelf,hwndNotebook))

#ifndef lookup_wpAddProgramPage
static char *somLMN_wpAddProgramPage = "wpAddProgramPage";
static somId somLId_wpAddProgramPage = &somLMN_wpAddProgramPage;
#define lookup_wpAddProgramPage(somSelf,hwndNotebook) \
    ((( somTD_WPProgramFile_wpAddProgramPage ) \
	_somFindSMethodOk(SOM_GetClass(somSelf), somLId_wpAddProgramPage)) \
	    (somSelf,hwndNotebook))
#define _wpAddProgramPage lookup_wpAddProgramPage
#endif     /* _wpAddProgramPage */

/*
 * New Name Lookup Method: wpAddProgramSessionPage
 */
typedef ULONG    SOMLINK somTP_WPProgramFile_wpAddProgramSessionPage(WPProgramFile *somSelf,
		HWND hwndNotebook);
#pragma linkage(somTP_WPProgramFile_wpAddProgramSessionPage, system)
typedef somTP_WPProgramFile_wpAddProgramSessionPage *somTD_WPProgramFile_wpAddProgramSessionPage;
#define somMD_WPProgramFile_wpAddProgramSessionPage "----"
#define WPProgramFile_wpAddProgramSessionPage(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPProgramFile, wpAddProgramSessionPage) \
	(somSelf,hwndNotebook))

#ifndef lookup_wpAddProgramSessionPage
static char *somLMN_wpAddProgramSessionPage = "wpAddProgramSessionPage";
static somId somLId_wpAddProgramSessionPage = &somLMN_wpAddProgramSessionPage;
#define lookup_wpAddProgramSessionPage(somSelf,hwndNotebook) \
    ((( somTD_WPProgramFile_wpAddProgramSessionPage ) \
	_somFindSMethodOk(SOM_GetClass(somSelf), somLId_wpAddProgramSessionPage)) \
	    (somSelf,hwndNotebook))
#define _wpAddProgramSessionPage lookup_wpAddProgramSessionPage
#endif     /* _wpAddProgramSessionPage */

/*
 * New Name Lookup Method: wpQueryAssociationFilter
 */
typedef PSZ    SOMLINK somTP_WPProgramFile_wpQueryAssociationFilter(WPProgramFile *somSelf);
#pragma linkage(somTP_WPProgramFile_wpQueryAssociationFilter, system)
typedef somTP_WPProgramFile_wpQueryAssociationFilter *somTD_WPProgramFile_wpQueryAssociationFilter;
#define somMD_WPProgramFile_wpQueryAssociationFilter "----"
#define WPProgramFile_wpQueryAssociationFilter(somSelf) \
    (SOM_Resolve(somSelf, WPProgramFile, wpQueryAssociationFilter) \
	(somSelf))

#ifndef lookup_wpQueryAssociationFilter
static char *somLMN_wpQueryAssociationFilter = "wpQueryAssociationFilter";
static somId somLId_wpQueryAssociationFilter = &somLMN_wpQueryAssociationFilter;
#define lookup_wpQueryAssociationFilter(somSelf) \
    ((( somTD_WPProgramFile_wpQueryAssociationFilter ) \
	_somFindSMethodOk(SOM_GetClass(somSelf), somLId_wpQueryAssociationFilter)) \
	    (somSelf))
#define _wpQueryAssociationFilter lookup_wpQueryAssociationFilter
#endif     /* _wpQueryAssociationFilter */

/*
 * New Name Lookup Method: wpQueryAssociationType
 */
typedef PSZ    SOMLINK somTP_WPProgramFile_wpQueryAssociationType(WPProgramFile *somSelf);
#pragma linkage(somTP_WPProgramFile_wpQueryAssociationType, system)
typedef somTP_WPProgramFile_wpQueryAssociationType *somTD_WPProgramFile_wpQueryAssociationType;
#define somMD_WPProgramFile_wpQueryAssociationType "----"
#define WPProgramFile_wpQueryAssociationType(somSelf) \
    (SOM_Resolve(somSelf, WPProgramFile, wpQueryAssociationType) \
	(somSelf))

#ifndef lookup_wpQueryAssociationType
static char *somLMN_wpQueryAssociationType = "wpQueryAssociationType";
static somId somLId_wpQueryAssociationType = &somLMN_wpQueryAssociationType;
#define lookup_wpQueryAssociationType(somSelf) \
    ((( somTD_WPProgramFile_wpQueryAssociationType ) \
	_somFindSMethodOk(SOM_GetClass(somSelf), somLId_wpQueryAssociationType)) \
	    (somSelf))
#define _wpQueryAssociationType lookup_wpQueryAssociationType
#endif     /* _wpQueryAssociationType */

/*
 * New Name Lookup Method: wpSetAssociationFilter
 */
typedef BOOL    SOMLINK somTP_WPProgramFile_wpSetAssociationFilter(WPProgramFile *somSelf,
		PSZ pszFilter);
#pragma linkage(somTP_WPProgramFile_wpSetAssociationFilter, system)
typedef somTP_WPProgramFile_wpSetAssociationFilter *somTD_WPProgramFile_wpSetAssociationFilter;
#define somMD_WPProgramFile_wpSetAssociationFilter "----"
#define WPProgramFile_wpSetAssociationFilter(somSelf,pszFilter) \
    (SOM_Resolve(somSelf, WPProgramFile, wpSetAssociationFilter) \
	(somSelf,pszFilter))

#ifndef lookup_wpSetAssociationFilter
static char *somLMN_wpSetAssociationFilter = "wpSetAssociationFilter";
static somId somLId_wpSetAssociationFilter = &somLMN_wpSetAssociationFilter;
#define lookup_wpSetAssociationFilter(somSelf,pszFilter) \
    ((( somTD_WPProgramFile_wpSetAssociationFilter ) \
	_somFindSMethodOk(SOM_GetClass(somSelf), somLId_wpSetAssociationFilter)) \
	    (somSelf,pszFilter))
#define _wpSetAssociationFilter lookup_wpSetAssociationFilter
#endif     /* _wpSetAssociationFilter */

/*
 * New Name Lookup Method: wpSetAssociationType
 */
typedef BOOL    SOMLINK somTP_WPProgramFile_wpSetAssociationType(WPProgramFile *somSelf,
		PSZ pszType);
#pragma linkage(somTP_WPProgramFile_wpSetAssociationType, system)
typedef somTP_WPProgramFile_wpSetAssociationType *somTD_WPProgramFile_wpSetAssociationType;
#define somMD_WPProgramFile_wpSetAssociationType "----"
#define WPProgramFile_wpSetAssociationType(somSelf,pszType) \
    (SOM_Resolve(somSelf, WPProgramFile, wpSetAssociationType) \
	(somSelf,pszType))

#ifndef lookup_wpSetAssociationType
static char *somLMN_wpSetAssociationType = "wpSetAssociationType";
static somId somLId_wpSetAssociationType = &somLMN_wpSetAssociationType;
#define lookup_wpSetAssociationType(somSelf,pszType) \
    ((( somTD_WPProgramFile_wpSetAssociationType ) \
	_somFindSMethodOk(SOM_GetClass(somSelf), somLId_wpSetAssociationType)) \
	    (somSelf,pszType))
#define _wpSetAssociationType lookup_wpSetAssociationType
#endif     /* _wpSetAssociationType */

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct WPProgramFileClassDataStructure {
	SOMAny *classObject;
	somMToken wpAddProgramAssociationPage;
	somMToken wpAddProgramPage;
	somMToken wpAddProgramSessionPage;
	somMToken wpSetProgDetails;
	somMToken wpQueryProgDetails;
	somMToken wpSetProgIcon;
	somMToken wpQueryAssociationFilter;
	somMToken wpQueryAssociationType;
	somMToken wpSetAssociationFilter;
	somMToken wpSetAssociationType;
} WPProgramFileClassData;

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

#endif       /* wppgmf_h */

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

#ifndef wppgmf_mh
#define wppgmf_mh


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

#define M_WPProgramFile_MajorVersion 1
#define M_WPProgramFile_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define M_WPProgramFileNewClass wppgmc
#pragma linkage(wppgmc, system)
#define M_WPProgramFileClassData wppgmd
#define M_WPProgramFileCClassData wppgmx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define M_WPProgramFile_classObj M_WPProgramFileClassData.classObject
#define _M_WPProgramFile M_WPProgramFile_classObj

/*
 * New and Renew macros for M_WPProgramFile
 */
#define _M_WPProgramFileNew() (_somNew(M_WPProgramFileClassData.classObject))
#define M_WPProgramFileNew() \
	( M_WPProgramFileClassData.classObject \
		? _M_WPProgramFileNew() \
		: ( M_WPProgramFileNewClass(M_WPProgramFile_MajorVersion, M_WPProgramFile_MinorVersion), _M_WPProgramFileNew() ) )
#define M_WPProgramFileRenew(buf) \
	( _somRenew(M_WPProgramFileClassData.classObject, buf) )

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

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

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

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

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct M_WPProgramFileClassDataStructure {
	SOMAny *classObject;
} M_WPProgramFileClassData;

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

#endif       /* wppgmf_h */
