#include "lyxrc.h"
#include "paragraph.h"
-#include "insets/updatableinset.h"
using lyx::pos_type;
void Bidi::computeTables(Paragraph const & par,
- Buffer const & buf, Row & row)
+ Buffer const & buf, Row const & row)
{
same_direction_ = true;
if (!lyxrc.rtl_support) {
return;
}
- InsetOld * inset = par.inInset();
- if (inset && inset->owner() &&
- inset->owner()->lyxCode() == InsetOld::ERT_CODE) {
+ if (par.ownerCode() == InsetBase::ERT_CODE) {
start_ = -1;
return;
}
int lev = 0;
bool rtl = false;
bool rtl0 = false;
- pos_type const body_pos = par.beginningOfBody();
+ pos_type const body_pos = par.beginOfBody();
for (pos_type lpos = start_; lpos <= end_; ++lpos) {
bool is_space = par.isLineSeparator(lpos);