summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2014-11-04 20:11:35 +0000
committerNick Burch <nick@apache.org>2014-11-04 20:11:35 +0000
commit30a99d7a0d98472fda5b533c11bb1f8656cd1e35 (patch)
treea1e7ba151ca2782891aea92c1113d326c24ab9f4 /src
parent56e59eeacf7c3af390b94d0cb1fb862f6df98b2e (diff)
downloadpoi-30a99d7a0d98472fda5b533c11bb1f8656cd1e35.tar.gz
poi-30a99d7a0d98472fda5b533c11bb1f8656cd1e35.zip
Improve BiffViewer output for SupBookRecord
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1636725 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/poi/hssf/record/SupBookRecord.java16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/java/org/apache/poi/hssf/record/SupBookRecord.java b/src/java/org/apache/poi/hssf/record/SupBookRecord.java
index 29fa4d91c9..b45fa215af 100644
--- a/src/java/org/apache/poi/hssf/record/SupBookRecord.java
+++ b/src/java/org/apache/poi/hssf/record/SupBookRecord.java
@@ -134,17 +134,21 @@ public final class SupBookRecord extends StandardRecord {
public String toString() {
StringBuffer sb = new StringBuffer();
- sb.append(getClass().getName()).append(" [SUPBOOK ");
+ sb.append("[SUPBOOK ");
if(isExternalReferences()) {
- sb.append("External References");
- sb.append(" nSheets=").append(field_1_number_of_sheets);
- sb.append(" url=").append(field_2_encoded_url);
+ sb.append("External References]\n");
+ sb.append(" .url = ").append(field_2_encoded_url).append("\n");
+ 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) {
sb.append("Add-In Functions");
} else {
- sb.append("Internal References ");
- sb.append(" nSheets= ").append(field_1_number_of_sheets);
+ sb.append("Internal References");
+ sb.append(" nSheets=").append(field_1_number_of_sheets);
}
sb.append("]");
return sb.toString();