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 QMacPasteboardMimeGraphics;
27 * The Qt4 version of the Clipboard.
29 class GuiClipboard: public QObject, public Clipboard
35 /** Clipboard overloaded methods
38 std::string const getAsLyX() const;
39 FileName getAsGraphics(Cursor const & cur, GraphicsType type) const;
40 docstring const getAsText() const;
41 void put(std::string const & lyx, docstring const & text);
42 bool hasLyXContents() const;
43 bool hasGraphicsContents(GraphicsType type = AnyGraphicsType) const;
44 bool isInternal() const;
45 bool hasInternal() const;
49 FileName getPastedGraphicsFileName(Cursor const & cur,
50 Clipboard::GraphicsType & type) const;
53 void on_dataChanged();
56 bool text_clipboard_empty_;
57 bool has_lyx_contents_;
58 bool has_graphics_contents_;
61 QString const lyxMimeType();
62 QString const pdfMimeType();
63 QString const emfMimeType();
64 QString const wmfMimeType();
66 } // namespace frontend
69 #endif // GUICLIPBOARD_H