This patch fix the TOC menu/dialog for RTL language in the QT frontend. However, it also breaks it in the XForms frontend. Since the QT toolkit has RTL support, while XForms doesn't, I believe it would be better to concentrate on RTL support for the QT frontend.
Index: paragraph.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/paragraph.C,v retrieving revision 1.233 diff -u -p -r1.233 paragraph.C --- paragraph.C 27 Nov 2002 10:30:13 -0000 1.233 +++ paragraph.C 7 Jan 2003 11:27:09 -0000 @@ -49,7 +49,6 @@ using std::fstream; using std::ios; using std::lower_bound; using std::upper_bound; -using std::reverse; using lyx::pos_type; @@ -1747,9 +1746,6 @@ string const Paragraph::asString(Buffer s += subst(STRCONV(ost.str()),'\n',' '); } } - - if (isRightToLeftPar(bparams)) - reverse(s.begin() + len,s.end()); return s; }