LibreOffice Writer autocompletion feature code

Cedric Bosdonnat cbosdonnat at suse.com
Mon Jun 4 00:36:44 PDT 2012


Hi OldDeath,

On Mon, 2012-06-04 at 00:32 +0200, OldDeath wrote:
> I'd like to look into the code of the autocompletion feature as I am
> using it quite often and there are several minor annoyances which I'd
> like to fix if possible. As your codebase is quite large and I am
> completely new to it, might someone kindly give me a clue about where
> to look for the code in question?

You can have a look at the results of the query:
http://opengrok.libreoffice.org/search?q=bAutoCompleteWords&project=core

You'll find in sw the code that is actually doing the Word Completion
work in Writer, and the rest is for the configuration / UI.

The function actually doing the work is
SwEditWin::ShowAutoTextCorrectQuickHelp()

I hope this will help you, and that you'll manage to fix the annoying
things by a nice patch :) BTW if you really want to hack on that, you
can implement a new feature: making the completion words persist.

--
Cedric



More information about the LibreOffice mailing list