#include "bufferview_funcs.h"
#include "BufferView.h"
-#include "paragraph.h"
-#include "lyxfont.h"
#include "lyxlex.h"
-#include "lyxtext.h"
#include "buffer.h"
-#include "lyx_cb.h"
#include "language.h"
#include "gettext.h"
#include "ParagraphParameters.h"
-#include "author.h"
-#include "changes.h"
#include "frontends/LyXView.h"
#include "frontends/Alert.h"
#include "mathed/math_cursor.h"
#include "support/tostr.h"
-#include "Lsstream.h"
+#include "support/std_sstream.h"
-#include "insets/updatableinset.h"
-#include <boost/bind.hpp>
-#include <algorithm>
+#include "insets/insettext.h"
using namespace lyx::support;
bool const changed = text->changeDepth(type, false);
if (text->inset_owner)
- bv->updateInset();
- bv->update();
+ bv->updateInset(text->inset_owner);
return changed;
}
}
#ifdef DEVEL_VERSION
state << _(", Paragraph: ") << text->cursor.par()->id();
- state << " Inset: " <<
+ state << _(", Position: ") << text->cursor.pos();
+ RowList::iterator rit = text->cursorRow();
+ state << bformat(_(", Row b:%1$d e:%2$d"), rit->pos(), rit->end());
+ state << _(", Inset: ") <<
(text->cursor.par()->inInset() ? text->cursor.par()->inInset()->id() : -1);
#endif
return STRCONV(state.str());
if (font.language() != ignore_language ||
font.number() != LyXFont::IGNORE) {
LyXCursor & cursor = text->cursor;
- text->computeBidiTables(text->cursor.par(), bv->buffer(),
+ text->computeBidiTables(text->cursor.par(), *bv->buffer(),
text->cursorRow());
if (cursor.boundary() !=
- text->isBoundary(bv->buffer(), *cursor.par(), cursor.pos(),
+ text->isBoundary(*bv->buffer(), *cursor.par(), cursor.pos(),
text->real_current_font))
text->setCursor(cursor.par(), cursor.pos(),
false, !cursor.boundary());