]> source.dussan.org Git - poi.git/commitdiff
Add support for CHP SPRM sprmCFNoProof 0x875
authorSergey Vladimirov <sergey@apache.org>
Mon, 5 Nov 2012 12:09:53 +0000 (12:09 +0000)
committerSergey Vladimirov <sergey@apache.org>
Mon, 5 Nov 2012 12:09:53 +0000 (12:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1405762 13f79535-47bb-0310-9956-ffa450edef68

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

index bc3b798d45831a1501c799593fe9207d6231f4e4..423b569308d9a16f2a902b284458f5aa9baea5d1 100644 (file)
@@ -631,8 +631,19 @@ public final class CharacterSprmUncompressor extends SprmUncompressor
         // sprmCRgLid0
         break;
       case 0x74:
-        // sprmCRgLid1
-        break;
+          // sprmCRgLid1
+          break;
+               case 0x75:
+                       // sprmCFNoProof -- 0x875
+                       /*
+                        * "A ToggleOperand value that specifies whether the text is excluded from the proofing analysis. By default, text is not excluded from the proofing analysis."
+                        * 
+                        * Word (.doc) Binary File Format. Copyright (c) 2012 Microsoft
+                        * Corporation. Released: October 8, 2012
+                        */
+                       newCHP.setFNoProof(getCHPFlag((byte) sprm.getOperand(),
+                                       oldCHP.isFNoProof()));
+                       break;
       default:
           logger.log( POILogger.DEBUG, "Unknown CHP sprm ignored: " + sprm );
           break;