a bit more comments (quotes from specifications)

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1147419 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-07-16 12:36:45 +00:00
parent df3357b85e
commit 09e3d77cd6

View File

@ -95,10 +95,23 @@ public final class CharacterSprmUncompressor extends SprmUncompressor
case 0x2: case 0x2:
newCHP.setFFldVanish (getFlag (sprm.getOperand())); newCHP.setFFldVanish (getFlag (sprm.getOperand()));
break; break;
case 0x3: case 0x3:
newCHP.setFcPic (sprm.getOperand()); // sprmCPicLocation -- 0x6A03
newCHP.setFSpec (true); /*
break; * 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: case 0x4:
newCHP.setIbstRMark ((short) sprm.getOperand()); newCHP.setIbstRMark ((short) sprm.getOperand());
break; break;
@ -475,9 +488,10 @@ public final class CharacterSprmUncompressor extends SprmUncompressor
case 0x54: case 0x54:
newCHP.setFImprint (getFlag (sprm.getOperand())); newCHP.setFImprint (getFlag (sprm.getOperand()));
break; break;
case 0x55: case 0x55:
newCHP.setFSpec (getFlag (sprm.getOperand())); // sprmCFSpec -- 0x0855
break; newCHP.setFSpec( getFlag( sprm.getOperand() ) );
break;
case 0x56: case 0x56:
newCHP.setFObj (getFlag (sprm.getOperand())); newCHP.setFObj (getFlag (sprm.getOperand()));
break; break;