aAxisProp = ((XAxisYSupplier) UnoRuntime.queryInterface(
XAxisYSupplier.class, maDiagram )).getYAxis();
// add a new custom number format and get the new key
int nNewNumberFormat = 0;
XNumberFormatsSupplier aNumFmtSupp = (XNumberFormatsSupplier) UnoRuntime.queryInterface(
XNumberFormatsSupplier.class, maChartDocument );
if( aNumFmtSupp != null )
{
XNumberFormats aFormats = aNumFmtSupp.getNumberFormats();
Locale aLocale = new Locale( "de", "DE", "de" );
String aFormatStr = aFormats.generateFormat( nNewNumberFormat, aLocale, true, true, (short)3, (short)1 );
nNewNumberFormat = aFormats.addNew( aFormatStr, aLocale );
}