home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 9 / CDACTUAL9.iso / progs / CB / DATA.Z / CLIPBRD.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-06  |  3.3 KB  |  92 lines

  1. //----------------------------------------------------------------------------
  2. // Clipbrd.hpp - dcc32 generated hdr (DO NOT EDIT) rev: -2
  3. // From: Clipbrd.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef ClipbrdHPP
  6. #define ClipbrdHPP
  7. //----------------------------------------------------------------------------
  8. #ifndef GraphicsHPP
  9. #include <Graphics.hpp>
  10. #endif
  11.  
  12. #ifndef ClassesHPP
  13. #include <Classes.hpp>
  14. #endif
  15.  
  16. #ifndef MessagesHPP
  17. #include <Messages.hpp>
  18. #endif
  19.  
  20. #ifndef WindowsHPP
  21. #include <Windows.hpp>
  22. #endif
  23.  
  24. #ifndef SystemHPP
  25. #include <System.hpp>
  26. #endif
  27.  
  28. namespace Clipbrd
  29. {
  30. //-- type declarations -------------------------------------------------------
  31. class __declspec(delphiclass) TClipboard;
  32. class __declspec(pascalimplementation) TClipboard : public Classes::TPersistent
  33. {
  34.     typedef TClipboard ThisClass;
  35.     typedef Classes::TPersistent inherited;
  36.     
  37. private:
  38.     System::Integer FOpenRefCount;
  39.     System::Integer FClipboardWindow;
  40.     System::Boolean FAllocated;
  41.     System::Boolean FEmptied;
  42.     void __fastcall Adding(void);
  43.     void __fastcall AssignGraphic(Graphics::TGraphic *Source);
  44.     void __fastcall AssignPicture(Graphics::TPicture *Source);
  45.     void __fastcall AssignToBitmap(Graphics::TBitmap *Dest);
  46.     void __fastcall AssignToMetafile(Graphics::TMetafile *Dest);
  47.     void __fastcall AssignToPicture(Graphics::TPicture *Dest);
  48.     System::AnsiString __fastcall GetAsText(void);
  49.     System::Integer __fastcall GetFormatCount(void);
  50.     System::Word __fastcall GetFormats(System::Integer Index);
  51.     void __fastcall SetAsText(const System::AnsiString Value);
  52.     void __fastcall SetBuffer(System::Word Format, void *Buffer, System::Integer Size);
  53.     void __fastcall WndProc(Messages::TMessage &Message);
  54.     
  55. protected:
  56.     virtual void __fastcall AssignTo(Classes::TPersistent *Dest);
  57.     
  58. public:
  59.     virtual void __fastcall Assign(Classes::TPersistent *Source);
  60.     void __fastcall Clear(void);
  61.     void __fastcall Close(void);
  62.     Classes::TComponent *__fastcall GetComponent(Classes::TComponent *Owner, Classes::TComponent *Parent
  63.         );
  64.     System::Integer __fastcall GetAsHandle(System::Word Format);
  65.     System::Integer __fastcall GetTextBuf(System::PChar Buffer, System::Integer BufSize);
  66.     System::Boolean __fastcall HasFormat(System::Word Format);
  67.     void __fastcall Open(void);
  68.     void __fastcall SetComponent(Classes::TComponent *Component);
  69.     void __fastcall SetAsHandle(System::Word Format, System::Integer Value);
  70.     void __fastcall SetTextBuf(System::PChar Buffer);
  71.     __property System::AnsiString AsText = {read=GetAsText, write=SetAsText, nodefault};
  72.     __property System::Integer FormatCount = {read=GetFormatCount, nodefault};
  73.     __property System::Word Formats[System::Integer Index] = {read=GetFormats};
  74. public:
  75.     /* !! TObject.Create */ __fastcall TClipboard(void) : Classes::TPersistent() { }
  76.     /* !! TObject.Destroy */ __fastcall virtual ~TClipboard(void) { }
  77.     
  78. };
  79.  
  80. //-- var, const, procedure ---------------------------------------------------
  81. extern System::Word CF_PICTURE;
  82. extern System::Word CF_COMPONENT;
  83. extern TClipboard *__fastcall Clipboard(void);
  84. extern TClipboard *__fastcall SetClipboard(TClipboard *NewClipboard);
  85.  
  86. }    /* namespace Clipbrd */
  87. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  88. using namespace Clipbrd;
  89. #endif
  90. //-- end unit ----------------------------------------------------------------
  91. #endif    // Clipbrd
  92.