4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * \author Abdelrazak Younes
11 * Full author contact details are available in file CREDITS.
14 #ifndef GUICLIPBOARD_H
15 #define GUICLIPBOARD_H
17 #include "frontends/Clipboard.h"
25 * The Qt4 version of the Clipboard.
27 class GuiClipboard: public QObject, public Clipboard
32 virtual ~GuiClipboard();
34 /** Clipboard overloaded methods
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;
48 FileName getPastedGraphicsFileName(Cursor const & cur,
49 Clipboard::GraphicsType & type) const;
52 void on_dataChanged();
55 bool text_clipboard_empty_;
56 bool has_lyx_contents_;
57 bool has_graphics_contents_;
60 } // namespace frontend
63 #endif // GUICLIPBOARD_H