Improve BiffViewer output for SupBookRecord

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1636725 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2014-11-04 20:11:35 +00:00
parent dbfe9f3949
commit 4b479d98c4

View File

@ -134,17 +134,21 @@ public final class SupBookRecord extends StandardRecord {
public String toString() { public String toString() {
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
sb.append(getClass().getName()).append(" [SUPBOOK "); sb.append("[SUPBOOK ");
if(isExternalReferences()) { if(isExternalReferences()) {
sb.append("External References"); sb.append("External References]\n");
sb.append(" nSheets=").append(field_1_number_of_sheets); sb.append(" .url = ").append(field_2_encoded_url).append("\n");
sb.append(" url=").append(field_2_encoded_url); sb.append(" .nSheets = ").append(field_1_number_of_sheets).append("\n");
for (String sheetname : field_3_sheet_names) {
sb.append(" .name = ").append(sheetname).append("\n");
}
sb.append("[/SUPBOOK");
} else if(_isAddInFunctions) { } else if(_isAddInFunctions) {
sb.append("Add-In Functions"); sb.append("Add-In Functions");
} else { } else {
sb.append("Internal References "); sb.append("Internal References");
sb.append(" nSheets= ").append(field_1_number_of_sheets); sb.append(" nSheets=").append(field_1_number_of_sheets);
} }
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();