]> git.lyx.org Git - features.git/blobdiff - src/Text.h
* no_bidi_isboundary.patch: added isRTLBoundary as a replacement to several reference...
[features.git] / src / Text.h
index a6d4a745e4ae8dff64f3d1aa7a488e8d8664bf69..503bdee356eed8a2d25706162d9ca781082f1442 100644 (file)
@@ -335,6 +335,13 @@ public:
        bool isRTL(Buffer const &, Paragraph const & par) const;
        /// is this position in the paragraph right-to-left?
        bool isRTL(Buffer const & buffer, CursorSlice const & sl, bool boundary) const;
+       /// is between pos-1 and pos an RTL<->LTR boundary?
+       bool isRTLBoundary(Buffer const & buffer, Paragraph const & par,
+         pos_type pos) const;
+       /// would be a RTL<->LTR boundary between pos and the given font?
+       bool isRTLBoundary(Buffer const & buffer, Paragraph const & par,
+         pos_type pos, Font const & font) const;
+
        ///
        bool checkAndActivateInset(Cursor & cur, bool front);