]> git.lyx.org Git - lyx.git/blob - src/frontends/Clipboard.h
ca046429fee49adfca2610cb42c8dcf8590faf8c
[lyx.git] / src / frontends / Clipboard.h
1 // -*- C++ -*-
2 /**
3  * \file Clipboard.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author unknown
8  * \author John Levon
9  * \author Abdelrazak Younes
10  *
11  * Full author contact details are available in file CREDITS.
12  */
13
14 #ifndef BASE_CLIPBOARD_H
15 #define BASE_CLIPBOARD_H
16
17 #include <string>
18
19 namespace lyx {
20 namespace frontend {
21
22 /**
23  * A Clipboard class manages the clipboard.
24  */
25 class Clipboard
26 {
27 public:
28         virtual ~Clipboard() {}
29
30         /// a selection exists
31         virtual void haveSelection(bool) = 0;
32         /// get the X clipboard contents
33         virtual std::string const get() const = 0;
34         /// fill the clipboard
35         virtual void put(std::string const &) = 0;
36 };
37
38 } // namespace frontend
39 } // namespace lyx
40
41 #endif // BASE_CLIPBOARD_H