From 8dde31fbabbf681cfcab4c6aba64603b35745b32 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Mon, 5 Nov 2012 12:09:53 +0000 Subject: [PATCH] Add support for CHP SPRM sprmCFNoProof 0x875 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1405762 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/hwpf/sprm/CharacterSprmUncompressor.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/sprm/CharacterSprmUncompressor.java b/src/scratchpad/src/org/apache/poi/hwpf/sprm/CharacterSprmUncompressor.java index bc3b798d4..423b56930 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/sprm/CharacterSprmUncompressor.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/sprm/CharacterSprmUncompressor.java @@ -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;