lyx_mirror/src/frontends/Clipboard.h
André Pönitz 6c300f72a2 move everything into namespace lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15422 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-21 00:16:43 +00:00

53 lines
1.0 KiB
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
/// Implementation is in Application.C
extern frontend::Clipboard & theClipboard();
} // namespace lyx
#endif // BASE_CLIPBOARD_H