2001-06-14 08:20:41 +00:00
|
|
|
// -*- C++ -*-
|
2001-08-31 02:34:10 +00:00
|
|
|
/**
|
2001-08-19 13:25:15 +00:00
|
|
|
* \file QSearch.h
|
2002-09-24 13:57:09 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-08-31 02:34:10 +00:00
|
|
|
*
|
2002-09-24 13:57:09 +00:00
|
|
|
* \author John Levon
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
2001-03-06 14:23:02 +00:00
|
|
|
*/
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#ifndef QSEARCH_H
|
|
|
|
#define QSEARCH_H
|
2001-03-06 14:23:02 +00:00
|
|
|
|
|
|
|
|
2001-08-31 02:34:10 +00:00
|
|
|
#include "Qt2Base.h"
|
|
|
|
|
|
|
|
class ControlSearch;
|
2001-08-19 13:25:15 +00:00
|
|
|
class QSearchDialog;
|
2002-08-12 14:28:43 +00:00
|
|
|
|
2001-03-06 14:23:02 +00:00
|
|
|
|
2001-08-31 02:34:10 +00:00
|
|
|
///
|
|
|
|
class QSearch
|
2002-03-21 21:21:28 +00:00
|
|
|
: public Qt2CB<ControlSearch, Qt2DB<QSearchDialog> >
|
2001-08-31 02:34:10 +00:00
|
|
|
{
|
2001-03-06 14:23:02 +00:00
|
|
|
public:
|
2001-06-05 17:05:51 +00:00
|
|
|
///
|
2001-08-31 02:34:10 +00:00
|
|
|
friend class QSearchDialog;
|
2001-06-05 17:05:51 +00:00
|
|
|
///
|
2002-08-12 14:28:43 +00:00
|
|
|
QSearch();
|
2001-03-06 14:23:02 +00:00
|
|
|
private:
|
2001-08-31 02:34:10 +00:00
|
|
|
/// Apply changes
|
2002-10-20 01:48:28 +00:00
|
|
|
virtual void apply() {}
|
2001-08-31 02:34:10 +00:00
|
|
|
/// update
|
2002-10-20 01:48:28 +00:00
|
|
|
virtual void update_contents() {}
|
2001-08-31 02:34:10 +00:00
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
|
2002-10-20 01:48:28 +00:00
|
|
|
void find(string const & str, bool casesens,
|
|
|
|
bool words, bool backwards);
|
2001-08-31 02:34:10 +00:00
|
|
|
|
|
|
|
void replace(string const & findstr, string const & replacestr,
|
|
|
|
bool casesens, bool words, bool all);
|
2001-03-06 14:23:02 +00:00
|
|
|
};
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#endif // QSEARCH_H
|