#define BIDI_H
#include "support/types.h"
+
#include <vector>
namespace lyx {
class Buffer;
+class Cursor;
class Paragraph;
class Row;
-class LyXFont;
+class Font;
/// bidi stuff
pos_type pos) const;
///
bool isBoundary(Buffer const &, Paragraph const & par,
- pos_type pos, LyXFont const & font) const;
+ pos_type pos, Font const & font) const;
///
pos_type log2vis(pos_type pos) const;
/** Maps positions in the logical string to positions
pos_type end_;
};
+/// Should interpretation of the arrow keys be reversed?
+bool reverseDirectionNeeded(Cursor const & cur);
+
+/// Is current paragraph in RTL mode?
+bool isWithinRtlParagraph(Cursor const & cur);
} // namespace lyx