}
XSubTotalCalculatable xSTC = (XSubTotalCalculatable)
UnoRuntime.queryInterface(XSubTotalCalculatable.class, oSheet);
XSubTotalDescriptor xSTD = xSTC.createSubTotalDescriptor(true);
SubTotalColumn[] columns = new SubTotalColumn[1];
SubTotalColumn column = new SubTotalColumn();
column.Column = 5;
column.Function = GeneralFunction.SUM;
columns[0] = column;
xSTD.addNew(columns, 1);
XIndexAccess oDescIndex = (XIndexAccess)
UnoRuntime.queryInterface(XIndexAccess.class, xSTD);
XInterface oObj = null;