source: trunk/synergy/lib/platform/CXWindowsClipboardUTF8Converter.cpp

Last change on this file was 2749, checked in by bird, 19 years ago

synergy v1.3.1 sources (zip).

File size: 1.3 KB
Line 
1/*
2 * synergy -- mouse and keyboard sharing utility
3 * Copyright (C) 2002 Chris Schoeneman
4 *
5 * This package is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * found in the file COPYING that should have accompanied this file.
8 *
9 * This package is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15#include "CXWindowsClipboardUTF8Converter.h"
16
17//
18// CXWindowsClipboardUTF8Converter
19//
20
21CXWindowsClipboardUTF8Converter::CXWindowsClipboardUTF8Converter(
22 Display* display, const char* name) :
23 m_atom(XInternAtom(display, name, False))
24{
25 // do nothing
26}
27
28CXWindowsClipboardUTF8Converter::~CXWindowsClipboardUTF8Converter()
29{
30 // do nothing
31}
32
33IClipboard::EFormat
34CXWindowsClipboardUTF8Converter::getFormat() const
35{
36 return IClipboard::kText;
37}
38
39Atom
40CXWindowsClipboardUTF8Converter::getAtom() const
41{
42 return m_atom;
43}
44
45int
46CXWindowsClipboardUTF8Converter::getDataSize() const
47{
48 return 8;
49}
50
51CString
52CXWindowsClipboardUTF8Converter::fromIClipboard(const CString& data) const
53{
54 return data;
55}
56
57CString
58CXWindowsClipboardUTF8Converter::toIClipboard(const CString& data) const
59{
60 return data;
61}
Note: See TracBrowser for help on using the repository browser.