]> git.lyx.org Git - lyx.git/blobdiff - src/Text.h
- Fileformat change: rename "arabic" to "arabic_arabtex"
[lyx.git] / src / Text.h
index f7c9d9d24fe34a89bd339f698eb6036b5fff3ff8..5ab0864d7f9f7831116124210e058cded51ec039 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);
 
@@ -371,8 +378,6 @@ public:
        ///
        int background_color_;
 
-       ///
-       mutable Bidi bidi;
        ///
        ParagraphList pars_;
 
@@ -407,6 +412,10 @@ private:
        void charInserted();
        /// set 'number' font property
        void number(Cursor & cur);
+       /// draw selection for a single row
+       void drawRowSelection(PainterInfo & pi, int x, Row const & row,
+               DocIterator const & beg, DocIterator const & end, 
+               bool drawOnBegMargin, bool drawOnEndMargin) const;
 
        /// paste plain text at current cursor.
        /// \param str string to paste