]> source.dussan.org Git - poi.git/commitdiff
Improve BiffViewer output for SupBookRecord
authorNick Burch <nick@apache.org>
Tue, 4 Nov 2014 20:11:35 +0000 (20:11 +0000)
committerNick Burch <nick@apache.org>
Tue, 4 Nov 2014 20:11:35 +0000 (20:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1636725 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/record/SupBookRecord.java

index 29fa4d91c97e0a93cc9ccb690101e8edab85dc5d..b45fa215af36ddc93ba762f52985de35fea0f58c 100644 (file)
@@ -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();