Hi,
I am currently looking at the find/replace code the functional part of which
is located in lyxfr1.[Ch]. It defines a LyXFindReplace class which has as
private members a bufferview and a search form. I do not have the impression
that this is very convenient from the point of view of guii. I'd rather have
more "generic" functions that can be called at will, something like this:
LyXSearch(bufferview *, string searchStr, bool caseSensitive=false, bool
matchWord=false, bool searchForward=true)
LyXReplace(bufferview *, string searchStr, string replaceStr, bool
caseSensitive=false, bool matchWord=false, bool searchForward=true)
LyXReplaceAll(bufferview *, string searchStr, string replaceStr, bool
caseSensitive=false, bool matchWord=false, bool searchForward=true)
Is this the way to go or is there a good reason for having the code as it is?
Thanks, Ed.