mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-18 08:22:06 +03:00
35 lines
626 B
C++
35 lines
626 B
C++
|
#include "CMSWindowsClipboardTextConverter.h"
|
||
|
#include "CUnicode.h"
|
||
|
|
||
|
//
|
||
|
// CMSWindowsClipboardTextConverter
|
||
|
//
|
||
|
|
||
|
CMSWindowsClipboardTextConverter::CMSWindowsClipboardTextConverter()
|
||
|
{
|
||
|
// do nothing
|
||
|
}
|
||
|
|
||
|
CMSWindowsClipboardTextConverter::~CMSWindowsClipboardTextConverter()
|
||
|
{
|
||
|
// do nothing
|
||
|
}
|
||
|
|
||
|
UINT
|
||
|
CMSWindowsClipboardTextConverter::getWin32Format() const
|
||
|
{
|
||
|
return CF_TEXT;
|
||
|
}
|
||
|
|
||
|
CString
|
||
|
CMSWindowsClipboardTextConverter::doFromIClipboard(const CString& data) const
|
||
|
{
|
||
|
return CUnicode::UTF8ToText(data);
|
||
|
}
|
||
|
|
||
|
CString
|
||
|
CMSWindowsClipboardTextConverter::doToIClipboard(const CString& data) const
|
||
|
{
|
||
|
return CUnicode::textToUTF8(data);
|
||
|
}
|