Remove XForms RTL hacks.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5959 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2003-01-15 14:23:21 +00:00
parent 755eb8b989
commit fad0e4343a
5 changed files with 11 additions and 29 deletions

View File

@ -1,3 +1,7 @@
2003-01-15 Dekel Tsur <dekelts@tau.ac.il>
* paragraph.C (asString): Remove XForms RTL hacks.
2003-01-13 Alfredo Braunstein <abraunst@libero.it>
* buffer.C: fix typo

View File

@ -1,3 +1,7 @@
2003-01-15 Dekel Tsur <dekelts@tau.ac.il>
* ControlSpellchecker.[Ch]: Remove XForms RTL hacks.
2003-01-11 Juergen Spitzmueller <j.spitzmueller@gmx.de>
* helper_funcs.[Ch]: implement browseDir (browse directory) [bug 824]

View File

@ -30,13 +30,11 @@
#include "frontends/Alert.h"
#include "support/lstrings.h"
#include "BoostFormat.h"
ControlSpellchecker::ControlSpellchecker(LyXView & lv, Dialogs & d)
: ControlDialogBD(lv, d),
rtl_(false), newval_(0.0), oldval_(0), newvalue_(0), count_(0),
newval_(0.0), oldval_(0), newvalue_(0), count_(0),
stop_(false), speller_(0)
{}
@ -64,14 +62,6 @@ void ControlSpellchecker::setParams()
}
#endif
if (lyxrc.isp_use_alt_lang) {
Language const * lang = languages.getLanguage(tmp);
if (lang)
rtl_ = lang->RightToLeft();
} else {
rtl_ = buffer()->params.language->RightToLeft();
}
if (!speller_->error().empty()) {
emergency_exit_ = true;
Alert::alert("The spellchecker has failed", speller_->error());
@ -153,21 +143,13 @@ void ControlSpellchecker::insert()
string const ControlSpellchecker::getSuggestion() const
{
string miss(speller_->nextMiss());
if (rtl_)
std::reverse(miss.begin(), miss.end());
return miss;
return speller_->nextMiss();
}
string const ControlSpellchecker::getWord() const
{
string tmp = word_.word();
if (rtl_)
std::reverse(tmp.begin(), tmp.end());
return tmp;
return word_.word();
}
@ -231,7 +213,6 @@ void ControlSpellchecker::clearParams()
view().partialUpdate(2);
// reset values to initial
rtl_ = false;
newval_ = 0.0;
oldval_ = 0;
newvalue_ = 0;

View File

@ -71,9 +71,6 @@ private:
/// not needed.
virtual void apply() {}
/// right to left
bool rtl_;
/// current word being checked and lang code
WordLangTuple word_;

View File

@ -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;
@ -1748,9 +1747,6 @@ string const Paragraph::asString(Buffer const * buffer, bool label) const
}
}
if (isRightToLeftPar(bparams))
reverse(s.begin() + len,s.end());
return s;
}