X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2FSelection.h;h=931cb4470efcb051949795a4f85cec0122e7e14f;hb=befe2da495bf24d651c81bb35fbcda5976f09077;hp=9f8af37f2d25b965e29cabe6ea522f451be84491;hpb=31334d39348282d4586eb82b9bb5e91f03018542;p=lyx.git diff --git a/src/frontends/Selection.h b/src/frontends/Selection.h index 9f8af37f2d..931cb4470e 100644 --- a/src/frontends/Selection.h +++ b/src/frontends/Selection.h @@ -11,10 +11,10 @@ * Full author contact details are available in file CREDITS. */ -#ifndef BASE_SELECTION_H -#define BASE_SELECTION_H +#ifndef SELECTION_H +#define SELECTION_H -#include "support/docstring.h" +#include "support/strfwd.h" namespace lyx { namespace frontend { @@ -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 @@ -73,4 +78,4 @@ extern frontend::Selection & theSelection(); } // namespace lyx -#endif // BASE_SELECTION_H +#endif // SELECTION_H