home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 May / VPR9705A.ISO / VPR_DATA / PROGRAM / CBTRIAL / SETUP / DATA.Z / EXPTINTF.HPP < prev    next >
C/C++ Source or Header  |  1997-02-14  |  3KB  |  77 lines

  1. //----------------------------------------------------------------------------
  2. // Exptintf.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
  3. // From: Exptintf.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef ExptintfHPP
  6. #define ExptintfHPP
  7. //----------------------------------------------------------------------------
  8. #include <ToolIntf.hpp>
  9. #include <VirtIntf.hpp>
  10. #include <Windows.hpp>
  11. #include <System.hpp>
  12. #pragma warn -par
  13. #pragma warn -hid 
  14. #pragma warn -inl
  15.  
  16. namespace Exptintf
  17. {
  18. //-- type declarations -------------------------------------------------------
  19. enum TExpertStyle { esStandard, esForm, esProject, esAddIn };
  20.  
  21. enum Exptintf_1 { esEnabled, esChecked };
  22.  
  23. typedef Set<Exptintf_1, esEnabled, esChecked>  TExpertState;
  24.  
  25. class __declspec(delphiclass) TIExpert;
  26. class __declspec(pascalimplementation) TIExpert : public Virtintf::TInterface
  27. {
  28.     typedef Virtintf::TInterface inherited;
  29.     
  30. public:
  31.     virtual System::AnsiString __stdcall GetName(void) = 0;
  32.     virtual System::AnsiString __stdcall GetAuthor(void) = 0;
  33.     virtual System::AnsiString __stdcall GetComment(void) = 0;
  34.     virtual System::AnsiString __stdcall GetPage(void) = 0;
  35.     virtual HICON __stdcall GetGlyph(void) = 0;
  36.     virtual TExpertStyle __stdcall GetStyle(void) = 0;
  37.     virtual TExpertState __stdcall GetState(void) = 0;
  38.     virtual System::AnsiString __stdcall GetIDString(void) = 0;
  39.     virtual System::AnsiString __stdcall GetMenuText(void) = 0;
  40.     virtual void __stdcall Execute(void) = 0;
  41. public:
  42.     /* TInterface.Create */ __fastcall TIExpert(void) : Virtintf::TInterface() { }
  43.     
  44. public:
  45.     /* TObject.Destroy */ __fastcall virtual ~TIExpert(void) { }
  46.     
  47. };
  48.  
  49. typedef bool __fastcall (*TExpertRegisterProc)(TIExpert* Expert);
  50.  
  51. typedef void __fastcall (*TExpertTerminateProc)(void);
  52.  
  53. typedef bool __stdcall (*TExpertInitProc)(Toolintf::TIToolServices* ToolServices, TExpertRegisterProc 
  54.     RegisterProc, TExpertTerminateProc &Terminate);
  55.  
  56. //-- var, const, procedure ---------------------------------------------------
  57. #define isExperts "Experts"
  58. #define ExpertEntryPoint "INITEXPERT0016"
  59. #define ValidExpertVersion (Byte)(2)
  60. extern TExpertRegisterProc LibraryExpertProc;
  61. extern Toolintf::TIToolServices* ToolServices;
  62. extern void __fastcall RegisterLibraryExpert(TIExpert* Expert);
  63. //-- template instantiations -------------------------------------------------
  64. template class TExpertState ;
  65.  
  66. }    /* namespace Exptintf */
  67.  
  68. #pragma warn .par
  69. #pragma warn .hid 
  70. #pragma warn .inl
  71.  
  72. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  73. using namespace Exptintf;
  74. #endif
  75. //-- end unit ----------------------------------------------------------------
  76. #endif    // Exptintf
  77.