| 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 javax.xml.bind.Unmarshaller; |
|---|
| 25 | import javax.xml.bind.annotation.XmlAccessType; |
|---|
| 26 | import javax.xml.bind.annotation.XmlAccessorType; |
|---|
| 27 | import javax.xml.bind.annotation.XmlAttribute; |
|---|
| 28 | import javax.xml.bind.annotation.XmlTransient; |
|---|
| 29 | import javax.xml.bind.annotation.XmlType; |
|---|
| 30 | import org.jvnet.jaxb2_commons.ppp.Child; |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | /** |
|---|
| 34 | * <p>Java class for CT_Frame complex type. |
|---|
| 35 | * |
|---|
| 36 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 37 | * |
|---|
| 38 | * <pre> |
|---|
| 39 | * <complexType name="CT_Frame"> |
|---|
| 40 | * <complexContent> |
|---|
| 41 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 42 | * <sequence> |
|---|
| 43 | * <element name="sz" minOccurs="0"> |
|---|
| 44 | * <complexType> |
|---|
| 45 | * <complexContent> |
|---|
| 46 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 47 | * <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 48 | * </restriction> |
|---|
| 49 | * </complexContent> |
|---|
| 50 | * </complexType> |
|---|
| 51 | * </element> |
|---|
| 52 | * <element name="name" minOccurs="0"> |
|---|
| 53 | * <complexType> |
|---|
| 54 | * <complexContent> |
|---|
| 55 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 56 | * <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 57 | * </restriction> |
|---|
| 58 | * </complexContent> |
|---|
| 59 | * </complexType> |
|---|
| 60 | * </element> |
|---|
| 61 | * <element name="sourceFileName" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Rel" minOccurs="0"/> |
|---|
| 62 | * <element name="marW" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_PixelsMeasure" minOccurs="0"/> |
|---|
| 63 | * <element name="marH" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_PixelsMeasure" minOccurs="0"/> |
|---|
| 64 | * <element name="scrollbar" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FrameScrollbar" minOccurs="0"/> |
|---|
| 65 | * <element name="noResizeAllowed" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/> |
|---|
| 66 | * <element name="linkedToFile" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/> |
|---|
| 67 | * </sequence> |
|---|
| 68 | * </restriction> |
|---|
| 69 | * </complexContent> |
|---|
| 70 | * </complexType> |
|---|
| 71 | * </pre> |
|---|
| 72 | * |
|---|
| 73 | * |
|---|
| 74 | */ |
|---|
| 75 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 76 | @XmlType(name = "CT_Frame", propOrder = { |
|---|
| 77 | "sz", |
|---|
| 78 | "name", |
|---|
| 79 | "sourceFileName", |
|---|
| 80 | "marW", |
|---|
| 81 | "marH", |
|---|
| 82 | "scrollbar", |
|---|
| 83 | "noResizeAllowed", |
|---|
| 84 | "linkedToFile" |
|---|
| 85 | }) |
|---|
| 86 | public class CTFrame implements Child |
|---|
| 87 | { |
|---|
| 88 | |
|---|
| 89 | protected CTFrame.Sz sz; |
|---|
| 90 | protected CTFrame.Name name; |
|---|
| 91 | protected CTRel sourceFileName; |
|---|
| 92 | protected CTPixelsMeasure marW; |
|---|
| 93 | protected CTPixelsMeasure marH; |
|---|
| 94 | protected CTFrameScrollbar scrollbar; |
|---|
| 95 | protected BooleanDefaultTrue noResizeAllowed; |
|---|
| 96 | protected BooleanDefaultTrue linkedToFile; |
|---|
| 97 | @XmlTransient |
|---|
| 98 | private Object parent; |
|---|
| 99 | |
|---|
| 100 | /** |
|---|
| 101 | * Gets the value of the sz property. |
|---|
| 102 | * |
|---|
| 103 | * @return |
|---|
| 104 | * possible object is |
|---|
| 105 | * {@link CTFrame.Sz } |
|---|
| 106 | * |
|---|
| 107 | */ |
|---|
| 108 | public CTFrame.Sz getSz() { |
|---|
| 109 | return sz; |
|---|
| 110 | } |
|---|
| 111 | |
|---|
| 112 | /** |
|---|
| 113 | * Sets the value of the sz property. |
|---|
| 114 | * |
|---|
| 115 | * @param value |
|---|
| 116 | * allowed object is |
|---|
| 117 | * {@link CTFrame.Sz } |
|---|
| 118 | * |
|---|
| 119 | */ |
|---|
| 120 | public void setSz(CTFrame.Sz value) { |
|---|
| 121 | this.sz = value; |
|---|
| 122 | } |
|---|
| 123 | |
|---|
| 124 | /** |
|---|
| 125 | * Gets the value of the name property. |
|---|
| 126 | * |
|---|
| 127 | * @return |
|---|
| 128 | * possible object is |
|---|
| 129 | * {@link CTFrame.Name } |
|---|
| 130 | * |
|---|
| 131 | */ |
|---|
| 132 | public CTFrame.Name getName() { |
|---|
| 133 | return name; |
|---|
| 134 | } |
|---|
| 135 | |
|---|
| 136 | /** |
|---|
| 137 | * Sets the value of the name property. |
|---|
| 138 | * |
|---|
| 139 | * @param value |
|---|
| 140 | * allowed object is |
|---|
| 141 | * {@link CTFrame.Name } |
|---|
| 142 | * |
|---|
| 143 | */ |
|---|
| 144 | public void setName(CTFrame.Name value) { |
|---|
| 145 | this.name = value; |
|---|
| 146 | } |
|---|
| 147 | |
|---|
| 148 | /** |
|---|
| 149 | * Gets the value of the sourceFileName property. |
|---|
| 150 | * |
|---|
| 151 | * @return |
|---|
| 152 | * possible object is |
|---|
| 153 | * {@link CTRel } |
|---|
| 154 | * |
|---|
| 155 | */ |
|---|
| 156 | public CTRel getSourceFileName() { |
|---|
| 157 | return sourceFileName; |
|---|
| 158 | } |
|---|
| 159 | |
|---|
| 160 | /** |
|---|
| 161 | * Sets the value of the sourceFileName property. |
|---|
| 162 | * |
|---|
| 163 | * @param value |
|---|
| 164 | * allowed object is |
|---|
| 165 | * {@link CTRel } |
|---|
| 166 | * |
|---|
| 167 | */ |
|---|
| 168 | public void setSourceFileName(CTRel value) { |
|---|
| 169 | this.sourceFileName = value; |
|---|
| 170 | } |
|---|
| 171 | |
|---|
| 172 | /** |
|---|
| 173 | * Gets the value of the marW property. |
|---|
| 174 | * |
|---|
| 175 | * @return |
|---|
| 176 | * possible object is |
|---|
| 177 | * {@link CTPixelsMeasure } |
|---|
| 178 | * |
|---|
| 179 | */ |
|---|
| 180 | public CTPixelsMeasure getMarW() { |
|---|
| 181 | return marW; |
|---|
| 182 | } |
|---|
| 183 | |
|---|
| 184 | /** |
|---|
| 185 | * Sets the value of the marW property. |
|---|
| 186 | * |
|---|
| 187 | * @param value |
|---|
| 188 | * allowed object is |
|---|
| 189 | * {@link CTPixelsMeasure } |
|---|
| 190 | * |
|---|
| 191 | */ |
|---|
| 192 | public void setMarW(CTPixelsMeasure value) { |
|---|
| 193 | this.marW = value; |
|---|
| 194 | } |
|---|
| 195 | |
|---|
| 196 | /** |
|---|
| 197 | * Gets the value of the marH property. |
|---|
| 198 | * |
|---|
| 199 | * @return |
|---|
| 200 | * possible object is |
|---|
| 201 | * {@link CTPixelsMeasure } |
|---|
| 202 | * |
|---|
| 203 | */ |
|---|
| 204 | public CTPixelsMeasure getMarH() { |
|---|
| 205 | return marH; |
|---|
| 206 | } |
|---|
| 207 | |
|---|
| 208 | /** |
|---|
| 209 | * Sets the value of the marH property. |
|---|
| 210 | * |
|---|
| 211 | * @param value |
|---|
| 212 | * allowed object is |
|---|
| 213 | * {@link CTPixelsMeasure } |
|---|
| 214 | * |
|---|
| 215 | */ |
|---|
| 216 | public void setMarH(CTPixelsMeasure value) { |
|---|
| 217 | this.marH = value; |
|---|
| 218 | } |
|---|
| 219 | |
|---|
| 220 | /** |
|---|
| 221 | * Gets the value of the scrollbar property. |
|---|
| 222 | * |
|---|
| 223 | * @return |
|---|
| 224 | * possible object is |
|---|
| 225 | * {@link CTFrameScrollbar } |
|---|
| 226 | * |
|---|
| 227 | */ |
|---|
| 228 | public CTFrameScrollbar getScrollbar() { |
|---|
| 229 | return scrollbar; |
|---|
| 230 | } |
|---|
| 231 | |
|---|
| 232 | /** |
|---|
| 233 | * Sets the value of the scrollbar property. |
|---|
| 234 | * |
|---|
| 235 | * @param value |
|---|
| 236 | * allowed object is |
|---|
| 237 | * {@link CTFrameScrollbar } |
|---|
| 238 | * |
|---|
| 239 | */ |
|---|
| 240 | public void setScrollbar(CTFrameScrollbar value) { |
|---|
| 241 | this.scrollbar = value; |
|---|
| 242 | } |
|---|
| 243 | |
|---|
| 244 | /** |
|---|
| 245 | * Gets the value of the noResizeAllowed property. |
|---|
| 246 | * |
|---|
| 247 | * @return |
|---|
| 248 | * possible object is |
|---|
| 249 | * {@link BooleanDefaultTrue } |
|---|
| 250 | * |
|---|
| 251 | */ |
|---|
| 252 | public BooleanDefaultTrue getNoResizeAllowed() { |
|---|
| 253 | return noResizeAllowed; |
|---|
| 254 | } |
|---|
| 255 | |
|---|
| 256 | /** |
|---|
| 257 | * Sets the value of the noResizeAllowed property. |
|---|
| 258 | * |
|---|
| 259 | * @param value |
|---|
| 260 | * allowed object is |
|---|
| 261 | * {@link BooleanDefaultTrue } |
|---|
| 262 | * |
|---|
| 263 | */ |
|---|
| 264 | public void setNoResizeAllowed(BooleanDefaultTrue value) { |
|---|
| 265 | this.noResizeAllowed = value; |
|---|
| 266 | } |
|---|
| 267 | |
|---|
| 268 | /** |
|---|
| 269 | * Gets the value of the linkedToFile property. |
|---|
| 270 | * |
|---|
| 271 | * @return |
|---|
| 272 | * possible object is |
|---|
| 273 | * {@link BooleanDefaultTrue } |
|---|
| 274 | * |
|---|
| 275 | */ |
|---|
| 276 | public BooleanDefaultTrue getLinkedToFile() { |
|---|
| 277 | return linkedToFile; |
|---|
| 278 | } |
|---|
| 279 | |
|---|
| 280 | /** |
|---|
| 281 | * Sets the value of the linkedToFile property. |
|---|
| 282 | * |
|---|
| 283 | * @param value |
|---|
| 284 | * allowed object is |
|---|
| 285 | * {@link BooleanDefaultTrue } |
|---|
| 286 | * |
|---|
| 287 | */ |
|---|
| 288 | public void setLinkedToFile(BooleanDefaultTrue value) { |
|---|
| 289 | this.linkedToFile = value; |
|---|
| 290 | } |
|---|
| 291 | |
|---|
| 292 | /** |
|---|
| 293 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 294 | * |
|---|
| 295 | * @return |
|---|
| 296 | * The parent object. |
|---|
| 297 | */ |
|---|
| 298 | public Object getParent() { |
|---|
| 299 | return this.parent; |
|---|
| 300 | } |
|---|
| 301 | |
|---|
| 302 | public void setParent(Object parent) { |
|---|
| 303 | this.parent = parent; |
|---|
| 304 | } |
|---|
| 305 | |
|---|
| 306 | /** |
|---|
| 307 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 308 | * |
|---|
| 309 | * @param parent |
|---|
| 310 | * The parent object in the object tree. |
|---|
| 311 | * @param unmarshaller |
|---|
| 312 | * The unmarshaller that generated the instance. |
|---|
| 313 | */ |
|---|
| 314 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 315 | setParent(parent); |
|---|
| 316 | } |
|---|
| 317 | |
|---|
| 318 | |
|---|
| 319 | /** |
|---|
| 320 | * <p>Java class for anonymous complex type. |
|---|
| 321 | * |
|---|
| 322 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 323 | * |
|---|
| 324 | * <pre> |
|---|
| 325 | * <complexType> |
|---|
| 326 | * <complexContent> |
|---|
| 327 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 328 | * <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 329 | * </restriction> |
|---|
| 330 | * </complexContent> |
|---|
| 331 | * </complexType> |
|---|
| 332 | * </pre> |
|---|
| 333 | * |
|---|
| 334 | * |
|---|
| 335 | */ |
|---|
| 336 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 337 | @XmlType(name = "") |
|---|
| 338 | public static class Name |
|---|
| 339 | implements Child |
|---|
| 340 | { |
|---|
| 341 | |
|---|
| 342 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 343 | protected String val; |
|---|
| 344 | @XmlTransient |
|---|
| 345 | private Object parent; |
|---|
| 346 | |
|---|
| 347 | /** |
|---|
| 348 | * Gets the value of the val property. |
|---|
| 349 | * |
|---|
| 350 | * @return |
|---|
| 351 | * possible object is |
|---|
| 352 | * {@link String } |
|---|
| 353 | * |
|---|
| 354 | */ |
|---|
| 355 | public String getVal() { |
|---|
| 356 | return val; |
|---|
| 357 | } |
|---|
| 358 | |
|---|
| 359 | /** |
|---|
| 360 | * Sets the value of the val property. |
|---|
| 361 | * |
|---|
| 362 | * @param value |
|---|
| 363 | * allowed object is |
|---|
| 364 | * {@link String } |
|---|
| 365 | * |
|---|
| 366 | */ |
|---|
| 367 | public void setVal(String value) { |
|---|
| 368 | this.val = value; |
|---|
| 369 | } |
|---|
| 370 | |
|---|
| 371 | /** |
|---|
| 372 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 373 | * |
|---|
| 374 | * @return |
|---|
| 375 | * The parent object. |
|---|
| 376 | */ |
|---|
| 377 | public Object getParent() { |
|---|
| 378 | return this.parent; |
|---|
| 379 | } |
|---|
| 380 | |
|---|
| 381 | public void setParent(Object parent) { |
|---|
| 382 | this.parent = parent; |
|---|
| 383 | } |
|---|
| 384 | |
|---|
| 385 | /** |
|---|
| 386 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 387 | * |
|---|
| 388 | * @param parent |
|---|
| 389 | * The parent object in the object tree. |
|---|
| 390 | * @param unmarshaller |
|---|
| 391 | * The unmarshaller that generated the instance. |
|---|
| 392 | */ |
|---|
| 393 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 394 | setParent(parent); |
|---|
| 395 | } |
|---|
| 396 | |
|---|
| 397 | } |
|---|
| 398 | |
|---|
| 399 | |
|---|
| 400 | /** |
|---|
| 401 | * <p>Java class for anonymous complex type. |
|---|
| 402 | * |
|---|
| 403 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 404 | * |
|---|
| 405 | * <pre> |
|---|
| 406 | * <complexType> |
|---|
| 407 | * <complexContent> |
|---|
| 408 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 409 | * <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 410 | * </restriction> |
|---|
| 411 | * </complexContent> |
|---|
| 412 | * </complexType> |
|---|
| 413 | * </pre> |
|---|
| 414 | * |
|---|
| 415 | * |
|---|
| 416 | */ |
|---|
| 417 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 418 | @XmlType(name = "") |
|---|
| 419 | public static class Sz |
|---|
| 420 | implements Child |
|---|
| 421 | { |
|---|
| 422 | |
|---|
| 423 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 424 | protected String val; |
|---|
| 425 | @XmlTransient |
|---|
| 426 | private Object parent; |
|---|
| 427 | |
|---|
| 428 | /** |
|---|
| 429 | * Gets the value of the val property. |
|---|
| 430 | * |
|---|
| 431 | * @return |
|---|
| 432 | * possible object is |
|---|
| 433 | * {@link String } |
|---|
| 434 | * |
|---|
| 435 | */ |
|---|
| 436 | public String getVal() { |
|---|
| 437 | return val; |
|---|
| 438 | } |
|---|
| 439 | |
|---|
| 440 | /** |
|---|
| 441 | * Sets the value of the val property. |
|---|
| 442 | * |
|---|
| 443 | * @param value |
|---|
| 444 | * allowed object is |
|---|
| 445 | * {@link String } |
|---|
| 446 | * |
|---|
| 447 | */ |
|---|
| 448 | public void setVal(String value) { |
|---|
| 449 | this.val = value; |
|---|
| 450 | } |
|---|
| 451 | |
|---|
| 452 | /** |
|---|
| 453 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 454 | * |
|---|
| 455 | * @return |
|---|
| 456 | * The parent object. |
|---|
| 457 | */ |
|---|
| 458 | public Object getParent() { |
|---|
| 459 | return this.parent; |
|---|
| 460 | } |
|---|
| 461 | |
|---|
| 462 | public void setParent(Object parent) { |
|---|
| 463 | this.parent = parent; |
|---|
| 464 | } |
|---|
| 465 | |
|---|
| 466 | /** |
|---|
| 467 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 468 | * |
|---|
| 469 | * @param parent |
|---|
| 470 | * The parent object in the object tree. |
|---|
| 471 | * @param unmarshaller |
|---|
| 472 | * The unmarshaller that generated the instance. |
|---|
| 473 | */ |
|---|
| 474 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 475 | setParent(parent); |
|---|
| 476 | } |
|---|
| 477 | |
|---|
| 478 | } |
|---|
| 479 | |
|---|
| 480 | } |
|---|