X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2FSelection.h;h=ac902ffc1eaafcaef57e201ddf59fd9ff5d8ab73;hb=28be7d552f62cc02fa86d7f79201d089bfb2d7b5;hp=6c7e7829827cb1a4e0688e883f52f6b314500835;hpb=690a630c5ec361c50be7b6c84d5f9963948a1b3c;p=lyx.git diff --git a/src/frontends/Selection.h b/src/frontends/Selection.h index 6c7e782982..ac902ffc1e 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 { @@ -57,14 +57,20 @@ public: * from the kernel and push it to X with this method. */ virtual void put(docstring const &) = 0; + /** + * Is the X selection empty? + * This does always return true on systems that don't have a real + * selection. + */ + virtual bool empty() const = 0; }; } // namespace frontend -/// Implementation is in Application.C +/// Implementation is in Application.cpp extern frontend::Selection & theSelection(); } // namespace lyx -#endif // BASE_SELECTION_H +#endif // SELECTION_H