-
-extern BufferView *current_view; // called too many times in this file...
-extern MiniBuffer *minibuffer;
-
-// Maximum length copied from the current selection to the search string
-const int LYXSEARCH_MAXLEN = 128;
-
-// function prototypes
-
-bool IsLetterCharOrDigit(char ch);
-
-// If nothing selected, select the word at the cursor.
-// Returns the current selection
-// Note: this function should be in LyXText!
-string const GetSelectionOrWordAtCursor(LyXText *lt);
-
-// Returns the current selection. If nothing is selected or if the selection
-// spans 2 paragraphs, an empty string is returned.
-string const GetCurrentSelectionAsString(LyXText *lt);
-
-// This is a copy of SetSelectionOverString from text.C
-// It does the same, but uses only the length as a parameter
-void SetSelectionOverLenChars(LyXText *lt, int len);
-
-//-------------------------------------------------------------
-
-bool IsLetterCharOrDigit(char ch)
-{
- return IsLetterChar(ch) || isdigit(ch);
-}
-
+#include "lyx_gui_misc.h"
+#include "support/textutils.h"
+#include "support/lstrings.h"
+#include "BufferView.h"
+#include "buffer.h"