00001 #ifndef _GCLIPBOARD_H
00002 #define _GCLIPBOARD_H
00003
00004 class LgiClass GClipBoard
00005 {
00006 class GClipBoardPriv *d;
00007 GView *Owner;
00008 bool Open;
00009 char *Txt;
00010 GSurface *pDC;
00011
00012 public:
00013 typedef uint32 FormatType;
00014
00015 GClipBoard(GView *o);
00016 ~GClipBoard();
00017
00018 bool IsOpen() { return Open; }
00019 bool Empty();
00020 bool EnumFormats(GArray<FormatType> &Formats);
00021
00022
00023 bool Text(char *Str, bool AutoEmpty = true);
00024 char *Text();
00025
00026 bool TextW(char16 *Str, bool AutoEmpty = true);
00027 char16 *TextW();
00028
00029
00030 bool Bitmap(GSurface *pDC, bool AutoEmpty = true);
00031 GSurface *Bitmap();
00032 #if WIN32NATIVE
00033 GSurface *ConvertFromPtr(void *Ptr);
00034 #endif
00035
00036
00037 bool Binary(FormatType Format, uint8 *Ptr, int Len, bool AutoEmpty);
00038 bool Binary(FormatType Format, uint8 **Ptr, int *Len);
00039 };
00040
00041 #endif