]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiClipboard.h
On Linux show in crash message box the backtrace
[lyx.git] / src / frontends / qt4 / GuiClipboard.h
index 5e1327352df3bdf45deb6414a51765d4fdf3bd74..392f0594c600102f0cafd0f718e8b9b82a7cfa3d 100644 (file)
@@ -20,6 +20,8 @@
 #include <QObject>
 #include <QStringList>
 
+#include <boost/cstdint.hpp>
+
 namespace lyx {
 namespace frontend {
 
@@ -67,11 +69,11 @@ public:
        //@{
        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;
+       docstring const getAsText(TextType type) const;
+       void put(std::string const & text) const;
+       void put(std::string const & lyx, docstring const & html, docstring const & text);
        bool hasGraphicsContents(GraphicsType type = AnyGraphicsType) const;
-       bool hasTextContents() const;
+       bool hasTextContents(TextType typetype = AnyTextType) const;
        bool isInternal() const;
        bool hasInternal() const;
        bool empty() const;
@@ -84,12 +86,14 @@ private Q_SLOTS:
        void on_dataChanged();
 
 private:
-       bool text_clipboard_empty_;
-       bool has_lyx_contents_;
+       bool plaintext_clipboard_empty_;
+       bool has_text_contents_;
        bool has_graphics_contents_;
        /// the cached mime data used to describe the information
        /// that can be stored in the clipboard
        CacheMimeData cache_;
+       /// checksum for internal clipboard data (used on Mac) 
+       boost::uint32_t checksum;
 };
 
 QString const lyxMimeType();