-// -*- C++ -*-
/* This file is part of
* ======================================================
*
#include "lyxfind.h"
#include "debug.h"
#include "gettext.h"
+#include "BufferView.h"
+#include "support/lstrings.h"
using Liason::setMinibuffer;
using SigC::slot;
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!"));
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!"));