}
+void clearCutStack()
+{
+ theCuts.clear();
+}
+
+
docstring getSelection(Buffer const & buf, size_t sel_index)
{
return sel_index < theCuts.size()
bool selection();
/// Clear our selection buffer
void clearSelection();
+/// Clear our cut stack.
+void clearCutStack();
/// Paste the current selection at \p cur
/// Does handle undo. Does only work in text, not mathed.
void pasteSelection(Cursor & cur, ErrorList &);
#include "buffer_funcs.h"
#include "BufferList.h"
#include "Converter.h"
+#include "CutAndPaste.h"
#include "debug.h"
#include "Encoding.h"
#include "ErrorList.h"
void LyX::prepareExit()
{
+ // Clear the clipboard and selection stack:
+ cap::clearCutStack();
+ cap::clearSelection();
+
// Set a flag that we do quitting from the program,
// so no refreshes are necessary.
quitting = true;