mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-22 16:04:07 +00:00
e33bac93cd
* src/frontends/qt[34]/qt_helpers.[Ch] (toqstr): add variant for docstring (qstring_to_ucs4): Use docstring and port from qt4 to qt3 * Many other files: Many std::string -> lyx::docstring conversions * src/support/lstrings.[Ch] (subst): Add variant for docstring and char_type (externalLineEnding): std::string -> lyx::docstring (internalLineEnding): std::string -> lyx::docstring git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14871 a592a061-630c-0410-9148-cb99ea01b6c8
48 lines
945 B
C++
48 lines
945 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file Clipboard.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author unknown
|
|
* \author John Levon
|
|
* \author Abdelrazak Younes
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef BASE_CLIPBOARD_H
|
|
#define BASE_CLIPBOARD_H
|
|
|
|
#include "support/docstring.h"
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
/**
|
|
* A Clipboard class manages the clipboard.
|
|
*/
|
|
class Clipboard
|
|
{
|
|
public:
|
|
virtual ~Clipboard() {}
|
|
|
|
/**
|
|
* Get the window system clipboard contents.
|
|
* This should be called when the user requests to paste from the
|
|
* clipboard.
|
|
*/
|
|
virtual docstring const get() const = 0;
|
|
/**
|
|
* Fill the window system clipboard.
|
|
* This should be called when the user requests to cut or copy to
|
|
* the clipboard.
|
|
*/
|
|
virtual void put(docstring const &) = 0;
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // BASE_CLIPBOARD_H
|