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

#ifndef SOM_ODCanvas_xh
#define SOM_ODCanvas_xh

class ODCanvas;

#define ODCanvas_MajorVersion 1
#define ODCanvas_MinorVersion 0

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

/* C++ parent defs */
#ifndef SOM_ODBaseCanvas_xh
#include <CanvasB.xh>
#endif

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

/*
 * Start of user-defined types:
 */
class SOMClass;
class SOMObject;
class ODFrame;
class ODFacet;
class ODPlatformCanvas;
class ODObject;
class ODExtension;
class ODBaseCanvas;
class ODPart;
class ODShape;
class ODTransform;
class ODCanvas;

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

/* A procedure to create the ODCanvas Class */
SOMEXTERN
#if (defined(SOM_Module_Canvas_Source) || defined(ODCanvas_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODCanvas))
WIN32_DLLEXPORT
#else
WIN32_DLLIMPORT
#endif
SOMClass * SOMLINK ODCanvasNewClass(
		integer4,
		integer4 );

/* The API to the ODCanvas class object, and the methods it introduces. */
SOMEXTERN struct ODCanvasClassDataStructure {
	SOMClass *classObject;
	somMToken reserved1;
	somMToken CreatePlatformCanvas;
}
#if !(defined(SOM_Module_Canvas_Source) || defined(ODCanvas_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODCanvas))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODCanvasClassData;
#define _ODCanvas ODCanvasClassData.classObject

/* The API to parentMtabs for ODCanvas, and the instance data it introduces. */
SOMEXTERN struct ODCanvasCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken              instanceDataToken;
}
#if !(defined(SOM_Module_Canvas_Source) || defined(ODCanvas_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODCanvas))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODCanvasCClassData;

/*
 * -- Typedefs for ODCanvas Method Procedures
 */
extern "C" {
typedef ODPlatformCanvas*   SOMLINK somTP_ODCanvas_CreatePlatformCanvas(ODCanvas *somSelf, Environment *ev,
		ODGraphicsSystem aSystemType,
		ODBoolean isDynamic,
		ODBoolean isOffScreen);
typedef somTP_ODCanvas_CreatePlatformCanvas *somTD_ODCanvas_CreatePlatformCanvas;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef ODBoolean   SOMLINK somTP_ODCanvas_HasPlatformCanvas(ODCanvas *somSelf, Environment *ev,
		ODGraphicsSystem g);
typedef somTP_ODCanvas_HasPlatformCanvas *somTD_ODCanvas_HasPlatformCanvas;
typedef ODPlatformCanvas*   SOMLINK somTP_ODCanvas_GetPlatformCanvas(ODCanvas *somSelf, Environment *ev,
		ODGraphicsSystem g);
typedef somTP_ODCanvas_GetPlatformCanvas *somTD_ODCanvas_GetPlatformCanvas;
typedef void   SOMLINK somTP_ODCanvas_SetPlatformCanvas(ODCanvas *somSelf, Environment *ev,
		ODGraphicsSystem g,
		ODPlatformCanvas* c);
typedef somTP_ODCanvas_SetPlatformCanvas *somTD_ODCanvas_SetPlatformCanvas;
typedef ODBoolean   SOMLINK somTP_ODCanvas_HasPlatformPrintJob(ODCanvas *somSelf, Environment *ev,
		ODGraphicsSystem g);
typedef somTP_ODCanvas_HasPlatformPrintJob *somTD_ODCanvas_HasPlatformPrintJob;
typedef ODPlatformPrintJob   SOMLINK somTP_ODCanvas_GetPlatformPrintJob(ODCanvas *somSelf, Environment *ev,
		ODGraphicsSystem g);
typedef somTP_ODCanvas_GetPlatformPrintJob *somTD_ODCanvas_GetPlatformPrintJob;
typedef void   SOMLINK somTP_ODCanvas_SetPlatformPrintJob(ODCanvas *somSelf, Environment *ev,
		ODGraphicsSystem g,
		ODPlatformPrintJob j);
typedef somTP_ODCanvas_SetPlatformPrintJob *somTD_ODCanvas_SetPlatformPrintJob;
typedef ODPart*   SOMLINK somTP_ODCanvas_AcquireOwner(ODCanvas *somSelf, Environment *ev);
typedef somTP_ODCanvas_AcquireOwner *somTD_ODCanvas_AcquireOwner;
typedef void   SOMLINK somTP_ODCanvas_SetOwner(ODCanvas *somSelf, Environment *ev,
		ODPart* owner);
typedef somTP_ODCanvas_SetOwner *somTD_ODCanvas_SetOwner;
typedef ODFacet*   SOMLINK somTP_ODCanvas_GetFacet(ODCanvas *somSelf, Environment *ev);
typedef somTP_ODCanvas_GetFacet *somTD_ODCanvas_GetFacet;
typedef void   SOMLINK somTP_ODCanvas_SetFacet(ODCanvas *somSelf, Environment *ev,
		ODFacet* facet);
typedef somTP_ODCanvas_SetFacet *somTD_ODCanvas_SetFacet;
typedef ODTransform*   SOMLINK somTP_ODCanvas_AcquireBiasTransform(ODCanvas *somSelf, Environment *ev);
typedef somTP_ODCanvas_AcquireBiasTransform *somTD_ODCanvas_AcquireBiasTransform;
typedef void   SOMLINK somTP_ODCanvas_SetBiasTransform(ODCanvas *somSelf, Environment *ev,
		ODTransform* x);
typedef somTP_ODCanvas_SetBiasTransform *somTD_ODCanvas_SetBiasTransform;
typedef ODBoolean   SOMLINK somTP_ODCanvas_IsDynamic(ODCanvas *somSelf, Environment *ev);
typedef somTP_ODCanvas_IsDynamic *somTD_ODCanvas_IsDynamic;
typedef ODBoolean   SOMLINK somTP_ODCanvas_IsOffscreen(ODCanvas *somSelf, Environment *ev);
typedef somTP_ODCanvas_IsOffscreen *somTD_ODCanvas_IsOffscreen;
typedef ODShape*   SOMLINK somTP_ODCanvas_AcquireUpdateShape(ODCanvas *somSelf, Environment *ev);
typedef somTP_ODCanvas_AcquireUpdateShape *somTD_ODCanvas_AcquireUpdateShape;
typedef void   SOMLINK somTP_ODCanvas_ResetUpdateShape(ODCanvas *somSelf, Environment *ev);
typedef somTP_ODCanvas_ResetUpdateShape *somTD_ODCanvas_ResetUpdateShape;
typedef void   SOMLINK somTP_ODCanvas_Invalidate(ODCanvas *somSelf, Environment *ev,
		ODShape* shape);
typedef somTP_ODCanvas_Invalidate *somTD_ODCanvas_Invalidate;
typedef void   SOMLINK somTP_ODCanvas_Validate(ODCanvas *somSelf, Environment *ev,
		ODShape* shape);
typedef somTP_ODCanvas_Validate *somTD_ODCanvas_Validate;
typedef void   SOMLINK somTP_ODCanvas_somUninit(ODCanvas *somSelf);
typedef somTP_ODCanvas_somUninit *somTD_ODCanvas_somUninit;
typedef void   SOMLINK somTP_ODCanvas_InitObject(ODCanvas *somSelf, Environment *ev);
typedef somTP_ODCanvas_InitObject *somTD_ODCanvas_InitObject;
typedef ODBoolean   SOMLINK somTP_ODCanvas_HasExtension(ODCanvas *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODCanvas_HasExtension *somTD_ODCanvas_HasExtension;
typedef ODExtension*   SOMLINK somTP_ODCanvas_AcquireExtension(ODCanvas *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODCanvas_AcquireExtension *somTD_ODCanvas_AcquireExtension;
typedef void   SOMLINK somTP_ODCanvas_ReleaseExtension(ODCanvas *somSelf, Environment *ev,
		ODExtension* extension);
typedef somTP_ODCanvas_ReleaseExtension *somTD_ODCanvas_ReleaseExtension;
typedef ODSize   SOMLINK somTP_ODCanvas_Purge(ODCanvas *somSelf, Environment *ev,
		ODSize size);
typedef somTP_ODCanvas_Purge *somTD_ODCanvas_Purge;
typedef ODBoolean   SOMLINK somTP_ODCanvas_IsEqualTo(ODCanvas *somSelf, Environment *ev,
		ODObject* object);
typedef somTP_ODCanvas_IsEqualTo *somTD_ODCanvas_IsEqualTo;
typedef void   SOMLINK somTP_ODCanvas_SubClassResponsibility(ODCanvas *somSelf, Environment *ev);
typedef somTP_ODCanvas_SubClassResponsibility *somTD_ODCanvas_SubClassResponsibility;
typedef void   SOMLINK somTP_ODCanvas_somInit(ODCanvas *somSelf);
typedef somTP_ODCanvas_somInit *somTD_ODCanvas_somInit;
typedef void   SOMLINK somTP_ODCanvas_somDefaultInit(ODCanvas *somSelf,
		somInitCtrl* ctrl);
typedef somTP_ODCanvas_somDefaultInit *somTD_ODCanvas_somDefaultInit;
typedef void   SOMLINK somTP_ODCanvas_somDestruct(ODCanvas *somSelf,
		octet doFree,
		somDestructCtrl* ctrl);
typedef somTP_ODCanvas_somDestruct *somTD_ODCanvas_somDestruct;
typedef void   SOMLINK somTP_ODCanvas_somDefaultCopyInit(ODCanvas *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODCanvas_somDefaultCopyInit *somTD_ODCanvas_somDefaultCopyInit;
typedef ODCanvas*   SOMLINK somTP_ODCanvas_somDefaultAssign(ODCanvas *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODCanvas_somDefaultAssign *somTD_ODCanvas_somDefaultAssign;
typedef void   SOMLINK somTP_ODCanvas_somDefaultConstCopyInit(ODCanvas *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODCanvas_somDefaultConstCopyInit *somTD_ODCanvas_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_ODCanvas_somDefaultVCopyInit(ODCanvas *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODCanvas_somDefaultVCopyInit *somTD_ODCanvas_somDefaultVCopyInit;
typedef void   SOMLINK somTP_ODCanvas_somDefaultConstVCopyInit(ODCanvas *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODCanvas_somDefaultConstVCopyInit *somTD_ODCanvas_somDefaultConstVCopyInit;
typedef ODCanvas*   SOMLINK somTP_ODCanvas_somDefaultConstAssign(ODCanvas *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODCanvas_somDefaultConstAssign *somTD_ODCanvas_somDefaultConstAssign;
typedef ODCanvas*   SOMLINK somTP_ODCanvas_somDefaultVAssign(ODCanvas *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODCanvas_somDefaultVAssign *somTD_ODCanvas_somDefaultVAssign;
typedef ODCanvas*   SOMLINK somTP_ODCanvas_somDefaultConstVAssign(ODCanvas *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODCanvas_somDefaultConstVAssign *somTD_ODCanvas_somDefaultConstVAssign;
typedef void   SOMLINK somTP_ODCanvas_somFree(ODCanvas *somSelf);
typedef somTP_ODCanvas_somFree *somTD_ODCanvas_somFree;
typedef SOMClass*   SOMLINK somTP_ODCanvas_somGetClass(ODCanvas *somSelf);
typedef somTP_ODCanvas_somGetClass *somTD_ODCanvas_somGetClass;
typedef string   SOMLINK somTP_ODCanvas_somGetClassName(ODCanvas *somSelf);
typedef somTP_ODCanvas_somGetClassName *somTD_ODCanvas_somGetClassName;
typedef long   SOMLINK somTP_ODCanvas_somGetSize(ODCanvas *somSelf);
typedef somTP_ODCanvas_somGetSize *somTD_ODCanvas_somGetSize;
typedef boolean   SOMLINK somTP_ODCanvas_somIsA(ODCanvas *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODCanvas_somIsA *somTD_ODCanvas_somIsA;
typedef boolean   SOMLINK somTP_ODCanvas_somIsInstanceOf(ODCanvas *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODCanvas_somIsInstanceOf *somTD_ODCanvas_somIsInstanceOf;
typedef boolean   SOMLINK somTP_ODCanvas_somRespondsTo(ODCanvas *somSelf,
		somId mId);
typedef somTP_ODCanvas_somRespondsTo *somTD_ODCanvas_somRespondsTo;
typedef boolean   SOMLINK somTP_ODCanvas_somDispatch(ODCanvas *somSelf,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODCanvas_somDispatch *somTD_ODCanvas_somDispatch;
typedef boolean   SOMLINK somTP_ODCanvas_somClassDispatch(ODCanvas *somSelf,
		SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODCanvas_somClassDispatch *somTD_ODCanvas_somClassDispatch;
typedef boolean   SOMLINK somTP_ODCanvas_somCastObj(ODCanvas *somSelf,
		SOMClass* cls);
typedef somTP_ODCanvas_somCastObj *somTD_ODCanvas_somCastObj;
typedef boolean   SOMLINK somTP_ODCanvas_somResetObj(ODCanvas *somSelf);
typedef somTP_ODCanvas_somResetObj *somTD_ODCanvas_somResetObj;
typedef SOMObject*   SOMLINK somTP_ODCanvas_somPrintSelf(ODCanvas *somSelf);
typedef somTP_ODCanvas_somPrintSelf *somTD_ODCanvas_somPrintSelf;
typedef void   SOMLINK somTP_ODCanvas_somDumpSelf(ODCanvas *somSelf,
		long level);
typedef somTP_ODCanvas_somDumpSelf *somTD_ODCanvas_somDumpSelf;
typedef void   SOMLINK somTP_ODCanvas_somDumpSelfInt(ODCanvas *somSelf,
		long level);
typedef somTP_ODCanvas_somDumpSelfInt *somTD_ODCanvas_somDumpSelfInt;
}

#endif /* ODCanvas_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 ODCanvas
 */
class ODCanvas : public ODBaseCanvas
{
public:

// ODCanvas::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 (!_ODCanvas) ODCanvasNewClass(ODCanvas_MajorVersion,ODCanvas_MinorVersion);
   return (void*)
      SOM_Resolve(_ODCanvas,SOMClass,somNewNoInit)
         ((SOMClass *)((void*)_ODCanvas));
}

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

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

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

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


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


/*
 * Reintroduce inherited methods
 */

/* method: HasPlatformCanvas */
ODBoolean   HasPlatformCanvas(Environment *ev,
		ODGraphicsSystem g)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODCanvas,ODBaseCanvas,HasPlatformCanvas)
	(this, ev,g);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODCanvas,ODBaseCanvas,HasPlatformCanvas)
	(this, ev,g);
#endif
}


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


/* method: SetPlatformCanvas */
void   SetPlatformCanvas(Environment *ev,
		ODGraphicsSystem g,
		ODPlatformCanvas* c)
{
   SOM_ResolveD(this,ODCanvas,ODBaseCanvas,SetPlatformCanvas)
	(this, ev,g,c);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: HasPlatformPrintJob */
ODBoolean   HasPlatformPrintJob(Environment *ev,
		ODGraphicsSystem g)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODCanvas,ODBaseCanvas,HasPlatformPrintJob)
	(this, ev,g);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODCanvas,ODBaseCanvas,HasPlatformPrintJob)
	(this, ev,g);
#endif
}


/* method: GetPlatformPrintJob */
ODPlatformPrintJob   GetPlatformPrintJob(Environment *ev,
		ODGraphicsSystem g)
{
#ifdef SOMCHKEXCEPT
   ODPlatformPrintJob __somResult = 
      SOM_ResolveD(this,ODCanvas,ODBaseCanvas,GetPlatformPrintJob)
	(this, ev,g);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODCanvas,ODBaseCanvas,GetPlatformPrintJob)
	(this, ev,g);
#endif
}


/* method: SetPlatformPrintJob */
void   SetPlatformPrintJob(Environment *ev,
		ODGraphicsSystem g,
		ODPlatformPrintJob j)
{
   SOM_ResolveD(this,ODCanvas,ODBaseCanvas,SetPlatformPrintJob)
	(this, ev,g,j);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


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


/* method: SetOwner */
void   SetOwner(Environment *ev,
		ODPart* owner)
{
   SOM_ResolveD(this,ODCanvas,ODBaseCanvas,SetOwner)
	(this, ev,owner);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


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


/* method: SetFacet */
void   SetFacet(Environment *ev,
		ODFacet* facet)
{
   SOM_ResolveD(this,ODCanvas,ODBaseCanvas,SetFacet)
	(this, ev,facet);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


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


/* method: SetBiasTransform */
void   SetBiasTransform(Environment *ev,
		ODTransform* x)
{
   SOM_ResolveD(this,ODCanvas,ODBaseCanvas,SetBiasTransform)
	(this, ev,x);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


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


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


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


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


/* method: Invalidate */
void   Invalidate(Environment *ev,
		ODShape* shape)
{
   SOM_ResolveD(this,ODCanvas,ODBaseCanvas,Invalidate)
	(this, ev,shape);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: Validate */
void   Validate(Environment *ev,
		ODShape* shape)
{
   SOM_ResolveD(this,ODCanvas,ODBaseCanvas,Validate)
	(this, ev,shape);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


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


/* method: InitObject */
void   InitObject(Environment *ev)
{
   SOM_ResolveD(this,ODCanvas,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,ODCanvas,ODObject,HasExtension)
	(this, ev,extensionName);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODCanvas,ODObject,HasExtension)
	(this, ev,extensionName);
#endif
}


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


/* method: ReleaseExtension */
void   ReleaseExtension(Environment *ev,
		ODExtension* extension)
{
   SOM_ResolveD(this,ODCanvas,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,ODCanvas,ODObject,Purge)
	(this, ev,size);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODCanvas,ODObject,Purge)
	(this, ev,size);
#endif
}


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


/* va_list method: somDispatch */
/* the va_list invocation form */
boolean   ODCanvas_somDispatch(somToken* retValue,
		somId methodId,
		va_list ap)
{
return SOM_ResolveD(this,ODCanvas,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,ODCanvas,SOMObject,somDispatch)
	(this,retValue,methodId,ap);
   va_end(ap);
   return __somResult;
}


/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean   ODCanvas_somClassDispatch(SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap)
{
return SOM_ResolveD(this,ODCanvas,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,ODCanvas,SOMObject,somClassDispatch)
	(this,clsObj,retValue,methodId,ap);
   va_end(ap);
   return __somResult;
}


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


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


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


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


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



};   /* ODCanvas */



#endif       /* SOM_ODCanvas_xh */
