From fa3c093c1379afd02d4073aa2476b829bc1b84e0 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Wed, 21 Sep 2011 09:48:16 +0000 Subject: [PATCH] rename STD to StdfBase git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1173548 13f79535-47bb-0310-9956-ffa450edef68 --- ...actType.java => StdfBaseAbstractType.java} | 24 +++++------ .../{std_type.xml => StdfBase_type.xml} | 42 ++++++++++++------- 2 files changed, 39 insertions(+), 27 deletions(-) rename src/scratchpad/src/org/apache/poi/hwpf/model/types/{STDAbstractType.java => StdfBaseAbstractType.java} (97%) rename src/types/definitions/{std_type.xml => StdfBase_type.xml} (55%) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/types/STDAbstractType.java b/src/scratchpad/src/org/apache/poi/hwpf/model/types/StdfBaseAbstractType.java similarity index 97% rename from src/scratchpad/src/org/apache/poi/hwpf/model/types/STDAbstractType.java rename to src/scratchpad/src/org/apache/poi/hwpf/model/types/StdfBaseAbstractType.java index 12938b01b1..8282e38933 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/types/STDAbstractType.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/types/StdfBaseAbstractType.java @@ -22,8 +22,8 @@ import org.apache.poi.util.Internal; import org.apache.poi.util.LittleEndian; /** - * Each individual style description is stored in an STD structure.

Class and - fields descriptions are quoted from Microsoft Office Word 97-2007 Binary File Format and + * The StdfBase structure specifies general information about a style.

Class + and fields descriptions are quoted from Microsoft Office Word 97-2007 Binary File Format and [MS-DOC] - v20110608 Word (.doc) Binary File Format *

@@ -38,7 +38,7 @@ import org.apache.poi.util.LittleEndian; */ @Internal -public abstract class STDAbstractType +public abstract class StdfBaseAbstractType { protected short field_1_info1; @@ -70,7 +70,7 @@ public abstract class STDAbstractType /**/private static final BitField fQFormat = new BitField(0x1000); /**/private static final BitField fReserved = new BitField(0xE000); - protected STDAbstractType() + protected StdfBaseAbstractType() { } @@ -103,7 +103,7 @@ public abstract class STDAbstractType public String toString() { StringBuilder builder = new StringBuilder(); - builder.append("[STD]\n"); + builder.append("[StdfBase]\n"); builder.append(" .info1 = "); builder.append(" (").append(getInfo1()).append(" )\n"); builder.append(" .sti = ").append(getSti()).append('\n'); @@ -138,12 +138,12 @@ public abstract class STDAbstractType builder.append(" .fQFormat = ").append(isFQFormat()).append('\n'); builder.append(" .fReserved = ").append(getFReserved()).append('\n'); - builder.append("[/STD]\n"); + builder.append("[/StdfBase]\n"); return builder.toString(); } /** - * Get the info1 field for the STD record. + * Get the info1 field for the StdfBase record. */ @Internal public short getInfo1() @@ -152,7 +152,7 @@ public abstract class STDAbstractType } /** - * Set the info1 field for the STD record. + * Set the info1 field for the StdfBase record. */ @Internal public void setInfo1( short field_1_info1 ) @@ -161,7 +161,7 @@ public abstract class STDAbstractType } /** - * Get the info2 field for the STD record. + * Get the info2 field for the StdfBase record. */ @Internal public short getInfo2() @@ -170,7 +170,7 @@ public abstract class STDAbstractType } /** - * Set the info2 field for the STD record. + * Set the info2 field for the StdfBase record. */ @Internal public void setInfo2( short field_2_info2 ) @@ -179,7 +179,7 @@ public abstract class STDAbstractType } /** - * Get the info3 field for the STD record. + * Get the info3 field for the StdfBase record. */ @Internal public short getInfo3() @@ -188,7 +188,7 @@ public abstract class STDAbstractType } /** - * Set the info3 field for the STD record. + * Set the info3 field for the StdfBase record. */ @Internal public void setInfo3( short field_3_info3 ) diff --git a/src/types/definitions/std_type.xml b/src/types/definitions/StdfBase_type.xml similarity index 55% rename from src/types/definitions/std_type.xml rename to src/types/definitions/StdfBase_type.xml index 334b3136be..5b9918ffef 100644 --- a/src/types/definitions/std_type.xml +++ b/src/types/definitions/StdfBase_type.xml @@ -17,10 +17,10 @@ limitations under the License. ==================================================================== --> - + AbstractType - Each individual style description is stored in an STD structure. <p>Class and - fields descriptions are quoted from Microsoft Office Word 97-2007 Binary File Format and + The StdfBase structure specifies general information about a style. <p>Class + and fields descriptions are quoted from Microsoft Office Word 97-2007 Binary File Format and [MS-DOC] - v20110608 Word (.doc) Binary File Format Sergey Vladimirov; according to Microsoft Office Word 97-2007 Binary File Format @@ -45,21 +45,33 @@ - - + + - - - - - - + + + + + + - - + + - - + + -- 2.39.5