home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- // ToolIntf.hpp - dcc32 generated hdr (DO NOT EDIT) rev: -2
- // From: ToolIntf.pas
- //----------------------------------------------------------------------------
- #ifndef ToolIntfHPP
- #define ToolIntfHPP
- //----------------------------------------------------------------------------
- #ifndef FileIntfHPP
- #include <FileIntf.hpp>
- #endif
-
- #ifndef EditIntfHPP
- #include <EditIntf.hpp>
- #endif
-
- #ifndef VirtIntfHPP
- #include <VirtIntf.hpp>
- #endif
-
- #ifndef ClassesHPP
- #include <Classes.hpp>
- #endif
-
- #ifndef WindowsHPP
- #include <Windows.hpp>
- #endif
-
- #ifndef SystemHPP
- #include <System.hpp>
- #endif
-
- 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 TIMenuItemIntf ThisClass;
- typedef Virtintf::TInterface inherited;
-
- public:
- virtual System::Boolean __stdcall DestroyMenuItem(void) = 0;
- virtual System::Integer __stdcall GetIndex(void) = 0;
- virtual System::Integer __stdcall GetItemCount(void) = 0;
- virtual TIMenuItemIntf *__stdcall GetItem(System::Integer Index) = 0;
- virtual System::AnsiString __stdcall GetName(void) = 0;
- virtual TIMenuItemIntf *__stdcall GetParent(void) = 0;
- virtual System::AnsiString __stdcall GetCaption(void) = 0;
- virtual System::Boolean __stdcall SetCaption(const System::AnsiString Caption) = 0;
- virtual System::Integer __stdcall GetShortCut(void) = 0;
- virtual System::Boolean __stdcall SetShortCut(System::Integer ShortCut) = 0;
- virtual TIMenuFlags __stdcall GetFlags(void) = 0;
- virtual System::Boolean __stdcall SetFlags( TIMenuFlags Mask, TIMenuFlags Flags) = 0;
- virtual System::Integer __stdcall GetGroupIndex(void) = 0;
- virtual System::Boolean __stdcall SetGroupIndex(System::Integer GroupIndex) = 0;
- virtual System::AnsiString __stdcall GetHint(void) = 0;
- virtual System::Boolean __stdcall SetHint( System::AnsiString Hint) = 0;
- virtual System::Integer __stdcall GetContext(void) = 0;
- virtual System::Boolean __stdcall SetContext(System::Integer Context) = 0;
- virtual TIMenuClickEvent __stdcall GetOnClick(void) = 0;
- virtual System::Boolean __stdcall SetOnClick(TIMenuClickEvent Click) = 0;
- virtual TIMenuItemIntf *__stdcall InsertItem(System::Integer Index, System::AnsiString Caption, System::AnsiString
- Name, System::AnsiString Hint, System::Integer ShortCut, System::Integer Context, System::Integer
- 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 TIMainMenuIntf ThisClass;
- 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 TIAddInNotifier ThisClass;
- typedef Virtintf::TInterface inherited;
-
- public:
- virtual void __stdcall FileNotification(TFileNotification NotifyCode, const System::AnsiString FileName
- , System::Boolean &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 System::Boolean __stdcall (*TProjectEnumProc)(System::Pointer 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 TIToolServices ThisClass;
- typedef Virtintf::TInterface inherited;
-
- public:
- virtual System::Boolean __stdcall CloseProject(void) = 0;
- virtual System::Boolean __stdcall OpenProject(const System::AnsiString ProjName) = 0;
- virtual System::Boolean __stdcall OpenProjectInfo(const System::AnsiString ProjName) = 0;
- virtual System::Boolean __stdcall SaveProject(void) = 0;
- virtual System::Boolean __stdcall CloseFile(const System::AnsiString FileName) = 0;
- virtual System::Boolean __stdcall SaveFile(const System::AnsiString FileName) = 0;
- virtual System::Boolean __stdcall OpenFile(const System::AnsiString FileName) = 0;
- virtual System::Boolean __stdcall ReloadFile(const System::AnsiString FileName) = 0;
- virtual System::Integer __stdcall ModalDialogBox(System::Integer Instance, System::PChar TemplateName
- , System::Integer WndParent, System::Pointer DialogFunc, System::Longint InitParam) = 0;
- virtual System::Boolean __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 System::Integer __stdcall GetParentHandle(void) = 0;
- virtual System::AnsiString __stdcall GetProjectName(void) = 0;
- virtual System::Integer __stdcall GetUnitCount(void) = 0;
- virtual System::AnsiString __stdcall GetUnitName(System::Integer Index) = 0;
- virtual System::Boolean __stdcall EnumProjectUnits(TProjectEnumProc EnumProc, System::Pointer Param
- ) = 0;
- virtual System::Integer __stdcall GetFormCount(void) = 0;
- virtual System::AnsiString __stdcall GetFormName(System::Integer Index) = 0;
- virtual System::AnsiString __stdcall GetCurrentFile(void) = 0;
- virtual System::Boolean __stdcall IsFileOpen(const System::AnsiString FileName) = 0;
- virtual System::Boolean __stdcall GetNewModuleName( System::AnsiString &UnitIdent, System::AnsiString &
- FileName) = 0;
- virtual System::Integer __stdcall GetModuleCount(void) = 0;
- virtual System::AnsiString __stdcall GetModuleName(System::Integer Index) = 0;
- virtual System::Integer __stdcall GetComponentCount(System::Integer ModIndex) = 0;
- virtual System::AnsiString __stdcall GetComponentName(System::Integer ModIndex, System::Integer CompIndex
- ) = 0;
- virtual System::Boolean __stdcall RegisterFileSystem(Fileintf::TIVirtualFileSystem *AVirtualFileSystem
- ) = 0;
- virtual System::Boolean __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 System::Boolean __stdcall AddNotifier(TIAddInNotifier *AddInNotifier) = 0;
- virtual System::Boolean __stdcall RemoveNotifier(TIAddInNotifier *AddInNotifier) = 0;
- virtual System::Pointer __stdcall NewPascalString(System::PChar Str) = 0;
- virtual void __stdcall FreePascalString(System::Pointer &Str) = 0;
- virtual void __stdcall ReferencePascalString(System::Pointer &Str) = 0;
- virtual void __stdcall AssignPascalString(System::Pointer &Dest, System::Pointer &Src) = 0;
- virtual void __stdcall RaiseException(const System::AnsiString Message) = 0;
- virtual System::AnsiString __stdcall GetBaseRegistryKey(void) = 0;
- virtual Editintf::TIModuleInterface *__stdcall CreateProntoModule(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;
- 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 */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Toolintf;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // ToolIntf
-