1 // This may look like C code, but it is really -*- C++ -*- 2 3 // ------------------------------------------------------------------ 4 // The Goldware Library 5 // Copyright (C) 1990-1999 Odinn Sorensen 6 // Copyright (C) 1999 Alexander S. Aganichev 7 // ------------------------------------------------------------------ 8 // This library is free software; you can redistribute it and/or 9 // modify it under the terms of the GNU Library General Public 10 // License as published by the Free Software Foundation; either 11 // version 2 of the License, or (at your option) any later version. 12 // 13 // This library is distributed in the hope that it will be useful, 14 // but WITHOUT ANY WARRANTY; without even the implied warranty of 15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 // Library General Public License for more details. 17 // 18 // You should have received a copy of the GNU Library General Public 19 // License along with this program; if not, write to the Free 20 // Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21 // MA 02111-1307, USA 22 // ------------------------------------------------------------------ 23 // $Id: gutlclip.h,v 1.4 2003/12/21 16:46:55 zharik Exp $ 24 // ------------------------------------------------------------------ 25 // Goldware misc. clipboards support. 26 // ------------------------------------------------------------------ 27 28 #ifndef __gutlclip_h 29 #define __gutlclip_h 30 31 32 // ------------------------------------------------------------------ 33 34 #include <gdefs.h> 35 36 37 // ------------------------------------------------------------------ 38 39 #if defined(__OS2__) 40 #define CLIP_NAME "OS/2 Clipboard" 41 #elif defined(__WIN32__) || defined(__MSDOS__) 42 #define CLIP_NAME "Windows Clipboard" 43 #elif defined(__BEOS__) 44 #define CLIP_NAME "BeOS Clipboard" 45 #else 46 #define CLIP_NAME "Fake Clipboard" 47 #endif 48 49 50 // ------------------------------------------------------------------ 51 52 class gclipbrd { 53 54 char *clipdata, *cliphdl; 55 int len; 56 57 public: 58 59 bool openread(); 60 char* read(char* buffer, int maxlen); 61 void close(); 62 63 bool writeclipbrd(const char* buf); 64 65 gclipbrd(); 66 67 }; 68 69 70 // ------------------------------------------------------------------ 71 72 #endif 73 74 // ------------------------------------------------------------------ 75