Description: Row/column gutter sizes
REFERENCE: PG 320 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
@author Andrew C. Oliver (acoliver at apache dot org) @author Jason Height (jheight at chariot dot net dot au) @version 2.0-pre
874875876877878879880881882883884885886
/** * creates the Guts record and sets leftrow/topcol guttter and rowlevelmax/collevelmax to 0 */ private static GutsRecord createGuts() { GutsRecord retval = new GutsRecord(); retval.setLeftRowGutter(( short ) 0); retval.setTopColGutter(( short ) 0); retval.setRowLevelMax(( short ) 0); retval.setColLevelMax(( short ) 0); return retval; }
885886887888889890891892893894895
return retval; } private GutsRecord getGutsRecord() { if (_gutsRecord == null) { GutsRecord result = createGuts(); RecordOrderer.addNewSheetRecord(_records, result); _gutsRecord = result; } return _gutsRecord;
1080108110821083108410851086108710881089109010911092
_columnInfos.groupColumnRange( fromColumn, toColumn, indent); // Determine the maximum overall level int maxLevel = _columnInfos.getMaxOutlineLevel(); GutsRecord guts = getGutsRecord(); guts.setColLevelMax( (short) ( maxLevel+1 ) ); if (maxLevel == 0) { guts.setTopColGutter( (short)0 ); } else { guts.setTopColGutter( (short) ( 29 + (12 * (maxLevel-1)) ) ); } }
1565156615671568156915701571157215731574
RowRecord rowRecord = (RowRecord) iterator.next(); maxLevel = Math.max(rowRecord.getOutlineLevel(), maxLevel); } // Grab the guts record, adding if needed GutsRecord guts = getGutsRecord(); // Set the levels onto it guts.setRowLevelMax( (short) ( maxLevel + 1 ) ); guts.setLeftRowGutter( (short) ( 29 + (12 * (maxLevel)) ) ); }
887888889890891892893894895896897898899
898899900901902903904905906907908
1093109410951096109710981099110011011102110311041105
1578157915801581158215831584158515861587