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
917918919920921922923924925926927928929
/** * 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; }
927928929930931932933934935936937
retval.setColLevelMax(( short ) 0); return retval; } private GutsRecord getGutsRecord() { if (_gutsRecord == null) { GutsRecord result = createGuts(); RecordOrderer.addNewSheetRecord(records, result); _gutsRecord = result; } return _gutsRecord;
1130113111321133113411351136113711381139114011411142
_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)) ) ); } }
1794179517961797179817991800180118021803
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)) ) ); }
854855856857858859860861862863864865866
864865866867868869870871872873874
1067106810691070107110721073107410751076107710781079
1707170817091710171117121713171417151716