Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   *  Copyright 2010-2013, Plutext Pty Ltd.
   *   
   *  This file is part of xlsx4j, a component of docx4j.
  
      docx4j is licensed under the Apache License, Version 2.0 (the "License"); 
      you may not use this file except in compliance with the License. 
  
      You may obtain a copy of the License at 
 
         http://www.apache.org/licenses/LICENSE-2.0 
 
     Unless required by applicable law or agreed to in writing, software 
     distributed under the License is distributed on an "AS IS" BASIS, 
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
     See the License for the specific language governing permissions and 
     limitations under the License.
 
  */
 package org.xlsx4j.sml;
 

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>
 
 
 @XmlType(name = "CT_PageSetup")
 public class CTPageSetup implements Child
 {
 
     @XmlAttribute(name = "paperSize")
     @XmlSchemaType(name = "unsignedInt")
     protected Long paperSize;
     @XmlAttribute(name = "paperHeight")
     protected String paperHeight;
     @XmlAttribute(name = "paperWidth")
     protected String paperWidth;
     @XmlAttribute(name = "scale")
     @XmlSchemaType(name = "unsignedInt")
     protected Long scale;
     @XmlAttribute(name = "firstPageNumber")
     @XmlSchemaType(name = "unsignedInt")
     protected Long firstPageNumber;
     @XmlAttribute(name = "fitToWidth")
     @XmlSchemaType(name = "unsignedInt")
     protected Long fitToWidth;
     @XmlAttribute(name = "fitToHeight")
     @XmlSchemaType(name = "unsignedInt")
     protected Long fitToHeight;
     @XmlAttribute(name = "pageOrder")
     protected STPageOrder pageOrder;
     @XmlAttribute(name = "orientation")
     protected STOrientation orientation;
     @XmlAttribute(name = "usePrinterDefaults")
     protected Boolean usePrinterDefaults;
     @XmlAttribute(name = "blackAndWhite")
     protected Boolean blackAndWhite;
     @XmlAttribute(name = "draft")
    protected Boolean draft;
    @XmlAttribute(name = "cellComments")
    protected STCellComments cellComments;
    @XmlAttribute(name = "useFirstPageNumber")
    protected Boolean useFirstPageNumber;
    @XmlAttribute(name = "errors")
    protected STPrintError errors;
    @XmlAttribute(name = "horizontalDpi")
    @XmlSchemaType(name = "unsignedInt")
    protected Long horizontalDpi;
    @XmlAttribute(name = "verticalDpi")
    @XmlSchemaType(name = "unsignedInt")
    protected Long verticalDpi;
    @XmlAttribute(name = "copies")
    @XmlSchemaType(name = "unsignedInt")
    protected Long copies;
    @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships")
    protected String id;
    private Object parent;

    
Gets the value of the paperSize property.

Returns:
possible object is
    public long getPaperSize() {
        if ( == null) {
            return  1L;
        } else {
            return ;
        }
    }

    
Sets the value of the paperSize property.

Parameters:
value allowed object is
    public void setPaperSize(Long value) {
        this. = value;
    }

    
Gets the value of the paperHeight property.

Returns:
possible object is
    public String getPaperHeight() {
        return ;
    }

    
Sets the value of the paperHeight property.

Parameters:
value allowed object is
    public void setPaperHeight(String value) {
        this. = value;
    }

    
Gets the value of the paperWidth property.

Returns:
possible object is
    public String getPaperWidth() {
        return ;
    }

    
Sets the value of the paperWidth property.

Parameters:
value allowed object is
    public void setPaperWidth(String value) {
        this. = value;
    }

    
Gets the value of the scale property.

Returns:
possible object is
    public long getScale() {
        if ( == null) {
            return  100L;
        } else {
            return ;
        }
    }

    
Sets the value of the scale property.

Parameters:
value allowed object is
    public void setScale(Long value) {
        this. = value;
    }

    
Gets the value of the firstPageNumber property.

Returns:
possible object is
    public long getFirstPageNumber() {
        if ( == null) {
            return  1L;
        } else {
            return ;
        }
    }

    
Sets the value of the firstPageNumber property.

Parameters:
value allowed object is
    public void setFirstPageNumber(Long value) {
        this. = value;
    }

    
Gets the value of the fitToWidth property.

Returns:
possible object is
    public long getFitToWidth() {
        if ( == null) {
            return  1L;
        } else {
            return ;
        }
    }

    
Sets the value of the fitToWidth property.

Parameters:
value allowed object is
    public void setFitToWidth(Long value) {
        this. = value;
    }

    
Gets the value of the fitToHeight property.

Returns:
possible object is
    public long getFitToHeight() {
        if ( == null) {
            return  1L;
        } else {
            return ;
        }
    }

    
Sets the value of the fitToHeight property.

Parameters:
value allowed object is
    public void setFitToHeight(Long value) {
        this. = value;
    }

    
Gets the value of the pageOrder property.

Returns:
possible object is
    public STPageOrder getPageOrder() {
        if ( == null) {
            return .;
        } else {
            return ;
        }
    }

    
Sets the value of the pageOrder property.

Parameters:
value allowed object is
    public void setPageOrder(STPageOrder value) {
        this. = value;
    }

    
Gets the value of the orientation property.

Returns:
possible object is
    public STOrientation getOrientation() {
        if ( == null) {
            return .;
        } else {
            return ;
        }
    }

    
Sets the value of the orientation property.

Parameters:
value allowed object is
    public void setOrientation(STOrientation value) {
        this. = value;
    }

    
Gets the value of the usePrinterDefaults property.

Returns:
possible object is
    public boolean isUsePrinterDefaults() {
        if ( == null) {
            return true;
        } else {
            return ;
        }
    }

    
Sets the value of the usePrinterDefaults property.

Parameters:
value allowed object is
    public void setUsePrinterDefaults(Boolean value) {
        this. = value;
    }

    
Gets the value of the blackAndWhite property.

Returns:
possible object is
    public boolean isBlackAndWhite() {
        if ( == null) {
            return false;
        } else {
            return ;
        }
    }

    
Sets the value of the blackAndWhite property.

Parameters:
value allowed object is
    public void setBlackAndWhite(Boolean value) {
        this. = value;
    }

    
Gets the value of the draft property.

Returns:
possible object is
    public boolean isDraft() {
        if ( == null) {
            return false;
        } else {
            return ;
        }
    }

    
Sets the value of the draft property.

Parameters:
value allowed object is
    public void setDraft(Boolean value) {
        this. = value;
    }

    
Gets the value of the cellComments property.

Returns:
possible object is
    public STCellComments getCellComments() {
        if ( == null) {
            return .;
        } else {
            return ;
        }
    }

    
Sets the value of the cellComments property.

Parameters:
value allowed object is
    public void setCellComments(STCellComments value) {
        this. = value;
    }

    
Gets the value of the useFirstPageNumber property.

Returns:
possible object is
    public boolean isUseFirstPageNumber() {
        if ( == null) {
            return false;
        } else {
            return ;
        }
    }

    
Sets the value of the useFirstPageNumber property.

Parameters:
value allowed object is
    public void setUseFirstPageNumber(Boolean value) {
        this. = value;
    }

    
Gets the value of the errors property.

Returns:
possible object is
    public STPrintError getErrors() {
        if ( == null) {
            return .;
        } else {
            return ;
        }
    }

    
Sets the value of the errors property.

Parameters:
value allowed object is
    public void setErrors(STPrintError value) {
        this. = value;
    }

    
Gets the value of the horizontalDpi property.

Returns:
possible object is
    public long getHorizontalDpi() {
        if ( == null) {
            return  600L;
        } else {
            return ;
        }
    }

    
Sets the value of the horizontalDpi property.

Parameters:
value allowed object is
    public void setHorizontalDpi(Long value) {
        this. = value;
    }

    
Gets the value of the verticalDpi property.

Returns:
possible object is
    public long getVerticalDpi() {
        if ( == null) {
            return  600L;
        } else {
            return ;
        }
    }

    
Sets the value of the verticalDpi property.

Parameters:
value allowed object is
    public void setVerticalDpi(Long value) {
        this. = value;
    }

    
Gets the value of the copies property.

Returns:
possible object is
    public long getCopies() {
        if ( == null) {
            return  1L;
        } else {
            return ;
        }
    }

    
Sets the value of the copies property.

Parameters:
value allowed object is
    public void setCopies(Long value) {
        this. = value;
    }

    
Gets the value of the id property.

Returns:
possible object is
    public String getId() {
        return ;
    }

    
Sets the value of the id property.

Parameters:
value allowed object is
    public void setId(String value) {
        this. = value;
    }

    
Gets the parent object in the object tree representing the unmarshalled xml document.

Returns:
The parent object.
    public Object getParent() {
        return this.;
    }
    public void setParent(Object parent) {
        this. = parent;
    }

    
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.
    public void afterUnmarshal(Unmarshaller unmarshallerObject parent) {
        setParent(parent);
    }
New to GrepCode? Check out our FAQ X