2002-07-22 17:32:51 +00:00
|
|
|
#ifndef CXWINDOWSCLIPBOARDUCS2CONVERTER_H
|
|
|
|
#define CXWINDOWSCLIPBOARDUCS2CONVERTER_H
|
|
|
|
|
|
|
|
#include "CXWindowsClipboard.h"
|
|
|
|
|
2002-07-29 17:03:55 +00:00
|
|
|
//! Convert to/from UCS-2 encoding
|
2002-07-22 17:32:51 +00:00
|
|
|
class CXWindowsClipboardUCS2Converter : public IXWindowsClipboardConverter {
|
|
|
|
public:
|
2002-07-29 17:03:55 +00:00
|
|
|
/*!
|
|
|
|
\c name is converted to an atom and that is reported by getAtom().
|
|
|
|
*/
|
2002-07-22 17:32:51 +00:00
|
|
|
CXWindowsClipboardUCS2Converter(Display* display, const char* name);
|
|
|
|
virtual ~CXWindowsClipboardUCS2Converter();
|
|
|
|
|
|
|
|
// IXWindowsClipboardConverter overrides
|
|
|
|
virtual IClipboard::EFormat
|
|
|
|
getFormat() const;
|
|
|
|
virtual Atom getAtom() const;
|
|
|
|
virtual int getDataSize() const;
|
|
|
|
virtual CString fromIClipboard(const CString&) const;
|
|
|
|
virtual CString toIClipboard(const CString&) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
Atom m_atom;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|