writer2latex.office
Class ListCounter

java.lang.Object
  extended by writer2latex.office.ListCounter

public class ListCounter
extends java.lang.Object

This class produces labels for OOo lists/outlines (for xhtml and text, which cannot produce them on their own).


Field Summary
private  int[] nCounter
           
private  int nLevel
           
private  java.lang.String[] sNumFormat
           
private  ListStyle style
           
 
Constructor Summary
ListCounter()
           
ListCounter(ListStyle style)
           
 
Method Summary
private  java.lang.String formatNumber(int number, java.lang.String sStyle, boolean bLetterSync)
           
 java.lang.String getLabel()
           
 int getValue(int nLevel)
           
 int[] getValues()
           
 ListCounter restart(int nLevel)
           
 ListCounter restart(int nLevel, int nValue)
           
 ListCounter step(int nLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nCounter

private int[] nCounter

sNumFormat

private java.lang.String[] sNumFormat

style

private ListStyle style

nLevel

private int nLevel
Constructor Detail

ListCounter

public ListCounter()

ListCounter

public ListCounter(ListStyle style)
Method Detail

step

public ListCounter step(int nLevel)

restart

public ListCounter restart(int nLevel)

restart

public ListCounter restart(int nLevel,
                           int nValue)

getValue

public int getValue(int nLevel)

getValues

public int[] getValues()

getLabel

public java.lang.String getLabel()

formatNumber

private java.lang.String formatNumber(int number,
                                      java.lang.String sStyle,
                                      boolean bLetterSync)