Hi, lijian wrote: > Hi Oliver, > >> The Writer has one selection. Searching in a selection results in a >> change of exactly that selection. A repeated 'search in selection' will >> now search in _that_ selection and not find anything new. > You mean that every time search-in-selection done will lead to change of > of contents of that exact selection? yes
>> Search & replace can be done with or >> without dialog and between an execution of 'search in selection' the >> user might change the selection. > What do you mean by this? > > If we want to do this issue, what should we do? > When search in selection is executed the SwView has to save the selection. At the next exection that saved selection needs to be restored. The beginning (or end for backward search) of the selection has to be cut until the end (or start) of the first result. Once the user modifies the selection (the last search result) the saved cursor has to be destroyed. See in sw/source/ui/dialog/SwSpellDialogChildWindow.cxx ::GetFocus how this is done for the spell check dialog. Regards, Oliver --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
