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