2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2001 The LyX Team.
9 * ======================================================
11 * \file ControlSearch.h
12 * \author Angus Leeming <a.leeming@ic.ac.uk>
15 #ifndef CONTROLSEARCH_H
16 #define CONTROLSEARCH_H
22 #include "ControlDialogs.h"
24 /** A controller for Search dialogs.
26 class ControlSearch : public ControlDialog<ControlConnectBD> {
29 ControlSearch(LyXView &, Dialogs &);
31 /// Searches occurence of string
32 void find(string const & search,
33 bool casesensitive, bool matchword, bool forward) const;
35 /// Replaces occurence of string
36 void replace(string const & search, string const & replace,
37 bool casesensitive, bool matchword, bool all) const;
41 virtual void apply() {}
44 #endif // CONTROLSEARCH_H