* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-2000 The LyX Team.
+ * Copyright 1995-2001 The LyX Team.
*
* ====================================================== */
#include "debug.h"
#include "support/lstrings.h"
#include "LyXView.h"
-#include "lyxfunc.h"
#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
#include "lyxlookup.h"
namespace {
-//static
inline
void waitForX()
{
<< keysym << "]" << endl;
}
-#if FL_REVISION < 89
+#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
if (keysym == NoSymbol) {
lyxerr[Debug::KEY]
<< "Empty kdb action (probably composing)"
//}
}
-#endif
+#endif
unsigned int const ret_state = xke->state;
// If you have a better way to handle "wild-output" of
// characters after the key has been released than the one
// below, please contact me. (Lgb)
- static Time last_time_pressed = 0;
- static unsigned int last_key_pressed = 0;
- static unsigned int last_state_pressed = 0;
+ static Time last_time_pressed;
+ static unsigned int last_key_pressed;
+ static unsigned int last_state_pressed;
lyxerr[Debug::KEY] << "Workarea Diff: "
<< xke->time - last_time_pressed
<< endl;
}
-static string clipboard_selection;
-static bool clipboard_read = false;
+namespace {
-extern "C" {
- static
+string clipboard_selection;
+bool clipboard_read = false;
+
+extern "C"
int request_clipboard_cb(FL_OBJECT * /*ob*/, long /*type*/,
void const * data, long size)
{
clipboard_read = true;
return 0;
}
-} // extern "C"
+} // namespace anon
string const WorkArea::getClipboard() const
{
static string hold;
hold = s;
- fl_stuff_clipboard(work_area, 0, hold.c_str(), hold.size(), 0);
+ fl_stuff_clipboard(work_area, 0, hold.data(), hold.size(), 0);
}