~ubuntu-branches/ubuntu/natty/synergy/natty

« back to all changes in this revision

Viewing changes to lib/platform/CXWindowsClipboardUTF8Converter.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Lutz
  • Date: 2003-10-31 19:36:30 UTC
  • Revision ID: james.westby@ubuntu.com-20031031193630-knbv79x5az7qh49y
Tags: upstream-1.0.14
ImportĀ upstreamĀ versionĀ 1.0.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
21
CXWindowsClipboardUTF8Converter::CXWindowsClipboardUTF8Converter(
 
22
                                Display* display, const char* name) :
 
23
        m_atom(XInternAtom(display, name, False))
 
24
{
 
25
        // do nothing
 
26
}
 
27
 
 
28
CXWindowsClipboardUTF8Converter::~CXWindowsClipboardUTF8Converter()
 
29
{
 
30
        // do nothing
 
31
}
 
32
 
 
33
IClipboard::EFormat
 
34
CXWindowsClipboardUTF8Converter::getFormat() const
 
35
{
 
36
        return IClipboard::kText;
 
37
}
 
38
 
 
39
Atom
 
40
CXWindowsClipboardUTF8Converter::getAtom() const
 
41
{
 
42
        return m_atom;
 
43
}
 
44
 
 
45
int
 
46
CXWindowsClipboardUTF8Converter::getDataSize() const
 
47
{
 
48
        return 8;
 
49
}
 
50
 
 
51
CString
 
52
CXWindowsClipboardUTF8Converter::fromIClipboard(const CString& data) const
 
53
{
 
54
        return data;
 
55
}
 
56
 
 
57
CString
 
58
CXWindowsClipboardUTF8Converter::toIClipboard(const CString& data) const
 
59
{
 
60
        return data;
 
61
}