Open Office automation using c++

Any one help me to automate open office using c++.
I am using centos, g++ compiler and appache open office.
I need to automate the open office using c++ like VBA.
Topic archived. No new replies allowed.