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
1113111411151116111711181119112011211122112311241125
_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)) ) ); } }
1613161416151616161716181619162016211622
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)) ) ); }
936937938939940941942943944945946947948
/** * 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; }
947948949950951952953954955956957
return retval; } private GutsRecord getGutsRecord() { if (_gutsRecord == null) { GutsRecord result = createGuts(); RecordOrderer.addNewSheetRecord(_records, result); _gutsRecord = result; } return _gutsRecord;
1144114511461147114811491150115111521153115411551156
1632163316341635163616371638163916401641
927928929930931932933934935936937938939
937938939940941942943944945946947
retval.setColLevelMax(( short ) 0); return retval; } private GutsRecord getGutsRecord() { if (_gutsRecord == null) { GutsRecord result = createGuts(); RecordOrderer.addNewSheetRecord(records, result); _gutsRecord = result; } return _gutsRecord;
1142114311441145114611471148114911501151115211531154
1782178317841785178617871788178917901791