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"
24 class QWindowsMimeMetafile;
27 * The Qt4 version of the Clipboard.
29 class GuiClipboard: public QObject, public Clipboard
34 virtual ~GuiClipboard();
36 /** Clipboard overloaded methods
39 std::string const getAsLyX() const;
40 FileName getAsGraphics(Cursor const & cur, GraphicsType type) const;
41 docstring const getAsText() const;
42 void put(std::string const & lyx, docstring const & text);
43 bool hasLyXContents() const;
44 bool hasGraphicsContents(GraphicsType type = AnyGraphicsType) const;
45 bool isInternal() const;
46 bool hasInternal() const;
50 FileName getPastedGraphicsFileName(Cursor const & cur,
51 Clipboard::GraphicsType & type) const;
54 void on_dataChanged();
57 /// WMF Mime handler for Windows clipboard.
58 QWindowsMimeMetafile * wmf_mime_;
59 bool text_clipboard_empty_;
60 bool has_lyx_contents_;
61 bool has_graphics_contents_;
64 } // namespace frontend
67 #endif // GUICLIPBOARD_H