]> 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 "GWorkArea.h"
18
19 namespace lyx {
20 namespace frontend {
21
22 /**
23  * The GTK version of the Selection.
24  */
25 class GuiSelection: public lyx::frontend::Selection
26 {
27 public:
28         GuiSelection(GWorkArea * work_area)
29                 : old_work_area_(work_area)
30         {
31         }
32
33         virtual ~GuiSelection() {}
34
35         /** Selection overloaded methods
36          */
37         //@{
38         void haveSelection(bool own)
39         {
40                 old_work_area_->haveSelection(own);
41         }
42
43         docstring const get() const;
44
45         void put(docstring const & str);
46         //@}
47
48 private:
49         GWorkArea * old_work_area_;
50 };
51
52 } // namespace frontend
53 } // namespace lyx
54
55 #endif // SELECTION_H