]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Clipboard.h
Clearer message when about to discard an unsaved document entirely.
[lyx.git] / src / frontends / Clipboard.h
index 980c6bcbf7f0791bc60f6a031c7322cd63ea9892..af617f5aecc4af11ac5889a35a83f6ea7ac947d5 100644 (file)
@@ -18,8 +18,6 @@
 
 #include "support/strfwd.h"
 
-using lyx::support::FileName;
-
 namespace lyx {
 namespace frontend {
 
@@ -62,7 +60,7 @@ public:
        /// Get the contents of the window system clipboard in any text format except LyxTextType.
        virtual docstring const getAsText(TextType type) const = 0;
        /// Get the contents of the window system clipboard as graphics file.
-       virtual FileName getAsGraphics(Cursor const & cur, GraphicsType type) const = 0;
+       virtual support::FileName getAsGraphics(Cursor const & cur, GraphicsType type) const = 0;
 
        /**
         * Fill the system clipboard. The format of \p lyx is as written in
@@ -75,6 +73,9 @@ public:
         */
        virtual void put(std::string const & lyx, docstring const & html, docstring const & text) = 0;
 
+       /// Put a general string on the system clipboard (not LyX text)
+       virtual void put(std::string const & text) const = 0;
+
        /// Does the clipboard contain text contents?
        virtual bool hasTextContents(TextType type = AnyTextType) const = 0;
        /// Does the clipboard contain graphics contents of a certain type?