I posted this to -devel, but it said the moderator would have to approve it, so maybe it wasn't the right place

I am having some difficulty finding exactly what to do... I would
really appreciate some direction...

I am working on a notetaking application (think onenote) I want to
have the ability to embed formulas in the document. Right now I am
doing this for a class project (i.e. I just want to get it working
atm), but would like to expand/improve it in the future, I have some
interest from classmates who want to help w/ the project.

Anyway I found KFormula and really like the design (props to those
involved). I want to use it like a widget in my program. I am using
Ubuntu, and have koffice-dev installed, but I don't have the KFormula
headers anywhere on my system. I have /usr/lib/libkformula.* and
/usr/lib/kformulamain.* (which I don't think I need for this). Do I
basically need to copy over the .h's from the KOffice source tarball
into my project and link against libkformula? Is that the right way to
do this? I have been trying to look at the kformula binary's source
code and am just getting confused. Also do I need to make my app a
KOffice app to be able to use KFormula? Right now it's just a KDE app.
I wouldn't be opposed to this, and I think I could just use the
example provided with KOffice's source to do it if I need to.

Thanks in advance for any advice/direction :)

~Jake B