]> git.lyx.org Git - features.git/blobdiff - src/insets/insettext.C
the spellcheck cleanup
[features.git] / src / insets / insettext.C
index 150193edc1a647da6ae3ccb684e3fd0d23c488ca..e029e2cd497f6f226fc858c68a1f564c09641767 100644 (file)
@@ -1455,79 +1455,6 @@ LyXCursor const & InsetText::cursor(BufferView * bv) const
 }
 
 
-bool InsetText::nextChange(BufferView * bv, lyx::pos_type & length)
-{
-       if (the_locking_inset) {
-               if (the_locking_inset->nextChange(bv, length))
-                       return true;
-               text_.cursorRight(true);
-       }
-       lyx::find::SearchResult result =
-               lyx::find::findNextChange(bv, &text_, length);
-
-       if (result == lyx::find::SR_FOUND) {
-               LyXCursor cur = text_.cursor;
-               bv->unlockInset(bv->theLockingInset());
-               if (bv->lockInset(this))
-                       locked = true;
-               text_.cursor = cur;
-               text_.setSelectionRange(length);
-               updateLocal(bv, false);
-       }
-       return result != lyx::find::SR_NOT_FOUND;
-}
-
-
-bool InsetText::searchForward(BufferView * bv, string const & str,
-                             bool cs, bool mw)
-{
-       if (the_locking_inset) {
-               if (the_locking_inset->searchForward(bv, str, cs, mw))
-                       return true;
-               text_.cursorRight(true);
-       }
-       lyx::find::SearchResult result =
-               lyx::find::find(bv, &text_, str, true, cs, mw);
-
-       if (result == lyx::find::SR_FOUND) {
-               LyXCursor cur = text_.cursor;
-               bv->unlockInset(bv->theLockingInset());
-               if (bv->lockInset(this))
-                       locked = true;
-               text_.cursor = cur;
-               text_.setSelectionRange(str.length());
-               updateLocal(bv, false);
-       }
-       return result != lyx::find::SR_NOT_FOUND;
-}
-
-
-bool InsetText::searchBackward(BufferView * bv, string const & str,
-                              bool cs, bool mw)
-{
-       if (the_locking_inset) {
-               if (the_locking_inset->searchBackward(bv, str, cs, mw))
-                       return true;
-       }
-       if (!locked) {
-               text_.setCursor(paragraphs.size() - 1, paragraphs.back().size());
-       }
-       lyx::find::SearchResult result =
-               lyx::find::find(bv, &text_, str, false, cs, mw);
-
-       if (result == lyx::find::SR_FOUND) {
-               LyXCursor cur = text_.cursor;
-               bv->unlockInset(bv->theLockingInset());
-               if (bv->lockInset(this))
-                       locked = true;
-               text_.cursor = cur;
-               text_.setSelectionRange(str.length());
-               updateLocal(bv, false);
-       }
-       return result != lyx::find::SR_NOT_FOUND;
-}
-
-
 bool InsetText::checkInsertChar(LyXFont & font)
 {
        return owner() ? owner()->checkInsertChar(font) : true;