home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- // LibMain.hpp - dcc32 generated hdr (DO NOT EDIT) rev: -2
- // From: LibMain.pas
- //----------------------------------------------------------------------------
- #ifndef LibMainHPP
- #define LibMainHPP
- //----------------------------------------------------------------------------
- #ifndef OleCtrlsHPP
- #include <OleCtrls.hpp>
- #endif
-
- #ifndef DialogsHPP
- #include <Dialogs.hpp>
- #endif
-
- #ifndef DsgnWndsHPP
- #include <DsgnWnds.hpp>
- #endif
-
- #ifndef EditIntfHPP
- #include <EditIntf.hpp>
- #endif
-
- #ifndef VirtFileHPP
- #include <VirtFile.hpp>
- #endif
-
- #ifndef UpdateHPP
- #include <Update.hpp>
- #endif
-
- #ifndef LibIntfHPP
- #include <LibIntf.hpp>
- #endif
-
- #ifndef IStreamsHPP
- #include <IStreams.hpp>
- #endif
-
- #ifndef VirtIntfHPP
- #include <VirtIntf.hpp>
- #endif
-
- #ifndef DsgnIntfHPP
- #include <DsgnIntf.hpp>
- #endif
-
- #ifndef ExptintfHPP
- #include <Exptintf.hpp>
- #endif
-
- #ifndef TypInfoHPP
- #include <TypInfo.hpp>
- #endif
-
- #ifndef ProxiesHPP
- #include <Proxies.hpp>
- #endif
-
- #ifndef GraphicsHPP
- #include <Graphics.hpp>
- #endif
-
- #ifndef ControlsHPP
- #include <Controls.hpp>
- #endif
-
- #ifndef MenusHPP
- #include <Menus.hpp>
- #endif
-
- #ifndef FormsHPP
- #include <Forms.hpp>
- #endif
-
- #ifndef MessagesHPP
- #include <Messages.hpp>
- #endif
-
- #ifndef ClassesHPP
- #include <Classes.hpp>
- #endif
-
- #ifndef SysUtilsHPP
- #include <SysUtils.hpp>
- #endif
-
- #ifndef WindowsHPP
- #include <Windows.hpp>
- #endif
-
- #ifndef SystemHPP
- #include <System.hpp>
- #endif
-
- namespace Libmain
- {
- //-- type declarations -------------------------------------------------------
- class __declspec(delphiclass) TDesignerToolWindow;
- class __declspec(delphiclass) TWindowDesigner;
- class __declspec(delphiclass) TLibForm;
- class __declspec(pascalimplementation) TLibForm : public Libintf::TIForm
- {
- typedef TLibForm ThisClass;
- typedef Libintf::TIForm inherited;
-
- private:
- Libintf::TEditState __fastcall GetEditState(void);
- Controls::TWinControl *__fastcall GetTabParent(void);
- Controls::TWinControl *__fastcall GetTabComponent(Controls::TWinControl *AParent, System::Integer Order
- );
- void __fastcall Modified(void);
-
- public:
- Libintf::TIModule *Module;
- TWindowDesigner *Designer;
- Classes::TStream *FormStream;
- System::Boolean Visible;
- TWindowState WindowState;
- __fastcall TLibForm(Libintf::TIModule *AModule, const System::AnsiString AFileName, System::Boolean
- Existing, Virtintf::TIStream *AForm, const System::AnsiString AFormName, const System::AnsiString
- AncestorName, const System::AnsiString AFileSystem);
- __fastcall virtual ~TLibForm(void);
- virtual System::Boolean __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 System::Integer __fastcall GetCompCount(void);
- virtual void __fastcall GetDependentForms(Libintf::TGetFormProc Proc);
- virtual Libintf::TDesignerKind __fastcall GetDesignerKind(void);
- virtual void __fastcall GetFormDependencies(Libintf::TGetFormProc Proc);
- virtual System::Pointer __fastcall GetNVComp(System::Integer Index);
- virtual Libintf::TICompInfo *__fastcall GetCompInfo(System::Integer Index);
- virtual System::AnsiString __fastcall GetFileName(void);
- virtual System::Longint __fastcall GetModifyTime(void);
- virtual Libintf::TIModule *__fastcall GetModule(void);
- virtual System::AnsiString __fastcall GetCompName(System::Integer Index);
- virtual System::AnsiString __fastcall GetFileSystem(void);
- virtual Editintf::TIFormInterface *__fastcall GetFormInterface(void);
- virtual System::AnsiString __fastcall GetFormName(void);
- virtual System::Integer __fastcall GetFormImage(void);
- virtual void __fastcall GetFormUnits(Classes::TGetStrProc Proc);
- virtual Libintf::TFormState __fastcall GetState(void);
- virtual System::Integer __fastcall GetTabCompCount(void);
- virtual System::Boolean __fastcall GetTabCompInfo(System::Integer Order, System::AnsiString &Name,
- System::Pointer &Comp);
- virtual System::Integer __fastcall GetObjectMenuItemCount(void);
- virtual System::AnsiString __fastcall GetObjectMenuItem(System::Integer Index);
- virtual System::Longint __fastcall GetTimeAtLoad(void);
- virtual void __fastcall ObjectMenuAction(System::Integer 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(System::Integer Factor);
- virtual void __fastcall SetSelection(const System::AnsiString Name);
- virtual void __fastcall SetNVComp(System::Pointer Comp, System::Integer Order);
- virtual void __fastcall SetTabCompOrder(System::Pointer Comp, System::Integer 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, System::Integer Value);
- };
-
- class __declspec(delphiclass) TGrabHandles;
- class __declspec(delphiclass) TSelection;
- class __declspec(pascalimplementation) TSelection : public System::TObject
- {
- typedef TSelection ThisClass;
- typedef System::TObject inherited;
-
- private:
- TWindowDesigner *FDesigner;
- Classes::TComponent *FComponent;
- Dsgnintf::TComponentEditor *FEditor;
- System::Boolean FMarked;
- System::Byte FReserved;
-
- protected:
- virtual Windows::TRect __fastcall GetBoundsRect(void) = 0;
- virtual System::Integer __fastcall GetDimension(System::Integer 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(System::Integer Index, System::Integer Value) = 0;
- void __fastcall SetMarked(System::Boolean Value);
-
- public:
- __fastcall TSelection(TWindowDesigner *Designer, Classes::TComponent *Component);
- __fastcall virtual ~TSelection(void);
- virtual void __fastcall ZOrder(System::Boolean Front) = 0;
- virtual Windows::TPoint __fastcall ClientToScreen(const Windows::TPoint &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 System::Integer Left = {read=GetDimension, write=SetDimension, index=0, nodefault};
- __property System::Integer Top = {read=GetDimension, write=SetDimension, index=1, nodefault};
- __property System::Integer Width = {read=GetDimension, write=SetDimension, index=2, nodefault};
- __property System::Integer Height = {read=GetDimension, write=SetDimension, index=3, nodefault};
- __property System::Boolean Marked = {read=FMarked, write=SetMarked, nodefault};
- __property Controls::TWinControl * Parent = {read=GetParent, nodefault};
- };
-
- class __declspec(pascalimplementation) TGrabHandles : public System::TObject
- {
- typedef TGrabHandles ThisClass;
- typedef System::TObject inherited;
-
- private:
- TWindowDesigner *FDesigner;
- void *FObjectInstance;
- TSelection *FSelection;
- Controls::TWinControl *FParent;
- System::Boolean FVisible;
- System::Boolean FActive;
- System::Integer FHandles[8];
- System::Integer FCursors[8];
- void __fastcall SetActive(System::Boolean Value);
- void __fastcall SetSelection(TSelection *NewSelection);
- void __fastcall Update(void);
- System::Longint __fastcall WndProc(System::Integer Window, System::Cardinal Message, System::Longint
- WParam, System::Longint LParam);
-
- public:
- __fastcall TGrabHandles(TWindowDesigner *ADesigner);
- __fastcall virtual ~TGrabHandles(void);
- void __fastcall Hide(void);
- void __fastcall Show(void);
- void __fastcall Invalidate(void);
- __property System::Boolean 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 TDragTarget ThisClass;
- typedef System::TObject inherited;
-
- private:
- Dsgnintf::TFormDesigner *FDesigner;
-
- public:
- __fastcall virtual TDragTarget(Dsgnintf::TFormDesigner *ADesigner);
- virtual System::Boolean __fastcall DragOver(System::TObject *Target, System::TObject *Source, System::Integer
- X, System::Integer Y, Controls::TDragState State) = 0;
- virtual void __fastcall DragDrop(System::TObject *Target, System::TObject *Source, System::Integer
- X, System::Integer 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 TFormIntf ThisClass;
- typedef Editintf::TIFormInterface inherited;
-
- private:
- TWindowDesigner *FDesigner;
-
- public:
- __fastcall TFormIntf(TWindowDesigner *ADesigner);
- __fastcall virtual ~TFormIntf(void);
- virtual System::AnsiString __stdcall FileName(void);
- virtual System::Boolean __stdcall FormModified(void);
- virtual System::Boolean __stdcall MarkModified(void);
- virtual Editintf::TIComponentInterface *__stdcall GetFormComponent(void);
- virtual Editintf::TIComponentInterface *__stdcall FindComponent(const System::AnsiString Name);
- virtual Editintf::TIComponentInterface *__stdcall GetComponentFromHandle(System::Pointer ComponentHandle
- );
- virtual System::Integer __stdcall GetSelCount(void);
- virtual Editintf::TIComponentInterface *__stdcall GetSelComponent(System::Integer Index);
- virtual Editintf::TIComponentInterface *__stdcall GetCreateParent(void);
- virtual Editintf::TIComponentInterface *__stdcall CreateComponent(Editintf::TIComponentInterface *Container
- , const System::AnsiString TypeName, System::Integer X, System::Integer Y, System::Integer W, System::Integer
- H);
- };
-
- class __declspec(delphiclass) TContainer;
- enum TGrabLocation { gTopLeft, gTop, gTopRight, gRight, gBottomRight, gBottom, gBottomLeft, gLeft };
-
-
- class __declspec(pascalimplementation) TWindowDesigner : public Dsgnintf::TFormDesigner
- {
- typedef TWindowDesigner ThisClass;
- typedef Dsgnintf::TFormDesigner inherited;
-
- public:
- TLibForm *LibForm;
- Classes::TList *Containers;
- Controls::TWinControl *ContainerWindow;
- Classes::TComponent *Root;
-
- private:
- Classes::TMemoryStream *FormStream;
- System::Longint ModifyTime;
- System::Longint DiskAge;
- TGrabHandles *GrabHandles;
- Classes::TList *Selections;
- System::Integer SelectLevel;
- System::Boolean SelectionChanged;
- System::Byte Reserved;
- Controls::TControlCanvas *Canvas;
- Windows::TPoint GridSize;
- System::Boolean GridAlign;
- System::Boolean DisplayGrid;
- System::Boolean ShowCaptions;
- Graphics::TBitmap *GridImage;
- Windows::TPoint ImageGridSize;
- Graphics::TColor ImageColor;
- TDragAction DragAction;
- TCoordinates DragCoords;
- Controls::TWinControl *DragParent;
- Windows::TPoint Anchor;
- Windows::TRect DragRect;
- System::AnsiString FileName;
- Classes::TStream *UndoStream;
- Controls::TWinControl *UndoParent;
- Dsgnintf::TComponentEditor *FormEditor;
- Menus::TPopupMenu *LocalMenu;
- System::Boolean InUndo;
- System::Boolean CreateContainers;
- Update::TUpdateManager *UpdateManager;
- Classes::TStrings *ImportedFormList;
- Classes::TList *Dependencies;
- Classes::TList *Dependents;
- System::Boolean DependenciesUpToDate;
- TDragTarget *VCLDragTarget;
- Virtfile::TVirtualFileSystem *FFileSystem;
- TFormIntf *FormInterface;
- System::TMetaClass *RootBaseClass;
- TWindowDesigner *AncestorDesigner;
- System::Boolean ReadError;
- System::Boolean IgnoringErrors;
- Menus::TMenuItem *RevertItem;
- System::Boolean FIgnoreRename;
- System::Boolean FValidateDeletes;
- __fastcall TWindowDesigner(TLibForm *AForm, const System::AnsiString AFileName, System::Boolean Existing
- , Virtintf::TIStream *IStream, const System::AnsiString AFormName, const System::AnsiString AncestorName
- , const System::AnsiString AFileSystem);
- __fastcall virtual ~TWindowDesigner(void);
- void __fastcall Activate(System::Boolean Activating);
- void __fastcall Align(Libintf::TAffect Affect);
- void __fastcall BeginSelect(void);
- System::Boolean __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 Windows::TPoint &Pos);
- void __fastcall DragCancel(void);
- void __fastcall DragEnd(const Windows::TPoint &Pos, System::Boolean Accept);
- void __fastcall DragTo(const Windows::TPoint &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, System::Word ArrowKey
- );
- Classes::TComponent *__fastcall FindNextComponent(Classes::TComponent *CurComponent, System::Boolean
- GoForward);
- TSelection *__fastcall FindSelection(Classes::TComponent *Component);
- void __fastcall ForceCommonSelectParent(Controls::TWinControl *CommonParent);
- void __fastcall FreeSelections(void);
- Windows::TRect __fastcall GetDragRect(const Windows::TPoint &Pos);
- void __fastcall GetDependentForms(Libintf::TGetFormProc Proc);
- void __fastcall GetFormDependencies(Libintf::TGetFormProc Proc);
- Editintf::TIFormInterface *__fastcall GetFormInterface(void);
- Classes::TMemoryStream *__fastcall GetFormStream(void);
- Windows::TPoint __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 Windows::TPoint &Pos, TGrabLocation Location);
- void __fastcall InsertSelection(TSelection *Selection);
- virtual System::Boolean __fastcall IsDesignMsg(Controls::TControl *Sender, Messages::TMessage &Message
- );
- void __fastcall KeyDown(System::Word Key);
- void __fastcall KeyPress(System::Char Ch);
- void __fastcall MenuCommand(System::Word Command);
- virtual System::Boolean __fastcall MethodExists(const System::AnsiString Name);
- virtual System::Boolean __fastcall MethodFromAncestor(const Sysutils::TMethod &Method);
- virtual void __fastcall Modified(void);
- void __fastcall MouseDown(Classes::TComponent *Sender, const Windows::TPoint &Pos, System::Word Keys
- , System::Boolean DblClick, System::Boolean RightMouse);
- void __fastcall MoveBy(const Windows::TPoint &Delta, System::Boolean Size);
- virtual void __fastcall Notification(Classes::TComponent *AComponent, Classes::TOperation Operation
- );
- virtual void __fastcall PaintGrid(void);
- void __fastcall PasteSelection(void);
- Windows::TPoint __fastcall PointToGrid(const Windows::TPoint &Pos, System::Boolean Force);
- TSelection *__fastcall PrimarySelection(void);
- virtual System::AnsiString __fastcall UniqueName(const System::AnsiString BaseName);
- void __fastcall ReadStream(Classes::TStream *S, Classes::TComponent *Parent, System::Boolean AdjustPos
- );
- void __fastcall ReaderFindMethod(Classes::TReader *Reader, const System::AnsiString MethodName, System::Pointer
- &Address, System::Boolean &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, System::Boolean Extend);
- void __fastcall SelectAll(void);
- virtual void __fastcall SelectComponent(Classes::TComponent *Component);
- Classes::TComponent *__fastcall SelectedComponent(void);
- void __fastcall SetActive(System::Boolean 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, System::Integer Value);
- void __fastcall StreamSelection(Classes::TStream *S);
- System::Integer __fastcall SnapToGrid(System::Integer Coord, System::Integer GridOffset, System::Integer
- GridSize, System::Boolean 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(System::Boolean 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(System::Integer X, System::Integer 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, System::Integer Left, System::Integer Top, System::Integer Width, System::Integer Height);
-
- void __fastcall ReadObjectFromStream(Classes::TComponent *Instance, Classes::TStream *Stream);
- void __fastcall ReaderObjectError(Classes::TReader *Reader, const System::AnsiString Message, System::Boolean
- &Handled);
- void __fastcall FindObjectMethod(Classes::TReader *Reader, const System::AnsiString MethodName, System::Pointer
- &Address, System::Boolean &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 System::Boolean __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 TDesignerToolWindow ThisClass;
- typedef System::TObject inherited;
-
- private:
- TWindowDesigner *FDesigner;
- void *FObjectInstance;
- System::Integer 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 System::Integer Handle = {read=FHandle, nodefault};
- __property TWindowDesigner * Designer = {read=FDesigner, nodefault};
- };
-
- class __declspec(delphiclass) TComponentToolWindow;
- class __declspec(pascalimplementation) TComponentToolWindow : public TDesignerToolWindow
- {
- typedef TComponentToolWindow ThisClass;
- 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 TContainerCaption ThisClass;
- 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 TContainer ThisClass;
- typedef TComponentToolWindow inherited;
-
- private:
- Windows::TPoint FOffset;
- TContainerCaption *FCaption;
- Windows::TRect __fastcall GetBoundsRect(void);
- System::Boolean __fastcall GetShowCaption(void);
- System::Integer __fastcall GetLeft(void);
- System::Integer __fastcall GetTop(void);
- void __fastcall SetBoundsRect(const Windows::TRect &Value);
- void __fastcall SetShowCaption(System::Boolean Value);
- void __fastcall SetLeft(System::Integer Value);
- void __fastcall SetTop(System::Integer 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 System::Integer Left = {read=GetLeft, write=SetLeft, nodefault};
- __property System::Integer Top = {read=GetTop, write=SetTop, nodefault};
- __property Classes::TComponent * Component = {read=FComponent, nodefault};
- __property TContainerCaption * Caption = {read=FCaption, nodefault};
- __property System::Boolean ShowCaption = {read=GetShowCaption, write=SetShowCaption, nodefault};
- };
-
- class __declspec(delphiclass) TControlSelection;
- class __declspec(pascalimplementation) TControlSelection : public TSelection
- {
- typedef TControlSelection ThisClass;
- typedef TSelection inherited;
-
- private:
- void __fastcall GetPaintInfo(System::Integer &Handle, Windows::TRect &Rect);
-
- protected:
- virtual Windows::TRect __fastcall GetBoundsRect(void);
- virtual System::Integer __fastcall GetDimension(System::Integer Index);
- virtual Controls::TWinControl *__fastcall GetParent(void);
- virtual void __fastcall Invalidate(void);
- virtual void __fastcall SetBoundsRect(const Windows::TRect &Value);
- virtual void __fastcall SetDimension(System::Integer Index, System::Integer Value);
-
- public:
- void __fastcall Paint(System::Integer DC);
- virtual Windows::TPoint __fastcall ClientToScreen(const Windows::TPoint &P);
- virtual void __fastcall ZOrder(System::Boolean 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 TComponentSelection ThisClass;
- typedef TSelection inherited;
-
- private:
- TContainer *FContainer;
-
- protected:
- virtual Windows::TRect __fastcall GetBoundsRect(void);
- virtual System::Integer __fastcall GetDimension(System::Integer Index);
- virtual Controls::TWinControl *__fastcall GetParent(void);
- virtual void __fastcall Invalidate(void);
- virtual void __fastcall SetBoundsRect(const Windows::TRect &Value);
- virtual void __fastcall SetDimension(System::Integer Index, System::Integer Value);
-
- public:
- __fastcall TComponentSelection(TWindowDesigner *Designer, TContainer *Container);
- virtual Windows::TPoint __fastcall ClientToScreen(const Windows::TPoint &P);
- virtual void __fastcall ZOrder(System::Boolean Front);
- public:
- /* !! TSelection.Destroy */ __fastcall virtual ~TComponentSelection(void) { }
-
- };
-
- class __declspec(delphiclass) TNilSelection;
- class __declspec(pascalimplementation) TNilSelection : public TSelection
- {
- typedef TNilSelection ThisClass;
- typedef TSelection inherited;
-
- protected:
- virtual Windows::TRect __fastcall GetBoundsRect(void);
- virtual System::Integer __fastcall GetDimension(System::Integer Index);
- virtual Controls::TWinControl *__fastcall GetParent(void);
- virtual void __fastcall Invalidate(void);
- virtual void __fastcall SetBoundsRect(const Windows::TRect &Value);
- virtual void __fastcall SetDimension(System::Integer Index, System::Integer Value);
-
- public:
- virtual Windows::TPoint __fastcall ClientToScreen(const Windows::TPoint &P);
- virtual void __fastcall ZOrder(System::Boolean 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 TComponentIntf ThisClass;
- 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 System::Pointer __stdcall GetComponentHandle(void);
- virtual Editintf::TIComponentInterface *__stdcall GetParent(void);
- virtual System::Boolean __stdcall IsTControl(void);
- virtual System::Integer __stdcall GetPropCount(void);
- virtual System::AnsiString __stdcall GetPropName(System::Integer Index);
- virtual Editintf::TPropertyType __stdcall GetPropType(System::Integer Index);
- virtual Editintf::TPropertyType __stdcall GetPropTypeByName(const System::AnsiString Name);
- virtual System::Boolean __stdcall GetPropValue(System::Integer Index, void *Value);
- virtual System::Boolean __stdcall GetPropValueByName(const System::AnsiString Name, void *Value);
- virtual System::Boolean __stdcall SetProp(System::Integer Index, const void *Value);
- virtual System::Boolean __stdcall SetPropByName(const System::AnsiString Name, const void *Value);
- virtual System::Boolean __stdcall GetChildren(System::Pointer Param, Editintf::TGetChildCallback Proc
- );
- virtual System::Integer __stdcall GetControlCount(void);
- virtual Editintf::TIComponentInterface *__stdcall GetControl(System::Integer Index);
- virtual System::Integer __stdcall GetComponentCount(void);
- virtual Editintf::TIComponentInterface *__stdcall GetComponent(System::Integer Index);
- virtual System::Boolean __stdcall Select(void);
- virtual System::Boolean __stdcall Focus(void);
- virtual System::Boolean __stdcall Delete(void);
- };
-
- class __declspec(delphiclass) TProperty;
- class __declspec(pascalimplementation) TProperty : public Libintf::TIProperty
- {
- typedef TProperty ThisClass;
- typedef Libintf::TIProperty inherited;
-
- private:
- Dsgnintf::TPropertyEditor *Editor;
-
- public:
- __fastcall TProperty(Dsgnintf::TPropertyEditor *AEditor);
- __fastcall virtual ~TProperty(void);
- virtual void __fastcall Activate(void);
- virtual System::Boolean __fastcall AllEqual(void);
- virtual void __fastcall Edit(void);
- virtual Dsgnintf::TPropertyAttributes __fastcall GetAttributes(void);
- virtual System::AnsiString __fastcall GetCompClassName(void);
- virtual System::Integer __fastcall GetEditLimit(void);
- virtual System::Boolean __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 TCompInfo ThisClass;
- typedef Libintf::TICompInfo inherited;
-
- private:
- TWindowDesigner *FDesigner;
- Classes::TComponent *FComponent;
- Typinfo::TPropList *FList;
- System::Integer FCount;
-
- public:
- __fastcall TCompInfo(TWindowDesigner *Designer, Classes::TComponent *Component);
- __fastcall virtual ~TCompInfo(void);
- virtual void __fastcall ClearEvent(System::Integer Index);
- virtual System::AnsiString __fastcall GetClassName(void);
- virtual System::Integer __fastcall GetEventCount(void);
- virtual Typinfo::PPropInfo __fastcall GetEventInfo(System::Integer Index);
- virtual System::AnsiString __fastcall GetEventValue(System::Integer Index);
- virtual System::Pointer __fastcall GetComponentHandle(void);
- };
-
- class __declspec(delphiclass) TCompClass;
- class __declspec(pascalimplementation) TCompClass : public Libintf::TICompClass
- {
- typedef TCompClass ThisClass;
- typedef Libintf::TICompClass inherited;
-
- private:
- System::TMetaClass *ComponentClass;
- System::Integer ModuleIndex;
- System::AnsiString DefaultPage;
- System::Integer Offset;
-
- public:
- __fastcall TCompClass(System::TMetaClass * AComponentClass, System::Integer AModuleIndex, const System::AnsiString
- ADefaultPage);
- virtual Windows::TPoint __fastcall GetBitmapPos(System::Boolean Selected);
- virtual System::AnsiString __fastcall GetClassName(void);
- virtual System::AnsiString __fastcall GetDefaultPage(void);
- virtual System::Integer __fastcall GetModuleIndex(void);
- public:
- /* !! TObject.Destroy */ __fastcall virtual ~TCompClass(void) { }
-
- };
-
- class __declspec(delphiclass) TLibrary;
- class __declspec(pascalimplementation) TLibrary : public Libintf::TILibrary
- {
- typedef TLibrary ThisClass;
- 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;
- System::Boolean 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, System::Boolean 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(System::Integer Index);
- virtual System::Integer __fastcall GetCompClassCount(void);
- virtual void __fastcall GetCompHierarchy(Classes::TGetStrProc Proc);
- virtual System::Integer __fastcall GetComponentBitmap(void);
- virtual Libintf::TEditState __fastcall GetEditState(void);
- virtual System::Integer __fastcall GetModuleCount(void);
- virtual System::AnsiString __fastcall GetModuleName(System::Integer Index);
- virtual System::Boolean __fastcall GetOleCtrlHelp(const System::AnsiString Member, System::Integer
- &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(Windows::TMsg &Msg, System::Boolean &Handled);
- virtual System::Boolean __fastcall IsTopmostForm(System::Integer Wnd);
- virtual void __fastcall ModalEditDone(System::Pointer 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(System::Boolean 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 TLibDdeHelper ThisClass;
- 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 System::Byte(28)
- #define LibrarySignature "COMPLIB0054"
- extern System::Word CF_COMPONENTS;
- extern TLibrary *CompLib;
- extern Libintf::TIAppBuilder *AppBuilder;
- extern TLibDdeHelper *LibDdeHelper;
- extern System::Char IVFLAG[8];
- extern System::Longint IVNUM;
- extern System::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 System::Boolean __fastcall PossibleStream( System::AnsiString S);
- extern Classes::TMemoryStream *__fastcall GetClipboardStream(void);
- //-- template instantiations -------------------------------------------------
- template class TCoordinates ;
-
- } /* namespace Libmain */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Libmain;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // LibMain
-