home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
LIBINTF.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
15KB
|
346 lines
//----------------------------------------------------------------------------
// LibIntf.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: LibIntf.pas
//----------------------------------------------------------------------------
#ifndef LibIntfHPP
#define LibIntfHPP
//----------------------------------------------------------------------------
#include <FileIntf.hpp>
#include <EditIntf.hpp>
#include <Exptintf.hpp>
#include <ToolIntf.hpp>
#include <DsgnIntf.hpp>
#include <TypInfo.hpp>
#include <VirtIntf.hpp>
#include <Graphics.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <Windows.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Libintf
{
//-- type declarations -------------------------------------------------------
enum TDesignDialog { ddAlign, ddSize, ddScale, ddTabOrder, ddCreationOrder, ddSaveTemplate };
struct TDesignerOptions
{
bool DisplayGrid;
bool SnapToGrid;
int GridSizeX;
int GridSizeY;
bool ShowComponentCaptions;
} ;
class __declspec(delphiclass) TIAppBuilder;
class __declspec(delphiclass) TICompClass;
class __declspec(pascalimplementation) TIAppBuilder : public Virtintf::TInterface
{
typedef Virtintf::TInterface inherited;
public:
virtual void __fastcall ActiveFormModified(void) = 0;
virtual void __fastcall ComponentRenamed(const System::AnsiString CurName, const System::AnsiString
NewName) = 0;
virtual void __fastcall ExecDesignDialog(TDesignDialog DesignDialog) = 0;
virtual void __fastcall FormActivated(void) = 0;
virtual HWND __fastcall GetAppHandle(void) = 0;
virtual System::AnsiString __fastcall GetPathAndBaseExeName(void) = 0;
virtual System::AnsiString __fastcall GetBaseRegKey(void) = 0;
virtual TICompClass* __fastcall GetCurCompClass(void) = 0;
virtual long __fastcall GetCurTime(void) = 0;
virtual void __fastcall GetDesignerOptions(TDesignerOptions &Options) = 0;
virtual Windows::TRect __fastcall GetMainWindowSize(void) = 0;
virtual bool __fastcall LockState(void) = 0;
virtual void __fastcall ModalEdit(char EditKey, void * ReturnWindow) = 0;
virtual void __fastcall OpenForm(const System::AnsiString FormName, bool Show) = 0;
virtual void __fastcall RaiseException(const System::AnsiString Message) = 0;
virtual void __fastcall ResetCompClass(void) = 0;
virtual void __fastcall SelectionChanged(void) = 0;
virtual void __fastcall ShowClassHelp(const System::AnsiString ClassName) = 0;
virtual void __fastcall SelectItemName(const System::AnsiString PropertyName) = 0;
virtual void __fastcall ValidateActiveModule(void) = 0;
virtual void __fastcall AddExpert(Exptintf::TIExpert* Expert) = 0;
virtual void __fastcall RemoveExpert(Exptintf::TIExpert* Expert) = 0;
virtual Toolintf::TIToolServices* __fastcall GetToolServices(void) = 0;
virtual void __fastcall ExpertsLoaded(void) = 0;
virtual Fileintf::TIVirtualFileSystem* __fastcall GetFileSystem(const System::AnsiString Ident) = 0
;
virtual System::AnsiString __fastcall MakeBackupFileName(const System::AnsiString FileName) = 0;
virtual bool __fastcall CreateBackupFile(void) = 0;
virtual bool __fastcall WinHelp(const System::AnsiString HelpFile, int Command, long Data) = 0;
virtual void __fastcall ValidateFormEdit(void) = 0;
public:
/* TInterface.Create */ __fastcall TIAppBuilder(void) : Virtintf::TInterface() { }
public:
/* TObject.Destroy */ __fastcall virtual ~TIAppBuilder(void) { }
};
class __declspec(pascalimplementation) TICompClass : public Virtintf::TInterface
{
typedef Virtintf::TInterface inherited;
public:
virtual POINT __fastcall GetBitmapPos(bool Selected) = 0;
virtual System::AnsiString __fastcall GetClassName(void) = 0;
virtual System::AnsiString __fastcall GetDefaultPage(void) = 0;
virtual int __fastcall GetModuleIndex(void) = 0;
public:
/* TInterface.Create */ __fastcall TICompClass(void) : Virtintf::TInterface() { }
public:
/* TObject.Destroy */ __fastcall virtual ~TICompClass(void) { }
};
enum TPropKind { pkProperties, pkEvents };
class __declspec(delphiclass) TIProperty;
typedef void __fastcall (__closure *TGetPropProc)(TIProperty* Prop);
enum LibIntf_3 { fsVisible, fsIconic, fsZoomed };
typedef Set<LibIntf_3, fsVisible, fsZoomed> TFormState;
enum TEditAction { eaUndo, eaCut, eaCopy, eaPaste, eaDelete, eaSelectAll, eaBringToFront, eaSendToBack,
eaAlignToGrid };
enum LibIntf_4 { esCanUndo, esCanCut, esCanCopy, esCanPaste, esCanDelete, esCanZOrder, esCanAlignGrid,
esCanEditOle, esCanTabOrder, esCanCreationOrder, esCanPrint };
typedef Set<LibIntf_4, esCanUndo, esCanPrint> TEditState;
enum TShowState { ssNormal, ssMinimized, ssMaximized };
enum TAffect { afTop, afLeft, afBottom, afRight, afHCenter, afVCenter, afHSpace, afVSpace, afHWinCenter,
afVWinCenter, afNothing };
enum TSizeAffect { asHGrow, asHShrink, asHAbsolute, asVGrow, asVShrink, asVAbsolute, asNothing };
class __declspec(delphiclass) TIFile;
class __declspec(pascalimplementation) TIFile : public Virtintf::TInterface
{
typedef Virtintf::TInterface inherited;
public:
virtual Virtintf::TIStream* __fastcall FormFileOpen(void) = 0;
virtual System::AnsiString __fastcall GetFileName(void) = 0;
virtual long __fastcall GetTimeAtLoad(void) = 0;
virtual long __fastcall GetModifyTime(void) = 0;
virtual bool __fastcall CheckFileDate(void) = 0;
virtual void __fastcall Rename(const System::AnsiString NewFileName) = 0;
virtual void __fastcall Save(void) = 0;
public:
/* TInterface.Create */ __fastcall TIFile(void) : Virtintf::TInterface() { }
public:
/* TObject.Destroy */ __fastcall virtual ~TIFile(void) { }
};
class __declspec(delphiclass) TIForm;
typedef void __fastcall (__closure *TGetFormProc)(TIForm* AForm);
enum TDesignerKind { dkForm, dkDataModule };
class __declspec(delphiclass) TICompInfo;
class __declspec(delphiclass) TIModule;
class __declspec(pascalimplementation) TIForm : public TIFile
{
typedef TIFile inherited;
public:
virtual void __fastcall Align(TAffect Affect) = 0;
virtual void __fastcall CreateComponent(TICompClass* CompClass) = 0;
virtual System::AnsiString __fastcall FindCompClass(const System::AnsiString CompName) = 0;
virtual System::AnsiString __fastcall GetAncestorName(void) = 0;
virtual int __fastcall GetCompCount(void) = 0;
virtual void __fastcall GetDependentForms(TGetFormProc Proc) = 0;
virtual TDesignerKind __fastcall GetDesignerKind(void) = 0;
virtual void __fastcall GetFormDependencies(TGetFormProc Proc) = 0;
virtual void * __fastcall GetNVComp(int Index) = 0;
virtual TICompInfo* __fastcall GetCompInfo(int Index) = 0;
virtual TIModule* __fastcall GetModule(void) = 0;
virtual System::AnsiString __fastcall GetCompName(int Index) = 0;
virtual System::AnsiString __fastcall GetFileSystem(void) = 0;
virtual Editintf::TIFormInterface* __fastcall GetFormInterface(void) = 0;
virtual System::AnsiString __fastcall GetFormName(void) = 0;
virtual HBITMAP __fastcall GetFormImage(void) = 0;
virtual void __fastcall GetFormUnits(Classes::TGetStrProc Proc) = 0;
virtual TFormState __fastcall GetState(void) = 0;
virtual int __fastcall GetTabCompCount(void) = 0;
virtual bool __fastcall GetTabCompInfo(int Order, System::AnsiString &Name, void * &Comp) = 0;
virtual int __fastcall GetObjectMenuItemCount(void) = 0;
virtual System::AnsiString __fastcall GetObjectMenuItem(int Index) = 0;
virtual void __fastcall ObjectMenuAction(int Index) = 0;
virtual void __fastcall Hide(void) = 0;
virtual void __fastcall RenameFormMethod(const System::AnsiString CurName, const System::AnsiString
NewName) = 0;
virtual void __fastcall RemoveDependentLinks(void) = 0;
virtual void __fastcall SaveInto(const System::AnsiString AName) = 0;
virtual void __fastcall Scale(int Factor) = 0;
virtual void __fastcall SetFileSystem(const System::AnsiString FileSystem) = 0;
virtual void __fastcall SetFormName(const System::AnsiString AName) = 0;
virtual void __fastcall SetSelection(const System::AnsiString Name) = 0;
virtual void __fastcall SetNVComp(void * Comp, int Order) = 0;
virtual void __fastcall SetTabCompOrder(void * Comp, int Order) = 0;
virtual void __fastcall Show(void) = 0;
virtual void __fastcall ShowAs(TShowState ShowState) = 0;
virtual void __fastcall Size(TSizeAffect Affect, int Value) = 0;
public:
/* TInterface.Create */ __fastcall TIForm(void) : Libintf::TIFile() { }
public:
/* TObject.Destroy */ __fastcall virtual ~TIForm(void) { }
};
class __declspec(delphiclass) TILibrary;
class __declspec(pascalimplementation) TILibrary : public Virtintf::TInterface
{
typedef Virtintf::TInterface inherited;
public:
virtual TIForm* __fastcall CreateForm(TIModule* AModule, const System::AnsiString AFileName, bool Existing
, const System::AnsiString AFormName, const System::AnsiString AAncestor, const System::AnsiString
AFileSystem) = 0;
virtual TIForm* __fastcall CreateFromStream(TIModule* AModule, const System::AnsiString AFileName,
const System::AnsiString AFileSystem, Virtintf::TIStream* IStream) = 0;
virtual void __fastcall DesignerOptionsChanged(void) = 0;
virtual void __fastcall EditAction(TEditAction Action) = 0;
virtual TIFile* __fastcall FindFile(const System::AnsiString FileName) = 0;
virtual TIForm* __fastcall GetActiveForm(void) = 0;
virtual void __fastcall GetClassUnits(const System::AnsiString ClassName, Classes::TGetStrProc Proc
) = 0;
virtual TICompClass* __fastcall GetCompClass(int Index) = 0;
virtual int __fastcall GetCompClassCount(void) = 0;
virtual void __fastcall GetCompHierarchy(Classes::TGetStrProc Proc) = 0;
virtual HBITMAP __fastcall GetComponentBitmap(void) = 0;
virtual TEditState __fastcall GetEditState(void) = 0;
virtual int __fastcall GetModuleCount(void) = 0;
virtual System::AnsiString __fastcall GetModuleName(int Index) = 0;
virtual bool __fastcall GetOleCtrlHelp(const System::AnsiString Member, int &HelpCtx, System::AnsiString &
HelpFile) = 0;
virtual void __fastcall GetProperties(TPropKind PropKind, TGetPropProc Proc) = 0;
virtual System::AnsiString __fastcall GetSelectionName(void) = 0;
virtual System::AnsiString __fastcall GetSelectionType(void) = 0;
virtual void __fastcall HideWindows(void) = 0;
virtual void __fastcall IsDesignMsg(MSG &Msg, bool &Handled) = 0;
virtual bool __fastcall IsTopmostForm(HWND Wnd) = 0;
virtual void __fastcall ModalEditDone(void * ReturnWindow) = 0;
virtual void __fastcall RaiseException(const System::AnsiString Message) = 0;
virtual void __fastcall ShowWindows(void) = 0;
virtual void __fastcall SetLockState(bool State) = 0;
virtual void __fastcall SetProjectName( System::AnsiString Name) = 0;
public:
/* TInterface.Create */ __fastcall TILibrary(void) : Virtintf::TInterface() { }
public:
/* TObject.Destroy */ __fastcall virtual ~TILibrary(void) { }
};
class __declspec(pascalimplementation) TIModule : public Virtintf::TInterface
{
typedef Virtintf::TInterface inherited;
public:
virtual void __fastcall Activate(bool IsForm) = 0;
virtual void __fastcall CreateMethod(const System::AnsiString Name, Typinfo::PTypeData TypeData) = 0
;
virtual void __fastcall FormModified(void) = 0;
virtual System::AnsiString __fastcall GetAncestorClassName(const System::AnsiString ClassName) = 0;
virtual void __fastcall GetMethods(Typinfo::PTypeData TypeData, Classes::TGetStrProc Proc) = 0;
virtual bool __fastcall FormIsTopmost(void) = 0;
virtual bool __fastcall MethodExists(const System::AnsiString Name) = 0;
virtual void __fastcall RenameComponent(TICompInfo* CompInfo, const System::AnsiString CurName, const System::AnsiString
NewName) = 0;
virtual void __fastcall RenameForm(TICompInfo* CompInfo, const System::AnsiString NewName) = 0;
virtual void __fastcall RenameMethod(const System::AnsiString CurName, const System::AnsiString NewName
) = 0;
virtual void __fastcall SaveInto(const System::AnsiString AName) = 0;
virtual void __fastcall ShowMethod(const System::AnsiString Name) = 0;
virtual void __fastcall GetImportedForms(Classes::TGetStrProc Proc) = 0;
virtual void __fastcall ImportForm(const System::AnsiString FormName) = 0;
virtual void __fastcall Notify(Editintf::TNotifyCode NotifyCode) = 0;
virtual void __fastcall SwapSourceFormView(void) = 0;
public:
/* TInterface.Create */ __fastcall TIModule(void) : Virtintf::TInterface() { }
public:
/* TObject.Destroy */ __fastcall virtual ~TIModule(void) { }
};
class __declspec(pascalimplementation) TIProperty : public Virtintf::TInterface
{
typedef Virtintf::TInterface inherited;
public:
virtual void __fastcall Activate(void) = 0;
virtual bool __fastcall AllEqual(void) = 0;
virtual void __fastcall Edit(void) = 0;
virtual Dsgnintf::TPropertyAttributes __fastcall GetAttributes(void) = 0;
virtual System::AnsiString __fastcall GetCompClassName(void) = 0;
virtual int __fastcall GetEditLimit(void) = 0;
virtual bool __fastcall GetEditValue( System::AnsiString &Value) = 0;
virtual System::AnsiString __fastcall GetName(void) = 0;
virtual void __fastcall GetProperties(TGetPropProc Proc) = 0;
virtual Typinfo::PTypeInfo __fastcall GetPropType(void) = 0;
virtual System::AnsiString __fastcall GetValue(void) = 0;
virtual void __fastcall GetValues(Classes::TGetStrProc Proc) = 0;
virtual void __fastcall Revert(void) = 0;
virtual void __fastcall SetValue(const System::AnsiString Value) = 0;
public:
/* TInterface.Create */ __fastcall TIProperty(void) : Virtintf::TInterface() { }
public:
/* TObject.Destroy */ __fastcall virtual ~TIProperty(void) { }
};
class __declspec(pascalimplementation) TICompInfo : public Virtintf::TInterface
{
typedef Virtintf::TInterface inherited;
public:
virtual void __fastcall ClearEvent(int Index) = 0;
virtual System::AnsiString __fastcall GetClassName(void) = 0;
virtual int __fastcall GetEventCount(void) = 0;
virtual Typinfo::PPropInfo __fastcall GetEventInfo(int Index) = 0;
virtual System::AnsiString __fastcall GetEventValue(int Index) = 0;
virtual void * __fastcall GetComponentHandle(void) = 0;
public:
/* TInterface.Create */ __fastcall TICompInfo(void) : Virtintf::TInterface() { }
public:
/* TObject.Destroy */ __fastcall virtual ~TICompInfo(void) { }
};
typedef TILibrary* __fastcall (*TInitLibraryFunc)(TIAppBuilder* App);
//-- var, const, procedure ---------------------------------------------------
#define LibrarySignature "COMPLIB0054"
//-- template instantiations -------------------------------------------------
template class TEditState ;
template class TFormState ;
} /* namespace Libintf */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Libintf;
#endif
//-- end unit ----------------------------------------------------------------
#endif // LibIntf