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

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


#ifndef wpkeybd_h
#define wpkeybd_h


#include <som.h>

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

#define WPKeyboard_MajorVersion 1
#define WPKeyboard_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define WPKeyboardNewClass WPkbdc
#pragma linkage(WPkbdc, system)
#define WPKeyboardClassData WPkbdd
#define WPKeyboardCClassData WPkbdx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define WPKeyboard_classObj WPKeyboardClassData.classObject
#define _WPKeyboard WPKeyboard_classObj

/*
 * New and Renew macros for WPKeyboard
 */
#define _WPKeyboardNew() (_somNew(WPKeyboardClassData.classObject))
#define WPKeyboardNew() \
	( WPKeyboardClassData.classObject \
		? _WPKeyboardNew() \
		: ( WPKeyboardNewClass(WPKeyboard_MajorVersion, WPKeyboard_MinorVersion), _WPKeyboardNew() ) )
#define WPKeyboardRenew(buf) \
	( _somRenew(WPKeyboardClassData.classObject, buf) )

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

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

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

/*
 * New Method: wpAddKeyboardMappingsPage
 */
typedef ULONG    SOMLINK somTP_WPKeyboard_wpAddKeyboardMappingsPage(WPKeyboard *somSelf,
		HWND hwndNotebook);
#pragma linkage(somTP_WPKeyboard_wpAddKeyboardMappingsPage, system)
typedef somTP_WPKeyboard_wpAddKeyboardMappingsPage *somTD_WPKeyboard_wpAddKeyboardMappingsPage;
#define somMD_WPKeyboard_wpAddKeyboardMappingsPage "----"
#define WPKeyboard_wpAddKeyboardMappingsPage(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPKeyboard, wpAddKeyboardMappingsPage) \
	(somSelf,hwndNotebook))
#define _wpAddKeyboardMappingsPage WPKeyboard_wpAddKeyboardMappingsPage

/*
 * New Method: wpAddKeyboardTimingPage
 */
typedef ULONG    SOMLINK somTP_WPKeyboard_wpAddKeyboardTimingPage(WPKeyboard *somSelf,
		HWND hwndNotebook);
#pragma linkage(somTP_WPKeyboard_wpAddKeyboardTimingPage, system)
typedef somTP_WPKeyboard_wpAddKeyboardTimingPage *somTD_WPKeyboard_wpAddKeyboardTimingPage;
#define somMD_WPKeyboard_wpAddKeyboardTimingPage "----"
#define WPKeyboard_wpAddKeyboardTimingPage(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPKeyboard, wpAddKeyboardTimingPage) \
	(somSelf,hwndNotebook))
#define _wpAddKeyboardTimingPage WPKeyboard_wpAddKeyboardTimingPage

/*
 * New Method: wpAddKeyboardSpecialNeedsPage
 */
typedef ULONG    SOMLINK somTP_WPKeyboard_wpAddKeyboardSpecialNeedsPage(WPKeyboard *somSelf,
		HWND hwndNotebook);
#pragma linkage(somTP_WPKeyboard_wpAddKeyboardSpecialNeedsPage, system)
typedef somTP_WPKeyboard_wpAddKeyboardSpecialNeedsPage *somTD_WPKeyboard_wpAddKeyboardSpecialNeedsPage;
#define somMD_WPKeyboard_wpAddKeyboardSpecialNeedsPage "----"
#define WPKeyboard_wpAddKeyboardSpecialNeedsPage(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPKeyboard, wpAddKeyboardSpecialNeedsPage) \
	(somSelf,hwndNotebook))
#define _wpAddKeyboardSpecialNeedsPage WPKeyboard_wpAddKeyboardSpecialNeedsPage

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct WPKeyboardClassDataStructure {
	SOMAny *classObject;
	somMToken wpAddKeyboardMappingsPage;
	somMToken wpAddKeyboardTimingPage;
	somMToken wpAddKeyboardSpecialNeedsPage;
} WPKeyboardClassData;

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

#endif       /* wpkeybd_h */

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

#ifndef wpkeybd_mh
#define wpkeybd_mh


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

#define M_WPKeyboard_MajorVersion 1
#define M_WPKeyboard_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define M_WPKeyboardNewClass WPkbdc
#pragma linkage(WPkbdc, system)
#define M_WPKeyboardClassData WPkbdd
#define M_WPKeyboardCClassData WPkbdx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define M_WPKeyboard_classObj M_WPKeyboardClassData.classObject
#define _M_WPKeyboard M_WPKeyboard_classObj

/*
 * New and Renew macros for M_WPKeyboard
 */
#define _M_WPKeyboardNew() (_somNew(M_WPKeyboardClassData.classObject))
#define M_WPKeyboardNew() \
	( M_WPKeyboardClassData.classObject \
		? _M_WPKeyboardNew() \
		: ( M_WPKeyboardNewClass(M_WPKeyboard_MajorVersion, M_WPKeyboard_MinorVersion), _M_WPKeyboardNew() ) )
#define M_WPKeyboardRenew(buf) \
	( _somRenew(M_WPKeyboardClassData.classObject, buf) )

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

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

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

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

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

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct M_WPKeyboardClassDataStructure {
	SOMAny *classObject;
} M_WPKeyboardClassData;

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

#endif       /* wpkeybd_h */
