Package com.independentsoft.office.odf
Class LineNumberingConfiguration
java.lang.Object
com.independentsoft.office.odf.LineNumberingConfiguration
Represents line numbering.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the LineNumberingConfiguration class.Instantiates a new line numbering configuration. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.intGets the line numbers to be numbered as multiples of a specified increment.Gets the numbering sequence.Gets the distance between a line number and the margin.Gets the margin where line numbers appear.Gets the text that is displayed as a separator.getStyle()Gets the text style.booleanSpecifies whether empty lines are included in the line count.booleanSpecifies whether text in text boxes is included in the line count.booleanSpecifies whether lines are numbered.booleanSpecifies whether the line count is reset to 1 at the start of every page.voidsetCountEmptyLines(boolean countEmptyLines)Specifies whether empty lines are included in the line count.voidsetCountLinesInTextBoxes(boolean countLinesInTextBoxes)Specifies whether text in text boxes is included in the line count.voidsetIncrement(int increment)Sets the line numbers to be numbered as multiples of a specified increment.voidsetLineNumberingEnabled(boolean lineNumberingEnabled)Specifies whether lines are numbered.voidsetNumberFormat(String numberFormat)Sets the numbering sequence.voidSets the distance between a line number and the margin.voidsetPosition(NumberPosition position)Sets the margin where line numbers appear.voidsetRestartOnPage(boolean restartOnPage)Specifies whether the line count is reset to 1 at the start of every page.voidsetSeparator(LineNumberingSeparator separator)Sets the text that is displayed as a separator.voidSets the text style.toString()Converts the value of the current LineNumberingConfiguration object to its equivalent string representation.
-
Constructor Details
-
LineNumberingConfiguration
public LineNumberingConfiguration()Initializes a new instance of the LineNumberingConfiguration class. -
LineNumberingConfiguration
Instantiates a new line numbering configuration.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current LineNumberingConfiguration object to its equivalent string representation. -
isLineNumberingEnabled
public boolean isLineNumberingEnabled()Specifies whether lines are numbered.- Returns:
- true, if is line numbering enabled
-
setLineNumberingEnabled
public void setLineNumberingEnabled(boolean lineNumberingEnabled)Specifies whether lines are numbered.- Parameters:
lineNumberingEnabled- the new line numbering enabled
-
getNumberFormat
Gets the numbering sequence.- Returns:
- the number format
-
setNumberFormat
Sets the numbering sequence.- Parameters:
numberFormat- the new number format
-
getStyle
Gets the text style.- Returns:
- the style
-
setStyle
Sets the text style.- Parameters:
style- the new style
-
getIncrement
public int getIncrement()Gets the line numbers to be numbered as multiples of a specified increment.- Returns:
- the increment
-
setIncrement
public void setIncrement(int increment)Sets the line numbers to be numbered as multiples of a specified increment.- Parameters:
increment- the new increment
-
getPosition
Gets the margin where line numbers appear.- Returns:
- the position
-
setPosition
Sets the margin where line numbers appear.- Parameters:
position- the new position
-
getOffset
Gets the distance between a line number and the margin.- Returns:
- the offset
-
setOffset
Sets the distance between a line number and the margin.- Parameters:
offset- the new offset
-
isCountEmptyLines
public boolean isCountEmptyLines()Specifies whether empty lines are included in the line count. The defined values are: -false: empty lines are not included in a line count. -true: empty lines are included in a line count.- Returns:
- true, if is count empty lines
-
setCountEmptyLines
public void setCountEmptyLines(boolean countEmptyLines)Specifies whether empty lines are included in the line count. The defined values are: -false: empty lines are not included in a line count. -true: empty lines are included in a line count.- Parameters:
countEmptyLines- the new count empty lines
-
isCountLinesInTextBoxes
public boolean isCountLinesInTextBoxes()Specifies whether text in text boxes is included in the line count. If the value of this attribute is true, text within text boxes is included in the line count.- Returns:
- true, if is count lines in text boxes
-
setCountLinesInTextBoxes
public void setCountLinesInTextBoxes(boolean countLinesInTextBoxes)Specifies whether text in text boxes is included in the line count. If the value of this attribute is true, text within text boxes is included in the line count.- Parameters:
countLinesInTextBoxes- the new count lines in text boxes
-
isRestartOnPage
public boolean isRestartOnPage()Specifies whether the line count is reset to 1 at the start of every page. The defined values are: -false: line count is not reset, resulting in document-specific numbering of lines. -true: line count is reset to 1 at the beginning of every page, resulting in page-specific line numbering.- Returns:
- true, if is restart on page
-
setRestartOnPage
public void setRestartOnPage(boolean restartOnPage)Specifies whether the line count is reset to 1 at the start of every page. The defined values are: -false: line count is not reset, resulting in document-specific numbering of lines. -true: line count is reset to 1 at the beginning of every page, resulting in page-specific line numbering.- Parameters:
restartOnPage- the new restart on page
-
getSeparator
Gets the text that is displayed as a separator. A separator is text that is displayed instead of a line number for lines where no number is displayed.- Returns:
- the separator
-
setSeparator
Sets the text that is displayed as a separator. A separator is text that is displayed instead of a line number for lines where no number is displayed.- Parameters:
separator- the new separator
-