home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 October / Chip_1997-10_cd.bin / tema / sybase / powerj / hpp.z / MMDEF.HPP < prev    next >
C/C++ Source or Header  |  1996-12-07  |  4KB  |  151 lines

  1. #ifndef _MMDEF_HPP
  2. #define _MMDEF_HPP
  3.  
  4. #include "mtdef.hpp"
  5.  
  6. class  DTObject;
  7. class  DTType;
  8. class  MetaObject;
  9. class  MMBaseProperty;
  10. class  MMCommon;
  11. class  MMComponent;
  12. class  MMComponentLib;
  13. class  MMEnumerator;
  14. class  MMEvent;
  15. class  MMEventOverride;
  16. class  MMMethod;
  17. class  MMParameter;
  18. class  MMParameterSet;
  19. class  MMProperty;
  20. class  MMPropertyGroup;
  21. class  MMPropertyControl;
  22. class  MMPropertySheet;
  23. class  MMReferenceNode;
  24. class  MMStyle;
  25. class  MMType;
  26. class  MTPropertyControl;
  27. class  MTPropertySheetBase;
  28. class  SaveItem;
  29. class  SaveSource;
  30. class  PropertyInspectObject;
  31. class  PropertyInspector;
  32.  
  33. struct MMBasePropertyData;
  34. struct MMHelpID;
  35.  
  36. class DTType;
  37.  
  38. enum MMLanguage {
  39.     MMLanguageCpp               = 0,
  40.     MMLanguageJava              = 1,
  41. };
  42.  
  43. enum MMString { MMSTRING_NULL = 0 };
  44. enum MMIndex { MMINDEX_NULL = -1 };
  45. enum MMOffset { MMOFFSET_NULL = -1 };
  46. enum MMSetFnIndex { MMSETFNINDEX_NULL = -1 };
  47. enum MMGetFnIndex { MMGETFNINDEX_NULL = -1 };
  48. enum MMPropCtrlFnIndex { MMPROPCTRLINDEX_NULL = -1 };
  49. enum MMPropSheetFnIndex { MMPROPSHTINDEX_NULL = -1 };
  50. enum MMDTInstFnIndex { MMINSTFNINDEX_NULL = -1 };
  51. enum MMDTTypeFnIndex { MMTYPEFNINDEX_NULL = -1 };
  52. enum MMPropDefFnIndex { MMPROPDEFFNINDEX_NULL = -1 };
  53. enum MMPropMakeEditorFnIndex { MMPROPEDITORFNINDEX_NULL = -1 };
  54.  
  55. typedef unsigned MMVerification;
  56. #define MMVERIFY_GOOD   0xda7aba5e
  57.  
  58.  
  59. typedef WBool                 METADEF (*MMSetPropFn)(
  60.                                         DTObject * obj,
  61.                                         const DTType * val,
  62.                                         const MMBaseProperty * data );
  63.  
  64. typedef DTType *              METADEF (*MMGetPropFn)(
  65.                                         const DTObject * obj,
  66.                                         const MMBaseProperty * data );
  67.  
  68. typedef MTPropertySheetBase * METADEF (*MMMakePropSheet)(
  69.                                         const MMPropertySheet * );
  70.  
  71. typedef MTPropertyControl *   METADEF (*MMMakePropControl)(
  72.                                         const MMPropertyControl * );
  73.  
  74. typedef DTObject *            METADEF (*MMMakeDTObject)(
  75.                                         const MetaObject * );
  76.  
  77. typedef DTType *              METADEF (*MMMakeDTType)(
  78.                                         const MMType * );
  79.  
  80. typedef WBool                 METADEF (*MMPropDefault)(
  81.                                         const DTObject * obj,
  82.                                         const MMBaseProperty * prop );
  83.  
  84. typedef PropertyInspectObject *  METADEF (*MMPropMakeEditor)(
  85.                                         const MMProperty * prop,
  86.                                         PropertyInspector * prt,
  87.                                         WUInt numObjects,
  88.                                         DTObject ** objects );
  89. enum MMFunctionType {
  90.     MMFT_SetPropFn,
  91.     MMFT_GetPropFn,
  92.     MMFT_MakePropSheetFn,
  93.     MMFT_MakePropControl,
  94.     MMFT_MakeDTObject,
  95.     MMFT_MakeDTType,
  96.     MMFT_PropDefault,
  97.     MMFT_PropMakeEditor,
  98.     MMFT_NumFunctionTypes
  99. };
  100.  
  101. struct MMCommonData;
  102. struct MMEventData;
  103. struct MMBaseTypeData;
  104. struct MMTypeData;
  105. struct MMStructTypeData;
  106. struct MMParameterData;
  107. struct MMParameterSetData;
  108. struct MMBasePropertyData;
  109. struct MMStyleData;
  110. struct MMPropertyData;
  111. struct MMMethodData;
  112. struct MMPropertyControlData;
  113. struct MMPropertySheetData;
  114. struct MMReferenceNodeData;
  115. struct MMComponentData;
  116. struct MMLibraryData;
  117.  
  118. struct MMStyleList {
  119.     unsigned            entries;
  120.     const MMStyle **    vector;
  121. };
  122.  
  123. struct MMEventList {
  124.     unsigned            entries;
  125.     const MMEvent **    vector;
  126. };
  127.  
  128. struct MMMethodList {
  129.     unsigned            entries;
  130.     const MMMethod **   vector;
  131. };
  132.  
  133. struct MMPropertyList {
  134.     unsigned            entries;
  135.     const MMProperty ** vector;
  136. };
  137.  
  138. struct MMPropertySheetList {
  139.     unsigned                    entries;
  140.     const MMPropertySheet **    vector;
  141. };
  142.  
  143. #ifndef DLL_PROCESS_ATTACH
  144. #  define DLL_PROCESS_ATTACH 1
  145. #  define DLL_THREAD_ATTACH  2
  146. #  define DLL_THREAD_DETACH  3
  147. #  define DLL_PROCESS_DETACH 0
  148. #endif
  149.  
  150. #endif // _MMDEF_HPP
  151.