]> source.dussan.org Git - poi.git/commitdiff
a bit more comments (quotes from specifications)
authorSergey Vladimirov <sergey@apache.org>
Sat, 16 Jul 2011 12:36:45 +0000 (12:36 +0000)
committerSergey Vladimirov <sergey@apache.org>
Sat, 16 Jul 2011 12:36:45 +0000 (12:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1147419 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/sprm/CharacterSprmUncompressor.java

index 52c915f4d2a3ca9d5dbdf748c9c16d242692a471..e40bab3581fffc6ac84904ea1d9a4d9fbdcfb77c 100644 (file)
@@ -95,10 +95,23 @@ public final class CharacterSprmUncompressor extends SprmUncompressor
       case 0x2:
         newCHP.setFFldVanish (getFlag (sprm.getOperand()));
         break;
-      case 0x3:
-        newCHP.setFcPic (sprm.getOperand());
-        newCHP.setFSpec (true);
-        break;
+        case 0x3:
+            // sprmCPicLocation -- 0x6A03
+            /*
+             * Microsoft Office Word 97-2007 Binary File Format (.doc)
+             * Specification
+             * 
+             * Page 75 of 210
+             * 
+             * sprmCPicLocation (opcode 0x6A03) is used ONLY IN CHPX FKPs. This
+             * sprm moves the 4-byte operand of the sprm into the chp.fcPic
+             * field. It simultaneously sets chp.fSpec to 1. This sprm is also
+             * used when the chp.lTagObj field that is unioned with chp.fcPic is
+             * to be set for OLE objects.
+             */
+            newCHP.setFcPic( sprm.getOperand() );
+            newCHP.setFSpec( true );
+            break;
       case 0x4:
         newCHP.setIbstRMark ((short) sprm.getOperand());
         break;
@@ -475,9 +488,10 @@ public final class CharacterSprmUncompressor extends SprmUncompressor
       case 0x54:
         newCHP.setFImprint (getFlag (sprm.getOperand()));
         break;
-      case 0x55:
-        newCHP.setFSpec (getFlag (sprm.getOperand()));
-        break;
+        case 0x55:
+            // sprmCFSpec -- 0x0855
+            newCHP.setFSpec( getFlag( sprm.getOperand() ) );
+            break;
       case 0x56:
         newCHP.setFObj (getFlag (sprm.getOperand()));
         break;