
/*
 * This file was generated by the SOM Compiler.
 * FileName: F:\BUILD\NT\ship\include\WinPCanv.xh.
 * Generated using:
 *     SOM Precompiler somipc: Development
 *     SOM Emitter emitxh.dll: Development
 */

#ifndef SOM_ODWin32Canvas_xh
#define SOM_ODWin32Canvas_xh

class ODWin32Canvas;

#define ODWin32Canvas_MajorVersion 1
#define ODWin32Canvas_MinorVersion 0

/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>

/* C++ parent defs */
#ifndef SOM_ODPlatformCanvas_xh
#include <PlatCanv.xh>
#endif

#ifndef ODWin32Canvas_API
#define ODWin32Canvas_API
/*
 * -- The Class API
 */

/*
 * Start of user-defined types:
 */
class ODFrame;
class ODFacet;
class ODPlatformCanvas;
class SOMClass;
class SOMObject;
class ODObject;
class ODExtension;
class ODWin32Canvas;

/*
 * End of user-defined types.
 */

/* A procedure to create the ODWin32Canvas Class */
SOMEXTERN
#if (defined(SOM_Module_WinPCanv_Source) || defined(ODWin32Canvas_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODWin32Canvas))
WIN32_DLLEXPORT
#else
WIN32_DLLIMPORT
#endif
SOMClass * SOMLINK ODWin32CanvasNewClass(
		integer4,
		integer4 );

/* The API to the ODWin32Canvas class object, and the methods it introduces. */
SOMEXTERN struct ODWin32CanvasClassDataStructure {
	SOMClass *classObject;
	somMToken InitPlatformCanvas;
	somMToken InitPlatformWindowCanvas;
	somMToken GetDC;
	somMToken ReleaseDC;
	somMToken GetWindow;
	somMToken SetMetafileExtent;
	somMToken GetMetafileExtent;
}
#if !(defined(SOM_Module_WinPCanv_Source) || defined(ODWin32Canvas_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODWin32Canvas))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODWin32CanvasClassData;
#define _ODWin32Canvas ODWin32CanvasClassData.classObject

/* The API to parentMtabs for ODWin32Canvas, and the instance data it introduces. */
SOMEXTERN struct ODWin32CanvasCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken              instanceDataToken;
}
#if !(defined(SOM_Module_WinPCanv_Source) || defined(ODWin32Canvas_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODWin32Canvas))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODWin32CanvasCClassData;

/*
 * -- Typedefs for ODWin32Canvas Method Procedures
 */
extern "C" {
typedef void   SOMLINK somTP_ODWin32Canvas_InitPlatformCanvas(ODWin32Canvas *somSelf, Environment *ev,
		HDC hdc);
typedef somTP_ODWin32Canvas_InitPlatformCanvas *somTD_ODWin32Canvas_InitPlatformCanvas;
typedef void   SOMLINK somTP_ODWin32Canvas_InitPlatformWindowCanvas(ODWin32Canvas *somSelf, Environment *ev,
		HWND window);
typedef somTP_ODWin32Canvas_InitPlatformWindowCanvas *somTD_ODWin32Canvas_InitPlatformWindowCanvas;
typedef HDC   SOMLINK somTP_ODWin32Canvas_GetDC(ODWin32Canvas *somSelf, Environment *ev);
typedef somTP_ODWin32Canvas_GetDC *somTD_ODWin32Canvas_GetDC;
typedef void   SOMLINK somTP_ODWin32Canvas_ReleaseDC(ODWin32Canvas *somSelf, Environment *ev);
typedef somTP_ODWin32Canvas_ReleaseDC *somTD_ODWin32Canvas_ReleaseDC;
typedef HWND   SOMLINK somTP_ODWin32Canvas_GetWindow(ODWin32Canvas *somSelf, Environment *ev);
typedef somTP_ODWin32Canvas_GetWindow *somTD_ODWin32Canvas_GetWindow;
typedef void   SOMLINK somTP_ODWin32Canvas_SetMetafileExtent(ODWin32Canvas *somSelf, Environment *ev,
		SIZE* metafileExtent);
typedef somTP_ODWin32Canvas_SetMetafileExtent *somTD_ODWin32Canvas_SetMetafileExtent;
typedef ODBoolean   SOMLINK somTP_ODWin32Canvas_GetMetafileExtent(ODWin32Canvas *somSelf, Environment *ev,
		SIZE* metafileExtent);
typedef somTP_ODWin32Canvas_GetMetafileExtent *somTD_ODWin32Canvas_GetMetafileExtent;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef ODPlatformCanvas*   SOMLINK somTP_ODWin32Canvas_CreateConcreteCanvas(ODWin32Canvas *somSelf, Environment *ev,
		ODGraphicsSystem aSystemType,
		ODBoolean isDynamic,
		ODBoolean isOffscreen);
typedef somTP_ODWin32Canvas_CreateConcreteCanvas *somTD_ODWin32Canvas_CreateConcreteCanvas;
typedef ODGraphicsSystem   SOMLINK somTP_ODWin32Canvas_GetSystemType(ODWin32Canvas *somSelf, Environment *ev);
typedef somTP_ODWin32Canvas_GetSystemType *somTD_ODWin32Canvas_GetSystemType;
typedef ODBoolean   SOMLINK somTP_ODWin32Canvas_HasWindow(ODWin32Canvas *somSelf, Environment *ev);
typedef somTP_ODWin32Canvas_HasWindow *somTD_ODWin32Canvas_HasWindow;
typedef ODBoolean   SOMLINK somTP_ODWin32Canvas_IsInitialized(ODWin32Canvas *somSelf, Environment *ev);
typedef somTP_ODWin32Canvas_IsInitialized *somTD_ODWin32Canvas_IsInitialized;
typedef ODPlatformCanvasType   SOMLINK somTP_ODWin32Canvas_GetPlatformCanvasType(ODWin32Canvas *somSelf, Environment *ev);
typedef somTP_ODWin32Canvas_GetPlatformCanvasType *somTD_ODWin32Canvas_GetPlatformCanvasType;
typedef void   SOMLINK somTP_ODWin32Canvas_InitObject(ODWin32Canvas *somSelf, Environment *ev);
typedef somTP_ODWin32Canvas_InitObject *somTD_ODWin32Canvas_InitObject;
typedef ODBoolean   SOMLINK somTP_ODWin32Canvas_HasExtension(ODWin32Canvas *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODWin32Canvas_HasExtension *somTD_ODWin32Canvas_HasExtension;
typedef ODExtension*   SOMLINK somTP_ODWin32Canvas_AcquireExtension(ODWin32Canvas *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODWin32Canvas_AcquireExtension *somTD_ODWin32Canvas_AcquireExtension;
typedef void   SOMLINK somTP_ODWin32Canvas_ReleaseExtension(ODWin32Canvas *somSelf, Environment *ev,
		ODExtension* extension);
typedef somTP_ODWin32Canvas_ReleaseExtension *somTD_ODWin32Canvas_ReleaseExtension;
typedef ODSize   SOMLINK somTP_ODWin32Canvas_Purge(ODWin32Canvas *somSelf, Environment *ev,
		ODSize size);
typedef somTP_ODWin32Canvas_Purge *somTD_ODWin32Canvas_Purge;
typedef ODBoolean   SOMLINK somTP_ODWin32Canvas_IsEqualTo(ODWin32Canvas *somSelf, Environment *ev,
		ODObject* object);
typedef somTP_ODWin32Canvas_IsEqualTo *somTD_ODWin32Canvas_IsEqualTo;
typedef void   SOMLINK somTP_ODWin32Canvas_SubClassResponsibility(ODWin32Canvas *somSelf, Environment *ev);
typedef somTP_ODWin32Canvas_SubClassResponsibility *somTD_ODWin32Canvas_SubClassResponsibility;
typedef void   SOMLINK somTP_ODWin32Canvas_somInit(ODWin32Canvas *somSelf);
typedef somTP_ODWin32Canvas_somInit *somTD_ODWin32Canvas_somInit;
typedef void   SOMLINK somTP_ODWin32Canvas_somUninit(ODWin32Canvas *somSelf);
typedef somTP_ODWin32Canvas_somUninit *somTD_ODWin32Canvas_somUninit;
typedef void   SOMLINK somTP_ODWin32Canvas_somDefaultInit(ODWin32Canvas *somSelf,
		somInitCtrl* ctrl);
typedef somTP_ODWin32Canvas_somDefaultInit *somTD_ODWin32Canvas_somDefaultInit;
typedef void   SOMLINK somTP_ODWin32Canvas_somDestruct(ODWin32Canvas *somSelf,
		octet doFree,
		somDestructCtrl* ctrl);
typedef somTP_ODWin32Canvas_somDestruct *somTD_ODWin32Canvas_somDestruct;
typedef void   SOMLINK somTP_ODWin32Canvas_somDefaultCopyInit(ODWin32Canvas *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODWin32Canvas_somDefaultCopyInit *somTD_ODWin32Canvas_somDefaultCopyInit;
typedef ODWin32Canvas*   SOMLINK somTP_ODWin32Canvas_somDefaultAssign(ODWin32Canvas *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODWin32Canvas_somDefaultAssign *somTD_ODWin32Canvas_somDefaultAssign;
typedef void   SOMLINK somTP_ODWin32Canvas_somDefaultConstCopyInit(ODWin32Canvas *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODWin32Canvas_somDefaultConstCopyInit *somTD_ODWin32Canvas_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_ODWin32Canvas_somDefaultVCopyInit(ODWin32Canvas *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODWin32Canvas_somDefaultVCopyInit *somTD_ODWin32Canvas_somDefaultVCopyInit;
typedef void   SOMLINK somTP_ODWin32Canvas_somDefaultConstVCopyInit(ODWin32Canvas *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODWin32Canvas_somDefaultConstVCopyInit *somTD_ODWin32Canvas_somDefaultConstVCopyInit;
typedef ODWin32Canvas*   SOMLINK somTP_ODWin32Canvas_somDefaultConstAssign(ODWin32Canvas *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODWin32Canvas_somDefaultConstAssign *somTD_ODWin32Canvas_somDefaultConstAssign;
typedef ODWin32Canvas*   SOMLINK somTP_ODWin32Canvas_somDefaultVAssign(ODWin32Canvas *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODWin32Canvas_somDefaultVAssign *somTD_ODWin32Canvas_somDefaultVAssign;
typedef ODWin32Canvas*   SOMLINK somTP_ODWin32Canvas_somDefaultConstVAssign(ODWin32Canvas *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODWin32Canvas_somDefaultConstVAssign *somTD_ODWin32Canvas_somDefaultConstVAssign;
typedef void   SOMLINK somTP_ODWin32Canvas_somFree(ODWin32Canvas *somSelf);
typedef somTP_ODWin32Canvas_somFree *somTD_ODWin32Canvas_somFree;
typedef SOMClass*   SOMLINK somTP_ODWin32Canvas_somGetClass(ODWin32Canvas *somSelf);
typedef somTP_ODWin32Canvas_somGetClass *somTD_ODWin32Canvas_somGetClass;
typedef string   SOMLINK somTP_ODWin32Canvas_somGetClassName(ODWin32Canvas *somSelf);
typedef somTP_ODWin32Canvas_somGetClassName *somTD_ODWin32Canvas_somGetClassName;
typedef long   SOMLINK somTP_ODWin32Canvas_somGetSize(ODWin32Canvas *somSelf);
typedef somTP_ODWin32Canvas_somGetSize *somTD_ODWin32Canvas_somGetSize;
typedef boolean   SOMLINK somTP_ODWin32Canvas_somIsA(ODWin32Canvas *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODWin32Canvas_somIsA *somTD_ODWin32Canvas_somIsA;
typedef boolean   SOMLINK somTP_ODWin32Canvas_somIsInstanceOf(ODWin32Canvas *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODWin32Canvas_somIsInstanceOf *somTD_ODWin32Canvas_somIsInstanceOf;
typedef boolean   SOMLINK somTP_ODWin32Canvas_somRespondsTo(ODWin32Canvas *somSelf,
		somId mId);
typedef somTP_ODWin32Canvas_somRespondsTo *somTD_ODWin32Canvas_somRespondsTo;
typedef boolean   SOMLINK somTP_ODWin32Canvas_somDispatch(ODWin32Canvas *somSelf,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODWin32Canvas_somDispatch *somTD_ODWin32Canvas_somDispatch;
typedef boolean   SOMLINK somTP_ODWin32Canvas_somClassDispatch(ODWin32Canvas *somSelf,
		SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODWin32Canvas_somClassDispatch *somTD_ODWin32Canvas_somClassDispatch;
typedef boolean   SOMLINK somTP_ODWin32Canvas_somCastObj(ODWin32Canvas *somSelf,
		SOMClass* cls);
typedef somTP_ODWin32Canvas_somCastObj *somTD_ODWin32Canvas_somCastObj;
typedef boolean   SOMLINK somTP_ODWin32Canvas_somResetObj(ODWin32Canvas *somSelf);
typedef somTP_ODWin32Canvas_somResetObj *somTD_ODWin32Canvas_somResetObj;
typedef SOMObject*   SOMLINK somTP_ODWin32Canvas_somPrintSelf(ODWin32Canvas *somSelf);
typedef somTP_ODWin32Canvas_somPrintSelf *somTD_ODWin32Canvas_somPrintSelf;
typedef void   SOMLINK somTP_ODWin32Canvas_somDumpSelf(ODWin32Canvas *somSelf,
		long level);
typedef somTP_ODWin32Canvas_somDumpSelf *somTD_ODWin32Canvas_somDumpSelf;
typedef void   SOMLINK somTP_ODWin32Canvas_somDumpSelfInt(ODWin32Canvas *somSelf,
		long level);
typedef somTP_ODWin32Canvas_somDumpSelfInt *somTD_ODWin32Canvas_somDumpSelfInt;
}

#endif /* ODWin32Canvas_API */


/*
 * -- This emitter believes that method thunks are unavailable,
 * -- so somResolve will be called.
 */
#undef somresolve_
#define somresolve_(obj,mToken) (somResolve(obj,mToken))

/*
 * -- The C++ Wrapper Class for ODWin32Canvas
 */
class ODWin32Canvas : public ODPlatformCanvas
{
public:

// ODWin32Canvas::new creates the class object if necessary, and then uses somNewNoInit
// to allocate memory and create the object. Initialization is in ctors.
void *operator new(size_t)
{
   if (!_ODWin32Canvas) ODWin32CanvasNewClass(ODWin32Canvas_MajorVersion,ODWin32Canvas_MinorVersion);
   return (void*)
      SOM_Resolve(_ODWin32Canvas,SOMClass,somNewNoInit)
         ((SOMClass *)((void*)_ODWin32Canvas));
}

// ODWin32Canvas::delete uses somDestruct.
void operator delete(void * obj)
{
   if (obj && *(void**)obj) {
      SOM_Resolve(obj,SOMObject,somDestruct)
         ((SOMObject*)obj, 1, 0);
   }
}

ODWin32Canvas()
{
   if (*(void**)this != 
       ((somParentMtabStructPtr)
        (ODWin32CanvasCClassData.parentMtab))->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultInit(0);
}

ODWin32Canvas(ODWin32Canvas* fromObj)
{
   if (*(void**)this != 
       ((somParentMtabStructPtr)
        (ODWin32CanvasCClassData.parentMtab))->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
}

ODWin32Canvas(const ODWin32Canvas* fromObj)
{
   if (*(void**)this != 
       ((somParentMtabStructPtr)
        (ODWin32CanvasCClassData.parentMtab))->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
}


/* method: InitPlatformCanvas */
void   InitPlatformCanvas(Environment *ev,
		HDC hdc)
{
   SOM_ResolveD(this,ODWin32Canvas,ODWin32Canvas,InitPlatformCanvas)
	(this, ev,hdc);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: InitPlatformWindowCanvas */
void   InitPlatformWindowCanvas(Environment *ev,
		HWND window)
{
   SOM_ResolveD(this,ODWin32Canvas,ODWin32Canvas,InitPlatformWindowCanvas)
	(this, ev,window);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: GetDC */
HDC   GetDC(Environment *ev)
{
#ifdef SOMCHKEXCEPT
   HDC __somResult = 
      SOM_ResolveD(this,ODWin32Canvas,ODWin32Canvas,GetDC)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODWin32Canvas,ODWin32Canvas,GetDC)
	(this, ev);
#endif
}


/* method: ReleaseDC */
void   ReleaseDC(Environment *ev)
{
   SOM_ResolveD(this,ODWin32Canvas,ODWin32Canvas,ReleaseDC)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: GetWindow */
HWND   GetWindow(Environment *ev)
{
#ifdef SOMCHKEXCEPT
   HWND __somResult = 
      SOM_ResolveD(this,ODWin32Canvas,ODWin32Canvas,GetWindow)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODWin32Canvas,ODWin32Canvas,GetWindow)
	(this, ev);
#endif
}


/* method: SetMetafileExtent */
void   SetMetafileExtent(Environment *ev,
		SIZE* metafileExtent)
{
   SOM_ResolveD(this,ODWin32Canvas,ODWin32Canvas,SetMetafileExtent)
	(this, ev,metafileExtent);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: GetMetafileExtent */
ODBoolean   GetMetafileExtent(Environment *ev,
		SIZE* metafileExtent)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODWin32Canvas,ODWin32Canvas,GetMetafileExtent)
	(this, ev,metafileExtent);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODWin32Canvas,ODWin32Canvas,GetMetafileExtent)
	(this, ev,metafileExtent);
#endif
}


/*
 * Reintroduce inherited methods
 */

/* method: CreateConcreteCanvas */
ODPlatformCanvas*   CreateConcreteCanvas(Environment *ev,
		ODGraphicsSystem aSystemType,
		ODBoolean isDynamic,
		ODBoolean isOffscreen)
{
#ifdef SOMCHKEXCEPT
   ODPlatformCanvas* __somResult = 
      SOM_ResolveD(this,ODWin32Canvas,ODPlatformCanvas,CreateConcreteCanvas)
	(this, ev,aSystemType,isDynamic,isOffscreen);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODWin32Canvas,ODPlatformCanvas,CreateConcreteCanvas)
	(this, ev,aSystemType,isDynamic,isOffscreen);
#endif
}


/* method: GetSystemType */
ODGraphicsSystem   GetSystemType(Environment *ev)
{
#ifdef SOMCHKEXCEPT
   ODGraphicsSystem __somResult = 
      SOM_ResolveD(this,ODWin32Canvas,ODPlatformCanvas,GetSystemType)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODWin32Canvas,ODPlatformCanvas,GetSystemType)
	(this, ev);
#endif
}


/* method: HasWindow */
ODBoolean   HasWindow(Environment *ev)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODWin32Canvas,ODPlatformCanvas,HasWindow)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODWin32Canvas,ODPlatformCanvas,HasWindow)
	(this, ev);
#endif
}


/* method: IsInitialized */
ODBoolean   IsInitialized(Environment *ev)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODWin32Canvas,ODPlatformCanvas,IsInitialized)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODWin32Canvas,ODPlatformCanvas,IsInitialized)
	(this, ev);
#endif
}


/* method: GetPlatformCanvasType */
ODPlatformCanvasType   GetPlatformCanvasType(Environment *ev)
{
#ifdef SOMCHKEXCEPT
   ODPlatformCanvasType __somResult = 
      SOM_ResolveD(this,ODWin32Canvas,ODPlatformCanvas,GetPlatformCanvasType)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODWin32Canvas,ODPlatformCanvas,GetPlatformCanvasType)
	(this, ev);
#endif
}


/* method: InitObject */
void   InitObject(Environment *ev)
{
   SOM_ResolveD(this,ODWin32Canvas,ODObject,InitObject)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: HasExtension */
ODBoolean   HasExtension(Environment *ev,
		ODType extensionName)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODWin32Canvas,ODObject,HasExtension)
	(this, ev,extensionName);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODWin32Canvas,ODObject,HasExtension)
	(this, ev,extensionName);
#endif
}


/* method: AcquireExtension */
ODExtension*   AcquireExtension(Environment *ev,
		ODType extensionName)
{
#ifdef SOMCHKEXCEPT
   ODExtension* __somResult = 
      SOM_ResolveD(this,ODWin32Canvas,ODObject,AcquireExtension)
	(this, ev,extensionName);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODWin32Canvas,ODObject,AcquireExtension)
	(this, ev,extensionName);
#endif
}


/* method: ReleaseExtension */
void   ReleaseExtension(Environment *ev,
		ODExtension* extension)
{
   SOM_ResolveD(this,ODWin32Canvas,ODObject,ReleaseExtension)
	(this, ev,extension);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: Purge */
ODSize   Purge(Environment *ev,
		ODSize size)
{
#ifdef SOMCHKEXCEPT
   ODSize __somResult = 
      SOM_ResolveD(this,ODWin32Canvas,ODObject,Purge)
	(this, ev,size);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODWin32Canvas,ODObject,Purge)
	(this, ev,size);
#endif
}


/* method: IsEqualTo */
ODBoolean   IsEqualTo(Environment *ev,
		ODObject* object)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODWin32Canvas,ODObject,IsEqualTo)
	(this, ev,object);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODWin32Canvas,ODObject,IsEqualTo)
	(this, ev,object);
#endif
}


/* method: SubClassResponsibility */
void   SubClassResponsibility(Environment *ev)
{
   SOM_ResolveD(this,ODWin32Canvas,ODObject,SubClassResponsibility)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: somInit */
void   somInit()
{
   SOM_ResolveD(this,ODWin32Canvas,SOMObject,somInit)
	(this);
}


/* method: somUninit */
void   somUninit()
{
   SOM_ResolveD(this,ODWin32Canvas,SOMObject,somUninit)
	(this);
}


/* initializer method: somDefaultInit */
void   somDefaultInit(somInitCtrl* ctrl)
{
   SOM_ResolveD(this,ODWin32Canvas,SOMObject,somDefaultInit)
	(this,ctrl);
}


/* method: somDestruct */
void   somDestruct(octet doFree,
		somDestructCtrl* ctrl)
{
   SOM_ResolveD(this,ODWin32Canvas,SOMObject,somDestruct)
	(this,doFree,ctrl);
}


/* initializer method: somDefaultCopyInit */
void   somDefaultCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODWin32Canvas,SOMObject,somDefaultCopyInit)
	(this,ctrl,fromObj);
}


/* method: somDefaultAssign */
ODWin32Canvas*  somDefaultAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODWin32Canvas,SOMObject,somDefaultAssign)
	(this,ctrl,fromObj);
}


/* initializer method: somDefaultConstCopyInit */
void   somDefaultConstCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODWin32Canvas,SOMObject,somDefaultConstCopyInit)
	(this,ctrl,fromObj);
}


/* initializer method: somDefaultVCopyInit */
void   somDefaultVCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODWin32Canvas,SOMObject,somDefaultVCopyInit)
	(this,ctrl,fromObj);
}


/* initializer method: somDefaultConstVCopyInit */
void   somDefaultConstVCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODWin32Canvas,SOMObject,somDefaultConstVCopyInit)
	(this,ctrl,fromObj);
}


/* method: somDefaultConstAssign */
ODWin32Canvas*  somDefaultConstAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODWin32Canvas,SOMObject,somDefaultConstAssign)
	(this,ctrl,fromObj);
}


/* method: somDefaultVAssign */
ODWin32Canvas*  somDefaultVAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODWin32Canvas,SOMObject,somDefaultVAssign)
	(this,ctrl,fromObj);
}


/* method: somDefaultConstVAssign */
ODWin32Canvas*  somDefaultConstVAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODWin32Canvas,SOMObject,somDefaultConstVAssign)
	(this,ctrl,fromObj);
}


/* method: somFree */
void   somFree()
{
   SOM_ResolveD(this,ODWin32Canvas,SOMObject,somFree)
	(this);
}


/* method: somGetClass */
SOMClass*   somGetClass()
{
   return SOM_ResolveD(this,ODWin32Canvas,SOMObject,somGetClass)
	(this);
}


/* method: somGetClassName */
string   somGetClassName()
{
   return SOM_ResolveD(this,ODWin32Canvas,SOMObject,somGetClassName)
	(this);
}


/* method: somGetSize */
long   somGetSize()
{
   return SOM_ResolveD(this,ODWin32Canvas,SOMObject,somGetSize)
	(this);
}


/* method: somIsA */
boolean   somIsA(SOMClass* aClassObj)
{
   return SOM_ResolveD(this,ODWin32Canvas,SOMObject,somIsA)
	(this,aClassObj);
}


/* method: somIsInstanceOf */
boolean   somIsInstanceOf(SOMClass* aClassObj)
{
   return SOM_ResolveD(this,ODWin32Canvas,SOMObject,somIsInstanceOf)
	(this,aClassObj);
}


/* method: somRespondsTo */
boolean   somRespondsTo(somId mId)
{
   return SOM_ResolveD(this,ODWin32Canvas,SOMObject,somRespondsTo)
	(this,mId);
}


/* va_list method: somDispatch */
/* the va_list invocation form */
boolean   ODWin32Canvas_somDispatch(somToken* retValue,
		somId methodId,
		va_list ap)
{
return SOM_ResolveD(this,ODWin32Canvas,SOMObject,somDispatch)
	(this,retValue,methodId,ap);
}

/* the varargs invocation form */
boolean   somDispatch(somToken* retValue,
		somId methodId,
		...)
{
   va_list ap;
   va_start(ap, methodId);
   boolean __somResult = 
      SOM_ResolveD(this,ODWin32Canvas,SOMObject,somDispatch)
	(this,retValue,methodId,ap);
   va_end(ap);
   return __somResult;
}


/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean   ODWin32Canvas_somClassDispatch(SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap)
{
return SOM_ResolveD(this,ODWin32Canvas,SOMObject,somClassDispatch)
	(this,clsObj,retValue,methodId,ap);
}

/* the varargs invocation form */
boolean   somClassDispatch(SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		...)
{
   va_list ap;
   va_start(ap, methodId);
   boolean __somResult = 
      SOM_ResolveD(this,ODWin32Canvas,SOMObject,somClassDispatch)
	(this,clsObj,retValue,methodId,ap);
   va_end(ap);
   return __somResult;
}


/* method: somCastObj */
boolean   somCastObj(SOMClass* cls)
{
   return SOM_ResolveD(this,ODWin32Canvas,SOMObject,somCastObj)
	(this,cls);
}


/* method: somResetObj */
boolean   somResetObj()
{
   return SOM_ResolveD(this,ODWin32Canvas,SOMObject,somResetObj)
	(this);
}


/* method: somPrintSelf */
SOMObject*   somPrintSelf()
{
   return SOM_ResolveD(this,ODWin32Canvas,SOMObject,somPrintSelf)
	(this);
}


/* method: somDumpSelf */
void   somDumpSelf(long level)
{
   SOM_ResolveD(this,ODWin32Canvas,SOMObject,somDumpSelf)
	(this,level);
}


/* method: somDumpSelfInt */
void   somDumpSelfInt(long level)
{
   SOM_ResolveD(this,ODWin32Canvas,SOMObject,somDumpSelfInt)
	(this,level);
}



};   /* ODWin32Canvas */



#endif       /* SOM_ODWin32Canvas_xh */
