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

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


#ifndef wpdataf_h
#define wpdataf_h


/*
 * Passthru lines: File: "C.h", "before"
 */
#define MAX_ASSOC_ITEMS 12

#include <som.h>

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

#define WPDataFile_MajorVersion 1
#define WPDataFile_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define WPDataFileNewClass wpdfc
#pragma linkage(wpdfc, system)
#define WPDataFileClassData wpdfd
#define WPDataFileCClassData wpdfx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define WPDataFile_classObj WPDataFileClassData.classObject
#define _WPDataFile WPDataFile_classObj

/*
 * New and Renew macros for WPDataFile
 */
#define _WPDataFileNew() (_somNew(WPDataFileClassData.classObject))
#define WPDataFileNew() \
	( WPDataFileClassData.classObject \
		? _WPDataFileNew() \
		: ( WPDataFileNewClass(WPDataFile_MajorVersion, WPDataFile_MinorVersion), _WPDataFileNew() ) )
#define WPDataFileRenew(buf) \
	( _somRenew(WPDataFileClassData.classObject, buf) )

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

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

/*
 * Override method: wpSetDefaultView
 */
#define WPDataFile_wpSetDefaultView(somSelf,ulView) \
	WPObject_wpSetDefaultView(somSelf,ulView)

/*
 * Override method: wpSetRealName
 */
#define WPDataFile_wpSetRealName(somSelf,pszName) \
	WPFileSystem_wpSetRealName(somSelf,pszName)

/*
 * Override method: wpSetType
 */
#define WPDataFile_wpSetType(somSelf,pszTypes,pfeal) \
	WPFileSystem_wpSetType(somSelf,pszTypes,pfeal)

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

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

/*
 * Override method: wpAddObjectWindowPage
 */
#define WPDataFile_wpAddObjectWindowPage(somSelf,hwndNotebook) \
	WPObject_wpAddObjectWindowPage(somSelf,hwndNotebook)

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

/*
 * Override method: wpPrintObject
 */
#define WPDataFile_wpPrintObject(somSelf,pPrintDest,ulReserved) \
	WPObject_wpPrintObject(somSelf,pPrintDest,ulReserved)

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

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

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

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

/*
 * Override method: wpFormatDragItem
 */
#define WPDataFile_wpFormatDragItem(somSelf,pdrgItem) \
	WPObject_wpFormatDragItem(somSelf,pdrgItem)

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

/*
 * New Method: wpAddFileTypePage
 */
typedef ULONG    SOMLINK somTP_WPDataFile_wpAddFileTypePage(WPDataFile *somSelf,
		HWND hwndNotebook);
#pragma linkage(somTP_WPDataFile_wpAddFileTypePage, system)
typedef somTP_WPDataFile_wpAddFileTypePage *somTD_WPDataFile_wpAddFileTypePage;
#define somMD_WPDataFile_wpAddFileTypePage "----"
#define WPDataFile_wpAddFileTypePage(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPDataFile, wpAddFileTypePage) \
	(somSelf,hwndNotebook))
#define _wpAddFileTypePage WPDataFile_wpAddFileTypePage

/*
 * New Method: wpPrintMetaFile
 */
typedef BOOL    SOMLINK somTP_WPDataFile_wpPrintMetaFile(WPDataFile *somSelf,
		PPRINTDEST pPrintDest);
#pragma linkage(somTP_WPDataFile_wpPrintMetaFile, system)
typedef somTP_WPDataFile_wpPrintMetaFile *somTD_WPDataFile_wpPrintMetaFile;
#define somMD_WPDataFile_wpPrintMetaFile "----"
#define WPDataFile_wpPrintMetaFile(somSelf,pPrintDest) \
    (SOM_Resolve(somSelf, WPDataFile, wpPrintMetaFile) \
	(somSelf,pPrintDest))
#define _wpPrintMetaFile WPDataFile_wpPrintMetaFile

/*
 * New Method: wpPrintPifFile
 */
typedef BOOL    SOMLINK somTP_WPDataFile_wpPrintPifFile(WPDataFile *somSelf,
		PPRINTDEST pPrintDest);
#pragma linkage(somTP_WPDataFile_wpPrintPifFile, system)
typedef somTP_WPDataFile_wpPrintPifFile *somTD_WPDataFile_wpPrintPifFile;
#define somMD_WPDataFile_wpPrintPifFile "----"
#define WPDataFile_wpPrintPifFile(somSelf,pPrintDest) \
    (SOM_Resolve(somSelf, WPDataFile, wpPrintPifFile) \
	(somSelf,pPrintDest))
#define _wpPrintPifFile WPDataFile_wpPrintPifFile

/*
 * New Method: wpPrintPrinterSpecificFile
 */
typedef BOOL    SOMLINK somTP_WPDataFile_wpPrintPrinterSpecificFile(WPDataFile *somSelf,
		PPRINTDEST pPrintDest);
#pragma linkage(somTP_WPDataFile_wpPrintPrinterSpecificFile, system)
typedef somTP_WPDataFile_wpPrintPrinterSpecificFile *somTD_WPDataFile_wpPrintPrinterSpecificFile;
#define somMD_WPDataFile_wpPrintPrinterSpecificFile "----"
#define WPDataFile_wpPrintPrinterSpecificFile(somSelf,pPrintDest) \
    (SOM_Resolve(somSelf, WPDataFile, wpPrintPrinterSpecificFile) \
	(somSelf,pPrintDest))
#define _wpPrintPrinterSpecificFile WPDataFile_wpPrintPrinterSpecificFile

/*
 * New Method: wpPrintUnknownFile
 */
typedef BOOL    SOMLINK somTP_WPDataFile_wpPrintUnknownFile(WPDataFile *somSelf,
		PPRINTDEST pPrintDest);
#pragma linkage(somTP_WPDataFile_wpPrintUnknownFile, system)
typedef somTP_WPDataFile_wpPrintUnknownFile *somTD_WPDataFile_wpPrintUnknownFile;
#define somMD_WPDataFile_wpPrintUnknownFile "----"
#define WPDataFile_wpPrintUnknownFile(somSelf,pPrintDest) \
    (SOM_Resolve(somSelf, WPDataFile, wpPrintUnknownFile) \
	(somSelf,pPrintDest))
#define _wpPrintUnknownFile WPDataFile_wpPrintUnknownFile

/*
 * New Method: wpQueryAssociatedProgram
 */
typedef WPObject *   SOMLINK somTP_WPDataFile_wpQueryAssociatedProgram(WPDataFile *somSelf,
		ULONG ulView,
		PULONG pulHowMatched,
		PSZ pszMatchString,
		ULONG cbMatchString,
		PSZ pszDefaultType);
#pragma linkage(somTP_WPDataFile_wpQueryAssociatedProgram, system)
typedef somTP_WPDataFile_wpQueryAssociatedProgram *somTD_WPDataFile_wpQueryAssociatedProgram;
#define somMD_WPDataFile_wpQueryAssociatedProgram "----"
#define WPDataFile_wpQueryAssociatedProgram(somSelf,ulView,pulHowMatched,pszMatchString,cbMatchString,pszDefaultType) \
    (SOM_Resolve(somSelf, WPDataFile, wpQueryAssociatedProgram) \
	(somSelf,ulView,pulHowMatched,pszMatchString,cbMatchString,pszDefaultType))
#define _wpQueryAssociatedProgram WPDataFile_wpQueryAssociatedProgram

/*
 * New Method: wpSetAssociatedFileIcon
 */
typedef VOID    SOMLINK somTP_WPDataFile_wpSetAssociatedFileIcon(WPDataFile *somSelf);
#pragma linkage(somTP_WPDataFile_wpSetAssociatedFileIcon, system)
typedef somTP_WPDataFile_wpSetAssociatedFileIcon *somTD_WPDataFile_wpSetAssociatedFileIcon;
#define somMD_WPDataFile_wpSetAssociatedFileIcon "----"
#define WPDataFile_wpSetAssociatedFileIcon(somSelf) \
    (SOM_Resolve(somSelf, WPDataFile, wpSetAssociatedFileIcon) \
	(somSelf))
#define _wpSetAssociatedFileIcon WPDataFile_wpSetAssociatedFileIcon

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct WPDataFileClassDataStructure {
	SOMAny *classObject;
	somMToken wpAddFileTypePage;
	somMToken wpPrintMetaFile;
	somMToken wpPrintPifFile;
	somMToken wpPrintPrinterSpecificFile;
	somMToken wpPrintUnknownFile;
	somMToken wpQueryAssociatedProgram;
	somMToken wpSetAssociatedFileIcon;
} WPDataFileClassData;

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

#endif       /* wpdataf_h */

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

#ifndef wpdataf_mh
#define wpdataf_mh


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

#define M_WPDataFile_MajorVersion 1
#define M_WPDataFile_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define M_WPDataFileNewClass wpdfc
#pragma linkage(wpdfc, system)
#define M_WPDataFileClassData wpdfd
#define M_WPDataFileCClassData wpdfx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define M_WPDataFile_classObj M_WPDataFileClassData.classObject
#define _M_WPDataFile M_WPDataFile_classObj

/*
 * New and Renew macros for M_WPDataFile
 */
#define _M_WPDataFileNew() (_somNew(M_WPDataFileClassData.classObject))
#define M_WPDataFileNew() \
	( M_WPDataFileClassData.classObject \
		? _M_WPDataFileNew() \
		: ( M_WPDataFileNewClass(M_WPDataFile_MajorVersion, M_WPDataFile_MinorVersion), _M_WPDataFileNew() ) )
#define M_WPDataFileRenew(buf) \
	( _somRenew(M_WPDataFileClassData.classObject, buf) )

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

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

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

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

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

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct M_WPDataFileClassDataStructure {
	SOMAny *classObject;
} M_WPDataFileClassData;

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

#endif       /* wpdataf_h */
