]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/WorkArea.h
Extracted from r14281
[lyx.git] / src / frontends / WorkArea.h
index c8a846c9f537dc9924e6225708d3c61aab3e94ca..ffa8b2bc42e13db610dbbcb47876a2517813ddb9 100644 (file)
  * Full author contact details are available in file CREDITS.
  */
 
+// X11 use a define called CursorShape, and we really want to use
+// that name our selves. Therefore we do something similar to what is done
+// in kde/fixx11h.h:
+namespace X {
+#ifdef CursorShape
+#ifndef FIXX11H_CursorShape
+#define FIXX11H_CursorShape
+int const XCursorShape = CursorShape;
+#undef CursorShape
+int const CursorShape = CursorShape;
+#endif
+#undef CursorShape
+#endif
+} // namespace X
+
+
 #ifndef BASE_WORKAREA_H
 #define BASE_WORKAREA_H
 
-#include "frontends/GuiCursor.h"
-
 #include "frontends/key_state.h"
 #include "frontends/LyXKeySym.h"
 #include "frontends/Timeout.h"
@@ -27,6 +41,17 @@ namespace frontend {
 
 class Painter;
 
+/// types of cursor in work area
+enum CursorShape {
+       /// normal I-beam
+       BAR_SHAPE,
+       /// L-shape for locked insets of a different language
+       L_SHAPE,
+       /// reverse L-shape for RTL text
+       REVERSED_L_SHAPE
+};
+
+
 /**
  * The work area class represents the widget that provides the
  * view onto a document. It is owned by the BufferView, and