2001-06-14 08:20:41 +00:00
|
|
|
// -*- C++ -*-
|
2001-03-06 10:20:33 +00:00
|
|
|
#ifndef LYXFIND_H
|
|
|
|
#define LYXFIND_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "LString.h"
|
2001-06-25 00:06:33 +00:00
|
|
|
#include "paragraph.h"
|
2001-03-06 10:20:33 +00:00
|
|
|
|
|
|
|
class BufferView;
|
|
|
|
|
|
|
|
int LyXReplace(BufferView * bv, string const &, string const &,
|
|
|
|
bool const &, bool const &, bool const &, bool const & = false);
|
|
|
|
|
|
|
|
bool LyXFind(BufferView * bv, string const &, bool const &, bool const &,
|
|
|
|
bool const &);
|
|
|
|
|
|
|
|
/// returns true if the specified string is at the specified position
|
2001-06-25 00:06:33 +00:00
|
|
|
bool IsStringInText(Paragraph * par, Paragraph::size_type pos,
|
2001-03-06 10:20:33 +00:00
|
|
|
string const & str, bool const & = true,
|
|
|
|
bool const & = false);
|
|
|
|
|
|
|
|
/// if the string is found: return true and set the cursor to the new position
|
|
|
|
bool SearchForward(BufferView *, string const & str, bool const & = true,
|
|
|
|
bool const & = false);
|
|
|
|
///
|
|
|
|
bool SearchBackward(BufferView *, string const & str, bool const & = true,
|
|
|
|
bool const & = false);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|