]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Selection.h
Honor pending spaces in InsetMathChar::write
[lyx.git] / src / frontends / Selection.h
index fb835e7ffb95cce93d7af020100ce5b2d92fc475..931cb4470efcb051949795a4f85cec0122e7e14f 100644 (file)
@@ -27,6 +27,11 @@ class Selection
 public:
        virtual ~Selection() {}
 
+       /**
+        * Returns true if the underlying system supports mouse selection
+        * (basically X11 and Wayland).
+        */
+       virtual bool supported() const = 0;
        /**
         * Tell the window system whether we set or cleared our selection.
         * This is a noop on systems that don't have a selection.
@@ -49,7 +54,7 @@ public:
         * Fill the X selection.
         * The format is plain text.
         * Does nothing on systems that don't have a selection.
-        * Since the X selection protocol is asyncronous this should never be
+        * Since the X selection protocol is asynchronous this should never be
         * called from the kernel.
         * If another application requests the current selection a
         * SelectionRequest XEvent will be triggered. The response of the
@@ -62,7 +67,7 @@ public:
         * This does always return true on systems that don't have a real
         * selection.
         */
-       virtual bool empty() = 0;
+       virtual bool empty() const = 0;
 };
 
 } // namespace frontend