2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2002-09-05 14:10:50 +00:00
|
|
|
/**
|
|
|
|
* \file ControlSearch.h
|
2002-09-05 15:14:23 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-03-26 15:25:37 +00:00
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author Angus Leeming
|
2001-03-26 15:25:37 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-03-26 15:25:37 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLSEARCH_H
|
|
|
|
#define CONTROLSEARCH_H
|
|
|
|
|
|
|
|
|
2002-01-16 14:47:58 +00:00
|
|
|
#include "ControlDialog_impl.h"
|
2001-03-26 15:25:37 +00:00
|
|
|
|
|
|
|
/** A controller for Search dialogs.
|
|
|
|
*/
|
2002-01-16 14:47:58 +00:00
|
|
|
class ControlSearch : public ControlDialogBD {
|
2001-03-26 15:25:37 +00:00
|
|
|
public:
|
|
|
|
///
|
|
|
|
ControlSearch(LyXView &, Dialogs &);
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-03-26 15:25:37 +00:00
|
|
|
/// Searches occurence of string
|
2003-10-06 15:43:21 +00:00
|
|
|
void find(std::string const & search,
|
2002-08-12 20:17:41 +00:00
|
|
|
bool casesensitive, bool matchword, bool forward);
|
2001-03-26 15:25:37 +00:00
|
|
|
|
|
|
|
/// Replaces occurence of string
|
2003-10-06 15:43:21 +00:00
|
|
|
void replace(std::string const & search, std::string const & replace,
|
2002-08-12 20:17:41 +00:00
|
|
|
bool casesensitive, bool matchword, bool all);
|
2001-03-26 15:25:37 +00:00
|
|
|
private:
|
|
|
|
/// not needed.
|
|
|
|
virtual void apply() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLSEARCH_H
|