X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBidi.h;h=2fdb3abad341c249e083b2450fd16510c94b778d;hb=cadae068974fb25e97c5b2c38774a73ee23e92fc;hp=5287b1455c508f0526fe93b2c82108f31bd422d8;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/Bidi.h b/src/Bidi.h index 5287b1455c..2fdb3abad3 100644 --- a/src/Bidi.h +++ b/src/Bidi.h @@ -13,6 +13,7 @@ #define BIDI_H #include "support/types.h" +#include "Cursor.h" #include @@ -21,7 +22,7 @@ namespace lyx { class Buffer; class Paragraph; class Row; -class LyXFont; +class Font; /// bidi stuff @@ -32,7 +33,7 @@ public: 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 @@ -65,6 +66,11 @@ private: 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