Change user preferences via extension

I have a spelling checker extension that is for a language that requires CTL. Does anyone know how I can automatically enable CTL for users when they install my extension? And what other preferences can be altered on an extension install?

I found the answer searching, so I will post it here for others who are interested.

User preferences can be passed in an extension through a .xcu file.

Detailed instructions can be found here: https://blogs.oracle.com/kkoll/entry/using_extensions_to_change_openoffice