1 | /*
|
---|
2 | * synergy -- mouse and keyboard sharing utility
|
---|
3 | * Copyright (C) 2004 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 COSXCLIPBOARDTEXTCONVERTER_H
|
---|
16 | #define COSXCLIPBOARDTEXTCONVERTER_H
|
---|
17 |
|
---|
18 | #include "COSXClipboardAnyTextConverter.h"
|
---|
19 |
|
---|
20 | //! Convert to/from locale text encoding
|
---|
21 | class COSXClipboardTextConverter : public COSXClipboardAnyTextConverter {
|
---|
22 | public:
|
---|
23 | COSXClipboardTextConverter();
|
---|
24 | virtual ~COSXClipboardTextConverter();
|
---|
25 |
|
---|
26 | // IOSXClipboardAnyTextConverter overrides
|
---|
27 | virtual ScrapFlavorType
|
---|
28 | getOSXFormat() const;
|
---|
29 |
|
---|
30 | protected:
|
---|
31 | // COSXClipboardAnyTextConverter overrides
|
---|
32 | virtual CString doFromIClipboard(const CString&) const;
|
---|
33 | virtual CString doToIClipboard(const CString&) const;
|
---|
34 |
|
---|
35 | // generic encoding converter
|
---|
36 | static CString convertString(const CString& data,
|
---|
37 | CFStringEncoding fromEncoding,
|
---|
38 | CFStringEncoding toEncoding);
|
---|
39 | };
|
---|
40 |
|
---|
41 | #endif
|
---|