finishing Libin's work.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352604 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew C. Oliver 2002-05-07 23:38:06 +00:00
parent 8c3d5d665e
commit 4ab7e8adb0
4 changed files with 28 additions and 3 deletions

View File

@ -655,6 +655,14 @@ public class BiffViewer
retval = new AxisLineFormatRecord(rectype, size, data); retval = new AxisLineFormatRecord(rectype, size, data);
break; break;
case SupBookRecord.sid:
retval = new SupBookRecord(rectype, size, data);
break;
case ExternSheetRecord.sid:
retval = new ExternSheetRecord(rectype, size, data);
break;
default : default :
retval = new UnknownRecord(rectype, size, data); retval = new UnknownRecord(rectype, size, data);

View File

@ -176,6 +176,16 @@ public class ExternSheetRecord extends Record {
public String toString() { public String toString() {
StringBuffer buffer = new StringBuffer(); StringBuffer buffer = new StringBuffer();
buffer.append("[EXTERNSHEET]\n");
buffer.append(" numOfRefs = ").append(getNumOfREFStructures()).append("\n");
for (int k=0; k < this.getNumOfREFRecord(); k++) {
buffer.append("refrec #").append(k).append('\n');
buffer.append(getREFRecordAt(k).toString());
buffer.append("----refrec #").append(k).append('\n');
}
buffer.append("[/EXTERNSHEET]\n");
return buffer.toString(); return buffer.toString();
} }

View File

@ -169,7 +169,9 @@ public class ExternSheetSubRecord extends Record {
public String toString() { public String toString() {
StringBuffer buffer = new StringBuffer(); StringBuffer buffer = new StringBuffer();
buffer.append(" supbookindex =").append(getIndexToSupBook()).append('\n');
buffer.append(" 1stsbindex =").append(getIndexToFirstSupBook()).append('\n');
buffer.append(" lastsbindex =").append(getIndexToLastSupBook()).append('\n');
return buffer.toString(); return buffer.toString();
} }

View File

@ -136,7 +136,12 @@ public class SupBookRecord extends Record
public String toString() public String toString()
{ {
return ""; StringBuffer buffer = new StringBuffer();
buffer.append("[SUPBOOK]\n");
buffer.append("numberosheets = ").append(getNumberOfSheets()).append('\n');
buffer.append("flag = ").append(getFlag()).append('\n');
buffer.append("[/SUPBOOK]\n");
return buffer.toString();
} }
/** /**