Why doesn't a paragraph store its language. Currently we have
Language const * Paragraph::getParLanguage(BufferParams const & bparams) const { if (!empty()) return getFirstFontSettings().language(); #warning FIXME we should check the prev par as well (Lgb) return bparams.language; } bool Paragraph::isRightToLeftPar(BufferParams const & bparams) const { return lyxrc.rtl_support && getParLanguage(bparams)->RightToLeft() && !(inInset() && inInset()->owner() && inInset()->owner()->lyxCode() == InsetOld::ERT_CODE); } I.e. we need to pass around BufferParams arguments, which at some point translates to a 'Buffer *' argument which in turn leads e.g. to Buffer * members in InsetTabular etc. This is ugly and messy and... Why is it like that? Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)