home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 May
/
VPR9705A.ISO
/
VPR_DATA
/
PROGRAM
/
CBTRIAL
/
SETUP
/
DATA.Z
/
TOOLINTF.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-14
|
9KB
|
193 lines
//----------------------------------------------------------------------------
// ToolIntf.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: ToolIntf.pas
//----------------------------------------------------------------------------
#ifndef ToolIntfHPP
#define ToolIntfHPP
//----------------------------------------------------------------------------
#include <FileIntf.hpp>
#include <EditIntf.hpp>
#include <VirtIntf.hpp>
#include <Classes.hpp>
#include <Windows.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Toolintf
{
//-- type declarations -------------------------------------------------------
enum TIMenuFlag { mfInvalid, mfEnabled, mfVisible, mfChecked, mfBreak, mfBarBreak, mfRadioItem };
typedef Set<TIMenuFlag, mfInvalid, mfRadioItem> TIMenuFlags;
class __declspec(delphiclass) TIMenuItemIntf;
typedef void __fastcall (__closure *TIMenuClickEvent)(TIMenuItemIntf* Sender);
class __declspec(pascalimplementation) TIMenuItemIntf : public Virtintf::TInterface
{
typedef Virtintf::TInterface inherited;
public:
virtual bool __stdcall DestroyMenuItem(void) = 0;
virtual int __stdcall GetIndex(void) = 0;
virtual int __stdcall GetItemCount(void) = 0;
virtual TIMenuItemIntf* __stdcall GetItem(int Index) = 0;
virtual System::AnsiString __stdcall GetName(void) = 0;
virtual TIMenuItemIntf* __stdcall GetParent(void) = 0;
virtual System::AnsiString __stdcall GetCaption(void) = 0;
virtual bool __stdcall SetCaption(const System::AnsiString Caption) = 0;
virtual int __stdcall GetShortCut(void) = 0;
virtual bool __stdcall SetShortCut(int ShortCut) = 0;
virtual TIMenuFlags __stdcall GetFlags(void) = 0;
virtual bool __stdcall SetFlags(TIMenuFlags Mask, TIMenuFlags Flags) = 0;
virtual int __stdcall GetGroupIndex(void) = 0;
virtual bool __stdcall SetGroupIndex(int GroupIndex) = 0;
virtual System::AnsiString __stdcall GetHint(void) = 0;
virtual bool __stdcall SetHint( System::AnsiString Hint) = 0;
virtual int __stdcall getContext(void) = 0;
virtual bool __stdcall setContext(int Context) = 0;
virtual TIMenuClickEvent __stdcall GetOnClick(void) = 0;
virtual bool __stdcall SetOnClick(TIMenuClickEvent Click) = 0;
virtual TIMenuItemIntf* __stdcall InsertItem(int Index, System::AnsiString Caption, System::AnsiString
Name, System::AnsiString Hint, int ShortCut, int Context, int GroupIndex, TIMenuFlags Flags, TIMenuClickEvent
EventHandler) = 0;
public:
/* TInterface.Create */ __fastcall TIMenuItemIntf(void) : Virtintf::TInterface() { }
public:
/* TObject.Destroy */ __fastcall virtual ~TIMenuItemIntf(void) { }
};
class __declspec(delphiclass) TIMainMenuIntf;
class __declspec(pascalimplementation) TIMainMenuIntf : public Virtintf::TInterface
{
typedef Virtintf::TInterface inherited;
public:
virtual TIMenuItemIntf* __stdcall GetMenuItems(void) = 0;
virtual TIMenuItemIntf* __stdcall FindMenuItem(const System::AnsiString Name) = 0;
public:
/* TInterface.Create */ __fastcall TIMainMenuIntf(void) : Virtintf::TInterface() { }
public:
/* TObject.Destroy */ __fastcall virtual ~TIMainMenuIntf(void) { }
};
enum TFileNotification { fnFileOpening, fnFileOpened, fnFileClosing, fnProjectOpening, fnProjectOpened,
fnProjectClosing, fnAddedToProject, fnRemovedFromProject, fnDefaultDesktopLoad, fnDefaultDesktopSave,
fnProjectDesktopLoad, fnprojectDesktopSave };
class __declspec(delphiclass) TIAddInNotifier;
class __declspec(pascalimplementation) TIAddInNotifier : public Virtintf::TInterface
{
typedef Virtintf::TInterface inherited;
public:
virtual void __stdcall FileNotification(TFileNotification NotifyCode, const System::AnsiString FileName
, bool &Cancel) = 0;
public:
/* TInterface.Create */ __fastcall TIAddInNotifier(void) : Virtintf::TInterface() { }
public:
/* TObject.Destroy */ __fastcall virtual ~TIAddInNotifier(void) { }
};
enum TCreateModuleFlag { cmAddToProject, cmShowSource, cmShowForm, cmUnNamed, cmNewUnit, cmNewForm,
cmMainForm, cmMarkModified, cmNewFile, cmExisting };
typedef Set<TCreateModuleFlag, cmAddToProject, cmExisting> TCreateModuleFlags;
typedef bool __stdcall (*TProjectEnumProc)(void * Param, const System::AnsiString FileName, const System::AnsiString
UnitName, const System::AnsiString FormName);
class __declspec(delphiclass) TIToolServices;
class __declspec(pascalimplementation) TIToolServices : public Virtintf::TInterface
{
typedef Virtintf::TInterface inherited;
public:
virtual bool __stdcall CloseProject(void) = 0;
virtual bool __stdcall OpenProject(const System::AnsiString ProjName) = 0;
virtual bool __stdcall OpenProjectInfo(const System::AnsiString ProjName) = 0;
virtual bool __stdcall SaveProject(void) = 0;
virtual bool __stdcall CloseFile(const System::AnsiString FileName) = 0;
virtual bool __stdcall SaveFile(const System::AnsiString FileName) = 0;
virtual bool __stdcall OpenFile(const System::AnsiString FileName) = 0;
virtual bool __stdcall ReloadFile(const System::AnsiString FileName) = 0;
virtual int __stdcall ModalDialogBox(int Instance, char * TemplateName, HWND WndParent, void * DialogFunc
, long InitParam) = 0;
virtual bool __stdcall CreateModule(const System::AnsiString ModuleName, Virtintf::TIStream* Source
, Virtintf::TIStream* Form, TCreateModuleFlags CreateFlags) = 0;
virtual Editintf::TIModuleInterface* __stdcall CreateModuleEx(const System::AnsiString ModuleName,
const System::AnsiString FormName, const System::AnsiString AncestorClass, const System::AnsiString
FileSystem, Virtintf::TIStream* Source, Virtintf::TIStream* Form, TCreateModuleFlags CreateFlags) = 0
;
virtual HWND __stdcall GetParentHandle(void) = 0;
virtual System::AnsiString __stdcall GetProjectName(void) = 0;
virtual int __stdcall GetUnitCount(void) = 0;
virtual System::AnsiString __stdcall GetUnitName(int Index) = 0;
virtual bool __stdcall EnumProjectUnits(TProjectEnumProc EnumProc, void * Param) = 0;
virtual int __stdcall GetFormCount(void) = 0;
virtual System::AnsiString __stdcall GetFormName(int Index) = 0;
virtual System::AnsiString __stdcall GetCurrentFile(void) = 0;
virtual bool __stdcall IsFileOpen(const System::AnsiString FileName) = 0;
virtual bool __stdcall GetNewModuleName( System::AnsiString &UnitIdent, System::AnsiString &FileName
) = 0;
virtual int __stdcall GetModuleCount(void) = 0;
virtual System::AnsiString __stdcall GetModuleName(int Index) = 0;
virtual int __stdcall GetComponentCount(int ModIndex) = 0;
virtual System::AnsiString __stdcall GetComponentName(int ModIndex, int CompIndex) = 0;
virtual bool __stdcall RegisterFileSystem(Fileintf::TIVirtualFileSystem* AVirtualFileSystem) = 0;
virtual bool __stdcall UnRegisterFileSystem(const System::AnsiString Ident) = 0;
virtual Fileintf::TIVirtualFileSystem* __stdcall GetFileSystem(const System::AnsiString Ident) = 0;
virtual Editintf::TIModuleInterface* __stdcall GetModuleInterface(const System::AnsiString FileName
) = 0;
virtual Editintf::TIModuleInterface* __stdcall GetFormModuleInterface(const System::AnsiString FormName
) = 0;
virtual TIMainMenuIntf* __stdcall GetMainMenu(void) = 0;
virtual bool __stdcall AddNotifier(TIAddInNotifier* AddInNotifier) = 0;
virtual bool __stdcall RemoveNotifier(TIAddInNotifier* AddInNotifier) = 0;
virtual void * __stdcall NewPascalString(char * Str) = 0;
virtual void __stdcall FreePascalString(void * &Str) = 0;
virtual void __stdcall ReferencePascalString(void * &Str) = 0;
virtual void __stdcall AssignPascalString(void * &Dest, void * &Src) = 0;
virtual void __stdcall RaiseException(const System::AnsiString Message) = 0;
virtual System::AnsiString __stdcall GetBaseRegistryKey(void) = 0;
virtual Editintf::TIModuleInterface* __stdcall CreateCppModule(const System::AnsiString ModuleName,
const System::AnsiString FormName, const System::AnsiString AncestorClass, const System::AnsiString
FileSystem, Virtintf::TIStream* HdrSource, Virtintf::TIStream* Source, Virtintf::TIStream* Form, TCreateModuleFlags
CreateFlags) = 0;
virtual int __stdcall GetVcsCount(void) = 0;
virtual void __stdcall GetVcsList(Classes::TStringList* List) = 0;
virtual System::AnsiString __stdcall GetVcsName(int Index) = 0;
public:
/* TInterface.Create */ __fastcall TIToolServices(void) : Virtintf::TInterface() { }
public:
/* TObject.Destroy */ __fastcall virtual ~TIToolServices(void) { }
};
//-- var, const, procedure ---------------------------------------------------
//-- template instantiations -------------------------------------------------
template class TCreateModuleFlags ;
template class TIMenuFlags ;
} /* namespace Toolintf */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Toolintf;
#endif
//-- end unit ----------------------------------------------------------------
#endif // ToolIntf