GME  13
CommonImport.h
Go to the documentation of this file.
00001 // Header file for missing bits from MIDL-generated .hs when using #import
00002 #include "comdef.h"
00003 
00004 typedef short metaid_type;
00005 typedef long objid_type;
00006 typedef short attrid_type;
00007 typedef unsigned char valtype_type;
00008 typedef unsigned char locking_type;
00009 typedef short lockval_type;
00010 typedef VARIANT guid_type;
00011 
00012 typedef long metaref_type;
00013 
00014 typedef BSTR ID_type;
00015 
00016 
00017 // From InterfaceColl.h
00018 
00019 template<class COLL>
00020 struct TypeName_MgaColl2Elem {
00021         typedef IUnknown element_type;
00022         typedef IUnknown collection_type;
00023 };
00024 template<class ELEM>
00025 struct TypeName_MgaElem2Coll {
00026         typedef IUnknown element_type;
00027         typedef IUnknown collection_type;
00028 };
00029 
00030 
00031 #define _MGA_COLLECTION_(NAME) _MGA_COLLECTION2_(NAME, NAME##s)
00032 #define _MGA_COLLECTION2_(IMgaX, IMgaXs) \
00033 struct IMgaX; struct IMgaXs; \
00034 template<> struct ::TypeName_MgaColl2Elem<IMgaXs> \
00035   { typedef IMgaXs collection_type; typedef IMgaX element_type; }; \
00036 template<> struct ::TypeName_MgaElem2Coll<IMgaX> \
00037  { typedef IMgaXs collection_type; typedef IMgaX element_type; };
00038 
00039 _MGA_COLLECTION_(ICoreMetaObject)
00040 _MGA_COLLECTION_(ICoreMetaAttribute)
00041 _MGA_COLLECTION_(ICoreObject)
00042 _MGA_COLLECTION_(ICoreAttribute)
00043 
00044 _MGA_COLLECTION_(IMgaMetaAspect)
00045 _MGA_COLLECTION_(IMgaMetaRole)
00046 _MGA_COLLECTION_(IMgaMetaFCO)
00047 _MGA_COLLECTION_(IMgaMetaAttribute)
00048 _MGA_COLLECTION_(IMgaMetaFolder)
00049 _MGA_COLLECTION_(IMgaMetaPointerSpec)
00050 _MGA_COLLECTION_(IMgaMetaRegNode)
00051 _MGA_COLLECTION_(IMgaConstraint)
00052 _MGA_COLLECTION_(IMgaMetaPart)
00053 _MGA_COLLECTION_(IMgaMetaModel)
00054 _MGA_COLLECTION_(IMgaMetaConnJoint)
00055 _MGA_COLLECTION_(IMgaMetaPointerItem)
00056 _MGA_COLLECTION_(IMgaMetaEnumItem)
00057 _MGA_COLLECTION_(IMgaFolder)
00058 _MGA_COLLECTION_(IMgaFCO)
00059 _MGA_COLLECTION_(IMgaAttribute)
00060 _MGA_COLLECTION_(IMgaPart)
00061 _MGA_COLLECTION_(IMgaConnPoint)
00062 _MGA_COLLECTION_(IMgaRegNode)
00063 _MGA_COLLECTION_(IMgaAddOn)
00064 _MGA_COLLECTION2_(IMgaTerritory, IMgaTerritories)
00065 _MGA_COLLECTION_(IMgaComponent)
00066 _MGA_COLLECTION_(IMgaClient)
00067 _MGA_COLLECTION_(IMgaObject)
00068 
00069 #define TYPENAME_COLL2ELEM(COLL) typename ::TypeName_MgaColl2Elem<COLL>::element_type
00070 #define TYPENAME_ELEM2COLL(ELEM) typename ::TypeName_MgaElem2Coll<ELEM>::collection_type
00071 
00072 
00073 typedef unsigned long feature_code;
00074 const unsigned long F_RESIZABLE = 1<<0;
00075 const unsigned long     F_MOUSEEVENTS = 1<<1;
00076 const unsigned long     F_HASLABEL =    1<<2;
00077 const unsigned long     F_HASSTATE = 1<<3;
00078 const unsigned long     F_HASPORTS = 1<<4;
00079 const unsigned long     F_ANIMATION = 1<<5;
00080 const unsigned long     F_IMGPATH = 1<<6;
00081 const unsigned long     F_RESIZEAFTERMOD = 1<<7;
00082 
00083 const metaid_type METAID_NONE = 0;
00084 const metaid_type METAID_ROOT = 1;
00085 
00086 const attrid_type ATTRID_NONE = 0;
00087 const attrid_type ATTRID_LOCK = 1;
00088 const attrid_type ATTRID_NAME = 2;
00089 const attrid_type ATTRID_FATHER = 3;
00090 const attrid_type ATTRID_COLLECTION = 10000;
00091 
00092 const objid_type OBJID_NONE = 0;
00093 const objid_type OBJID_ROOT = 1;
00094 const long RELID_BASE_MAX  = 0x7FFFFFF; //assigned to non-derived ojects
00095 const long RELID_VALUE_MAX = 0x7FFFFFFF;   // automatically assigned to deriveds
00096 
00097 typedef GMEInterfaceVersion_enum GMEInterfaceVersion;
00098 typedef long metaref_type;
00099 #define ATTVAL_ENUM _attval_enum
00100