Hi Carsten, Sorry,up to now,I sent message to you. I have updated source to DEVooo_m45, and debuged these search codes regarding sw, sc. Now, I understand how to search text.
Fisrt I have seen the serchdlg was created and initialized in the svx module. Second,I have found the SwViewExecSearch() menthod was called in the sw module, the ScTabViewShell::ExecSearch() method was called in the sc module. Certain there is different in the sc and sw module. I think it so hard to move search codes to common mudule. So, I have created a little plans for the search toolbar. a. we can discuss what is the search toolbar's face (like firefox search toolbar)? b. we discuss what do the search toolbar can do *detailed*? c. we analyze these search codes and discuss how move them to common code(Searchdlg and toolbar can call them). d. how to do that ? Best Regards. Shizhoubo.