mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 05:01:49 +00:00
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:
parent
755eb8b989
commit
fad0e4343a
@ -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>
|
2003-01-13 Alfredo Braunstein <abraunst@libero.it>
|
||||||
* buffer.C: fix typo
|
* buffer.C: fix typo
|
||||||
|
|
||||||
|
@ -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>
|
2003-01-11 Juergen Spitzmueller <j.spitzmueller@gmx.de>
|
||||||
|
|
||||||
* helper_funcs.[Ch]: implement browseDir (browse directory) [bug 824]
|
* helper_funcs.[Ch]: implement browseDir (browse directory) [bug 824]
|
||||||
|
@ -30,13 +30,11 @@
|
|||||||
|
|
||||||
#include "frontends/Alert.h"
|
#include "frontends/Alert.h"
|
||||||
|
|
||||||
#include "support/lstrings.h"
|
|
||||||
|
|
||||||
#include "BoostFormat.h"
|
#include "BoostFormat.h"
|
||||||
|
|
||||||
ControlSpellchecker::ControlSpellchecker(LyXView & lv, Dialogs & d)
|
ControlSpellchecker::ControlSpellchecker(LyXView & lv, Dialogs & d)
|
||||||
: ControlDialogBD(lv, 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)
|
stop_(false), speller_(0)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
@ -64,14 +62,6 @@ void ControlSpellchecker::setParams()
|
|||||||
}
|
}
|
||||||
#endif
|
#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()) {
|
if (!speller_->error().empty()) {
|
||||||
emergency_exit_ = true;
|
emergency_exit_ = true;
|
||||||
Alert::alert("The spellchecker has failed", speller_->error());
|
Alert::alert("The spellchecker has failed", speller_->error());
|
||||||
@ -153,21 +143,13 @@ void ControlSpellchecker::insert()
|
|||||||
|
|
||||||
string const ControlSpellchecker::getSuggestion() const
|
string const ControlSpellchecker::getSuggestion() const
|
||||||
{
|
{
|
||||||
string miss(speller_->nextMiss());
|
return speller_->nextMiss();
|
||||||
|
|
||||||
if (rtl_)
|
|
||||||
std::reverse(miss.begin(), miss.end());
|
|
||||||
|
|
||||||
return miss;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
string const ControlSpellchecker::getWord() const
|
string const ControlSpellchecker::getWord() const
|
||||||
{
|
{
|
||||||
string tmp = word_.word();
|
return word_.word();
|
||||||
if (rtl_)
|
|
||||||
std::reverse(tmp.begin(), tmp.end());
|
|
||||||
return tmp;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -231,7 +213,6 @@ void ControlSpellchecker::clearParams()
|
|||||||
view().partialUpdate(2);
|
view().partialUpdate(2);
|
||||||
|
|
||||||
// reset values to initial
|
// reset values to initial
|
||||||
rtl_ = false;
|
|
||||||
newval_ = 0.0;
|
newval_ = 0.0;
|
||||||
oldval_ = 0;
|
oldval_ = 0;
|
||||||
newvalue_ = 0;
|
newvalue_ = 0;
|
||||||
|
@ -71,9 +71,6 @@ private:
|
|||||||
/// not needed.
|
/// not needed.
|
||||||
virtual void apply() {}
|
virtual void apply() {}
|
||||||
|
|
||||||
/// right to left
|
|
||||||
bool rtl_;
|
|
||||||
|
|
||||||
/// current word being checked and lang code
|
/// current word being checked and lang code
|
||||||
WordLangTuple word_;
|
WordLangTuple word_;
|
||||||
|
|
||||||
|
@ -49,7 +49,6 @@ using std::fstream;
|
|||||||
using std::ios;
|
using std::ios;
|
||||||
using std::lower_bound;
|
using std::lower_bound;
|
||||||
using std::upper_bound;
|
using std::upper_bound;
|
||||||
using std::reverse;
|
|
||||||
|
|
||||||
using lyx::pos_type;
|
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;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user