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 CMSWINDOWSCLIPBOARDHTMLCONVERTER_H
|
---|
16 | #define CMSWINDOWSCLIPBOARDHTMLCONVERTER_H
|
---|
17 |
|
---|
18 | #include "CMSWindowsClipboardAnyTextConverter.h"
|
---|
19 |
|
---|
20 | //! Convert to/from HTML encoding
|
---|
21 | class CMSWindowsClipboardHTMLConverter :
|
---|
22 | public CMSWindowsClipboardAnyTextConverter {
|
---|
23 | public:
|
---|
24 | CMSWindowsClipboardHTMLConverter();
|
---|
25 | virtual ~CMSWindowsClipboardHTMLConverter();
|
---|
26 |
|
---|
27 | // IMSWindowsClipboardConverter overrides
|
---|
28 | virtual IClipboard::EFormat
|
---|
29 | getFormat() const;
|
---|
30 | virtual UINT getWin32Format() const;
|
---|
31 |
|
---|
32 | protected:
|
---|
33 | // CMSWindowsClipboardAnyTextConverter overrides
|
---|
34 | virtual CString doFromIClipboard(const CString&) const;
|
---|
35 | virtual CString doToIClipboard(const CString&) const;
|
---|
36 |
|
---|
37 | private:
|
---|
38 | CString findArg(const CString& data, const CString& name) const;
|
---|
39 |
|
---|
40 | private:
|
---|
41 | UINT m_format;
|
---|
42 | };
|
---|
43 |
|
---|
44 | #endif
|
---|