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 | #ifndef CXWINDOWSCLIPBOARDUCS2CONVERTER_H
|
---|
16 | #define CXWINDOWSCLIPBOARDUCS2CONVERTER_H
|
---|
17 |
|
---|
18 | #include "CXWindowsClipboard.h"
|
---|
19 |
|
---|
20 | //! Convert to/from UCS-2 encoding
|
---|
21 | class CXWindowsClipboardUCS2Converter : public IXWindowsClipboardConverter {
|
---|
22 | public:
|
---|
23 | /*!
|
---|
24 | \c name is converted to an atom and that is reported by getAtom().
|
---|
25 | */
|
---|
26 | CXWindowsClipboardUCS2Converter(Display* display, const char* name);
|
---|
27 | virtual ~CXWindowsClipboardUCS2Converter();
|
---|
28 |
|
---|
29 | // IXWindowsClipboardConverter overrides
|
---|
30 | virtual IClipboard::EFormat
|
---|
31 | getFormat() const;
|
---|
32 | virtual Atom getAtom() const;
|
---|
33 | virtual int getDataSize() const;
|
---|
34 | virtual CString fromIClipboard(const CString&) const;
|
---|
35 | virtual CString toIClipboard(const CString&) const;
|
---|
36 |
|
---|
37 | private:
|
---|
38 | Atom m_atom;
|
---|
39 | };
|
---|
40 |
|
---|
41 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.