From 3cea6fc818e20622288b35aa7d4fbb23faac8e83 Mon Sep 17 00:00:00 2001 From: Said Ryan Ackley Date: Wed, 9 Jul 2003 01:01:27 +0000 Subject: [PATCH] latest updates git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353197 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hwpf/model/hdftypes/SEPX.java | 9 +++++++++ .../poi/hwpf/model/hdftypes/SectionDescriptor.java | 6 ++++++ .../org/apache/poi/hwpf/model/hdftypes/SectionTable.java | 5 +++++ 3 files changed, 20 insertions(+) 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 { -- 2.39.5