home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 April / PCWorld_2002-04_cd.bin / Akce / 2000 / ABSYSTEM.Z / CLASSES.BI < prev    next >
Text File  |  2000-02-01  |  13KB  |  310 lines

  1. typedef
  2. enum
  3. struct
  4. union
  5. module 
  6. dispinterface
  7. interface
  8. dual interface 
  9. class
  10.  
  11. enum enumName ///enumDsecription///
  12. {
  13.     xxx vvv ///xxxDsecription///
  14.     xxx2 vvv2 ///xxx2Dsecription///
  15. }
  16.  
  17. class className ///classDsecription///
  18. {
  19. [properties:
  20. [methods:
  21.     [helpstring("123 123 "), helpcontext(123123), string, propget, propput, propputref, bindable, defaultbind, displaybind, vararg, id(2), xxx] 
  22.     type    name type1 param1 type1 param1 ///Dsecription///
  23.     [helpstring("123 123 "), helpcontext(123123), string, propget, propput, propputref, bindable, defaultbind, displaybind, vararg, id(2)] 
  24.     type    nameProp_1 ///Dsecription///
  25.     [helpstring(  "  123 123 "  )   , helpcontext( 123123  ), string, propget, propput, propputref, bindable, defaultbind, displaybind, vararg, id(2)] 
  26.     type    name ///Dsecription///
  27. ]
  28. [methods:
  29.     [helpstring("123 123 "), helpcontext(123123), string, propget, propput, propputref, bindable, defaultbind, displaybind, vararg, id(2)] 
  30.     type    name_Method1 ///Dsecription///
  31.     [helpstring(  "  123 123 "  )   , helpcontext( 123123  ), string, propget, propput, propputref, bindable, defaultbind, displaybind, vararg, id(2)] 
  32.     type    name ///Dsecription///
  33.     [string, propget, propput, propputref, bindable, defaultbind, displaybind, vararg, id(2), xxx] 
  34.     type    name type1 param1 ///Dsecription///
  35. ]
  36. [Events:
  37.     [helpstring("123 123 "), helpcontext(123123), string, propget, propput, propputref, bindable, defaultbind, displaybind, vararg, id(2)] 
  38.     type    nameEvent_1 ///Dsecription///
  39.     [helpstring(  "  123 123 "  )   , helpcontext( 123123  ), string, propget, propput, propputref, bindable, defaultbind, displaybind, vararg, id(2)] 
  40.     type    name ///Dsecription///
  41.     [string, propget, propput, propputref, bindable, defaultbind, displaybind, vararg, id(2), xxx] 
  42.     type    name type1 param1 ///Dsecription///
  43. ]
  44. };
  45. -------------------
  46. <begin>
  47.  
  48. class ReturnVal ///Container for values///
  49. {
  50. [properties:
  51.     [propget, id(0), helpstring("default property")] 
  52.     VARIANT _Item
  53.  
  54.     [propput, id(0), helpstring("default property")] 
  55.     VARIANT _Item
  56.  
  57.     [id(1), helpstring("method Clear")] 
  58.     void Clear();
  59.  
  60.     [propget, id(2), helpstring("property Var")] 
  61.     VARIANT Var( BSTR Name );
  62.     [propput, id(2), helpstring("property Var")] 
  63.     void Var( BSTR Name,  VARIANT newVal);
  64.  
  65.     [propget, id(3), helpstring("property FData")] 
  66.     VARIANT FData( BSTR FormName,  BSTR ControlName);
  67.     [propput, id(3), helpstring("property FData")] 
  68.     void FData( BSTR FormName,  BSTR ControlName,  VARIANT newVal);
  69. ]
  70. [methods:
  71.     [id(4), helpstring("method SaveData")] 
  72.     void SaveData();
  73.     [id(5), helpstring("method LoadData")] 
  74.     void LoadData();
  75. ]
  76. };
  77.  
  78. enum ABError ///Error Codes for Forms///
  79. {
  80.     ERROR_FORM_IS_RUNNING                                 0x80007001L
  81. } ;
  82.  
  83. enum ABColors ////Colors///
  84. {
  85.         abALICEBLUE                                 16775408, 
  86.         abANTIQUEWHITE                                 14150650, 
  87.         abAQUA                                 16776960, 
  88.         abAQUAMARINE                                 13959039, 
  89.         abAZURE                                 16777200, 
  90.         abBEIGE                                 14480885, 
  91.         abBISQUE                                 12903679, 
  92.         abBLACK                                 0, 
  93.         abBLANCHEDALMOND                                 13495295, 
  94.         abBLUE                                 16711680, 
  95.         abBLUEVIOLET                                 14822282, 
  96.         abBROWN                                 2763429, 
  97.         abBURLYWOOD                                 8894686, 
  98.         abCADETBLUE                                 10526303, 
  99.         abCHARTREUSE                                 65407, 
  100.         abCHOCOLATE                                 1993170, 
  101.         abCORAL                                 5275647, 
  102.         abCORNFLOWERBLUE                                 15570276, 
  103.         abCORNSILK                                 14481663, 
  104.         abCRIMSON                                 3937500, 
  105.         abCYAN                                 16776960, 
  106.         abDARKBLUE                                 9109504, 
  107.         abDARKCYAN                                 9145088, 
  108.         abDARKGOLDENROD                                 755384, 
  109.         abDARKGRAY                                 11119017, 
  110.         abDARKGREEN                                 25600, 
  111.         abDARKKHAKI                                 7059389, 
  112.         abDARKMAGENTA                                 9109643, 
  113.         abDARKOLIVEGREEN                                 3107669, 
  114.         abDARKORANGE                                 36095, 
  115.         abDARKORCHID                                 13382297, 
  116.         abDARKRED                                 139, 
  117.         abDARKSALMON                                 8034025, 
  118.         abDARKSEAGREEN                                 9419919, 
  119.         abDARKSLATEBLUE                                 9125192, 
  120.         abDARKSLATEGRAY                                 5197615, 
  121.         abDARKTURQUOISE                                 13749760, 
  122.         abDARKVIOLET                                 13828244, 
  123.         abDEEPPINK                                 9639167, 
  124.         abDEEPSKYBLUE                                 12566272, 
  125.         abDIMGRAY                                 6908265, 
  126.         abDODGERBLUE                                 16748574, 
  127.         abFIREBRICK                                 2237106, 
  128.         abFLORALWHITE                                 15792895, 
  129.         abFORESTGREEN                                 2263842, 
  130.         abFUCHSIA                                 16711935, 
  131.         abGAINSBORO                                 14474460, 
  132.         abGHOSTWHITE                                 16775416, 
  133.         abGOLD                                 55295, 
  134.         abGOLDENROD                                 2139610, 
  135.         abGRAY                                 8421504, 
  136.         abGREEN                                 32768, 
  137.         abGREENYELLOW                                 3145645, 
  138.         abHONEYDEW                                 15794160, 
  139.         abHOTPINK                                 11823615, 
  140.         abINDIANRED                                 6053069, 
  141.         abINDIGO                                 8519755, 
  142.         abIVORY                                 15794175, 
  143.         abKHAKI                                 9234160, 
  144.         abLAVENDER                                 16443110, 
  145.         abLAVENDERBLUSH                                 16118015, 
  146.         abLAWNGREEN                                 64636, 
  147.         abLEMONCHIFFON                                 13499135, 
  148.         abLIGHTBLUE                                 15128749, 
  149.         abLIGHTCORAL                                 8421616, 
  150.         abLIGHTCYAN                                 16777184, 
  151.         abLIGHTGOLDENRODYELLOW                                 13826810, 
  152.         abLIGHTGREEN                                 9498256, 
  153.         abLIGHTGREY                                 13882323, 
  154.         abLIGHTPINK                                 12695295, 
  155.         abLIGHTSALMON                                 8036607, 
  156.         abLIGHTSEAGREEN                                 11186720, 
  157.         abLIGHTSKYBLUE                                 16436871, 
  158.         abLIGHTSLATEGREY                                 10061943, 
  159.         abLIGHTSTEELBLUE                                 14599344, 
  160.         abLIGHTYELLOW                                 14745599, 
  161.         abLIME                                 65280, 
  162.         abLIMEGREEN                                 3329330, 
  163.         abLINEN                                 15134970, 
  164.         abMAGENTA                                 16711935, 
  165.         abMAROON                                 128, 
  166.         abMEDIUMAQUAMARINE                                 11193702, 
  167.         abMEDIUMBLUE                                 13434880, 
  168.         abMEDIUMORCHID                                 13850042, 
  169.         abMEDIUMPURPLE                                 14381203, 
  170.         abMEDIUMSEAGREEN                                 7451452, 
  171.         abMEDIUMSLATEBLUE                                 15624315, 
  172.         abMEDIUMSPRINGGREE                                 10156544, 
  173.         abMEDIUMTURQUOISE                                 13422920, 
  174.         abMEDIUMVIOLETRED                                 8721863, 
  175.         abMIDNIGHTBLUE                                 7346457, 
  176.         abMINTCREAM                                 16449525, 
  177.         abMISTYROSE                                 14804223, 
  178.         abMOCCASIN                                 11920639, 
  179.         abNAVAJOWHITE                                 11394815, 
  180.         abNAVY                                 8388608, 
  181.         abOLDLACE                                 15136253, 
  182.         abOLIVE                                 32896, 
  183.         abOLIVEDRAB                                 2330219, 
  184.         abORANGE                                 42495, 
  185.         abORANGERED                                 17919, 
  186.         abORCHID                                 14053594, 
  187.         abPALEGOLDENROD                                 11200750, 
  188.         abPALEGREEN                                 10025880, 
  189.         abPALETURQUOISE                                 15658671, 
  190.         abPALEVIOLETRED                                 9662683, 
  191.         abPAPAYAWHIP                                 14020607, 
  192.         abPEACHPUFF                                 12180223, 
  193.         abPERU                                 4163021, 
  194.         abPINK                                 13353215, 
  195.         abPLUM                                 14524637, 
  196.         abPOWDERBLUE                                 15130800, 
  197.         abPURPLE                                 8388736, 
  198.         abRED                                 255, 
  199.         abROSYBROWN                                 9408444, 
  200.         abROYALBLUE                                 14772545, 
  201.         abSADDLEBROWN                                 1262987, 
  202.         abSALMON                                 7504122, 
  203.         abSANDYBROWN                                 6333684, 
  204.         abSEAGREEN                                 5737262, 
  205.         abSEASHELL                                 15660543, 
  206.         abSIENNA                                 2970272, 
  207.         abSILVER                                 12632256, 
  208.         abSKYBLUE                                 15453831, 
  209.         abSLATEBLUE                                 13458026, 
  210.         abSLATEGRAY                                 9470064, 
  211.         abSNOW                                 16448255, 
  212.         abSPRINGGREEN                                 8388352, 
  213.         abSTEELBLUE                                 11829830, 
  214.         abTAN                                 9221330, 
  215.         abTEAL                                 8421376, 
  216.         abTHISTLE                                 14204888, 
  217.         abTOMATO                                 4678655, 
  218.         abTURQUOISE                                 13688896, 
  219.         abVIOLET                                 15631086, 
  220.         abWHEAT                                 11788021, 
  221.         abWHITE                                 16777215, 
  222.         abWHITESMOKE                                 16119285, 
  223.         abYELLOW                                 65535, 
  224.         abYELLOWGREEN                                 3329434, 
  225.         abYELLOWGRE                                 3329434
  226.     } ;
  227.  
  228. enum AOArrangeStyle ///Styles for finction Windows.Arrange///
  229. {
  230.         aoArrangeStyleTiled            1,
  231.         aoArrangeStyleCascade        2,
  232.         aoArrangeStyleHorizontal    3,
  233.         aoArrangeStyleVertical        4,
  234.         aoArrangeStyleIcons            5
  235. } ; 
  236.  
  237. enum ABSaveChanges ///Parameters for function Windows.CloseAll///
  238. {
  239.         abSaveChangesYes        =    1,
  240.         abSaveChangesNo            =    2,
  241.         abSaveChangesPrompt        =    3
  242. } ; 
  243.  
  244. class Windows ///Windows Collection///
  245. {
  246. [properties:
  247.         [propget, id(1)] 
  248.         long Count();
  249.         [propget, id(2)] 
  250.         LPDISPATCH Application
  251.         [propget, id(3)] 
  252.         LPDISPATCH Parent
  253.         
  254.         [propget, id(0)] 
  255.         Window Item(    VARIANT Index );///Default prorerty///
  256. ]
  257. [methods:
  258.         [id(4)] 
  259.         void Arrange(    aoArrangeStyle ArrangeStyle );
  260.         [id(10)] 
  261.         void CloseAll(    abSaveChanges SaveChanges );
  262. ]
  263. };
  264.  
  265. class Form ///A Form///
  266. {
  267. [methods:
  268.         [propget, id(1), helpstring("Title of Form")] 
  269.         String Title();
  270.         [id(2), helpstring("Execute Form")] 
  271.         void Run();
  272.         [id(3), helpstring("Go to Edit mode in Form Editor")] 
  273.         void GoEdit();
  274. ]
  275. };
  276.  
  277. class Forms ///Forms Collection///
  278. {
  279. [properties:
  280.         [propget, id(1)] 
  281.         long Count
  282.         [propget, id(2)] 
  283.         LPDISPATCH Application
  284.         [propget, id(3)] 
  285.         LPDISPATCH Parent
  286.         
  287.         [propget, id(4)] 
  288.         String Active ///Return Name of Avtive Form
  289. If no one form is active return empty string///
  290.  
  291.         [propget, id(0)] 
  292.         Form Item(    VARIANT Index); ///Index is Name of a Form///
  293. ]
  294. [methods:
  295.         [id(5)] 
  296.         void CloseActive();
  297.         [id(6)] 
  298.         void ShowForm(    VARIANT FormName);
  299. ]
  300. };
  301.  
  302.  
  303.  
  304. class RunMacro ///Use to run macro or function in other document///
  305. {
  306. [methods:
  307.     [id(1)] 
  308.     VARIANT Run( BSTR DocName,  BSTR MacroName); ///After MacroName can be stored parameters for function///
  309. ]
  310. };