chore: remove MsWindowClipboardTextConverter
This commit is contained in:
parent
d492ddfbbb
commit
ab1a87ba04
4 changed files with 0 additions and 61 deletions
|
|
@ -24,8 +24,6 @@ if(WIN32)
|
||||||
MSWindowsClipboardFacade.h
|
MSWindowsClipboardFacade.h
|
||||||
MSWindowsClipboardHTMLConverter.cpp
|
MSWindowsClipboardHTMLConverter.cpp
|
||||||
MSWindowsClipboardHTMLConverter.h
|
MSWindowsClipboardHTMLConverter.h
|
||||||
MSWindowsClipboardTextConverter.cpp
|
|
||||||
MSWindowsClipboardTextConverter.h
|
|
||||||
MSWindowsClipboardUTF16Converter.cpp
|
MSWindowsClipboardUTF16Converter.cpp
|
||||||
MSWindowsClipboardUTF16Converter.h
|
MSWindowsClipboardUTF16Converter.h
|
||||||
MSWindowsDebugOutputter.cpp
|
MSWindowsDebugOutputter.cpp
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@
|
||||||
#include "platform/MSWindowsClipboardBitmapConverter.h"
|
#include "platform/MSWindowsClipboardBitmapConverter.h"
|
||||||
#include "platform/MSWindowsClipboardFacade.h"
|
#include "platform/MSWindowsClipboardFacade.h"
|
||||||
#include "platform/MSWindowsClipboardHTMLConverter.h"
|
#include "platform/MSWindowsClipboardHTMLConverter.h"
|
||||||
#include "platform/MSWindowsClipboardTextConverter.h"
|
|
||||||
#include "platform/MSWindowsClipboardUTF16Converter.h"
|
#include "platform/MSWindowsClipboardUTF16Converter.h"
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
@ -30,7 +29,6 @@ MSWindowsClipboard::MSWindowsClipboard(HWND window)
|
||||||
m_converters.push_back(new MSWindowsClipboardUTF16Converter);
|
m_converters.push_back(new MSWindowsClipboardUTF16Converter);
|
||||||
m_converters.push_back(new MSWindowsClipboardBitmapConverter);
|
m_converters.push_back(new MSWindowsClipboardBitmapConverter);
|
||||||
m_converters.push_back(new MSWindowsClipboardHTMLConverter);
|
m_converters.push_back(new MSWindowsClipboardHTMLConverter);
|
||||||
m_converters.push_back(new MSWindowsClipboardTextConverter);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MSWindowsClipboard::~MSWindowsClipboard()
|
MSWindowsClipboard::~MSWindowsClipboard()
|
||||||
|
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
/*
|
|
||||||
* Deskflow -- mouse and keyboard sharing utility
|
|
||||||
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
|
|
||||||
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
|
|
||||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "platform/MSWindowsClipboardTextConverter.h"
|
|
||||||
|
|
||||||
#include <QString>
|
|
||||||
|
|
||||||
//
|
|
||||||
// MSWindowsClipboardTextConverter
|
|
||||||
//
|
|
||||||
|
|
||||||
UINT MSWindowsClipboardTextConverter::getWin32Format() const
|
|
||||||
{
|
|
||||||
return CF_TEXT;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string MSWindowsClipboardTextConverter::doFromIClipboard(const std::string &data) const
|
|
||||||
{
|
|
||||||
return QString::fromStdString(data).toLatin1().toStdString() + '\0';
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string MSWindowsClipboardTextConverter::doToIClipboard(const std::string &data) const
|
|
||||||
{
|
|
||||||
auto q = QString::fromStdString(data);
|
|
||||||
q.truncate(q.indexOf('\0'));
|
|
||||||
return q.toStdString();
|
|
||||||
}
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
/*
|
|
||||||
* Deskflow -- mouse and keyboard sharing utility
|
|
||||||
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
|
|
||||||
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
|
|
||||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
|
||||||
*/
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "platform/MSWindowsClipboardAnyTextConverter.h"
|
|
||||||
|
|
||||||
//! Convert to/from locale text encoding
|
|
||||||
class MSWindowsClipboardTextConverter : public MSWindowsClipboardAnyTextConverter
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
MSWindowsClipboardTextConverter() = default;
|
|
||||||
~MSWindowsClipboardTextConverter() override = default;
|
|
||||||
|
|
||||||
// IMSWindowsClipboardConverter overrides
|
|
||||||
UINT getWin32Format() const override;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
// MSWindowsClipboardAnyTextConverter overrides
|
|
||||||
std::string doFromIClipboard(const std::string &) const override;
|
|
||||||
std::string doToIClipboard(const std::string &) const override;
|
|
||||||
};
|
|
||||||
Loading…
Reference in a new issue