home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- // OleCtnrs.hpp - dcc32 generated hdr (DO NOT EDIT) rev: -2
- // From: OleCtnrs.pas
- //----------------------------------------------------------------------------
- #ifndef OleCtnrsHPP
- #define OleCtnrsHPP
- //----------------------------------------------------------------------------
- #ifndef OleAutoHPP
- #include <OleAuto.hpp>
- #endif
-
- #ifndef GraphicsHPP
- #include <Graphics.hpp>
- #endif
-
- #ifndef MenusHPP
- #include <Menus.hpp>
- #endif
-
- #ifndef FormsHPP
- #include <Forms.hpp>
- #endif
-
- #ifndef ControlsHPP
- #include <Controls.hpp>
- #endif
-
- #ifndef ClassesHPP
- #include <Classes.hpp>
- #endif
-
- #ifndef SysUtilsHPP
- #include <SysUtils.hpp>
- #endif
-
- #ifndef OleDlgHPP
- #include <OleDlg.hpp>
- #endif
-
- #ifndef OLE2HPP
- #include <OLE2.hpp>
- #endif
-
- #ifndef CommCtrlHPP
- #include <CommCtrl.hpp>
- #endif
-
- #ifndef MessagesHPP
- #include <Messages.hpp>
- #endif
-
- #ifndef WindowsHPP
- #include <Windows.hpp>
- #endif
-
- #ifndef SystemHPP
- #include <System.hpp>
- #endif
-
- namespace Olectnrs
- {
- //-- type declarations -------------------------------------------------------
- class __declspec(delphiclass) TOleClientSite;
- class __declspec(delphiclass) TOleContainer;
- class __declspec(delphiclass) TOleInPlaceSite;
- class __declspec(pascalimplementation) TOleInPlaceSite : public Ole2::IOleInPlaceSite
- {
- typedef TOleInPlaceSite ThisClass;
- typedef Ole2::IOleInPlaceSite inherited;
-
- private:
- TOleContainer *FContainer;
-
- public:
- __fastcall TOleInPlaceSite(TOleContainer *Container);
- virtual System::Longint __stdcall QueryInterface(const Ole2::TGUID &iid, void *obj);
- virtual System::Longint __stdcall AddRef(void);
- virtual System::Longint __stdcall Release(void);
- virtual System::Longint __stdcall GetWindow(System::Integer &wnd);
- virtual System::Longint __stdcall ContextSensitiveHelp(System::LongBool fEnterMode);
- virtual System::Longint __stdcall CanInPlaceActivate(void);
- virtual System::Longint __stdcall OnInPlaceActivate(void);
- virtual System::Longint __stdcall OnUIActivate(void);
- virtual System::Longint __stdcall GetWindowContext(Ole2::IOleInPlaceFrame *&frame, Ole2::IOleInPlaceUIWindow *
- &doc, Windows::TRect &rcPosRect, Windows::TRect &rcClipRect, Ole2::TOleInPlaceFrameInfo &frameInfo
- );
- virtual System::Longint __stdcall Scroll(const Windows::TPoint &scrollExtent);
- virtual System::Longint __stdcall OnUIDeactivate(System::LongBool fUndoable);
- virtual System::Longint __stdcall OnInPlaceDeactivate(void);
- virtual System::Longint __stdcall DiscardUndoState(void);
- virtual System::Longint __stdcall DeactivateAndUndo(void);
- virtual System::Longint __stdcall OnPosRectChange(const Windows::TRect &rcPosRect);
- public:
- /* !! TObject.Destroy */ __fastcall virtual ~TOleInPlaceSite(void) { }
-
- };
-
- class __declspec(delphiclass) TAdviseSink;
- class __declspec(pascalimplementation) TAdviseSink : public Ole2::IAdviseSink
- {
- typedef TAdviseSink ThisClass;
- typedef Ole2::IAdviseSink inherited;
-
- private:
- TOleContainer *FContainer;
-
- public:
- __fastcall TAdviseSink(TOleContainer *Container);
- virtual System::Longint __stdcall QueryInterface(const Ole2::TGUID &iid, void *obj);
- virtual System::Longint __stdcall AddRef(void);
- virtual System::Longint __stdcall Release(void);
- virtual void __stdcall OnDataChange(Ole2::TFormatEtc &formatetc, Ole2::TStgMedium &stgmed);
- virtual void __stdcall OnViewChange(System::Longint dwAspect, System::Longint lindex);
- virtual void __stdcall OnRename(Ole2::IMoniker *mk);
- virtual void __stdcall OnSave(void);
- virtual void __stdcall OnClose(void);
- public:
- /* !! TObject.Destroy */ __fastcall virtual ~TAdviseSink(void) { }
-
- };
-
- class __declspec(delphiclass) TOleForm;
- class __declspec(delphiclass) TOleInPlaceFrame;
- class __declspec(pascalimplementation) TOleInPlaceFrame : public Ole2::IOleInPlaceFrame
- {
- typedef TOleInPlaceFrame ThisClass;
- typedef Ole2::IOleInPlaceFrame inherited;
-
- private:
- TOleForm *FOleForm;
-
- public:
- __fastcall TOleInPlaceFrame(TOleForm *OleForm);
- virtual System::Longint __stdcall QueryInterface(const Ole2::TGUID &iid, void *obj);
- virtual System::Longint __stdcall AddRef(void);
- virtual System::Longint __stdcall Release(void);
- virtual System::Longint __stdcall GetWindow(System::Integer &wnd);
- virtual System::Longint __stdcall ContextSensitiveHelp(System::LongBool fEnterMode);
- virtual System::Longint __stdcall GetBorder(Windows::TRect &rectBorder);
- virtual System::Longint __stdcall RequestBorderSpace(const Windows::TRect &borderwidths);
- virtual System::Longint __stdcall SetBorderSpace(Windows::PRect pborderwidths);
- virtual System::Longint __stdcall SetActiveObject(Ole2::IOleInPlaceActiveObject *activeObject, System::PWideChar
- pszObjName);
- virtual System::Longint __stdcall InsertMenus(System::Integer hmenuShared, Ole2::TOleMenuGroupWidths
- &menuWidths);
- virtual System::Longint __stdcall SetMenu(System::Integer hmenuShared, System::Integer holemenu, System::Integer
- hwndActiveObject);
- virtual System::Longint __stdcall RemoveMenus(System::Integer hmenuShared);
- virtual System::Longint __stdcall SetStatusText(System::PWideChar pszStatusText);
- virtual System::Longint __stdcall EnableModeless(System::LongBool fEnable);
- virtual System::Longint __stdcall TranslateAccelerator(Windows::TMsg &msg, System::Word wID);
- public:
-
- /* !! TObject.Destroy */ __fastcall virtual ~TOleInPlaceFrame(void) { }
-
- };
-
- class __declspec(pascalimplementation) TOleForm : public Forms::TOleFormObject
- {
- typedef TOleForm ThisClass;
- typedef Forms::TOleFormObject inherited;
-
- private:
- System::Integer FRefCount;
- Forms::TForm *FForm;
- TOleInPlaceFrame *FOleInPlaceFrame;
- Classes::TList *FContainers;
- Ole2::IOleInPlaceActiveObject *FActiveObject;
- System::Integer FSaveWidth;
- System::Integer FSaveHeight;
- Classes::TList *FHiddenControls;
- Controls::TControl *FSpacers[4];
- System::Longint __fastcall AddRef(void);
- System::Boolean __fastcall BorderSpaceAvailable(const Windows::TRect &BorderWidths);
- void __fastcall ClearBorderSpace(void);
- void __fastcall GetBorder(Windows::TRect &BorderRect);
- System::Boolean __fastcall IsSpacer(Controls::TControl *Control);
- System::Boolean __fastcall IsToolControl(Controls::TControl *Control);
- System::Longint __fastcall Release(void);
- void __fastcall SetActiveObject(Ole2::IOleInPlaceActiveObject *ActiveObject);
- System::Boolean __fastcall SetBorderSpace(const Windows::TRect &BorderWidths);
-
- protected:
- virtual void __fastcall OnDestroy(void);
- virtual void __fastcall OnResize(void);
-
- public:
- __fastcall TOleForm(Forms::TForm *Form);
- __fastcall virtual ~TOleForm(void);
- };
-
- enum TAutoActivate { aaManual, aaGetFocus, aaDoubleClick };
-
- enum TSizeMode { smClip, smCenter, smScale, smStretch, smAutoSize };
-
- typedef void __fastcall (__closure *TObjectMoveEvent)(TOleContainer *OleContainer, const Windows::TRect
- &Bounds);
-
- enum TObjectState { osEmpty, osLoaded, osRunning, osOpen, osInPlaceActive, osUIActive };
-
- struct TCreateInfo;
- class __declspec(pascalimplementation) TOleContainer : public Controls::TCustomControl
- {
- typedef TOleContainer ThisClass;
- typedef Controls::TCustomControl inherited;
-
- private:
- System::Longint FRefCount;
- Ole2::ILockBytes *FLockBytes;
- Ole2::IStorage *FStorage;
- Ole2::IOleObject *FOleObject;
- TOleClientSite *FOleClientSite;
- TOleInPlaceSite *FOleInPlaceSite;
- TAdviseSink *FAdviseSink;
- System::Longint FDrawAspect;
- Windows::TPoint FViewSize;
- Classes::TStringList *FObjectVerbs;
- System::Longint FDataConnection;
- TOleForm *FDocForm;
- TOleForm *FFrameForm;
- Ole2::IOleInPlaceObject *FOleInPlaceObject;
- Ole2::IOleInPlaceActiveObject *FOleInPlaceActiveObject;
- System::Integer FAccelTable;
- System::Integer FAccelCount;
- Menus::TPopupMenu *FPopupVerbMenu;
- System::Boolean FAllowInPlace;
- TAutoActivate FAutoActivate;
- System::Boolean FAutoVerbMenu;
- TFormBorderStyle FBorderStyle;
- System::Boolean FCopyOnSave;
- System::Boolean FOldStreamFormat;
- TSizeMode FSizeMode;
- System::Boolean FObjectOpen;
- System::Boolean FUIActive;
- System::Boolean FModified;
- System::Boolean FModSinceSave;
- System::Boolean FFocused;
- System::Boolean FNewInserted;
- Classes::TNotifyEvent FOnActivate;
- Classes::TNotifyEvent FOnDeactivate;
- TObjectMoveEvent FOnObjectMove;
- Classes::TNotifyEvent FOnResize;
- System::Longint __fastcall AddRef(void);
- void __fastcall AdjustBounds(void);
- void __fastcall CheckObject(void);
- void __fastcall CreateAccelTable(void);
- void __fastcall CreateStorage(void);
- void __fastcall DesignModified(void);
- void __fastcall DestroyAccelTable(void);
- void __fastcall DestroyVerbs(void);
- System::Integer __fastcall GetBorderWidth(void);
- System::Boolean __fastcall GetCanPaste(void);
- System::Boolean __fastcall GetIconic(void);
- System::Boolean __fastcall GetLinked(void);
- System::Integer __fastcall GetObjectDataSize(void);
- Classes::TStrings *__fastcall GetObjectVerbs(void);
- System::AnsiString __fastcall GetOleClassName(void);
- System::Variant __fastcall GetOleObject(void);
- System::Integer __fastcall GetPrimaryVerb(void);
- System::AnsiString __fastcall GetSourceDoc(void);
- TObjectState __fastcall GetState(void);
- void __fastcall InitObject(void);
- void __fastcall ObjectModified(void);
- void __fastcall ObjectMoved(const Windows::TRect &ObjectRect);
- void __fastcall ObjectShowWindow(System::Boolean Show);
- void __fastcall ObjectViewChange(System::Longint Aspect);
- void __fastcall PopupVerbMenuClick(System::TObject *Sender);
- System::Longint __fastcall QueryInterface(const Ole2::TGUID &iid, void *obj);
- System::Longint __fastcall Release(void);
- void __fastcall SaveObject(void);
- void __fastcall SetBorderStyle(Forms::TBorderStyle Value);
- void __fastcall SetDrawAspect(System::Boolean Iconic, System::Integer IconMetaPict);
- void __fastcall SetFocused(System::Boolean Value);
- void __fastcall SetIconic(System::Boolean Value);
- void __fastcall SetSizeMode(TSizeMode Value);
- void __fastcall SetUIActive(System::Boolean Active);
- void __fastcall SetViewAdviseSink(System::Boolean Enable);
- void __fastcall UpdateObjectRect(void);
- void __fastcall UpdateView(void);
- MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
- MESSAGE void __fastcall CMDocWindowActivate(Messages::TMessage &Message);
- MESSAGE void __fastcall CMUIDeactivate(Messages::TMessage &Message);
- MESSAGE void __fastcall WMKillFocus(Messages::TWMSetFocus &Message);
- MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Message);
- MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
- MESSAGE void __fastcall WMWindowPosChanged(Messages::TWMWindowPosMsg &Message);
-
- protected:
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- virtual void __fastcall DblClick(void);
- virtual void __fastcall DefineProperties(Classes::TFiler *Filer);
- virtual void __fastcall DoEnter(void);
- virtual Menus::TPopupMenu *__fastcall GetPopupMenu(void);
- virtual void __fastcall KeyDown(System::Word &Key, Classes::TShiftState Shift);
- virtual void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, System::Integer
- X, System::Integer Y);
- virtual void __fastcall Paint(void);
-
- public:
- __fastcall virtual TOleContainer(Classes::TComponent *AOwner);
- __fastcall virtual ~TOleContainer(void);
- System::Boolean __fastcall ChangeIconDialog(void);
- void __fastcall Close(void);
- void __fastcall Copy(void);
- void __fastcall CreateLinkToFile(const System::AnsiString FileName, System::Boolean Iconic);
- void __fastcall CreateObject(const System::AnsiString OleClassName, System::Boolean Iconic);
- void __fastcall CreateObjectFromFile(const System::AnsiString FileName, System::Boolean Iconic);
- void __fastcall CreateObjectFromInfo(const TCreateInfo &CreateInfo);
- void __fastcall DestroyObject(void);
- void __fastcall DoVerb(System::Integer Verb);
- System::Integer __fastcall GetIconMetaPict(void);
- System::Boolean __fastcall InsertObjectDialog(void);
- void __fastcall LoadFromFile(const System::AnsiString FileName);
- void __fastcall LoadFromStream(Classes::TStream *Stream);
- System::Boolean __fastcall ObjectPropertiesDialog(void);
- void __fastcall Paste(void);
- System::Boolean __fastcall PasteSpecialDialog(void);
- void __fastcall Run(void);
- void __fastcall SaveToFile(const System::AnsiString FileName);
- void __fastcall SaveToStream(Classes::TStream *Stream);
- void __fastcall UpdateObject(void);
- void __fastcall UpdateVerbs(void);
- __property System::Boolean CanPaste = {read=GetCanPaste, nodefault};
- __property System::Boolean Linked = {read=GetLinked, nodefault};
- __property System::Boolean Modified = {read=FModified, write=FModified, nodefault};
- __property System::Boolean NewInserted = {read=FNewInserted, nodefault};
- __property Classes::TStrings * ObjectVerbs = {read=GetObjectVerbs, nodefault};
- __property System::AnsiString OleClassName = {read=GetOleClassName, nodefault};
- __property System::Variant OleObject = {read=GetOleObject};
- __property Ole2::IOleObject * OleObjectInterface = {read=FOleObject, nodefault};
- __property System::Integer PrimaryVerb = {read=GetPrimaryVerb, nodefault};
- __property System::AnsiString SourceDoc = {read=GetSourceDoc, nodefault};
- __property TObjectState State = {read=GetState, nodefault};
- __property Ole2::IStorage * StorageInterface = {read=FStorage, nodefault};
-
- __published:
- __property System::Boolean AllowInPlace = {read=FAllowInPlace, write=FAllowInPlace, default=1};
- __property TAutoActivate AutoActivate = {read=FAutoActivate, write=FAutoActivate, default=2};
- __property System::Boolean AutoVerbMenu = {read=FAutoVerbMenu, write=FAutoVerbMenu, default=1};
- __property Align ;
- __property Forms::TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=1};
- __property Caption ;
- __property Color ;
- __property System::Boolean CopyOnSave = {read=FCopyOnSave, write=FCopyOnSave, default=1};
- __property Ctl3D ;
- __property DragCursor ;
- __property DragMode ;
- __property Enabled ;
- __property System::Boolean Iconic = {read=GetIconic, write=SetIconic, stored=false, nodefault};
- __property System::Boolean OldStreamFormat = {read=FOldStreamFormat, write=FOldStreamFormat, default=0
- };
- __property ParentColor ;
- __property ParentCtl3D ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property ShowHint ;
- __property TSizeMode SizeMode = {read=FSizeMode, write=SetSizeMode, default=0};
- __property TabOrder ;
- __property TabStop ;
- __property Visible ;
- __property Classes::TNotifyEvent OnActivate = {read=FOnActivate, write=FOnActivate};
- __property Classes::TNotifyEvent OnDeactivate = {read=FOnDeactivate, write=FOnDeactivate};
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property OnKeyDown ;
- __property OnKeyPress ;
- __property OnKeyUp ;
- __property TObjectMoveEvent OnObjectMove = {read=FOnObjectMove, write=FOnObjectMove};
- __property Classes::TNotifyEvent OnResize = {read=FOnResize, write=FOnResize};
- __property OnStartDrag ;
- };
-
- class __declspec(pascalimplementation) TOleClientSite : public Ole2::IOleClientSite
- {
- typedef TOleClientSite ThisClass;
- typedef Ole2::IOleClientSite inherited;
-
- private:
- TOleContainer *FContainer;
-
- public:
- __fastcall TOleClientSite(TOleContainer *Container);
- virtual System::Longint __stdcall QueryInterface(const Ole2::TGUID &iid, void *obj);
- virtual System::Longint __stdcall AddRef(void);
- virtual System::Longint __stdcall Release(void);
- virtual System::Longint __stdcall SaveObject(void);
- virtual System::Longint __stdcall GetMoniker(System::Longint dwAssign, System::Longint dwWhichMoniker
- , Ole2::IMoniker *&mk);
- virtual System::Longint __stdcall GetContainer(Ole2::IOleContainer *&container);
- virtual System::Longint __stdcall ShowObject(void);
- virtual System::Longint __stdcall OnShowWindow(System::LongBool fShow);
- virtual System::Longint __stdcall RequestNewObjectLayout(void);
- public:
- /* !! TObject.Destroy */ __fastcall virtual ~TOleClientSite(void) { }
-
- };
-
- enum TCreateType { ctNewObject, ctFromFile, ctLinkToFile, ctFromData, ctLinkFromData };
-
- struct TCreateInfo
- {
- TCreateType CreateType;
- System::Boolean ShowAsIcon;
- System::Integer IconMetaPict;
- Ole2::TGUID ClassID;
- System::AnsiString FileName;
- Ole2::IDataObject *DataObject;
- } ;
-
- struct TVerbInfo
- {
- System::Smallint Verb;
- System::Word Flags;
- } ;
-
- //-- var, const, procedure ---------------------------------------------------
- #define ovShow System::Shortint(-1)
- #define ovOpen System::Shortint(-2)
- #define ovHide System::Shortint(-3)
- #define ovUIActivate System::Shortint(-4)
- #define ovInPlaceActivate System::Shortint(-5)
- #define ovDiscardUndoState System::Shortint(-6)
- #define ovPrimary System::Integer(-65536)
- extern void __fastcall DestroyMetaPict(System::Integer MetaPict);
-
- } /* namespace Olectnrs */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Olectnrs;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // OleCtnrs
-