Features in Office
o added method to save the styles.xml files out of KoGenStyles.
o handle default styles
o ported test to QTest
o port kspread to the new unified saving code. (it is in this commit as it uses default styles and the handling has changed a bit)
With this change it is now possible to save the styles.xml file when you use the KoGenStyles by simply calling
To save all automatic-styles into content.xml call
saveOdfAutomaticStyles( contentWriter, false );
If there is a style missing that you need in the styles.xml or in the automatic-styles of the content.xml file it has to be added to KoGenStyle.h and to KoGenStyles.cpp. With this change all koffice apps can use the same infrastructure for saving styles which removes a lot of duplicated code.
I have ported most of the applications to use this new function and will commit them soon. KChart is not yet done as first the type used for the styles in KChart has to be changed.
Please test your applications and report back when you find any problems caused by this patch.