org.simpleods
public class Footer extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
FLG_REGION_CENTER
The footer region in the middle of the page.
|
static int |
FLG_REGION_LEFT
The footer region on the left page side.
|
static int |
FLG_REGION_RIGHT
The footer region on the right page side.
|
Constructor and Description |
---|
Footer(OdsFile odsFile)
Create a new footer object.
|
Modifier and Type | Method and Description |
---|---|
void |
addPageCount(TextStyle ts,
int nFooterRegion,
int nParagraph) |
void |
addPageNumber(TextStyle ts,
int nFooterRegion,
int nParagraph) |
void |
addStyledText(TextStyle ts,
java.lang.String sText,
int nFooterRegion,
int nParagraph)
Adds a TextStyle and text to the footer region specified by nFooterRegion.
|
java.lang.String |
getMarginLeft() |
java.lang.String |
getMarginRight() |
java.lang.String |
getMarginTop() |
java.lang.String |
getMinHeight() |
void |
setMarginLeft(java.lang.String sMarginLeft) |
void |
setMarginRight(java.lang.String sMarginRight) |
void |
setMarginTop(java.lang.String sMarginTop) |
void |
setMinHeight(java.lang.String sMinHeight) |
public static final int FLG_REGION_LEFT
public static final int FLG_REGION_CENTER
public static final int FLG_REGION_RIGHT
public Footer(OdsFile odsFile)
odsFile
- - The OdsFile to which this footer belongs to.public java.lang.String getMinHeight()
public void setMinHeight(java.lang.String sMinHeight)
public java.lang.String getMarginLeft()
public void setMarginLeft(java.lang.String sMarginLeft)
public java.lang.String getMarginRight()
public void setMarginRight(java.lang.String sMarginRight)
public java.lang.String getMarginTop()
public void setMarginTop(java.lang.String sMarginTop)
public void addStyledText(TextStyle ts, java.lang.String sText, int nFooterRegion, int nParagraph)
ts
- The text style to be usedsText
- The string with the textnFooterRegion
- One of : Footer.FLG_REGION_LEFT, Footer.FLG_REGION_CENTER or Footer.FLG_REGION_RIGHTnParagraph
- The paragraph number to be usedpublic void addPageNumber(TextStyle ts, int nFooterRegion, int nParagraph)
public void addPageCount(TextStyle ts, int nFooterRegion, int nParagraph)