This little demo shows how to embed a AbiWord Bonobo control into a GTK
program.

You'll need AbiWord > 2.0 and the GNOME_AbiWord_Control_2_0.server IDL
file placed in /usr/lib/bonobo/servers

Recent Linux distros like fedora-1 should this for you or you can can just 
grab a 2.0.3 GNOME rpm and "embeddable" rpm and install them.

The program loads simple document with a nice little table called
AbiTableTest.abw at line 240 in the test-abi2Container.c.

You'll need to change the full path name of "/home/msevior/abiBonoboDemo"
to where-ever you place this directory.

If you know how to fix this to use a relative path to where the directory is placed, please send me a patch :-)

To build type "make"
The clean up type "make clean"

To play, load in the document (or one of your own  via the "load-file" command)
Click in the window and start typing. Try changing th column widths, and heights like you normally would.

Resize the app and watch AbiWord zoom to fit inside the new window.

Then type "undo" in the command line and watch your changes get undone. Type "redo" see them come back. Type something missspelled and see it get underlined with squiggles.

Have fun and think of the possiblities for your app :-)

Martin Sevior
<msevior@physics.unimelb.edu.au>

