org.pptx4j.pml.ViewPr Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docx4j Show documentation
Show all versions of docx4j Show documentation
docx4j is a library which helps you to work with the Office Open
XML file format as used in docx
documents, pptx presentations, and xlsx spreadsheets.
/*
* Copyright 2010-2012, Plutext Pty Ltd.
*
* This file is part of pptx4j, 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.pptx4j.pml;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.docx4j.dml.CTPositiveSize2D;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence minOccurs="0">
* <element name="normalViewPr" type="{http://schemas.openxmlformats.org/presentationml/2006/main}CT_NormalViewProperties" minOccurs="0"/>
* <element name="slideViewPr" type="{http://schemas.openxmlformats.org/presentationml/2006/main}CT_SlideViewProperties" minOccurs="0"/>
* <element name="outlineViewPr" type="{http://schemas.openxmlformats.org/presentationml/2006/main}CT_OutlineViewProperties" minOccurs="0"/>
* <element name="notesTextViewPr" type="{http://schemas.openxmlformats.org/presentationml/2006/main}CT_NotesTextViewProperties" minOccurs="0"/>
* <element name="sorterViewPr" type="{http://schemas.openxmlformats.org/presentationml/2006/main}CT_SlideSorterViewProperties" minOccurs="0"/>
* <element name="notesViewPr" type="{http://schemas.openxmlformats.org/presentationml/2006/main}CT_NotesViewProperties" minOccurs="0"/>
* <element name="gridSpacing" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_PositiveSize2D" minOccurs="0"/>
* <element name="extLst" type="{http://schemas.openxmlformats.org/presentationml/2006/main}CT_ExtensionList" minOccurs="0"/>
* </sequence>
* <attribute name="lastView" type="{http://schemas.openxmlformats.org/presentationml/2006/main}ST_ViewType" default="sldView" />
* <attribute name="showComments" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"normalViewPr",
"slideViewPr",
"outlineViewPr",
"notesTextViewPr",
"sorterViewPr",
"notesViewPr",
"gridSpacing",
"extLst"
})
@XmlRootElement(name = "viewPr")
public class ViewPr {
protected CTNormalViewProperties normalViewPr;
protected CTSlideViewProperties slideViewPr;
protected CTOutlineViewProperties outlineViewPr;
protected CTNotesTextViewProperties notesTextViewPr;
protected CTSlideSorterViewProperties sorterViewPr;
protected CTNotesViewProperties notesViewPr;
protected CTPositiveSize2D gridSpacing;
protected CTExtensionList extLst;
@XmlAttribute(name = "lastView")
protected STViewType lastView;
@XmlAttribute(name = "showComments")
protected Boolean showComments;
/**
* Gets the value of the normalViewPr property.
*
* @return
* possible object is
* {@link CTNormalViewProperties }
*
*/
public CTNormalViewProperties getNormalViewPr() {
return normalViewPr;
}
/**
* Sets the value of the normalViewPr property.
*
* @param value
* allowed object is
* {@link CTNormalViewProperties }
*
*/
public void setNormalViewPr(CTNormalViewProperties value) {
this.normalViewPr = value;
}
/**
* Gets the value of the slideViewPr property.
*
* @return
* possible object is
* {@link CTSlideViewProperties }
*
*/
public CTSlideViewProperties getSlideViewPr() {
return slideViewPr;
}
/**
* Sets the value of the slideViewPr property.
*
* @param value
* allowed object is
* {@link CTSlideViewProperties }
*
*/
public void setSlideViewPr(CTSlideViewProperties value) {
this.slideViewPr = value;
}
/**
* Gets the value of the outlineViewPr property.
*
* @return
* possible object is
* {@link CTOutlineViewProperties }
*
*/
public CTOutlineViewProperties getOutlineViewPr() {
return outlineViewPr;
}
/**
* Sets the value of the outlineViewPr property.
*
* @param value
* allowed object is
* {@link CTOutlineViewProperties }
*
*/
public void setOutlineViewPr(CTOutlineViewProperties value) {
this.outlineViewPr = value;
}
/**
* Gets the value of the notesTextViewPr property.
*
* @return
* possible object is
* {@link CTNotesTextViewProperties }
*
*/
public CTNotesTextViewProperties getNotesTextViewPr() {
return notesTextViewPr;
}
/**
* Sets the value of the notesTextViewPr property.
*
* @param value
* allowed object is
* {@link CTNotesTextViewProperties }
*
*/
public void setNotesTextViewPr(CTNotesTextViewProperties value) {
this.notesTextViewPr = value;
}
/**
* Gets the value of the sorterViewPr property.
*
* @return
* possible object is
* {@link CTSlideSorterViewProperties }
*
*/
public CTSlideSorterViewProperties getSorterViewPr() {
return sorterViewPr;
}
/**
* Sets the value of the sorterViewPr property.
*
* @param value
* allowed object is
* {@link CTSlideSorterViewProperties }
*
*/
public void setSorterViewPr(CTSlideSorterViewProperties value) {
this.sorterViewPr = value;
}
/**
* Gets the value of the notesViewPr property.
*
* @return
* possible object is
* {@link CTNotesViewProperties }
*
*/
public CTNotesViewProperties getNotesViewPr() {
return notesViewPr;
}
/**
* Sets the value of the notesViewPr property.
*
* @param value
* allowed object is
* {@link CTNotesViewProperties }
*
*/
public void setNotesViewPr(CTNotesViewProperties value) {
this.notesViewPr = value;
}
/**
* Gets the value of the gridSpacing property.
*
* @return
* possible object is
* {@link CTPositiveSize2D }
*
*/
public CTPositiveSize2D getGridSpacing() {
return gridSpacing;
}
/**
* Sets the value of the gridSpacing property.
*
* @param value
* allowed object is
* {@link CTPositiveSize2D }
*
*/
public void setGridSpacing(CTPositiveSize2D value) {
this.gridSpacing = value;
}
/**
* Gets the value of the extLst property.
*
* @return
* possible object is
* {@link CTExtensionList }
*
*/
public CTExtensionList getExtLst() {
return extLst;
}
/**
* Sets the value of the extLst property.
*
* @param value
* allowed object is
* {@link CTExtensionList }
*
*/
public void setExtLst(CTExtensionList value) {
this.extLst = value;
}
/**
* Gets the value of the lastView property.
*
* @return
* possible object is
* {@link STViewType }
*
*/
public STViewType getLastView() {
if (lastView == null) {
return STViewType.SLD_VIEW;
} else {
return lastView;
}
}
/**
* Sets the value of the lastView property.
*
* @param value
* allowed object is
* {@link STViewType }
*
*/
public void setLastView(STViewType value) {
this.lastView = value;
}
/**
* Gets the value of the showComments property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isShowComments() {
if (showComments == null) {
return true;
} else {
return showComments;
}
}
/**
* Sets the value of the showComments property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setShowComments(Boolean value) {
this.showComments = value;
}
}