]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Clipboard.h
* src/frontends/qt4/GuiSelection.C
[lyx.git] / src / frontends / Clipboard.h
index d871b114e704d81c205f11fea56d31392ef31e97..817b78144c22ed4c79af9e530b559f03e9198a22 100644 (file)
@@ -14,7 +14,7 @@
 #ifndef BASE_CLIPBOARD_H
 #define BASE_CLIPBOARD_H
 
-#include <string>
+#include "support/docstring.h"
 
 namespace lyx {
 namespace frontend {
@@ -32,16 +32,25 @@ public:
         * This should be called when the user requests to paste from the
         * clipboard.
         */
-       virtual std::string const get() const = 0;
+       virtual docstring const get() const = 0;
        /**
         * Fill the window system clipboard.
         * This should be called when the user requests to cut or copy to
         * the clipboard.
         */
-       virtual void put(std::string const &) = 0;
+       virtual void put(docstring const &) = 0;
+
+       /// state of clipboard.
+       /// \retval true if the system clipboard has been set within LyX.
+       virtual bool isInternal() const = 0;
 };
 
 } // namespace frontend
+
+/// Implementation is in Application.C
+extern frontend::Clipboard & theClipboard();
+
 } // namespace lyx
 
+
 #endif // BASE_CLIPBOARD_H