00001 /* 00002 * synergy -- mouse and keyboard sharing utility 00003 * Copyright (C) 2002 Chris Schoeneman 00004 * 00005 * This package is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * found in the file COPYING that should have accompanied this file. 00008 * 00009 * This package is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 */ 00014 00015 #include "CXWindowsClipboardUTF8Converter.h" 00016 00017 // 00018 // CXWindowsClipboardUTF8Converter 00019 // 00020 00021 CXWindowsClipboardUTF8Converter::CXWindowsClipboardUTF8Converter( 00022 Display* display, const char* name) : 00023 m_atom(XInternAtom(display, name, False)) 00024 { 00025 // do nothing 00026 } 00027 00028 CXWindowsClipboardUTF8Converter::~CXWindowsClipboardUTF8Converter() 00029 { 00030 // do nothing 00031 } 00032 00033 IClipboard::EFormat 00034 CXWindowsClipboardUTF8Converter::getFormat() const 00035 { 00036 return IClipboard::kText; 00037 } 00038 00039 Atom 00040 CXWindowsClipboardUTF8Converter::getAtom() const 00041 { 00042 return m_atom; 00043 } 00044 00045 int 00046 CXWindowsClipboardUTF8Converter::getDataSize() const 00047 { 00048 return 8; 00049 } 00050 00051 CString 00052 CXWindowsClipboardUTF8Converter::fromIClipboard(const CString& data) const 00053 { 00054 return data; 00055 } 00056 00057 CString 00058 CXWindowsClipboardUTF8Converter::toIClipboard(const CString& data) const 00059 { 00060 return data; 00061 }