Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

With my estension EasyDev, you can:

util = createUnoService("org.universolibre.EasyDev")
opt = createUnoStruct("org.universolibre.EasyDev.SearchReplace")

doc = ThisComponent
opt.Doc = doc
opt.Search = "test"

found = util.search(opt)
util.selectText(doc, found)

See doc: http://easydev.readthedocs.org/en/latest/liboapp.html#search