]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlSearch.C
Rob Lahaye's "iconify dialogs with main window if so desired" patch.
[lyx.git] / src / frontends / controllers / ControlSearch.C
index ca077e000b3fa0d2b809be9c7090e6c2912f8d56..7315d7139bc2702070a2ee5227cb3c7140c95272 100644 (file)
@@ -17,6 +17,8 @@
 #pragma implementation
 #endif
 
+#include "ViewBase.h"
+#include "ButtonControllerBase.h"
 #include "ControlSearch.h"
 #include "Dialogs.h"
 #include "Liason.h"
@@ -24,6 +26,9 @@
 #include "buffer.h"
 #include "lyxfind.h"
 #include "debug.h"
+#include "gettext.h"
+#include "BufferView.h"
+#include "support/lstrings.h"
 
 using Liason::setMinibuffer;
 using SigC::slot;
@@ -42,8 +47,8 @@ ControlSearch::ControlSearch(LyXView & lv, Dialogs & d)
 void ControlSearch::find(string const & search,
                         bool casesensitive, bool matchword, bool forward) const
 {
-       bool const found = LyXFind(lv_.view(), search, casesensitive,
-                                  matchword, forward);
+       bool const found = LyXFind(lv_.view(), search,
+                                  forward, false, casesensitive, matchword);
    
        if (!found)
                setMinibuffer(&lv_, _("String not found!"));
@@ -54,8 +59,8 @@ void ControlSearch::replace(string const & search, string const & replace,
                            bool casesensitive, bool matchword, bool all) const
 {
        int const replace_count = LyXReplace(lv_.view(),
-                                            search, replace, casesensitive, 
-                                            matchword, true, all);
+                                            search, replace, true, casesensitive, 
+                                            matchword, all);
                                  
        if (replace_count == 0) {
                setMinibuffer(&lv_, _("String not found!"));