In Writer document there is Find area to find words in document. But there is not Find & Replace area.
Hi, I have started working on this issue, and have uploaded an initial version at https://gerrit.libreoffice.org/#/c/38287/ Currently just created the UI and attached functions to perform search. Found the code related to save and replace for core in the following files: writer implementation - /sw/source/uibase/uiview/viewsrch.cxx dialog box - /svx/source/dialog/srchdlg.cxx and this /include/svl/srchitem.hxx I would be very thankful if you could help me on the following things: - is there a reference with all uno commands and their arguments. - if not, then how should i proceed further, as in do what changes where. - can you guide me to some more material that i could read or watch to get a better understanding about the working here.
(In reply to Aditya Dewan from comment #1) > Hi, > > I have started working on this issue, and have uploaded an initial version > at https://gerrit.libreoffice.org/#/c/38287/ > Currently just created the UI and attached functions to perform search. > > > Found the code related to save and replace for core in the following files: > writer implementation - /sw/source/uibase/uiview/viewsrch.cxx > dialog box - /svx/source/dialog/srchdlg.cxx > and this /include/svl/srchitem.hxx > My hope is no need to dig that deeper. > > I would be very thankful if you could help me on the following things: > - is there a reference with all uno commands and their arguments. https://wiki.documentfoundation.org/Development/DispatchCommands This should help to some extend, but it doesn't tell you what arguments are accepted. For that you would need to grep for slot id in the .sdi files. So something like 'git grep FID_REPLACE_ALL -- *.sdi' should give you the reference to appropriate code. From there you can know what are the arguments that are being passed. > - if not, then how should i proceed further, as in do what changes where. > - can you guide me to some more material that i could read or watch to get > a better understanding about the working here. I don't think you would need to dig deeper into the implementation of these dialog boxes etc. The knowledge about UNO commands and what arguments they accept should be enough to implement this feature. Can you play with these uno commands and their arguments and see if they do the work.
Aditya Dewan committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/online/commit/?id=ccca292d7d50c7bbb0a5bdf29ac9981be07c41c1 tdf#97020 Adding find&replace functionality
Aditya Dewan committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/online/commit/?id=3c121dad3765f3de68390d160210075701cde9b7 tdf#97020 follow up - Adding find&replace functionality
Aditya Dewan committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/online/commit/?id=b833f9c93509dd2f01031141d2e57eec976deef3 tdf#97020 follow up | heading/label not selectable now