for better readability; move functions to the right place

git-svn-id: svn+ssh://svn.abisource.com/svnroot/abiword/branches/gsoc2013tables@33335 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6