]> git.lyx.org Git - lyx.git/blobdiff - src/DocIterator.cpp
At least for now, this has to be done differently.
[lyx.git] / src / DocIterator.cpp
index 40c4ae4adc278a5f91cc11a0b5343685efb4bfe6..6115bf287992a0f7760ee9095bf816b675c6abc9 100644 (file)
@@ -17,6 +17,7 @@
 #include "Buffer.h"
 #include "InsetList.h"
 #include "Paragraph.h"
+#include "LyXRC.h"
 #include "Text.h"
 
 #include "mathed/MathData.h"
 
 #include "support/debug.h"
 #include "support/lassert.h"
+#include "support/lstrings.h"
 
 #include <ostream>
 
 using namespace std;
+using namespace lyx::support;
 
 namespace lyx {
 
@@ -312,7 +315,7 @@ void DocIterator::forwardPosIgnoreCollapsed()
        // FIXME: the check for asInsetMath() shouldn't be necessary
        // but math insets do not return a sensible editable() state yet.
        if (nextinset && !nextinset->asInsetMath()
-           && nextinset->editable() != Inset::HIGHLY_EDITABLE) {
+           && !nextinset->editable()) {
                ++top().pos();
                return;
        }
@@ -607,4 +610,9 @@ bool operator==(StableDocIterator const & dit1, StableDocIterator const & dit2)
 }
 
 
+bool isLetter(DocIterator const & dit)
+{
+       return dit.inTexted() && dit.paragraph().isLetter(dit.pos());
+}
+
 } // namespace lyx