]> git.lyx.org Git - lyx.git/blobdiff - 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
index 12a8864a413d580f771ca534c286e1a1cdd1b96c..4bb808cda318b523d3e4ea3c6a81626287c1af0e 100644 (file)
 
 #include "frontends/Clipboard.h"
 
+#include <QObject>
+
 namespace lyx {
 namespace frontend {
 
 /**
  * The Qt4 version of the Clipboard.
  */
-class GuiClipboard : public Clipboard
+class GuiClipboard: public QObject, public Clipboard
 {
+       Q_OBJECT
 public:
-       virtual ~GuiClipboard() {}
+       GuiClipboard();
+       virtual ~GuiClipboard();
 
        /** Clipboard overloaded methods
         */
        //@{
        std::string const getAsLyX() const;
+       FileName getAsGraphics(Cursor const & cur, GraphicsType type) const;
        docstring const getAsText() const;
        void put(std::string const & lyx, docstring const & text);
        bool hasLyXContents() const;
+       bool hasGraphicsContents(GraphicsType type = AnyGraphicsType) const;
        bool isInternal() const;
+       bool hasInternal() const;
        bool empty() const;
        //@}
+
+       FileName getPastedGraphicsFileName(Cursor const & cur,
+               Clipboard::GraphicsType & type) const;
+
+private Q_SLOTS:
+       void on_dataChanged();
+
+private:
+       bool text_clipboard_empty_;
+       bool has_lyx_contents_;
+       bool has_graphics_contents_;
 };
 
 } // namespace frontend