add get/set for _ixchFollow in listLevel
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1147377 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
595d545137
commit
f1379b2963
@ -146,7 +146,7 @@ public class AbstractWordUtils
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
byte follow = getIxchFollow( listLevel );
|
byte follow = listLevel.getTypeOfCharFollowingTheNumber();
|
||||||
switch ( follow )
|
switch ( follow )
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
@ -203,20 +203,6 @@ public class AbstractWordUtils
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static byte getIxchFollow( ListLevel listLevel )
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
Field field = ListLevel.class.getDeclaredField( "_ixchFollow" );
|
|
||||||
field.setAccessible( true );
|
|
||||||
return ( (Byte) field.get( listLevel ) ).byteValue();
|
|
||||||
}
|
|
||||||
catch ( Exception exc )
|
|
||||||
{
|
|
||||||
throw new Error( exc );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static String getJustification( int js )
|
public static String getJustification( int js )
|
||||||
{
|
{
|
||||||
switch ( js )
|
switch ( js )
|
||||||
|
@ -147,6 +147,14 @@ public final class ListLevel
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* "The type of character following the number text for the paragraph: 0 == tab, 1 == space, 2 == nothing."
|
||||||
|
*/
|
||||||
|
public byte getTypeOfCharFollowingTheNumber()
|
||||||
|
{
|
||||||
|
return this._ixchFollow;
|
||||||
|
}
|
||||||
|
|
||||||
public void setStartAt(int startAt)
|
public void setStartAt(int startAt)
|
||||||
{
|
{
|
||||||
_iStartAt = startAt;
|
_iStartAt = startAt;
|
||||||
@ -162,6 +170,11 @@ public final class ListLevel
|
|||||||
_jc.setValue(_info, alignment);
|
_jc.setValue(_info, alignment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setTypeOfCharFollowingTheNumber( byte value )
|
||||||
|
{
|
||||||
|
this._ixchFollow = value;
|
||||||
|
}
|
||||||
|
|
||||||
public void setNumberProperties(byte[] grpprl)
|
public void setNumberProperties(byte[] grpprl)
|
||||||
{
|
{
|
||||||
_grpprlChpx = grpprl;
|
_grpprlChpx = grpprl;
|
||||||
|
Loading…
Reference in New Issue
Block a user