Where can I find source code for writer

Since I need to programatically build an odt file (content anyway) and I cannot figure out why it won’t build the way I tell it, where can I find the source code for Writer to figure it out myself.

The basic issue is that it resizes picture frames/caption frames larger than the images.

http://www.libreoffice.org/community/developers/

Finally, an absolutely lame question that is absolutely counter-lame against all other lame questions in this forum!