| 1 | /* |
|---|
| 2 | * Copyright 2007-2008, Plutext Pty Ltd. |
|---|
| 3 | * |
|---|
| 4 | * This file is part of docx4j. |
|---|
| 5 | |
|---|
| 6 | docx4j is licensed under the Apache License, Version 2.0 (the "License"); |
|---|
| 7 | you may not use this file except in compliance with the License. |
|---|
| 8 | |
|---|
| 9 | You may obtain a copy of the License at |
|---|
| 10 | |
|---|
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
|---|
| 12 | |
|---|
| 13 | Unless required by applicable law or agreed to in writing, software |
|---|
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
|---|
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|---|
| 16 | See the License for the specific language governing permissions and |
|---|
| 17 | limitations under the License. |
|---|
| 18 | |
|---|
| 19 | */ |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | package org.docx4j.wml; |
|---|
| 23 | |
|---|
| 24 | import java.math.BigInteger; |
|---|
| 25 | import javax.xml.bind.Unmarshaller; |
|---|
| 26 | import javax.xml.bind.annotation.XmlAccessType; |
|---|
| 27 | import javax.xml.bind.annotation.XmlAccessorType; |
|---|
| 28 | import javax.xml.bind.annotation.XmlAttribute; |
|---|
| 29 | import javax.xml.bind.annotation.XmlTransient; |
|---|
| 30 | import javax.xml.bind.annotation.XmlType; |
|---|
| 31 | import org.jvnet.jaxb2_commons.ppp.Child; |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | /** |
|---|
| 35 | * <p>Java class for CT_ReadingModeInkLockDown complex type. |
|---|
| 36 | * |
|---|
| 37 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 38 | * |
|---|
| 39 | * <pre> |
|---|
| 40 | * <complexType name="CT_ReadingModeInkLockDown"> |
|---|
| 41 | * <complexContent> |
|---|
| 42 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 43 | * <attribute name="actualPg" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" /> |
|---|
| 44 | * <attribute name="w" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_PixelsMeasure" /> |
|---|
| 45 | * <attribute name="h" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_PixelsMeasure" /> |
|---|
| 46 | * <attribute name="fontSz" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" /> |
|---|
| 47 | * </restriction> |
|---|
| 48 | * </complexContent> |
|---|
| 49 | * </complexType> |
|---|
| 50 | * </pre> |
|---|
| 51 | * |
|---|
| 52 | * |
|---|
| 53 | */ |
|---|
| 54 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 55 | @XmlType(name = "CT_ReadingModeInkLockDown") |
|---|
| 56 | public class CTReadingModeInkLockDown |
|---|
| 57 | implements Child |
|---|
| 58 | { |
|---|
| 59 | |
|---|
| 60 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true) |
|---|
| 61 | protected boolean actualPg; |
|---|
| 62 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true) |
|---|
| 63 | protected BigInteger w; |
|---|
| 64 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true) |
|---|
| 65 | protected BigInteger h; |
|---|
| 66 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true) |
|---|
| 67 | protected BigInteger fontSz; |
|---|
| 68 | @XmlTransient |
|---|
| 69 | private Object parent; |
|---|
| 70 | |
|---|
| 71 | /** |
|---|
| 72 | * Gets the value of the actualPg property. |
|---|
| 73 | * |
|---|
| 74 | */ |
|---|
| 75 | public boolean isActualPg() { |
|---|
| 76 | return actualPg; |
|---|
| 77 | } |
|---|
| 78 | |
|---|
| 79 | /** |
|---|
| 80 | * Sets the value of the actualPg property. |
|---|
| 81 | * |
|---|
| 82 | */ |
|---|
| 83 | public void setActualPg(boolean value) { |
|---|
| 84 | this.actualPg = value; |
|---|
| 85 | } |
|---|
| 86 | |
|---|
| 87 | /** |
|---|
| 88 | * Gets the value of the w property. |
|---|
| 89 | * |
|---|
| 90 | * @return |
|---|
| 91 | * possible object is |
|---|
| 92 | * {@link BigInteger } |
|---|
| 93 | * |
|---|
| 94 | */ |
|---|
| 95 | public BigInteger getW() { |
|---|
| 96 | return w; |
|---|
| 97 | } |
|---|
| 98 | |
|---|
| 99 | /** |
|---|
| 100 | * Sets the value of the w property. |
|---|
| 101 | * |
|---|
| 102 | * @param value |
|---|
| 103 | * allowed object is |
|---|
| 104 | * {@link BigInteger } |
|---|
| 105 | * |
|---|
| 106 | */ |
|---|
| 107 | public void setW(BigInteger value) { |
|---|
| 108 | this.w = value; |
|---|
| 109 | } |
|---|
| 110 | |
|---|
| 111 | /** |
|---|
| 112 | * Gets the value of the h property. |
|---|
| 113 | * |
|---|
| 114 | * @return |
|---|
| 115 | * possible object is |
|---|
| 116 | * {@link BigInteger } |
|---|
| 117 | * |
|---|
| 118 | */ |
|---|
| 119 | public BigInteger getH() { |
|---|
| 120 | return h; |
|---|
| 121 | } |
|---|
| 122 | |
|---|
| 123 | /** |
|---|
| 124 | * Sets the value of the h property. |
|---|
| 125 | * |
|---|
| 126 | * @param value |
|---|
| 127 | * allowed object is |
|---|
| 128 | * {@link BigInteger } |
|---|
| 129 | * |
|---|
| 130 | */ |
|---|
| 131 | public void setH(BigInteger value) { |
|---|
| 132 | this.h = value; |
|---|
| 133 | } |
|---|
| 134 | |
|---|
| 135 | /** |
|---|
| 136 | * Gets the value of the fontSz property. |
|---|
| 137 | * |
|---|
| 138 | * @return |
|---|
| 139 | * possible object is |
|---|
| 140 | * {@link BigInteger } |
|---|
| 141 | * |
|---|
| 142 | */ |
|---|
| 143 | public BigInteger getFontSz() { |
|---|
| 144 | return fontSz; |
|---|
| 145 | } |
|---|
| 146 | |
|---|
| 147 | /** |
|---|
| 148 | * Sets the value of the fontSz property. |
|---|
| 149 | * |
|---|
| 150 | * @param value |
|---|
| 151 | * allowed object is |
|---|
| 152 | * {@link BigInteger } |
|---|
| 153 | * |
|---|
| 154 | */ |
|---|
| 155 | public void setFontSz(BigInteger value) { |
|---|
| 156 | this.fontSz = value; |
|---|
| 157 | } |
|---|
| 158 | |
|---|
| 159 | /** |
|---|
| 160 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 161 | * |
|---|
| 162 | * @return |
|---|
| 163 | * The parent object. |
|---|
| 164 | */ |
|---|
| 165 | public Object getParent() { |
|---|
| 166 | return this.parent; |
|---|
| 167 | } |
|---|
| 168 | |
|---|
| 169 | public void setParent(Object parent) { |
|---|
| 170 | this.parent = parent; |
|---|
| 171 | } |
|---|
| 172 | |
|---|
| 173 | /** |
|---|
| 174 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 175 | * |
|---|
| 176 | * @param parent |
|---|
| 177 | * The parent object in the object tree. |
|---|
| 178 | * @param unmarshaller |
|---|
| 179 | * The unmarshaller that generated the instance. |
|---|
| 180 | */ |
|---|
| 181 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 182 | setParent(parent); |
|---|
| 183 | } |
|---|
| 184 | |
|---|
| 185 | } |
|---|