diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SEPX.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SEPX.java index 97951e3801..8547a5a1f9 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SEPX.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SEPX.java @@ -78,4 +78,13 @@ public class SEPX extends PropertyNode return _sed; } + public boolean equals(Object o) + { + SEPX sepx = (SEPX)o; + if (super.equals(o)) + { + return sepx._sed.equals(_sed); + } + return false; + } } diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SectionDescriptor.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SectionDescriptor.java index 5c2d4a0ae9..8e4bf21eec 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SectionDescriptor.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SectionDescriptor.java @@ -91,6 +91,12 @@ public class SectionDescriptor this.fc = fc; } + public boolean equals(Object o) + { + SectionDescriptor sed = (SectionDescriptor)o; + return sed.fn == fn && sed.fnMpr == fnMpr; + } + public byte[] toByteArray() { int offset = 0; diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SectionTable.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SectionTable.java index 9ea3157304..85962f7ced 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SectionTable.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SectionTable.java @@ -100,6 +100,11 @@ public class SectionTable } } + public ArrayList getSections() + { + return _sections; + } + public void writeTo(HWPFFileSystem sys, int fcMin) throws IOException {