#include "qt_helpers.h"
#include "Language.h"
+#include "Buffer.h"
#include "BufferParams.h"
#include "BufferList.h"
+#include "BufferView.h"
+#include "Text.h"
#include "TextClass.h"
#include "Cursor.h"
#include "FuncRequest.h"
+#include "LyX.h"
#include "lyxfind.h"
#include "frontends/alert.h"
// back to how it was
searchbackCB->setChecked(searchback);
return true;
- break;
- }
+ }
+
case Qt::Key_Tab:
if (e->modifiers() == Qt::NoModifier) {
if (obj == find_work_area_){
static vector<string> const & allManualsFiles()
{
- static vector<string> v;
static const char * files[] = {
"Intro", "UserGuide", "Tutorial", "Additional",
"EmbeddedObjects", "Math", "Customization", "Shortcuts",
"LFUNs", "LaTeXConfig"
};
+
+ static vector<string> v;
if (v.empty()) {
FileName fname;
for (size_t i = 0; i < sizeof(files) / sizeof(files[0]); ++i) {
v.push_back(fname.absFileName());
}
}
+
return v;
}
scope = FindAndReplaceOptions::S_ALL_MANUALS;
else
LATTEST(false);
+
+ FindAndReplaceOptions::SearchRestriction restr =
+ OnlyMaths->isChecked()
+ ? FindAndReplaceOptions::R_ONLY_MATHS
+ : FindAndReplaceOptions::R_EVERYTHING;
+
LYXERR(Debug::FIND, "FindAndReplaceOptions: "
<< "find_buf_name=" << find_buf_name
<< ", casesensitiv=" << casesensitive
<< ", ignoreformat=" << ignoreformat
<< ", repl_buf_name" << repl_buf_name
<< ", keep_case=" << keep_case
- << ", scope=" << scope);
+ << ", scope=" << scope
+ << ", restr=" << restr);
+
FindAndReplaceOptions opt(find_buf_name, casesensitive, matchword,
!backwards, expandmacros, ignoreformat,
- repl_buf_name, keep_case, scope);
+ repl_buf_name, keep_case, scope, restr);
return findAndReplaceScope(opt, replace_all);
}