home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 10 / ioProg_10.iso / soft / optima / hpp.z / MMDEF.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-01  |  3.0 KB  |  127 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  MMMethod;
  16. class  MMParameter;
  17. class  MMParameterSet;
  18. class  MMProperty;
  19. class  MMPropertyControl;
  20. class  MMPropertySheet;
  21. class  MMReferenceNode;
  22. class  MMStyle;
  23. class  MMType;
  24. class  MTPropertyControl;
  25. class  MTPropertySheetBase;
  26. class  SaveItem;
  27. class  SaveSource;
  28. struct MMBasePropertyData;
  29. struct MMHelpID;
  30.  
  31. class DTType;
  32.  
  33. enum MMString { MMSTRING_NULL = 0 };
  34. enum MMIndex { MMINDEX_NULL = -1 };
  35. enum MMOffset { MMOFFSET_NULL = -1 };
  36. enum MMSetFnIndex { MMSETFNINDEX_NULL = -1 };
  37. enum MMGetFnIndex { MMGETFNINDEX_NULL = -1 };
  38. enum MMPropCtrlFnIndex { MMPROPCTRLINDEX_NULL = -1 };
  39. enum MMPropSheetFnIndex { MMPROPSHTINDEX_NULL = -1 };
  40. enum MMDTInstFnIndex { MMINSTFNINDEX_NULL = -1 };
  41. enum MMDTTypeFnIndex { MMTYPEFNINDEX_NULL = -1 };
  42. enum MMPropDefFnIndex { MMPROPDEFFNINDEX_NULL = -1 };
  43. enum MMFindPropFnIndex { MMFINDPROPFFNINDEX_NULL = -1 };
  44.  
  45. typedef unsigned MMVerification;
  46. #define MMVERIFY_GOOD    0xda7aba5e
  47.  
  48.  
  49. typedef WBool              METADEF (*MMSetPropFn)(
  50.                     DTObject * obj,
  51.                     const DTType * val,
  52.                     const MMBaseProperty * data );
  53. typedef DTType *          METADEF (*MMGetPropFn)(
  54.                     const DTObject * obj,
  55.                     const MMBaseProperty * data );
  56.  
  57. typedef MTPropertySheetBase * METADEF (*MMMakePropSheet)(
  58.                     const MMPropertySheet * );
  59. typedef MTPropertyControl *   METADEF (*MMMakePropControl)(
  60.                     const MMPropertyControl * );
  61.  
  62. typedef DTObject *          METADEF (*MMMakeDTObject)(
  63.                     const MetaObject * );
  64.  
  65. typedef DTType *          METADEF (*MMMakeDTType)(
  66.                     const MMType * );
  67.  
  68.  
  69. typedef WBool              METADEF (*MMPropDefault)(
  70.                     const DTObject * obj,
  71.                     const MMBaseProperty * prop );
  72.  
  73. typedef int              METADEF (*MMPropFindFn)(
  74.                     const char *,
  75.                     MMComponentLib * & );
  76.  
  77. struct MMCommonData;
  78. struct MMEventData;
  79. struct MMBaseTypeData;
  80. struct MMTypeData;
  81. struct MMStructTypeData;
  82. struct MMParameterData;
  83. struct MMParameterSetData;
  84. struct MMBasePropertyData;
  85. struct MMStyleData;
  86. struct MMPropertyData;
  87. struct MMMethodData;
  88. struct MMPropertyControlData;
  89. struct MMPropertySheetData;
  90. struct MMReferenceNodeData;
  91. struct MMComponentData;
  92. struct MMLibraryData;
  93.  
  94. struct MMStyleList {
  95.     unsigned        entries;
  96.     const MMStyle **    vector;
  97. };
  98.  
  99. struct MMEventList {
  100.     unsigned        entries;
  101.     const MMEvent **    vector;
  102. };
  103.  
  104. struct MMMethodList {
  105.     unsigned        entries;
  106.     const MMMethod **    vector;
  107. };
  108.  
  109. struct MMPropertyList {
  110.     unsigned        entries;
  111.     const MMProperty **    vector;
  112. };
  113.  
  114. struct MMPropertySheetList {
  115.     unsigned            entries;
  116.     const MMPropertySheet **    vector;
  117. };
  118.  
  119. #ifndef DLL_PROCESS_ATTACH
  120. #  define DLL_PROCESS_ATTACH 1
  121. #  define DLL_THREAD_ATTACH  2
  122. #  define DLL_THREAD_DETACH  3
  123. #  define DLL_PROCESS_DETACH 0
  124. #endif
  125.  
  126. #endif // _MMDEF_HPP
  127.