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
*/
//@{
std::string const getAsLyX() const;
- FileName getAsGraphics(Cursor const & cur, GraphicsType type) 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 hasGraphicsContents(GraphicsType type = AnyGraphicsType) const;
bool hasTextContents(TextType typetype = AnyTextType) 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 plaintext_clipboard_empty_;
/// 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)
+ /// checksum for internal clipboard data (used on Mac)
boost::uint32_t checksum;
};