+2003-03-21 Alfredo Braunstein <abraunst@libero.it>
+
+ * lyxtext.h:
+ * text.C: take the rtl methods out of line
2003-03-21 André Pönitz <poenitz@gmx.net>
* lyxtextclass.C: read 'environment' tag.
2003-03-20 Alfredo Braunstein <abraunst@libero.it>
-
- * text2.C (removeRow): fix bug 964
+
+ * text2.C (removeRow): fix bug 964
2003-03-20 John Levon <levon@movementarian.org>
* text2.C: anchor row on setCursor
2003-03-18 Alfredo Braunstein <abraunst@libero.it>
-
- * lyxtext.h: remove almost all mutable keywords
- * text.C:
- * text2.C:
- * text3.C: remove const keywords accordingly
+
+ * lyxtext.h: remove almost all mutable keywords
+ * text.C:
+ * text2.C:
+ * text3.C: remove const keywords accordingly
2003-03-17 Lars Gullik Bjønnes <larsbj@gullik.net>
int workWidth() const;
///
int workWidth(Inset * inset) const;
+
///
void computeBidiTables(Buffer const *, Row * row) const;
-
/// Maps positions in the visual string to positions in logical string.
- inline
- lyx::pos_type log2vis(lyx::pos_type pos) const {
- if (bidi_start == -1)
- return pos;
- else
- return log2vis_list[pos-bidi_start];
- }
-
+ lyx::pos_type log2vis(lyx::pos_type pos) const;
/// Maps positions in the logical string to positions in visual string.
- inline
- lyx::pos_type vis2log(lyx::pos_type pos) const {
- if (bidi_start == -1)
- return pos;
- else
- return vis2log_list[pos-bidi_start];
- }
- ///
- inline
- lyx::pos_type bidi_level(lyx::pos_type pos) const {
- if (bidi_start == -1)
- return 0;
- else
- return bidi_levels[pos-bidi_start];
- }
- ///
- inline
- bool bidi_InRange(lyx::pos_type pos) const {
- return bidi_start == -1 ||
- (bidi_start <= pos && pos <= bidi_end);
- }
+ lyx::pos_type vis2log(lyx::pos_type pos) const;
+ ///
+ lyx::pos_type bidi_level(lyx::pos_type pos) const;
+ ///
+ bool bidi_InRange(lyx::pos_type pos) const;
private:
///
Row * firstrow;
///
mutable std::vector<lyx::pos_type> log2vis_list;
-
///
mutable std::vector<lyx::pos_type> vis2log_list;
-
///
mutable std::vector<lyx::pos_type> bidi_levels;
-
///
mutable lyx::pos_type bidi_start;
-
///
mutable lyx::pos_type bidi_end;
}
+lyx::pos_type LyXText::log2vis(lyx::pos_type pos) const
+{
+ if (bidi_start == -1)
+ return pos;
+ else
+ return log2vis_list[pos-bidi_start];
+}
+
+
+lyx::pos_type LyXText::vis2log(lyx::pos_type pos) const
+{
+ if (bidi_start == -1)
+ return pos;
+ else
+ return vis2log_list[pos-bidi_start];
+}
+
+
+lyx::pos_type LyXText::bidi_level(lyx::pos_type pos) const
+{
+ if (bidi_start == -1)
+ return 0;
+ else
+ return bidi_levels[pos-bidi_start];
+}
+
+
+bool LyXText::bidi_InRange(lyx::pos_type pos) const
+{
+ return bidi_start == -1 ||
+ (bidi_start <= pos && pos <= bidi_end);
+}
+
+
void LyXText::computeBidiTables(Buffer const * buf, Row * row) const
{
bidi_same_direction = true;