]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiClipboard.h
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / GuiClipboard.h
index 5b452beae8446762c3006b4bba3703262b80963c..9ef7829de6caa1d8c8261a49d52fb1387cd1c5d6 100644 (file)
@@ -20,7 +20,7 @@
 #include <QObject>
 #include <QStringList>
 
-#include <boost/cstdint.hpp>
+#include <cstdint>
 
 namespace lyx {
 namespace frontend {
@@ -28,9 +28,9 @@ namespace frontend {
 class QMacPasteboardMimeGraphics;
 
 /**
- *  \class CacheMimeData 
- * 
- *  This class is used in order to query the clipboard only once on 
+ *  \class CacheMimeData
+ *
+ *  This class is used in order to query the clipboard only once on
  *  startup and once each time the contents of the clipboard changes.
  */
 class CacheMimeData : public QMimeData
@@ -68,32 +68,33 @@ public:
         */
        //@{
        std::string const getAsLyX() const;
-       FileName getAsGraphics(Cursor const & cur, GraphicsType type) const;
-       docstring const getAsText() const;
+       support::FileName getAsGraphics(Cursor const & cur, GraphicsType type) 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 hasLyXContents() const;
        bool hasGraphicsContents(GraphicsType type = AnyGraphicsType) const;
-       bool hasTextContents() const;
+       bool hasTextContents(TextType typetype = AnyTextType) const;
        bool isInternal() const;
        bool hasInternal() const;
        bool empty() const;
        //@}
 
-       FileName getPastedGraphicsFileName(Cursor const & cur,
+       support::FileName getPastedGraphicsFileName(Cursor const & cur,
                Clipboard::GraphicsType & type) const;
 
 private Q_SLOTS:
        void on_dataChanged();
+       void update();
 
 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;
+       /// checksum for internal clipboard data (used on Mac)
+       std::uint32_t checksum;
 };
 
 QString const lyxMimeType();