home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
LIBMAIN.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
36KB
|
830 lines
//----------------------------------------------------------------------------
// LibMain.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: LibMain.pas
//----------------------------------------------------------------------------
#ifndef LibMainHPP
#define LibMainHPP
//----------------------------------------------------------------------------
#include <OleCtrls.hpp>
#include <Dialogs.hpp>
#include <DsgnWnds.hpp>
#include <EditIntf.hpp>
#include <VirtFile.hpp>
#include <Update.hpp>
#include <LibIntf.hpp>
#include <IStreams.hpp>
#include <VirtIntf.hpp>
#include <DsgnIntf.hpp>
#include <Exptintf.hpp>
#include <TypInfo.hpp>
#include <Proxies.hpp>
#include <Graphics.hpp>
#include <Controls.hpp>
#include <Menus.hpp>
#include <Forms.hpp>
#include <Messages.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <Windows.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Libmain
{
//-- type declarations -------------------------------------------------------
class __declspec(delphiclass) TDesignerToolWindow;
class __declspec(delphiclass) TWindowDesigner;
class __declspec(delphiclass) TLibForm;
class __declspec(pascalimplementation) TLibForm : public Libintf::TIForm
{
typedef Libintf::TIForm inherited;
private:
Libintf::TEditState __fastcall GetEditState(void);
Controls::TWinControl* __fastcall GetTabParent(void);
Controls::TWinControl* __fastcall GetTabComponent(Controls::TWinControl* AParent, int Order);
void __fastcall Modified(void);
public:
Libintf::TIModule* Module;
TWindowDesigner* Designer;
Classes::TStream* FormStream;
bool Visible;
TWindowState WindowState;
__fastcall TLibForm(Libintf::TIModule* AModule, const System::AnsiString AFileName, bool Existing,
Virtintf::TIStream* AForm, const System::AnsiString AFormName, const System::AnsiString AncestorName
, const System::AnsiString AFileSystem);
__fastcall virtual ~TLibForm(void);
virtual bool __fastcall CheckFileDate(void);
virtual void __fastcall Align(Libintf::TAffect Affect);
virtual void __fastcall CreateComponent(Libintf::TICompClass* CompClass);
void __fastcall EditAction(Libintf::TEditAction Action);
virtual System::AnsiString __fastcall FindCompClass(const System::AnsiString CompName);
virtual Virtintf::TIStream* __fastcall FormFileOpen(void);
virtual System::AnsiString __fastcall GetAncestorName(void);
virtual int __fastcall GetCompCount(void);
virtual void __fastcall GetDependentForms(Libintf::TGetFormProc Proc);
virtual Libintf::TDesignerKind __fastcall GetDesignerKind(void);
virtual void __fastcall GetFormDependencies(Libintf::TGetFormProc Proc);
virtual void * __fastcall GetNVComp(int Index);
virtual Libintf::TICompInfo* __fastcall GetCompInfo(int Index);
virtual System::AnsiString __fastcall GetFileName(void);
virtual long __fastcall GetModifyTime(void);
virtual Libintf::TIModule* __fastcall GetModule(void);
virtual System::AnsiString __fastcall GetCompName(int Index);
virtual System::AnsiString __fastcall GetFileSystem(void);
virtual Editintf::TIFormInterface* __fastcall GetFormInterface(void);
virtual System::AnsiString __fastcall GetFormName(void);
virtual HBITMAP __fastcall GetFormImage(void);
virtual void __fastcall GetFormUnits(Classes::TGetStrProc Proc);
virtual Libintf::TFormState __fastcall GetState(void);
virtual int __fastcall GetTabCompCount(void);
virtual bool __fastcall GetTabCompInfo(int Order, System::AnsiString &Name, void * &Comp);
virtual int __fastcall GetObjectMenuItemCount(void);
virtual System::AnsiString __fastcall GetObjectMenuItem(int Index);
virtual long __fastcall GetTimeAtLoad(void);
virtual void __fastcall ObjectMenuAction(int Index);
virtual void __fastcall Rename(const System::AnsiString NewFileName);
virtual void __fastcall RenameFormMethod(const System::AnsiString CurName, const System::AnsiString
NewName);
virtual void __fastcall RemoveDependentLinks(void);
virtual void __fastcall Save(void);
virtual void __fastcall SetFileSystem(const System::AnsiString FileSystem);
virtual void __fastcall SetFormName(const System::AnsiString AName);
virtual void __fastcall Scale(int Factor);
virtual void __fastcall SetSelection(const System::AnsiString Name);
virtual void __fastcall SetNVComp(void * Comp, int Order);
virtual void __fastcall SetTabCompOrder(void * Comp, int Order);
virtual void __fastcall Show(void);
virtual void __fastcall Hide(void);
virtual void __fastcall ShowAs(Libintf::TShowState ShowState);
virtual void __fastcall Size(Libintf::TSizeAffect Affect, int Value);
};
class __declspec(delphiclass) TGrabHandles;
class __declspec(delphiclass) TSelection;
class __declspec(pascalimplementation) TSelection : public System::TObject
{
typedef System::TObject inherited;
private:
TWindowDesigner* FDesigner;
Classes::TComponent* FComponent;
Dsgnintf::TComponentEditor* FEditor;
bool FMarked;
Byte FReserved;
protected:
virtual Windows::TRect __fastcall GetBoundsRect(void) = 0;
virtual int __fastcall GetDimension(int Index) = 0;
virtual Controls::TWinControl* __fastcall GetParent(void) = 0;
virtual void __fastcall Invalidate(void) = 0;
virtual void __fastcall SetBoundsRect(const Windows::TRect &Value) = 0;
virtual void __fastcall SetDimension(int Index, int Value) = 0;
void __fastcall SetMarked(bool Value);
public:
__fastcall TSelection(TWindowDesigner* Designer, Classes::TComponent* Component);
__fastcall virtual ~TSelection(void);
virtual void __fastcall ZOrder(bool Front) = 0;
virtual POINT __fastcall ClientToScreen(const POINT &P) = 0;
__property Classes::TComponent* Component = {read=FComponent, nodefault};
__property Dsgnintf::TComponentEditor* Editor = {read=FEditor, nodefault};
__property Windows::TRect BoundsRect = {read=GetBoundsRect, write=SetBoundsRect};
__property int Left = {read=GetDimension, write=SetDimension, index=0, nodefault};
__property int Top = {read=GetDimension, write=SetDimension, index=1, nodefault};
__property int Width = {read=GetDimension, write=SetDimension, index=2, nodefault};
__property int Height = {read=GetDimension, write=SetDimension, index=3, nodefault};
__property bool Marked = {read=FMarked, write=SetMarked, nodefault};
__property Controls::TWinControl* Parent = {read=GetParent, nodefault};
};
class __declspec(pascalimplementation) TGrabHandles : public System::TObject
{
typedef System::TObject inherited;
private:
TWindowDesigner* FDesigner;
void *FObjectInstance;
TSelection* FSelection;
Controls::TWinControl* FParent;
bool FVisible;
bool FActive;
HWND FHandles[8];
HICON FCursors[8];
void __fastcall SetActive(bool Value);
void __fastcall SetSelection(TSelection* NewSelection);
void __fastcall Update(void);
long __fastcall WndProc(HWND Window, Cardinal Message, long WParam, long LParam);
public:
__fastcall TGrabHandles(TWindowDesigner* ADesigner);
__fastcall virtual ~TGrabHandles(void);
void __fastcall Hide(void);
void __fastcall Show(void);
void __fastcall Invalidate(void);
__property bool Active = {read=FActive, write=SetActive, nodefault};
__property TSelection* Selection = {read=FSelection, write=SetSelection, nodefault};
};
enum TDragAction { daNone, daCreate, daSelect, daMove, daSize };
enum TCoordinate { cLeft, cTop, cRight, cBottom };
typedef Set<TCoordinate, cLeft, cBottom> TCoordinates;
class __declspec(delphiclass) TDragTarget;
class __declspec(pascalimplementation) TDragTarget : public System::TObject
{
typedef System::TObject inherited;
private:
Dsgnintf::TFormDesigner* FDesigner;
public:
__fastcall virtual TDragTarget(Dsgnintf::TFormDesigner* ADesigner);
virtual bool __fastcall DragOver(System::TObject* Target, System::TObject* Source, int X, int Y, Controls::TDragState
State) = 0;
virtual void __fastcall DragDrop(System::TObject* Target, System::TObject* Source, int X, int Y) = 0
;
__property Dsgnintf::TFormDesigner* Designer = {read=FDesigner, nodefault};
public:
/* TObject.Destroy */ __fastcall virtual ~TDragTarget(void) { }
};
class __declspec(delphiclass) TFormIntf;
class __declspec(pascalimplementation) TFormIntf : public Editintf::TIFormInterface
{
typedef Editintf::TIFormInterface inherited;
private:
TWindowDesigner* FDesigner;
public:
__fastcall TFormIntf(TWindowDesigner* ADesigner);
__fastcall virtual ~TFormIntf(void);
virtual System::AnsiString __stdcall FileName(void);
virtual bool __stdcall FormModified(void);
virtual bool __stdcall MarkModified(void);
virtual Editintf::TIComponentInterface* __stdcall GetFormComponent(void);
virtual Editintf::TIComponentInterface* __stdcall FindComponent(const System::AnsiString Name);
virtual Editintf::TIComponentInterface* __stdcall GetComponentFromHandle(void * ComponentHandle);
virtual int __stdcall GetSelCount(void);
virtual Editintf::TIComponentInterface* __stdcall GetSelComponent(int Index);
virtual Editintf::TIComponentInterface* __stdcall GetCreateParent(void);
virtual Editintf::TIComponentInterface* __stdcall CreateComponent(Editintf::TIComponentInterface* Container
, const System::AnsiString TypeName, int X, int Y, int W, int H);
};
class __declspec(delphiclass) TContainer;
enum TGrabLocation { gTopLeft, gTop, gTopRight, gRight, gBottomRight, gBottom, gBottomLeft, gLeft };
class __declspec(pascalimplementation) TWindowDesigner : public Dsgnintf::TFormDesigner
{
typedef Dsgnintf::TFormDesigner inherited;
public:
TLibForm* LibForm;
Classes::TList* Containers;
Controls::TWinControl* ContainerWindow;
Classes::TComponent* Root;
private:
Classes::TMemoryStream* FormStream;
long ModifyTime;
long DiskAge;
TGrabHandles* GrabHandles;
Classes::TList* Selections;
int SelectLevel;
bool SelectionChanged;
Byte Reserved;
Controls::TControlCanvas* Canvas;
POINT GridSize;
bool GridAlign;
bool DisplayGrid;
bool ShowCaptions;
Graphics::TBitmap* GridImage;
POINT ImageGridSize;
Graphics::TColor ImageColor;
TDragAction DragAction;
TCoordinates DragCoords;
Controls::TWinControl* DragParent;
POINT Anchor;
Windows::TRect DragRect;
System::AnsiString FileName;
Classes::TStream* UndoStream;
Controls::TWinControl* UndoParent;
Dsgnintf::TComponentEditor* FormEditor;
Menus::TPopupMenu* LocalMenu;
bool InUndo;
bool CreateContainers;
Update::TUpdateManager* UpdateManager;
Classes::TStrings* ImportedFormList;
Classes::TList* Dependencies;
Classes::TList* Dependents;
bool DependenciesUpToDate;
TDragTarget* VCLDragTarget;
Virtfile::TVirtualFileSystem* FFileSystem;
TFormIntf* FormInterface;
System::TMetaClass*RootBaseClass;
TWindowDesigner* AncestorDesigner;
bool ReadError;
bool IgnoringErrors;
Menus::TMenuItem* RevertItem;
bool FIgnoreRename;
bool FValidateDeletes;
__fastcall TWindowDesigner(TLibForm* AForm, const System::AnsiString AFileName, bool Existing, Virtintf::TIStream*
IStream, const System::AnsiString AFormName, const System::AnsiString AncestorName, const System::AnsiString
AFileSystem);
__fastcall virtual ~TWindowDesigner(void);
void __fastcall Activate(bool Activating);
void __fastcall Align(Libintf::TAffect Affect);
void __fastcall BeginSelect(void);
bool __fastcall CanPaste(void);
void __fastcall ClearDependents(void);
void __fastcall ClearDependencies(void);
void __fastcall UpdateDependencies(void);
void __fastcall ClearSelection(void);
void __fastcall Close(void);
void __fastcall ComponentInserted(Classes::TComponent* Component);
void __fastcall ComponentRemoved(Classes::TComponent* Component);
void __fastcall ComponentRead(Classes::TComponent* Component);
void __fastcall ComponentReadAdjust(Classes::TComponent* Component);
void __fastcall CopySelection(void);
void __fastcall CreateIComponent(Libintf::TICompClass* CompClass);
virtual Sysutils::TMethod __fastcall CreateMethod(const System::AnsiString Name, Typinfo::PTypeData
TypeData);
void __fastcall CutSelection(void);
void __fastcall DeleteSelection(void);
Classes::TComponent* __fastcall DoCreateComponent(System::TMetaClass* ComponentClass, const Windows::TRect
&Rect);
void __fastcall DoDragCreate(void);
void __fastcall DoDragSelect(void);
void __fastcall DoDragMove(void);
void __fastcall DoDragSize(void);
void __fastcall DragBegin(const POINT &Pos);
void __fastcall DragCancel(void);
void __fastcall DragEnd(const POINT &Pos, bool Accept);
void __fastcall DragTo(const POINT &Pos);
void __fastcall DrawDrag(void);
void __fastcall DrawDragRect(const Windows::TRect &R);
void __fastcall Edit(Classes::TComponent* Component);
void __fastcall EndSelect(void);
TContainer* __fastcall FindContainer(Classes::TComponent* Component);
Controls::TWinControl* __fastcall FindParentControl(Classes::TComponent* Component);
Controls::TWinControl* __fastcall FindCurrentParent(void);
Classes::TComponent* __fastcall FindNearest(Classes::TComponent* CurComponent, Word ArrowKey);
Classes::TComponent* __fastcall FindNextComponent(Classes::TComponent* CurComponent, bool GoForward
);
TSelection* __fastcall FindSelection(Classes::TComponent* Component);
void __fastcall ForceCommonSelectParent(Controls::TWinControl* CommonParent);
void __fastcall FreeSelections(void);
Windows::TRect __fastcall GetDragRect(const POINT &Pos);
void __fastcall GetDependentForms(Libintf::TGetFormProc Proc);
void __fastcall GetFormDependencies(Libintf::TGetFormProc Proc);
Editintf::TIFormInterface* __fastcall GetFormInterface(void);
Classes::TMemoryStream* __fastcall GetFormStream(void);
POINT __fastcall GetGridOffset(void);
virtual System::AnsiString __fastcall GetMethodName(const Sysutils::TMethod &Method);
virtual void __fastcall GetMethods(Typinfo::PTypeData TypeData, Classes::TGetStrProc Proc);
virtual System::AnsiString __fastcall GetPrivateDirectory(void);
virtual void __fastcall GetSelections(Dsgnintf::TComponentList* List);
void __fastcall GrabHandleMouseDown(const POINT &Pos, TGrabLocation Location);
void __fastcall InsertSelection(TSelection* Selection);
virtual bool __fastcall IsDesignMsg(Controls::TControl* Sender, Messages::TMessage &Message);
void __fastcall KeyDown(Word Key);
void __fastcall KeyPress(char Ch);
void __fastcall MenuCommand(Word Command);
virtual bool __fastcall MethodExists(const System::AnsiString Name);
virtual bool __fastcall MethodFromAncestor(const Sysutils::TMethod &Method);
virtual void __fastcall Modified(void);
void __fastcall MouseDown(Classes::TComponent* Sender, const POINT &Pos, Word Keys, bool DblClick
, bool RightMouse);
void __fastcall MoveBy(const POINT &Delta, bool Size);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
virtual void __fastcall PaintGrid(void);
void __fastcall PasteSelection(void);
POINT __fastcall PointToGrid(const POINT &Pos, bool Force);
TSelection* __fastcall PrimarySelection(void);
virtual System::AnsiString __fastcall UniqueName(const System::AnsiString BaseName);
void __fastcall ReadStream(Classes::TStream* S, Classes::TComponent* Parent, bool AdjustPos);
void __fastcall ReaderFindMethod(Classes::TReader* Reader, const System::AnsiString MethodName, void *
&Address, bool &Error);
void __fastcall ReaderSetName(Classes::TReader* Reader, Classes::TComponent* Component, System::AnsiString &
Name);
void __fastcall RemoveSelection(TSelection* Selection);
void __fastcall Rename(const System::AnsiString NewFileName);
void __fastcall RenameFormMethod(const System::AnsiString CurName, const System::AnsiString NewName
);
virtual void __fastcall RenameMethod(const System::AnsiString CurName, const System::AnsiString NewName
);
void __fastcall Save(void);
void __fastcall Select(Classes::TComponent* Component, bool Extend);
void __fastcall SelectAll(void);
virtual void __fastcall SelectComponent(Classes::TComponent* Component);
Classes::TComponent* __fastcall SelectedComponent(void);
void __fastcall SetActive(bool Value);
void __fastcall SetFileSystem(const System::AnsiString FileSystem);
virtual void __fastcall SetSelections(Dsgnintf::TComponentList* List);
void __fastcall Show(void);
void __fastcall ShowAs(Libintf::TShowState ShowState);
virtual void __fastcall ShowMethod(const System::AnsiString Name);
void __fastcall Size(Libintf::TSizeAffect Affect, int Value);
void __fastcall StreamSelection(Classes::TStream* S);
int __fastcall SnapToGrid(int Coord, int GridOffset, int GridSize, bool Force);
void __fastcall UpdatingFromAncestor(System::TObject* Sender);
void __fastcall UpdatedFromAncestor(System::TObject* Sender);
void __fastcall Undo(void);
void __fastcall UpdateOptions(void);
virtual void __fastcall ValidateRename(Classes::TComponent* AComponent, const System::AnsiString CurName
, const System::AnsiString NewName);
void __fastcall ZOrder(bool Front);
void __fastcall LocalPopup(System::TObject* Sender);
void __fastcall AlignToGrid(System::TObject* Sender);
void __fastcall BringToFront(System::TObject* Sender);
void __fastcall SendToBack(System::TObject* Sender);
void __fastcall RevertComponent(System::TObject* Sender);
void __fastcall AppDialog(Libintf::TDesignDialog DesignDialog);
void __fastcall AppAlignDialog(System::TObject* Sender);
void __fastcall AppSizeDialog(System::TObject* Sender);
void __fastcall AppScaleDialog(System::TObject* Sender);
void __fastcall AppTabOrderDialog(System::TObject* Sender);
void __fastcall AppCreationOrderDialog(System::TObject* Sender);
void __fastcall AppSaveTemplateDialog(System::TObject* Sender);
void __fastcall AppViewAsText(System::TObject* Sender);
void __fastcall ComponentVerb(System::TObject* Sender);
void __fastcall InvokeLocalMenu(int X, int Y);
void __fastcall MoveContainersFront(void);
virtual void __fastcall GetComponentNames(Typinfo::PTypeData TypeData, Classes::TGetStrProc Proc);
virtual Classes::TComponent* __fastcall GetComponent(const System::AnsiString Name);
virtual System::AnsiString __fastcall GetComponentName(Classes::TComponent* Component);
void __fastcall AddImportedForm(const System::AnsiString FormName);
void __fastcall VCLDragDrop(Controls::TControl* Sender, Controls::TCMDrag &DragMsg);
virtual Classes::TComponent* __fastcall CreateComponent(System::TMetaClass* ComponentClass, Classes::TComponent*
Parent, int Left, int Top, int Width, int Height);
void __fastcall ReadObjectFromStream(Classes::TComponent* Instance, Classes::TStream* Stream);
void __fastcall ReaderObjectError(Classes::TReader* Reader, const System::AnsiString Message, bool
&Handled);
void __fastcall FindObjectMethod(Classes::TReader* Reader, const System::AnsiString MethodName, void *
&Address, bool &Error);
void __fastcall CreateRootInstance(const System::AnsiString AClassName);
void __fastcall CreateRootFrom(Classes::TStream* Stream, const System::AnsiString AClassName);
void __fastcall CreateRootAs(const System::AnsiString AClassName);
void __fastcall UpdateCreateInfoFrom(Classes::TStream* Stream, System::AnsiString &ClassName);
void __fastcall SetCreateInfo(const System::AnsiString AncestorClassName);
virtual bool __fastcall IsComponentLinkable(Classes::TComponent* Component);
virtual void __fastcall MakeComponentLinkable(Classes::TComponent* Component);
virtual Classes::TComponent* __fastcall GetRoot(void);
virtual void __fastcall Revert(Classes::TPersistent* Instance, Typinfo::PPropInfo PropInfo);
void __fastcall ResyncContainers(void);
void __fastcall RemoveDependentLinks(void);
void __fastcall RemoveDependenciesOn(Classes::TComponent* Component);
Libintf::TDesignerKind __fastcall GetDesignerKind(void);
public:
/* TObject.Create */ __fastcall TWindowDesigner(void) : Dsgnintf::TFormDesigner() { }
};
class __declspec(pascalimplementation) TDesignerToolWindow : public System::TObject
{
typedef System::TObject inherited;
private:
TWindowDesigner* FDesigner;
void *FObjectInstance;
HWND FHandle;
void __fastcall MainWndProc(Messages::TMessage &Message);
protected:
virtual void __fastcall WndProc(Messages::TMessage &Message);
public:
__fastcall TDesignerToolWindow(TWindowDesigner* Designer);
__fastcall virtual ~TDesignerToolWindow(void);
virtual void __fastcall Sync(void);
void __fastcall Invalidate(void);
virtual Windows::TRect __fastcall Position(void) = 0;
__property HWND Handle = {read=FHandle, nodefault};
__property TWindowDesigner* Designer = {read=FDesigner, nodefault};
};
class __declspec(delphiclass) TComponentToolWindow;
class __declspec(pascalimplementation) TComponentToolWindow : public TDesignerToolWindow
{
typedef TDesignerToolWindow inherited;
private:
Classes::TComponent* FComponent;
protected:
virtual void __fastcall WndProc(Messages::TMessage &Message);
public:
__fastcall TComponentToolWindow(TWindowDesigner* Designer, Classes::TComponent* Component);
public:
/* TDesignerToolWindow.Destroy */ __fastcall virtual ~TComponentToolWindow(void) { }
};
class __declspec(delphiclass) TContainerCaption;
class __declspec(pascalimplementation) TContainerCaption : public TComponentToolWindow
{
typedef TComponentToolWindow inherited;
private:
TContainer* FContainer;
Graphics::TCanvas* FCanvas;
System::AnsiString FCurrent;
protected:
virtual Windows::TRect __fastcall Position(void);
virtual void __fastcall WndProc(Messages::TMessage &Message);
public:
__fastcall TContainerCaption(TWindowDesigner* Designer, TContainer* Container);
__fastcall virtual ~TContainerCaption(void);
__property TContainer* Container = {read=FContainer, nodefault};
void __fastcall Update(void);
};
class __declspec(pascalimplementation) TContainer : public TComponentToolWindow
{
typedef TComponentToolWindow inherited;
private:
POINT FOffset;
TContainerCaption* FCaption;
Windows::TRect __fastcall GetBoundsRect(void);
bool __fastcall GetShowCaption(void);
int __fastcall GetLeft(void);
int __fastcall GetTop(void);
void __fastcall SetBoundsRect(const Windows::TRect &Value);
void __fastcall SetShowCaption(bool Value);
void __fastcall SetLeft(int Value);
void __fastcall SetTop(int Value);
protected:
virtual Windows::TRect __fastcall Position(void);
virtual void __fastcall WndProc(Messages::TMessage &Message);
public:
__fastcall TContainer(TWindowDesigner* Designer, Classes::TComponent* Component);
__fastcall virtual ~TContainer(void);
virtual void __fastcall Sync(void);
void __fastcall Update(void);
__property Windows::TRect BoundsRect = {read=GetBoundsRect, write=SetBoundsRect};
__property int Left = {read=GetLeft, write=SetLeft, nodefault};
__property int Top = {read=GetTop, write=SetTop, nodefault};
__property Classes::TComponent* Component = {read=FComponent, nodefault};
__property TContainerCaption* Caption = {read=FCaption, nodefault};
__property bool ShowCaption = {read=GetShowCaption, write=SetShowCaption, nodefault};
};
class __declspec(delphiclass) TControlSelection;
class __declspec(pascalimplementation) TControlSelection : public TSelection
{
typedef TSelection inherited;
private:
void __fastcall GetPaintInfo(HWND &Handle, Windows::TRect &Rect);
protected:
virtual Windows::TRect __fastcall GetBoundsRect(void);
virtual int __fastcall GetDimension(int Index);
virtual Controls::TWinControl* __fastcall GetParent(void);
virtual void __fastcall Invalidate(void);
virtual void __fastcall SetBoundsRect(const Windows::TRect &Value);
virtual void __fastcall SetDimension(int Index, int Value);
public:
void __fastcall Paint(HDC DC);
virtual POINT __fastcall ClientToScreen(const POINT &P);
virtual void __fastcall ZOrder(bool Front);
public:
/* TSelection.Create */ __fastcall TControlSelection(TWindowDesigner* Designer, Classes::TComponent*
Component) : Libmain::TSelection(Designer, Component) { }
/* TSelection.Destroy */ __fastcall virtual ~TControlSelection(void) { }
};
class __declspec(delphiclass) TComponentSelection;
class __declspec(pascalimplementation) TComponentSelection : public TSelection
{
typedef TSelection inherited;
private:
TContainer* FContainer;
protected:
virtual Windows::TRect __fastcall GetBoundsRect(void);
virtual int __fastcall GetDimension(int Index);
virtual Controls::TWinControl* __fastcall GetParent(void);
virtual void __fastcall Invalidate(void);
virtual void __fastcall SetBoundsRect(const Windows::TRect &Value);
virtual void __fastcall SetDimension(int Index, int Value);
public:
__fastcall TComponentSelection(TWindowDesigner* Designer, TContainer* Container);
virtual POINT __fastcall ClientToScreen(const POINT &P);
virtual void __fastcall ZOrder(bool Front);
public:
/* TSelection.Destroy */ __fastcall virtual ~TComponentSelection(void) { }
};
class __declspec(delphiclass) TNilSelection;
class __declspec(pascalimplementation) TNilSelection : public TSelection
{
typedef TSelection inherited;
protected:
virtual Windows::TRect __fastcall GetBoundsRect(void);
virtual int __fastcall GetDimension(int Index);
virtual Controls::TWinControl* __fastcall GetParent(void);
virtual void __fastcall Invalidate(void);
virtual void __fastcall SetBoundsRect(const Windows::TRect &Value);
virtual void __fastcall SetDimension(int Index, int Value);
public:
virtual POINT __fastcall ClientToScreen(const POINT &P);
virtual void __fastcall ZOrder(bool Front);
public:
/* TSelection.Create */ __fastcall TNilSelection(TWindowDesigner* Designer, Classes::TComponent* Component
) : Libmain::TSelection(Designer, Component) { }
/* TSelection.Destroy */ __fastcall virtual ~TNilSelection(void) { }
};
class __declspec(delphiclass) TComponentIntf;
class __declspec(pascalimplementation) TComponentIntf : public Editintf::TIComponentInterface
{
typedef Editintf::TIComponentInterface inherited;
private:
Classes::TPersistent* FObject;
TWindowDesigner* FDesigner;
Typinfo::TPropList *FPropList;
Editintf::TGetChildCallback FProc;
void *FParam;
Typinfo::PPropList __fastcall GetPropList(void);
void __fastcall GetChildProc(Classes::TComponent* Child);
public:
__fastcall TComponentIntf(Classes::TPersistent* AObject, TWindowDesigner* ADesigner);
__fastcall virtual ~TComponentIntf(void);
virtual System::AnsiString __stdcall GetComponentType(void);
virtual void * __stdcall GetComponentHandle(void);
virtual Editintf::TIComponentInterface* __stdcall GetParent(void);
virtual bool __stdcall IsTControl(void);
virtual int __stdcall GetPropCount(void);
virtual System::AnsiString __stdcall GetPropName(int Index);
virtual Editintf::TPropertyType __stdcall GetPropType(int Index);
virtual Editintf::TPropertyType __stdcall GetPropTypeByName(const System::AnsiString Name);
virtual bool __stdcall GetPropValue(int Index, void *Value);
virtual bool __stdcall GetPropValueByName(const System::AnsiString Name, void *Value);
virtual bool __stdcall SetProp(int Index, const void *Value);
virtual bool __stdcall SetPropByName(const System::AnsiString Name, const void *Value);
virtual bool __stdcall GetChildren(void * Param, Editintf::TGetChildCallback Proc);
virtual int __stdcall GetControlCount(void);
virtual Editintf::TIComponentInterface* __stdcall GetControl(int Index);
virtual int __stdcall GetComponentCount(void);
virtual Editintf::TIComponentInterface* __stdcall GetComponent(int Index);
virtual bool __stdcall Select(void);
virtual bool __stdcall Focus(void);
virtual bool __stdcall Delete(void);
};
class __declspec(delphiclass) TProperty;
class __declspec(pascalimplementation) TProperty : public Libintf::TIProperty
{
typedef Libintf::TIProperty inherited;
private:
Dsgnintf::TPropertyEditor* Editor;
public:
__fastcall TProperty(Dsgnintf::TPropertyEditor* AEditor);
__fastcall virtual ~TProperty(void);
virtual void __fastcall Activate(void);
virtual bool __fastcall AllEqual(void);
virtual void __fastcall Edit(void);
virtual Dsgnintf::TPropertyAttributes __fastcall GetAttributes(void);
virtual System::AnsiString __fastcall GetCompClassName(void);
virtual int __fastcall GetEditLimit(void);
virtual bool __fastcall GetEditValue( System::AnsiString &Value);
virtual System::AnsiString __fastcall GetName(void);
virtual void __fastcall GetProperties(Libintf::TGetPropProc Proc);
virtual Typinfo::PTypeInfo __fastcall GetPropType(void);
virtual System::AnsiString __fastcall GetValue(void);
virtual void __fastcall GetValues(Classes::TGetStrProc Proc);
virtual void __fastcall Revert(void);
virtual void __fastcall SetValue(const System::AnsiString Value);
};
class __declspec(delphiclass) TCompInfo;
class __declspec(pascalimplementation) TCompInfo : public Libintf::TICompInfo
{
typedef Libintf::TICompInfo inherited;
private:
TWindowDesigner* FDesigner;
Classes::TComponent* FComponent;
Typinfo::TPropList *FList;
int FCount;
public:
__fastcall TCompInfo(TWindowDesigner* Designer, Classes::TComponent* Component);
__fastcall virtual ~TCompInfo(void);
virtual void __fastcall ClearEvent(int Index);
virtual System::AnsiString __fastcall GetClassName(void);
virtual int __fastcall GetEventCount(void);
virtual Typinfo::PPropInfo __fastcall GetEventInfo(int Index);
virtual System::AnsiString __fastcall GetEventValue(int Index);
virtual void * __fastcall GetComponentHandle(void);
};
class __declspec(delphiclass) TCompClass;
class __declspec(pascalimplementation) TCompClass : public Libintf::TICompClass
{
typedef Libintf::TICompClass inherited;
private:
System::TMetaClass*ComponentClass;
int ModuleIndex;
System::AnsiString DefaultPage;
int Offset;
public:
__fastcall TCompClass(System::TMetaClass* AComponentClass, int AModuleIndex, const System::AnsiString
ADefaultPage);
virtual POINT __fastcall GetBitmapPos(bool Selected);
virtual System::AnsiString __fastcall GetClassName(void);
virtual System::AnsiString __fastcall GetDefaultPage(void);
virtual int __fastcall GetModuleIndex(void);
public:
/* TObject.Destroy */ __fastcall virtual ~TCompClass(void) { }
};
class __declspec(delphiclass) TLibrary;
class __declspec(pascalimplementation) TLibrary : public Libintf::TILibrary
{
typedef Libintf::TILibrary inherited;
private:
Classes::TList* FormList;
TLibForm* ActiveForm;
Forms::TForm* ActiveWindow;
Dsgnintf::TComponentList* Selection;
Classes::TList* ExpertList;
Libintf::TGetPropProc PropProc;
void *ExitList;
Graphics::TBitmap* CompBitmap;
bool ControlsLocked;
void __fastcall CreateProperty(Dsgnintf::TPropertyEditor* Prop);
void __fastcall FormActivated(Libintf::TIForm* Form);
void __fastcall CreateComponentBitmap(void);
void __fastcall RegisterExperts(void);
void __fastcall UnRegisterExperts(void);
void __fastcall UpdateSelections(void);
void __fastcall UpdateFormDependents(void);
void __fastcall ShowException(System::TObject* Sender, Sysutils::Exception* E);
public:
__fastcall TLibrary(Libintf::TIAppBuilder* App);
__fastcall virtual ~TLibrary(void);
void __fastcall CancelModes(void);
virtual Libintf::TIForm* __fastcall CreateForm(Libintf::TIModule* AModule, const System::AnsiString
AFileName, bool Existing, const System::AnsiString AFormName, const System::AnsiString AAncestor,
const System::AnsiString AFileSystem);
virtual Libintf::TIForm* __fastcall CreateFromStream(Libintf::TIModule* AModule, const System::AnsiString
AFileName, const System::AnsiString AFileSystem, Virtintf::TIStream* IStream);
virtual void __fastcall DesignerOptionsChanged(void);
virtual void __fastcall EditAction(Libintf::TEditAction Action);
virtual Libintf::TIFile* __fastcall FindFile(const System::AnsiString FileName);
TLibForm* __fastcall FindForm(const System::AnsiString FormName);
virtual Libintf::TIForm* __fastcall GetActiveForm(void);
virtual void __fastcall GetClassUnits(const System::AnsiString ClassName, Classes::TGetStrProc Proc
);
virtual Libintf::TICompClass* __fastcall GetCompClass(int Index);
virtual int __fastcall GetCompClassCount(void);
virtual void __fastcall GetCompHierarchy(Classes::TGetStrProc Proc);
virtual HBITMAP __fastcall GetComponentBitmap(void);
virtual Libintf::TEditState __fastcall GetEditState(void);
virtual int __fastcall GetModuleCount(void);
virtual System::AnsiString __fastcall GetModuleName(int Index);
virtual bool __fastcall GetOleCtrlHelp(const System::AnsiString Member, int &HelpCtx, System::AnsiString &
HelpFile);
virtual void __fastcall GetProperties(Libintf::TPropKind PropKind, Libintf::TGetPropProc Proc);
virtual System::AnsiString __fastcall GetSelectionName(void);
virtual System::AnsiString __fastcall GetSelectionType(void);
virtual void __fastcall HideWindows(void);
virtual void __fastcall IsDesignMsg(MSG &Msg, bool &Handled);
virtual bool __fastcall IsTopmostForm(HWND Wnd);
virtual void __fastcall ModalEditDone(void * ReturnWindow);
virtual void __fastcall RaiseException(const System::AnsiString Message);
void __fastcall RemoveDependenciesOn(Classes::TComponent* Component);
void __fastcall SetSelection(Forms::TDesigner* Designer, Forms::TForm* DesignWindow, Dsgnintf::TComponentList*
ASelection);
virtual void __fastcall ShowWindows(void);
virtual void __fastcall SetLockState(bool State);
virtual void __fastcall SetProjectName( System::AnsiString Name);
__property Classes::TList* FormsList = {read=FormList, nodefault};
};
class __declspec(delphiclass) TLibDdeHelper;
class __declspec(pascalimplementation) TLibDdeHelper : public System::TObject
{
typedef System::TObject inherited;
public:
virtual void __fastcall SetProjectName( System::AnsiString Name) = 0;
public:
/* TObject.Create */ __fastcall TLibDdeHelper(void) : System::TObject() { }
/* TObject.Destroy */ __fastcall virtual ~TLibDdeHelper(void) { }
};
typedef void __fastcall (*TRegisterProc)(void);
typedef System::TMetaClass*TDragTargetClass;
//-- var, const, procedure ---------------------------------------------------
#define CompIconSize (Byte)(28)
#define LibrarySignature "COMPLIB0054"
extern Word CF_COMPONENTS;
extern TLibrary* CompLib;
extern Libintf::TIAppBuilder* AppBuilder;
extern TLibDdeHelper* LibDdeHelper;
extern char IVFLAG[8];
extern long IVNUM;
extern char IVCOPYRIGHT[8];
extern void __fastcall RegisterModule(const System::AnsiString Name, TRegisterProc RegisterProc);
extern void __fastcall RegisterDesignWindow(Dsgnwnds::TDesignWindow* Window);
extern void __fastcall UnregisterDesignWindow(Dsgnwnds::TDesignWindow* Window);
extern Libintf::TILibrary* __fastcall InitLibrary(Libintf::TIAppBuilder* App);
extern void __fastcall GetFormNames(Classes::TStrings* Names);
extern void __fastcall RegisterDragTarget(const System::AnsiString SourceName, System::TMetaClass* TargetClass
);
extern void __fastcall CopyStreamToClipboard(Classes::TMemoryStream* S);
extern bool __fastcall PossibleStream( System::AnsiString S);
extern Classes::TMemoryStream* __fastcall GetClipboardStream(void);
//-- template instantiations -------------------------------------------------
template class TCoordinates ;
} /* namespace Libmain */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Libmain;
#endif
//-- end unit ----------------------------------------------------------------
#endif // LibMain