Class PageSetupSettings
java.lang.Object
com.independentsoft.office.spreadsheet.PageSetupSettings
The Class PageSetupSettings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the cell comment.longGets the copies.longGets the first page number.longGets the fit to height.longGets the fit to width.longGets the horizontal dpi.Gets the orientation.Gets the page order.Gets the paper size.Gets the prints the error.byte[]Gets the printerSettings*.bin part (printer configuration) referenced by the pageSetup relationship, preserved verbatim for round-trip, or null if none.longGets the prints the scale.Gets the relationship id.longGets the vertical dpi.booleanChecks if is black and white.booleanisDraft()Checks if is draft.voidsetBlackAndWhite(boolean blackAndWhite)Sets the black and white.voidsetCellComment(CellComment cellComment)Sets the cell comment.voidsetCopies(long copies)Sets the copies.voidsetDraft(boolean draft)Sets the draft.voidsetFirstPageNumber(long firstPageNumber)Sets the first page number.voidsetFitToHeight(long fitToHeight)Sets the fit to height.voidsetFitToWidth(long fitToWidth)Sets the fit to width.voidsetHorizontalDpi(long horizontalDpi)Sets the horizontal dpi.voidsetOrientation(Orientation orientation)Sets the orientation.voidsetPageOrder(PageOrder pageOrder)Sets the page order.voidsetPaperSize(PaperSize paperSize)Sets the paper size.voidsetPrintError(PrintError printError)Sets the prints the error.voidsetPrinterSettings(byte[] printerSettings)Sets the printerSettings*.bin part referenced by the pageSetup relationship.voidsetPrintScale(long printScale)Sets the prints the scale.voidsetRelationshipID(String relationshipID)Sets the relationship id.voidsetUseFirstPageNumber(boolean useFirstPageNumber)Sets the use first page number.voidsetUsePrinterDefaults(boolean usePrinterDefaults)Sets the use printer defaults.voidsetVerticalDpi(long verticalDpi)Sets the vertical dpi.toString()booleanUse first page number.booleanUse printer defaults.
-
Constructor Details
-
PageSetupSettings
public PageSetupSettings()Instantiates a new page setup settings.
-
-
Method Details
-
clone
-
toString
-
isBlackAndWhite
public boolean isBlackAndWhite()Checks if is black and white.- Returns:
- true, if is black and white
-
setBlackAndWhite
public void setBlackAndWhite(boolean blackAndWhite)Sets the black and white.- Parameters:
blackAndWhite- the new black and white
-
getCellComment
Gets the cell comment.- Returns:
- the cell comment
-
setCellComment
Sets the cell comment.- Parameters:
cellComment- the new cell comment
-
getCopies
public long getCopies()Gets the copies.- Returns:
- the copies
-
setCopies
public void setCopies(long copies)Sets the copies.- Parameters:
copies- the new copies
-
isDraft
public boolean isDraft()Checks if is draft.- Returns:
- true, if is draft
-
setDraft
public void setDraft(boolean draft)Sets the draft.- Parameters:
draft- the new draft
-
getPrintError
Gets the prints the error.- Returns:
- the prints the error
-
setPrintError
Sets the prints the error.- Parameters:
printError- the new prints the error
-
getFirstPageNumber
public long getFirstPageNumber()Gets the first page number.- Returns:
- the first page number
-
setFirstPageNumber
public void setFirstPageNumber(long firstPageNumber)Sets the first page number.- Parameters:
firstPageNumber- the new first page number
-
getFitToHeight
public long getFitToHeight()Gets the fit to height.- Returns:
- the fit to height
-
setFitToHeight
public void setFitToHeight(long fitToHeight)Sets the fit to height.- Parameters:
fitToHeight- the new fit to height
-
getFitToWidth
public long getFitToWidth()Gets the fit to width.- Returns:
- the fit to width
-
setFitToWidth
public void setFitToWidth(long fitToWidth)Sets the fit to width.- Parameters:
fitToWidth- the new fit to width
-
getHorizontalDpi
public long getHorizontalDpi()Gets the horizontal dpi.- Returns:
- the horizontal dpi
-
setHorizontalDpi
public void setHorizontalDpi(long horizontalDpi)Sets the horizontal dpi.- Parameters:
horizontalDpi- the new horizontal dpi
-
getOrientation
Gets the orientation.- Returns:
- the orientation
-
setOrientation
Sets the orientation.- Parameters:
orientation- the new orientation
-
getPageOrder
Gets the page order.- Returns:
- the page order
-
setPageOrder
Sets the page order.- Parameters:
pageOrder- the new page order
-
getPaperSize
Gets the paper size.- Returns:
- the paper size
-
setPaperSize
Sets the paper size.- Parameters:
paperSize- the new paper size
-
getRelationshipID
Gets the relationship id.- Returns:
- the relationship id
-
setRelationshipID
Sets the relationship id.- Parameters:
relationshipID- the new relationship id
-
getPrinterSettings
public byte[] getPrinterSettings()Gets the printerSettings*.bin part (printer configuration) referenced by the pageSetup relationship, preserved verbatim for round-trip, or null if none.- Returns:
- the printer settings bytes
-
setPrinterSettings
public void setPrinterSettings(byte[] printerSettings)Sets the printerSettings*.bin part referenced by the pageSetup relationship.- Parameters:
printerSettings- the printer settings bytes
-
getPrintScale
public long getPrintScale()Gets the prints the scale.- Returns:
- the prints the scale
-
setPrintScale
public void setPrintScale(long printScale)Sets the prints the scale.- Parameters:
printScale- the new prints the scale
-
useFirstPageNumber
public boolean useFirstPageNumber()Use first page number.- Returns:
- true, if successful
-
setUseFirstPageNumber
public void setUseFirstPageNumber(boolean useFirstPageNumber)Sets the use first page number.- Parameters:
useFirstPageNumber- the new use first page number
-
usePrinterDefaults
public boolean usePrinterDefaults()Use printer defaults.- Returns:
- true, if successful
-
setUsePrinterDefaults
public void setUsePrinterDefaults(boolean usePrinterDefaults)Sets the use printer defaults.- Parameters:
usePrinterDefaults- the new use printer defaults
-
getVerticalDpi
public long getVerticalDpi()Gets the vertical dpi.- Returns:
- the vertical dpi
-
setVerticalDpi
public void setVerticalDpi(long verticalDpi)Sets the vertical dpi.- Parameters:
verticalDpi- the new vertical dpi
-