Class PageSetupSettings

java.lang.Object
com.independentsoft.office.spreadsheet.PageSetupSettings

public class PageSetupSettings extends Object
The Class PageSetupSettings.
  • Constructor Details

    • PageSetupSettings

      public PageSetupSettings()
      Instantiates a new page setup settings.
  • Method Details

    • clone

      public PageSetupSettings clone()
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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

      public CellComment getCellComment()
      Gets the cell comment.
      Returns:
      the cell comment
    • setCellComment

      public void setCellComment(CellComment cellComment)
      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

      public PrintError getPrintError()
      Gets the prints the error.
      Returns:
      the prints the error
    • setPrintError

      public void setPrintError(PrintError printError)
      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

      public Orientation getOrientation()
      Gets the orientation.
      Returns:
      the orientation
    • setOrientation

      public void setOrientation(Orientation orientation)
      Sets the orientation.
      Parameters:
      orientation - the new orientation
    • getPageOrder

      public PageOrder getPageOrder()
      Gets the page order.
      Returns:
      the page order
    • setPageOrder

      public void setPageOrder(PageOrder pageOrder)
      Sets the page order.
      Parameters:
      pageOrder - the new page order
    • getPaperSize

      public PaperSize getPaperSize()
      Gets the paper size.
      Returns:
      the paper size
    • setPaperSize

      public void setPaperSize(PaperSize paperSize)
      Sets the paper size.
      Parameters:
      paperSize - the new paper size
    • getRelationshipID

      public String getRelationshipID()
      Gets the relationship id.
      Returns:
      the relationship id
    • setRelationshipID

      public void setRelationshipID(String relationshipID)
      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