]> git.lyx.org Git - lyx.git/blobdiff - src/support/types.h
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / support / types.h
index bc46ad7dcae87ccf171106ea295b691c070b9bd2..c7711d87b82a4dc15631091747c042ffd51aecd6 100644 (file)
@@ -1,11 +1,21 @@
+// -*- C++ -*-
+/**
+ * \file types.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * Provide a set of typedefs for commonly used things like sizes and
+ * indices wile trying to stay compatible with types used
+ * by the standard containers.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS
+ */
+
 #ifndef LYX_TYPES_H
 #define LYX_TYPES_H
 
-// provide a set of typedefs for commonly used things like sizes and
-// indices while trying to stay compatible with types used by the standard
-// containers.
-
-
 // this probably could be improved by using <cstddef>...
 #include <vector>
 
@@ -60,6 +70,21 @@ namespace lyx
 
 #endif
 
+       ///
+       enum word_location {
+               // the word around the cursor, only if the cursor is
+               //not at a boundary
+               WHOLE_WORD_STRICT,
+               // the word around the cursor
+               WHOLE_WORD,
+               /// the word begining from the cursor position
+               PARTIAL_WORD,
+               /// the word around the cursor or before the cursor
+               PREVIOUS_WORD,
+               /// the next word (not yet used)
+               NEXT_WORD
+       };
+
 }
 
-#endif
+#endif // LYX_TYPES_H