]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiSelection.h
Correctly enable/disable all paste lfuns
[lyx.git] / src / frontends / qt4 / GuiSelection.h
1 // -*- C++ -*-
2 /**
3  * \file qt4/GuiSelection.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 SELECTION_H
15 #define SELECTION_H
16
17 #include "frontends/Selection.h"
18
19 namespace lyx {
20 namespace frontend {
21
22 /**
23  * The Qt4 version of the Selection.
24  */
25 class GuiSelection: public Selection
26 {
27 public:
28         GuiSelection() : empty_(true) {}
29         virtual ~GuiSelection() {}
30
31         /** Selection overloaded methods
32          */
33         //@{
34         void haveSelection(bool own);
35         docstring const get() const;
36         void put(docstring const & str);
37         bool empty() const;
38         //@}
39 private:
40         /**
41          * Is the selection empty?
42          * Only used on systems that don't support a real selection to
43          * reflect the status of the internal selection of LyX.
44          * This is needed to emulate the X selection as far as possible.
45          */
46         bool empty_;
47 };
48
49 } // namespace frontend
50 } // namespace lyx
51
52 #endif // SELECTION_H