Class PageLayoutProperties
java.lang.Object
com.independentsoft.office.odf.styles.PageLayoutProperties
Acts as a container for attributes and elements that define a page layout.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the PageLayoutProperties class. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the background color of the page layout.Gets the background image.Gets the border of the page layout.Gets the widths of borders defined by the FO border properties for borders where the value of these properties is double.Gets the bottom border of the page layout.Gets the widths of the bottom border for borders defined by the FO border properties if the property for the bottom border has the value double.Gets the bottom margin of the page layout.Gets the bottom padding of the page layout.Gets the gap between columns.Gets a collection SectionColumn objects.Gets the number of a document.Gets the maximum amount of space on a page that a footnote can occupy.Gets the line that separates a footnote area from a body text area on a page.Gets the height reserved in layout grid lines for non-ruby text.Gets the color of layout grid border lines.intGets the number of layout grid lines per page.Enables Asian layout grids.Gets the height reserved in layout grid lines for ruby text.Gets the left border of the page layout.Gets the widths of the left border for borders defined by the FO border properties if the property for the left border has the value double.Gets the left margin of the page layout.Gets the left padding of the page layout.Gets the margin of the page layout.Gets the numbering sequence.Specifies what to display before a number.Specifies what to display after a number.Gets the padding of the page layout.Gets the page height.Gets the page width.Gets the paper tray to use when printing a document.getPrint()Gets the components in a spreadsheet document to print.Gets the orientation of the printed page.Gets the order in which data in a spreadsheet is numbered and printed when the data does not fit on one printed page.Gets the paragraph style.Gets the right border of the page layout.Gets the widths of the right border for borders defined by the FO border properties if the property for the right border has the value double.Gets the right margin of the page layout.Gets the right padding of the page layout.intSpecifies that a document is to be scaled to a percentage value.intGets the number of pages on which a document should be printed.Gets the separator line between columns.Gets the shadow effect.Specifies whether tables are centered horizontally and/or vertically on the page.Gets the top border of the page layout.Gets the widths of the top border for borders defined by the FO border properties if the property for the top border has the value double.Gets the top margin of the page layout.Gets the top padding of the page layout.Gets the writing mode of the page.booleanSpecifies whether layout grid border lines are displayed.booleanSpecifies whether layout grid border lines are printed.booleanSpecifies whether ruby text is displayed above or below the base text.voidsetBackgroundColor(String backgroundColor)Sets the background color of the page layout.voidsetBackgroundImage(BackgroundImage backgroundImage)Sets the background image.voidSets the border of the page layout.voidsetBorderLineWidth(BorderLineWidth borderLineWidth)Sets the widths of borders defined by the FO border properties for borders where the value of these properties is double.voidsetBottomBorder(Border bottomBorder)Sets the bottom border of the page layout.voidsetBottomBorderLineWidth(BorderLineWidth bottomBorderLineWidth)Sets the widths of the bottom border for borders defined by the FO border properties if the property for the bottom border has the value double.voidsetBottomMargin(Size bottomMargin)Sets the bottom margin of the page layout.voidsetBottomPadding(Size bottomPadding)Sets the bottom padding of the page layout.voidsetColumnGap(Size columnGap)Sets the gap between columns.voidsetFirstPageNumber(String firstPageNumber)Sets the number of a document.voidsetFootnoteMaxHeight(Size footnoteMaxHeight)Sets the maximum amount of space on a page that a footnote can occupy.voidsetFootnoteSeparator(FootnoteSeparator footnoteSeparator)Sets the line that separates a footnote area from a body text area on a page.voidsetLayoutGridBaseHeight(Size layoutGridBaseHeight)Sets the height reserved in layout grid lines for non-ruby text.voidsetLayoutGridColor(String layoutGridColor)Sets the color of layout grid border lines.voidsetLayoutGridDisplay(boolean layoutGridDisplay)Specifies whether layout grid border lines are displayed.voidsetLayoutGridLineCount(int layoutGridLineCount)Sets the number of layout grid lines per page.voidsetLayoutGridMode(LayoutGridMode layoutGridMode)Enables Asian layout grids.voidsetLayoutGridPrint(boolean layoutGridPrint)Specifies whether layout grid border lines are printed.voidsetLayoutGridRubyBelow(boolean layoutGridRubyBelow)Specifies whether ruby text is displayed above or below the base text.voidsetLayoutGridRubyHeight(Size layoutGridRubyHeight)Sets the height reserved in layout grid lines for ruby text.voidsetLeftBorder(Border leftBorder)Sets the left border of the page layout.voidsetLeftBorderLineWidth(BorderLineWidth leftBorderLineWidth)Sets the widths of the left border for borders defined by the FO border properties if the property for the left border has the value double.voidsetLeftMargin(Size leftMargin)Sets the left margin of the page layout.voidsetLeftPadding(Size leftPadding)Sets the left padding of the page layout.voidSets the margin of the page layout.voidsetNumberFormat(String numberFormat)Sets the numbering sequence.voidsetNumberPrefix(String numberPrefix)Specifies what to display before a number.voidsetNumberSuffix(String numberSuffix)Specifies what to display after a number.voidsetPadding(Size padding)Sets the padding of the page layout.voidsetPageHeight(Size pageHeight)Sets the page height.voidsetPageWidth(Size pageWidth)Sets the page width.voidsetPaperTray(String paperTray)Sets the paper tray to use when printing a document.voidSets the components in a spreadsheet document to print.voidsetPrintOrientation(PrintOrientation printOrientation)Sets the orientation of the printed page.voidsetPrintPageOrder(PrintPageOrder printPageOrder)Sets the order in which data in a spreadsheet is numbered and printed when the data does not fit on one printed page.voidsetRegisterTruth(String registerTruth)Sets the paragraph style.voidsetRightBorder(Border rightBorder)Sets the right border of the page layout.voidsetRightBorderLineWidth(BorderLineWidth rightBorderLineWidth)Sets the widths of the right border for borders defined by the FO border properties if the property for the right border has the value double.voidsetRightMargin(Size rightMargin)Sets the right margin of the page layout.voidsetRightPadding(Size rightPadding)Sets the right padding of the page layout.voidsetScaleTo(int scaleTo)Specifies that a document is to be scaled to a percentage value.voidsetScaleToPages(int scaleToPages)Sets the number of pages on which a document should be printed.voidsetSeparator(ColumnSeparator separator)Sets the separator line between columns.voidSets the shadow effect.voidsetTableCentering(TableCentering tableCentering)Specifies whether tables are centered horizontally and/or vertically on the page.voidsetTopBorder(Border topBorder)Sets the top border of the page layout.voidsetTopBorderLineWidth(BorderLineWidth topBorderLineWidth)Sets the widths of the top border for borders defined by the FO border properties if the property for the top border has the value double.voidsetTopMargin(Size topMargin)Sets the top margin of the page layout.voidsetTopPadding(Size topPadding)Sets the top padding of the page layout.voidsetWritingMode(WritingMode writingMode)Sets the writing mode of the page.toString()Converts the value of the current PageLayoutProperties object to its equivalent string representation.
-
Constructor Details
-
PageLayoutProperties
public PageLayoutProperties()Initializes a new instance of the PageLayoutProperties class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current PageLayoutProperties object to its equivalent string representation. -
getFootnoteSeparator
Gets the line that separates a footnote area from a body text area on a page.- Returns:
- the footnote separator
-
setFootnoteSeparator
Sets the line that separates a footnote area from a body text area on a page.- Parameters:
footnoteSeparator- the new footnote separator
-
getSeparator
Gets the separator line between columns.- Returns:
- the separator
-
setSeparator
Sets the separator line between columns.- Parameters:
separator- the new separator
-
getColumnGap
Gets the gap between columns.- Returns:
- the column gap
-
setColumnGap
Sets the gap between columns.- Parameters:
columnGap- the new column gap
-
getColumns
Gets a collection SectionColumn objects.- Returns:
- the columns
-
getPageWidth
Gets the page width.- Returns:
- the page width
-
setPageWidth
Sets the page width.- Parameters:
pageWidth- the new page width
-
getPageHeight
Gets the page height.- Returns:
- the page height
-
setPageHeight
Sets the page height.- Parameters:
pageHeight- the new page height
-
getNumberFormat
Gets the numbering sequence.- Returns:
- the number format
-
setNumberFormat
Sets the numbering sequence.- Parameters:
numberFormat- the new number format
-
getNumberPrefix
Specifies what to display before a number.- Returns:
- the number prefix
-
setNumberPrefix
Specifies what to display before a number.- Parameters:
numberPrefix- the new number prefix
-
getNumberSuffix
Specifies what to display after a number.- Returns:
- the number suffix
-
setNumberSuffix
Specifies what to display after a number.- Parameters:
numberSuffix- the new number suffix
-
getPaperTray
Gets the paper tray to use when printing a document. The names assigned to the paper trays depends upon the printer.- Returns:
- the paper tray
-
setPaperTray
Sets the paper tray to use when printing a document. The names assigned to the paper trays depends upon the printer.- Parameters:
paperTray- the new paper tray
-
getPrintOrientation
Gets the orientation of the printed page. The value of this attribute can be portrait or landscape.- Returns:
- the prints the orientation
-
setPrintOrientation
Sets the orientation of the printed page. The value of this attribute can be portrait or landscape.- Parameters:
printOrientation- the new prints the orientation
-
getMargin
Gets the margin of the page layout.- Returns:
- the margin
-
setMargin
Sets the margin of the page layout.- Parameters:
margin- the new margin
-
getLeftMargin
Gets the left margin of the page layout.- Returns:
- the left margin
-
setLeftMargin
Sets the left margin of the page layout.- Parameters:
leftMargin- the new left margin
-
getRightMargin
Gets the right margin of the page layout.- Returns:
- the right margin
-
setRightMargin
Sets the right margin of the page layout.- Parameters:
rightMargin- the new right margin
-
getTopMargin
Gets the top margin of the page layout.- Returns:
- the top margin
-
setTopMargin
Sets the top margin of the page layout.- Parameters:
topMargin- the new top margin
-
getBottomMargin
Gets the bottom margin of the page layout.- Returns:
- the bottom margin
-
setBottomMargin
Sets the bottom margin of the page layout.- Parameters:
bottomMargin- the new bottom margin
-
getBorder
Gets the border of the page layout.- Returns:
- the border
-
setBorder
Sets the border of the page layout.- Parameters:
border- the new border
-
getLeftBorder
Gets the left border of the page layout.- Returns:
- the left border
-
setLeftBorder
Sets the left border of the page layout.- Parameters:
leftBorder- the new left border
-
getRightBorder
Gets the right border of the page layout.- Returns:
- the right border
-
setRightBorder
Sets the right border of the page layout.- Parameters:
rightBorder- the new right border
-
getTopBorder
Gets the top border of the page layout.- Returns:
- the top border
-
setTopBorder
Sets the top border of the page layout.- Parameters:
topBorder- the new top border
-
getBottomBorder
Gets the bottom border of the page layout.- Returns:
- the bottom border
-
setBottomBorder
Sets the bottom border of the page layout.- Parameters:
bottomBorder- the new bottom border
-
getBorderLineWidth
Gets the widths of borders defined by the FO border properties for borders where the value of these properties is double.- Returns:
- the border line width
-
setBorderLineWidth
Sets the widths of borders defined by the FO border properties for borders where the value of these properties is double.- Parameters:
borderLineWidth- the new border line width
-
getLeftBorderLineWidth
Gets the widths of the left border for borders defined by the FO border properties if the property for the left border has the value double.- Returns:
- the left border line width
-
setLeftBorderLineWidth
Sets the widths of the left border for borders defined by the FO border properties if the property for the left border has the value double.- Parameters:
leftBorderLineWidth- the new left border line width
-
getRightBorderLineWidth
Gets the widths of the right border for borders defined by the FO border properties if the property for the right border has the value double.- Returns:
- the right border line width
-
setRightBorderLineWidth
Sets the widths of the right border for borders defined by the FO border properties if the property for the right border has the value double.- Parameters:
rightBorderLineWidth- the new right border line width
-
getTopBorderLineWidth
Gets the widths of the top border for borders defined by the FO border properties if the property for the top border has the value double.- Returns:
- the top border line width
-
setTopBorderLineWidth
Sets the widths of the top border for borders defined by the FO border properties if the property for the top border has the value double.- Parameters:
topBorderLineWidth- the new top border line width
-
getBottomBorderLineWidth
Gets the widths of the bottom border for borders defined by the FO border properties if the property for the bottom border has the value double.- Returns:
- the bottom border line width
-
setBottomBorderLineWidth
Sets the widths of the bottom border for borders defined by the FO border properties if the property for the bottom border has the value double.- Parameters:
bottomBorderLineWidth- the new bottom border line width
-
getPadding
Gets the padding of the page layout.- Returns:
- the padding
-
setPadding
Sets the padding of the page layout.- Parameters:
padding- the new padding
-
getLeftPadding
Gets the left padding of the page layout.- Returns:
- the left padding
-
setLeftPadding
Sets the left padding of the page layout.- Parameters:
leftPadding- the new left padding
-
getRightPadding
Gets the right padding of the page layout.- Returns:
- the right padding
-
setRightPadding
Sets the right padding of the page layout.- Parameters:
rightPadding- the new right padding
-
getTopPadding
Gets the top padding of the page layout.- Returns:
- the top padding
-
setTopPadding
Sets the top padding of the page layout.- Parameters:
topPadding- the new top padding
-
getBottomPadding
Gets the bottom padding of the page layout.- Returns:
- the bottom padding
-
setBottomPadding
Sets the bottom padding of the page layout.- Parameters:
bottomPadding- the new bottom padding
-
getBackgroundColor
Gets the background color of the page layout.- Returns:
- the background color
-
setBackgroundColor
Sets the background color of the page layout.- Parameters:
backgroundColor- the new background color
-
getShadow
Gets the shadow effect.- Returns:
- the shadow
-
setShadow
Sets the shadow effect.- Parameters:
shadow- the new shadow
-
getRegisterTruth
Gets the paragraph style.- Returns:
- the register truth
-
setRegisterTruth
Sets the paragraph style.- Parameters:
registerTruth- the new register truth
-
getPrint
Gets the components in a spreadsheet document to print.- Returns:
- the prints the
-
setPrint
Sets the components in a spreadsheet document to print.- Parameters:
print- the new prints the
-
getPrintPageOrder
Gets the order in which data in a spreadsheet is numbered and printed when the data does not fit on one printed page.- Returns:
- the prints the page order
-
setPrintPageOrder
Sets the order in which data in a spreadsheet is numbered and printed when the data does not fit on one printed page.- Parameters:
printPageOrder- the new prints the page order
-
getScaleTo
public int getScaleTo()Specifies that a document is to be scaled to a percentage value. A value of 100% means no scaling. When using this attribute, all pages are enlarged or reduced in size while printing.- Returns:
- the scale to
-
setScaleTo
public void setScaleTo(int scaleTo)Specifies that a document is to be scaled to a percentage value. A value of 100% means no scaling. When using this attribute, all pages are enlarged or reduced in size while printing.- Parameters:
scaleTo- the new scale to
-
getScaleToPages
public int getScaleToPages()Gets the number of pages on which a document should be printed. The document is scaled to fit the defined number of pages.- Returns:
- the scale to pages
-
setScaleToPages
public void setScaleToPages(int scaleToPages)Sets the number of pages on which a document should be printed. The document is scaled to fit the defined number of pages.- Parameters:
scaleToPages- the new scale to pages
-
getTableCentering
Specifies whether tables are centered horizontally and/or vertically on the page.- Returns:
- the table centering
-
setTableCentering
Specifies whether tables are centered horizontally and/or vertically on the page.- Parameters:
tableCentering- the new table centering
-
getFootnoteMaxHeight
Gets the maximum amount of space on a page that a footnote can occupy.- Returns:
- the footnote max height
-
setFootnoteMaxHeight
Sets the maximum amount of space on a page that a footnote can occupy.- Parameters:
footnoteMaxHeight- the new footnote max height
-
getWritingMode
Gets the writing mode of the page.- Returns:
- the writing mode
-
setWritingMode
Sets the writing mode of the page.- Parameters:
writingMode- the new writing mode
-
getFirstPageNumber
Gets the number of a document.- Returns:
- the first page number
-
setFirstPageNumber
Sets the number of a document.- Parameters:
firstPageNumber- the new first page number
-
getLayoutGridMode
Enables Asian layout grids.- Returns:
- the layout grid mode
-
setLayoutGridMode
Enables Asian layout grids.- Parameters:
layoutGridMode- the new layout grid mode
-
getLayoutGridBaseHeight
Gets the height reserved in layout grid lines for non-ruby text.- Returns:
- the layout grid base height
-
setLayoutGridBaseHeight
Sets the height reserved in layout grid lines for non-ruby text.- Parameters:
layoutGridBaseHeight- the new layout grid base height
-
getLayoutGridRubyHeight
Gets the height reserved in layout grid lines for ruby text.- Returns:
- the layout grid ruby height
-
setLayoutGridRubyHeight
Sets the height reserved in layout grid lines for ruby text.- Parameters:
layoutGridRubyHeight- the new layout grid ruby height
-
getLayoutGridLineCount
public int getLayoutGridLineCount()Gets the number of layout grid lines per page.- Returns:
- the layout grid line count
-
setLayoutGridLineCount
public void setLayoutGridLineCount(int layoutGridLineCount)Sets the number of layout grid lines per page.- Parameters:
layoutGridLineCount- the new layout grid line count
-
getLayoutGridColor
Gets the color of layout grid border lines.- Returns:
- the layout grid color
-
setLayoutGridColor
Sets the color of layout grid border lines.- Parameters:
layoutGridColor- the new layout grid color
-
isLayoutGridRubyBelow
public boolean isLayoutGridRubyBelow()Specifies whether ruby text is displayed above or below the base text.- Returns:
- true, if is layout grid ruby below
-
setLayoutGridRubyBelow
public void setLayoutGridRubyBelow(boolean layoutGridRubyBelow)Specifies whether ruby text is displayed above or below the base text.- Parameters:
layoutGridRubyBelow- the new layout grid ruby below
-
isLayoutGridPrint
public boolean isLayoutGridPrint()Specifies whether layout grid border lines are printed.- Returns:
- true, if is layout grid print
-
setLayoutGridPrint
public void setLayoutGridPrint(boolean layoutGridPrint)Specifies whether layout grid border lines are printed.- Parameters:
layoutGridPrint- the new layout grid print
-
isLayoutGridDisplay
public boolean isLayoutGridDisplay()Specifies whether layout grid border lines are displayed.- Returns:
- true, if is layout grid display
-
setLayoutGridDisplay
public void setLayoutGridDisplay(boolean layoutGridDisplay)Specifies whether layout grid border lines are displayed.- Parameters:
layoutGridDisplay- the new layout grid display
-
getBackgroundImage
Gets the background image.- Returns:
- the background image
-
setBackgroundImage
Sets the background image.- Parameters:
backgroundImage- the new background image
-