#include "lyxrc.h"
#include "intl.h"
#include "support/LAssert.h"
+
using std::pair;
using std::endl;
+using std::vector;
/* the selection possible is needed, that only motion events are
* used, where the bottom press event was on the drawing area too */
}
+#ifndef XFORMS_CLIPBOARD
static
string fromClipboard(Window win, XEvent * event)
{
update(1);
}
}
+#endif
void BufferView::Pimpl::update()
update(0);
redraw();
}
+
+
+#ifdef XFORMS_CLIPBOARD
+void BufferView::Pimpl::pasteSelection(bool asPara)
+{
+ if (buffer_ == 0) return;
+
+ screen->HideCursor();
+ bv_->beforeChange();
+
+ string clip(workarea->getClipboard());
+
+ if (clip.empty()) return;
+
+ if (asPara) {
+ bv_->text->InsertStringB(clip);
+ } else {
+ bv_->text->InsertStringA(clip);
+ }
+ update(1);
+}
+#endif