]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GuiSelection.h
make it compile again
[lyx.git] / src / frontends / gtk / GuiSelection.h
1 // -*- C++ -*-
2 /**
3  * \file gtk/Selection.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Abdelrazak Younes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef SELECTION_H
13 #define SELECTION_H
14
15 #include "frontends/Selection.h"
16
17 #include <gtkmm.h>
18 #include <gtk/gtk.h>
19
20 namespace lyx {
21 namespace frontend {
22
23 /**
24  * The GTK version of the Selection.
25  */
26 class GuiSelection: public lyx::frontend::Selection
27 {
28 public:
29         GuiSelection() {}
30
31         virtual ~GuiSelection() {}
32
33         /** Selection overloaded methods
34          */
35         //@{
36         void haveSelection(bool own);
37
38         docstring const get() const;
39
40         void put(docstring const & str);
41         //@}
42 private:
43         void onClipboardGet(Gtk::SelectionData & selection_data, guint info);
44         void onClipboardClear();
45 };
46
47 } // namespace frontend
48 } // namespace lyx
49
50 #endif // SELECTION_H