]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiClipboard.h
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiClipboard.h
1 // -*- C++ -*-
2 /**
3  * \file GuiClipboard.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 GUICLIPBOARD_H
15 #define GUICLIPBOARD_H
16
17 #include "frontends/Clipboard.h"
18
19 #include <QObject>
20
21 namespace lyx {
22 namespace frontend {
23
24 /**
25  * The Qt4 version of the Clipboard.
26  */
27 class GuiClipboard: public QObject, public Clipboard
28 {
29         Q_OBJECT
30 public:
31         GuiClipboard();
32         virtual ~GuiClipboard();
33
34         /** Clipboard overloaded methods
35          */
36         //@{
37         std::string const getAsLyX() const;
38         FileName getAsGraphics(Cursor const & cur, GraphicsType type) const;
39         docstring const getAsText() const;
40         void put(std::string const & lyx, docstring const & text);
41         bool hasLyXContents() const;
42         bool hasGraphicsContents(GraphicsType type = AnyGraphicsType) const;
43         bool isInternal() const;
44         bool hasInternal() const;
45         bool empty() const;
46         //@}
47
48         FileName getPastedGraphicsFileName(Cursor const & cur,
49                 Clipboard::GraphicsType & type) const;
50
51 private Q_SLOTS:
52         void on_dataChanged();
53
54 private:
55         bool text_clipboard_empty_;
56         bool has_lyx_contents_;
57         bool has_graphics_contents_;
58 };
59
60 } // namespace frontend
61 } // namespace lyx
62
63 #endif // GUICLIPBOARD_H