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


/*
 * This file was generated by the SOM Compiler.
 * FileName: ..\..\ibmh\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: wpUnInitData
 */
#define WPDataFile_wpUnInitData(somSelf) \
	WPObject_wpUnInitData(somSelf)

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

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

/*
 * 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

/*
 * 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;
} 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: ..\..\ibmh\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 */
