Package org.xlsx4j.sml
Class CTPageSetup
java.lang.Object
org.xlsx4j.sml.CTPageSetup
- All Implemented Interfaces:
Child
Java class for CT_PageSetup complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CT_PageSetup">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="paperSize" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
<attribute name="paperHeight" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_PositiveUniversalMeasure" />
<attribute name="paperWidth" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_PositiveUniversalMeasure" />
<attribute name="scale" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="100" />
<attribute name="firstPageNumber" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
<attribute name="fitToWidth" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
<attribute name="fitToHeight" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
<attribute name="pageOrder" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PageOrder" default="downThenOver" />
<attribute name="orientation" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Orientation" default="default" />
<attribute name="usePrinterDefaults" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="blackAndWhite" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="draft" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="cellComments" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellComments" default="none" />
<attribute name="useFirstPageNumber" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="errors" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PrintError" default="displayed" />
<attribute name="horizontalDpi" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="600" />
<attribute name="verticalDpi" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="600" />
<attribute name="copies" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
<attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
</restriction>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Booleanprotected STCellCommentsprotected Longprotected Booleanprotected STPrintErrorprotected Longprotected Longprotected Longprotected Longprotected Stringprotected STOrientationprotected STPageOrderprotected Stringprotected Longprotected Stringprotected Longprotected Booleanprotected Booleanprotected Long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, Object parent) This method is invoked by the JAXB implementation on each instance when unmarshalling completes.Gets the value of the cellComments property.longGets the value of the copies property.Gets the value of the errors property.longGets the value of the firstPageNumber property.longGets the value of the fitToHeight property.longGets the value of the fitToWidth property.longGets the value of the horizontalDpi property.getId()Gets the value of the id property.Gets the value of the orientation property.Gets the value of the pageOrder property.Gets the value of the paperHeight property.longGets the value of the paperSize property.Gets the value of the paperWidth property.Gets the parent object in the object tree representing the unmarshalled xml document.longgetScale()Gets the value of the scale property.longGets the value of the verticalDpi property.booleanGets the value of the blackAndWhite property.booleanisDraft()Gets the value of the draft property.booleanGets the value of the useFirstPageNumber property.booleanGets the value of the usePrinterDefaults property.voidsetBlackAndWhite(Boolean value) Sets the value of the blackAndWhite property.voidsetCellComments(STCellComments value) Sets the value of the cellComments property.voidSets the value of the copies property.voidSets the value of the draft property.voidsetErrors(STPrintError value) Sets the value of the errors property.voidsetFirstPageNumber(Long value) Sets the value of the firstPageNumber property.voidsetFitToHeight(Long value) Sets the value of the fitToHeight property.voidsetFitToWidth(Long value) Sets the value of the fitToWidth property.voidsetHorizontalDpi(Long value) Sets the value of the horizontalDpi property.voidSets the value of the id property.voidsetOrientation(STOrientation value) Sets the value of the orientation property.voidsetPageOrder(STPageOrder value) Sets the value of the pageOrder property.voidsetPaperHeight(String value) Sets the value of the paperHeight property.voidsetPaperSize(Long value) Sets the value of the paperSize property.voidsetPaperWidth(String value) Sets the value of the paperWidth property.voidvoidSets the value of the scale property.voidsetUseFirstPageNumber(Boolean value) Sets the value of the useFirstPageNumber property.voidsetUsePrinterDefaults(Boolean value) Sets the value of the usePrinterDefaults property.voidsetVerticalDpi(Long value) Sets the value of the verticalDpi property.
-
Field Details
-
paperSize
-
paperHeight
-
paperWidth
-
scale
-
firstPageNumber
-
fitToWidth
-
fitToHeight
-
pageOrder
-
orientation
-
usePrinterDefaults
-
blackAndWhite
-
draft
-
cellComments
-
useFirstPageNumber
-
errors
-
horizontalDpi
-
verticalDpi
-
copies
-
id
-
-
Constructor Details
-
CTPageSetup
public CTPageSetup()
-
-
Method Details
-
getPaperSize
public long getPaperSize()Gets the value of the paperSize property.- Returns:
- possible object is
Long
-
setPaperSize
Sets the value of the paperSize property.- Parameters:
value- allowed object isLong
-
getPaperHeight
Gets the value of the paperHeight property.- Returns:
- possible object is
String
-
setPaperHeight
Sets the value of the paperHeight property.- Parameters:
value- allowed object isString
-
getPaperWidth
Gets the value of the paperWidth property.- Returns:
- possible object is
String
-
setPaperWidth
Sets the value of the paperWidth property.- Parameters:
value- allowed object isString
-
getScale
public long getScale()Gets the value of the scale property.- Returns:
- possible object is
Long
-
setScale
Sets the value of the scale property.- Parameters:
value- allowed object isLong
-
getFirstPageNumber
public long getFirstPageNumber()Gets the value of the firstPageNumber property.- Returns:
- possible object is
Long
-
setFirstPageNumber
Sets the value of the firstPageNumber property.- Parameters:
value- allowed object isLong
-
getFitToWidth
public long getFitToWidth()Gets the value of the fitToWidth property.- Returns:
- possible object is
Long
-
setFitToWidth
Sets the value of the fitToWidth property.- Parameters:
value- allowed object isLong
-
getFitToHeight
public long getFitToHeight()Gets the value of the fitToHeight property.- Returns:
- possible object is
Long
-
setFitToHeight
Sets the value of the fitToHeight property.- Parameters:
value- allowed object isLong
-
getPageOrder
Gets the value of the pageOrder property.- Returns:
- possible object is
STPageOrder
-
setPageOrder
Sets the value of the pageOrder property.- Parameters:
value- allowed object isSTPageOrder
-
getOrientation
Gets the value of the orientation property.- Returns:
- possible object is
STOrientation
-
setOrientation
Sets the value of the orientation property.- Parameters:
value- allowed object isSTOrientation
-
isUsePrinterDefaults
public boolean isUsePrinterDefaults()Gets the value of the usePrinterDefaults property.- Returns:
- possible object is
Boolean
-
setUsePrinterDefaults
Sets the value of the usePrinterDefaults property.- Parameters:
value- allowed object isBoolean
-
isBlackAndWhite
public boolean isBlackAndWhite()Gets the value of the blackAndWhite property.- Returns:
- possible object is
Boolean
-
setBlackAndWhite
Sets the value of the blackAndWhite property.- Parameters:
value- allowed object isBoolean
-
isDraft
public boolean isDraft()Gets the value of the draft property.- Returns:
- possible object is
Boolean
-
setDraft
Sets the value of the draft property.- Parameters:
value- allowed object isBoolean
-
getCellComments
Gets the value of the cellComments property.- Returns:
- possible object is
STCellComments
-
setCellComments
Sets the value of the cellComments property.- Parameters:
value- allowed object isSTCellComments
-
isUseFirstPageNumber
public boolean isUseFirstPageNumber()Gets the value of the useFirstPageNumber property.- Returns:
- possible object is
Boolean
-
setUseFirstPageNumber
Sets the value of the useFirstPageNumber property.- Parameters:
value- allowed object isBoolean
-
getErrors
Gets the value of the errors property.- Returns:
- possible object is
STPrintError
-
setErrors
Sets the value of the errors property.- Parameters:
value- allowed object isSTPrintError
-
getHorizontalDpi
public long getHorizontalDpi()Gets the value of the horizontalDpi property.- Returns:
- possible object is
Long
-
setHorizontalDpi
Sets the value of the horizontalDpi property.- Parameters:
value- allowed object isLong
-
getVerticalDpi
public long getVerticalDpi()Gets the value of the verticalDpi property.- Returns:
- possible object is
Long
-
setVerticalDpi
Sets the value of the verticalDpi property.- Parameters:
value- allowed object isLong
-
getCopies
public long getCopies()Gets the value of the copies property.- Returns:
- possible object is
Long
-
setCopies
Sets the value of the copies property.- Parameters:
value- allowed object isLong
-
getId
Gets the value of the id property.- Returns:
- possible object is
String
-
setId
Sets the value of the id property.- Parameters:
value- allowed object isString
-
getParent
Gets the parent object in the object tree representing the unmarshalled xml document. -
setParent
-
afterUnmarshal
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.- Parameters:
parent- The parent object in the object tree.unmarshaller- The unmarshaller that generated the instance.
-