]> source.dussan.org Git - poi.git/commitdiff
add tabs handling and additional SPRMs; update ShadingDescription definition (in...
authorSergey Vladimirov <sergey@apache.org>
Tue, 20 Sep 2011 14:13:08 +0000 (14:13 +0000)
committerSergey Vladimirov <sergey@apache.org>
Tue, 20 Sep 2011 14:13:08 +0000 (14:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1173158 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/dev/FieldIterator.java

index a535fc44394f4498447a45f4a52b7b7eadd37d80..953315eef43244f84264fe65888d4d771736db00 100644 (file)
@@ -78,6 +78,9 @@ public class FieldIterator
         else if ( type.equals( "BorderCode" ) )
             result = "new BorderCode(data, 0x" + Integer.toHexString( offset )
                     + " + offset)";
+        else if ( type.equals( "Colorref" ) )
+            result = "new Colorref(data, 0x" + Integer.toHexString( offset )
+                    + " + offset)";
         else if ( type.equals( "DateAndTime" ) )
             result = "new DateAndTime(data, 0x" + Integer.toHexString( offset )
                     + " + offset)";
@@ -123,6 +126,9 @@ public class FieldIterator
         else if ( type.equals( "BorderCode" ) )
             result = javaFieldName + ".serialize(data, 0x"
                     + Integer.toHexString( offset ) + " + offset);";
+        else if ( type.equals( "Colorref" ) )
+            result = javaFieldName + ".serialize(data, 0x"
+                    + Integer.toHexString( offset ) + " + offset);";
         else if ( type.equals( "DateAndTime" ) )
             result = javaFieldName + ".serialize(data, 0x"
                     + Integer.toHexString( offset ) + " + offset);";