home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-16 | 7.2 KB | 271 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: SLCyPart.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- #ifndef SOM_Module_ODF_defined
- #define SOM_Module_ODF_defined 1
- #include <som.xh>
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class ODRefCntObject;
- class CyberExtension;
- class CyberSession;
- class ODSession;
- class CyberItem;
- class ODDraft;
- class ODPart;
- class ODStorageUnit;
- class ODWindow;
- class CyberStream;
- class ParameterSet;
- #ifndef _IDL_SEQUENCE_CyberItem_defined
- #define _IDL_SEQUENCE_CyberItem_defined
- typedef struct {
- unsigned long _maximum;
- unsigned long _length;
- CyberItem **_buffer;
- } _IDL_SEQUENCE_CyberItem;
- #endif /* _IDL_SEQUENCE_CyberItem_defined */
- typedef
- _IDL_SEQUENCE_CyberItem CyberItemList;
- typedef
- ODOSType CDStringProperty;
- typedef unsigned long CDCompareType;
- #define kCDCompareLessThan 1UL
- #define kCDCompareEqual 2UL
- #define kCDCompareGreaterThan 3UL
- typedef unsigned long CDItemInfoType;
- #define kCDInfoDownload 1UL
- #define kCDInfoReference 2UL
- #define kCDInfoPart 3UL
- #define kCDDefaultName 0 /* 0 */
- #define kCDHomeName 'HOME'
- #define kCDWindowName 'WIND'
- #define kCDLogName 'LOG1'
- #define kCDLog2ndCol 'LOG2'
- #define kCDNotebookName 'NBK1'
- #define kCDNotebook2ndCol 'NBK2'
- #define kCDFileName 'FILE'
- #define kCDParentItemKey "Apple:ParentItem"
- #define kCDInitialOpenerPartKey "Apple:InitialOpenerPart"
- #define kCDObtainedOpenerPartKey "Apple:ObtainedOpenerPart"
- #define kCDSearch4ExistingWindowKey "Apple:Search4ExistingWindow"
- #define kCDRefreshKey "Apple:Refresh"
- #define kCDWidthKey "Apple:Width"
- #define kCDHeightKey "Apple:Height"
- #define kCDFrameSizeFixed "Apple:FrameSizeFixed"
- #define kCDWaitForFrame "Apple:WaitForFrame"
- #define kCDFlagDontLog 0 /* 0 */
- #define kCDFlagDontEmbed 1 /* 1 */
- #define kCDFlagDontLogMask 1 /* 0x00000001 */
- #define kCDFlagDontEmbedMask 2 /* 0x00000002 */
- class CyberPartExtension;
-
- /*
- * End of user-defined types.
- */
- #endif /* SOM_Module_ODF_defined */
-
- #ifndef SOM_ODF_FW_OCyberPartExtension_xh
- #define SOM_ODF_FW_OCyberPartExtension_xh
-
- class ODF_FW_OCyberPartExtension;
-
- #define ODF_FW_OCyberPartExtension_MajorVersion 1
- #define ODF_FW_OCyberPartExtension_MinorVersion 0
-
- /*
- * Passthru lines: File: "C.xh", "before"
- */
- struct FW_SCyberPartExtensionCallbacks;
- typedef FW_SCyberPartExtensionCallbacks* FW_HCyberPartInterfaceCallbacks;
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_CyberPartExtension_xh
- #include <CyberPartExtension.xh>
- #endif
-
- #ifndef ODF_FW_OCyberPartExtension_API
- #define ODF_FW_OCyberPartExtension_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define ODF_FW_OCyberPartExtensionCClassData ODF_FW_OCyberPartExtensionClassData
- #define ODF_FW_OCyberPartExtensionNewClass(major,minor) somNewVersionedClassReference(ODF_FW_OCyberPartExtension,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define ODF_FW_OCyberPartExtensionMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the ODF_FW_OCyberPartExtension class object, and the methods it introduces. */
- SOMEXTERN struct ODF_FW_OCyberPartExtensionClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken SetCallbacks;
- somMToken DefaultOpenCyberItem;
- somMToken DefaultHandleCommand;
- } SOMDLINK ODF_FW_OCyberPartExtensionClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(ODF_FW_OCyberPartExtension_Class_Source) && !defined(SOM_Module_slcypart_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list ODF_FW_OCyberPartExtensionClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for ODF_FW_OCyberPartExtension Method Procedures
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_ODF_FW_OCyberPartExtension_SetCallbacks)(ODF_FW_OCyberPartExtension *somSelf, Environment *ev,
- FW_HCyberPartInterfaceCallbacks callbacks);
- typedef void (* SOMLINK somTD_ODF_FW_OCyberPartExtension_DefaultOpenCyberItem)(ODF_FW_OCyberPartExtension *somSelf, Environment *ev,
- CyberItem* item,
- ODPart* openerPart,
- ParameterSet* openParams);
- typedef ODBoolean (* SOMLINK somTD_ODF_FW_OCyberPartExtension_DefaultHandleCommand)(ODF_FW_OCyberPartExtension *somSelf, Environment *ev,
- long commandCreator,
- long commandID,
- ODFrame* frame,
- void* commandData);
- }
-
- #endif /* ODF_FW_OCyberPartExtension_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODF_FW_OCyberPartExtension
- */
- class ODF_FW_OCyberPartExtension : public CyberPartExtension
- {
- public:
-
- // ODF_FW_OCyberPartExtension::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for ODF_FW_OCyberPartExtension, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(ODF_FW_OCyberPartExtension);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(ODF_FW_OCyberPartExtension);
- #endif
- }
-
- // ODF_FW_OCyberPartExtension::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: SetCallbacks */
- void SetCallbacks(Environment *ev,
- FW_HCyberPartInterfaceCallbacks callbacks)
- {
- SOM_ResolveD(this,ODF_FW_OCyberPartExtension,ODF_FW_OCyberPartExtension,SetCallbacks)
- (this,ev,callbacks);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: DefaultOpenCyberItem */
- void DefaultOpenCyberItem(Environment *ev,
- CyberItem* item,
- ODPart* openerPart,
- ParameterSet* openParams)
- {
- SOM_ResolveD(this,ODF_FW_OCyberPartExtension,ODF_FW_OCyberPartExtension,DefaultOpenCyberItem)
- (this,ev,item,openerPart,openParams);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: DefaultHandleCommand */
- ODBoolean DefaultHandleCommand(Environment *ev,
- long commandCreator,
- long commandID,
- ODFrame* frame,
- void* commandData)
- {
- #ifdef SOMCHKEXCEPT
- ODBoolean __somResult =
- SOM_ResolveD(this,ODF_FW_OCyberPartExtension,ODF_FW_OCyberPartExtension,DefaultHandleCommand)
- (this,ev,commandCreator,commandID,frame,commandData);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODF_FW_OCyberPartExtension,ODF_FW_OCyberPartExtension,DefaultHandleCommand)
- (this,ev,commandCreator,commandID,frame,commandData);
- #endif
- }
-
- }; /* ODF_FW_OCyberPartExtension */
-
-
-
- #endif /* SOM_ODF_FW_OCyberPartExtension_xh */
-