]> git.lyx.org Git - features.git/blobdiff - src/bufferview_funcs.C
Replace LString.h with support/std_string.h,
[features.git] / src / bufferview_funcs.C
index 6dc8b3fff80fdc539dcdebc17850f05ff12068ef..d2a945e8fb5fa6be06e26d22e14c76f30ccf137d 100644 (file)
 
 #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 "insets/insettext.h"
-#include <boost/bind.hpp>
-#include <algorithm>
 
 using namespace lyx::support;
 
@@ -364,6 +355,8 @@ string const currentState(BufferView * bv)
 #ifdef DEVEL_VERSION
        state << _(", Paragraph: ") << text->cursor.par()->id();
        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