mirror of https://github.com/apache/poi.git
wanr more if some PAPX sprms were ignored
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1173717 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b8e9241a94
commit
799ba60152
|
@ -229,30 +229,25 @@ public final class ParagraphSprmUncompressor
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// BrcXXX1 is older Version. Brc is used
|
// BrcXXX1 is older Version. Brc is used
|
||||||
case 0x1c:
|
// case 0x1c:
|
||||||
|
// newPAP.setBrcTop1((short)param);
|
||||||
|
// break;
|
||||||
|
// case 0x1d:
|
||||||
|
// newPAP.setBrcLeft1((short)param);
|
||||||
|
// break;
|
||||||
|
// case 0x1e:
|
||||||
|
// newPAP.setBrcBottom1((short)param);
|
||||||
|
// break;
|
||||||
|
// case 0x1f:
|
||||||
|
// newPAP.setBrcRight1((short)param);
|
||||||
|
// break;
|
||||||
|
// case 0x20:
|
||||||
|
// newPAP.setBrcBetween1((short)param);
|
||||||
|
// break;
|
||||||
|
// case 0x21:
|
||||||
|
// newPAP.setBrcBar1((byte)param);
|
||||||
|
// break;
|
||||||
|
|
||||||
//newPAP.setBrcTop1((short)param);
|
|
||||||
break;
|
|
||||||
case 0x1d:
|
|
||||||
|
|
||||||
//newPAP.setBrcLeft1((short)param);
|
|
||||||
break;
|
|
||||||
case 0x1e:
|
|
||||||
|
|
||||||
//newPAP.setBrcBottom1((short)param);
|
|
||||||
break;
|
|
||||||
case 0x1f:
|
|
||||||
|
|
||||||
//newPAP.setBrcRight1((short)param);
|
|
||||||
break;
|
|
||||||
case 0x20:
|
|
||||||
|
|
||||||
//newPAP.setBrcBetween1((short)param);
|
|
||||||
break;
|
|
||||||
case 0x21:
|
|
||||||
|
|
||||||
//newPAP.setBrcBar1((byte)param);
|
|
||||||
break;
|
|
||||||
case 0x22:
|
case 0x22:
|
||||||
newPAP.setDxaFromText (sprm.getOperand());
|
newPAP.setDxaFromText (sprm.getOperand());
|
||||||
break;
|
break;
|
||||||
|
@ -302,10 +297,6 @@ public final class ParagraphSprmUncompressor
|
||||||
case 0x31:
|
case 0x31:
|
||||||
newPAP.setFWidowControl (sprm.getOperand() != 0);
|
newPAP.setFWidowControl (sprm.getOperand() != 0);
|
||||||
break;
|
break;
|
||||||
case 0x32:
|
|
||||||
|
|
||||||
//undocumented
|
|
||||||
break;
|
|
||||||
case 0x33:
|
case 0x33:
|
||||||
newPAP.setFKinsoku (sprm.getOperand() != 0);
|
newPAP.setFKinsoku (sprm.getOperand() != 0);
|
||||||
break;
|
break;
|
||||||
|
@ -331,7 +322,6 @@ public final class ParagraphSprmUncompressor
|
||||||
newPAP.setFontAlign ((short) sprm.getOperand());
|
newPAP.setFontAlign ((short) sprm.getOperand());
|
||||||
break;
|
break;
|
||||||
case 0x3b:
|
case 0x3b:
|
||||||
|
|
||||||
//obsolete
|
//obsolete
|
||||||
break;
|
break;
|
||||||
case 0x3e:
|
case 0x3e:
|
||||||
|
@ -345,18 +335,11 @@ public final class ParagraphSprmUncompressor
|
||||||
case 0x3f:
|
case 0x3f:
|
||||||
//don't really need this. spec is confusing regarding this
|
//don't really need this. spec is confusing regarding this
|
||||||
//sprm
|
//sprm
|
||||||
try
|
|
||||||
{
|
|
||||||
byte[] varParam = sprm.getGrpprl();
|
byte[] varParam = sprm.getGrpprl();
|
||||||
int offset = sprm.getGrpprlOffset();
|
int offset = sprm.getGrpprlOffset();
|
||||||
newPAP.setFPropRMark (varParam[offset] != 0 );
|
newPAP.setFPropRMark (varParam[offset] != 0 );
|
||||||
newPAP.setIbstPropRMark (LittleEndian.getShort (varParam, offset + 1));
|
newPAP.setIbstPropRMark (LittleEndian.getShort (varParam, offset + 1));
|
||||||
newPAP.setDttmPropRMark (new DateAndTime(varParam, offset + 3));
|
newPAP.setDttmPropRMark (new DateAndTime(varParam, offset + 3));
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
e.printStackTrace ();
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 0x40:
|
case 0x40:
|
||||||
// This condition commented out, as Word seems to set outline levels even for
|
// This condition commented out, as Word seems to set outline levels even for
|
||||||
|
|
Loading…
Reference in New Issue