source: trunk/docx4j/src/main/java/org/docx4j/wml/SectPrBase.java @ 359

Revision 359, 15.2 KB checked in by jharrop, 4 years ago (diff)

Change CT_FldChar to FldChar?;
Style is freestanding, rather than an inner class of Styles.
(Other changes largely whitespace in license header)

Line 
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
22package org.docx4j.wml;
23
24import javax.xml.bind.Unmarshaller;
25import javax.xml.bind.annotation.XmlAccessType;
26import javax.xml.bind.annotation.XmlAccessorType;
27import javax.xml.bind.annotation.XmlAttribute;
28import javax.xml.bind.annotation.XmlTransient;
29import javax.xml.bind.annotation.XmlType;
30import org.jvnet.jaxb2_commons.ppp.Child;
31
32
33/**
34 * <p>Java class for CT_SectPrBase complex type.
35 *
36 * <p>The following schema fragment specifies the expected content contained within this class.
37 *
38 * <pre>
39 * &lt;complexType name="CT_SectPrBase">
40 *   &lt;complexContent>
41 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42 *       &lt;sequence>
43 *         &lt;group ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}EG_SectPrContents" minOccurs="0"/>
44 *       &lt;/sequence>
45 *       &lt;attGroup ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}AG_SectPrAttributes"/>
46 *     &lt;/restriction>
47 *   &lt;/complexContent>
48 * &lt;/complexType>
49 * </pre>
50 *
51 *
52 */
53@XmlAccessorType(XmlAccessType.FIELD)
54@XmlType(name = "CT_SectPrBase", propOrder = {
55    "footnotePr",
56    "endnotePr",
57    "type",
58    "pgSz",
59    "pgMar",
60    "paperSrc",
61    "pgBorders",
62    "lnNumType",
63    "pgNumType",
64    "cols",
65    "formProt",
66    "vAlign",
67    "noEndnote",
68    "titlePg",
69    "textDirection",
70    "bidi",
71    "rtlGutter",
72    "docGrid",
73    "printerSettings"
74})
75public class SectPrBase
76    implements Child
77{
78
79    protected CTFtnProps footnotePr;
80    protected CTEdnProps endnotePr;
81    protected org.docx4j.wml.SectPr.Type type;
82    protected org.docx4j.wml.SectPr.PgSz pgSz;
83    protected org.docx4j.wml.SectPr.PgMar pgMar;
84    protected CTPaperSource paperSrc;
85    protected org.docx4j.wml.SectPr.PgBorders pgBorders;
86    protected CTLineNumber lnNumType;
87    protected CTPageNumber pgNumType;
88    protected CTColumns cols;
89    protected BooleanDefaultTrue formProt;
90    protected CTVerticalJc vAlign;
91    protected BooleanDefaultTrue noEndnote;
92    protected BooleanDefaultTrue titlePg;
93    protected TextDirection textDirection;
94    protected BooleanDefaultTrue bidi;
95    protected BooleanDefaultTrue rtlGutter;
96    protected CTDocGrid docGrid;
97    protected CTRel printerSettings;
98    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
99    protected String rsidRPr;
100    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
101    protected String rsidDel;
102    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
103    protected String rsidR;
104    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
105    protected String rsidSect;
106    @XmlTransient
107    private Object parent;
108
109    /**
110     * Gets the value of the footnotePr property.
111     *
112     * @return
113     *     possible object is
114     *     {@link CTFtnProps }
115     *     
116     */
117    public CTFtnProps getFootnotePr() {
118        return footnotePr;
119    }
120
121    /**
122     * Sets the value of the footnotePr property.
123     *
124     * @param value
125     *     allowed object is
126     *     {@link CTFtnProps }
127     *     
128     */
129    public void setFootnotePr(CTFtnProps value) {
130        this.footnotePr = value;
131    }
132
133    /**
134     * Gets the value of the endnotePr property.
135     *
136     * @return
137     *     possible object is
138     *     {@link CTEdnProps }
139     *     
140     */
141    public CTEdnProps getEndnotePr() {
142        return endnotePr;
143    }
144
145    /**
146     * Sets the value of the endnotePr property.
147     *
148     * @param value
149     *     allowed object is
150     *     {@link CTEdnProps }
151     *     
152     */
153    public void setEndnotePr(CTEdnProps value) {
154        this.endnotePr = value;
155    }
156
157    /**
158     * Gets the value of the type property.
159     *
160     * @return
161     *     possible object is
162     *     {@link org.docx4j.wml.SectPr.Type }
163     *     
164     */
165    public org.docx4j.wml.SectPr.Type getType() {
166        return type;
167    }
168
169    /**
170     * Sets the value of the type property.
171     *
172     * @param value
173     *     allowed object is
174     *     {@link org.docx4j.wml.SectPr.Type }
175     *     
176     */
177    public void setType(org.docx4j.wml.SectPr.Type value) {
178        this.type = value;
179    }
180
181    /**
182     * Gets the value of the pgSz property.
183     *
184     * @return
185     *     possible object is
186     *     {@link org.docx4j.wml.SectPr.PgSz }
187     *     
188     */
189    public org.docx4j.wml.SectPr.PgSz getPgSz() {
190        return pgSz;
191    }
192
193    /**
194     * Sets the value of the pgSz property.
195     *
196     * @param value
197     *     allowed object is
198     *     {@link org.docx4j.wml.SectPr.PgSz }
199     *     
200     */
201    public void setPgSz(org.docx4j.wml.SectPr.PgSz value) {
202        this.pgSz = value;
203    }
204
205    /**
206     * Gets the value of the pgMar property.
207     *
208     * @return
209     *     possible object is
210     *     {@link org.docx4j.wml.SectPr.PgMar }
211     *     
212     */
213    public org.docx4j.wml.SectPr.PgMar getPgMar() {
214        return pgMar;
215    }
216
217    /**
218     * Sets the value of the pgMar property.
219     *
220     * @param value
221     *     allowed object is
222     *     {@link org.docx4j.wml.SectPr.PgMar }
223     *     
224     */
225    public void setPgMar(org.docx4j.wml.SectPr.PgMar value) {
226        this.pgMar = value;
227    }
228
229    /**
230     * Gets the value of the paperSrc property.
231     *
232     * @return
233     *     possible object is
234     *     {@link CTPaperSource }
235     *     
236     */
237    public CTPaperSource getPaperSrc() {
238        return paperSrc;
239    }
240
241    /**
242     * Sets the value of the paperSrc property.
243     *
244     * @param value
245     *     allowed object is
246     *     {@link CTPaperSource }
247     *     
248     */
249    public void setPaperSrc(CTPaperSource value) {
250        this.paperSrc = value;
251    }
252
253    /**
254     * Gets the value of the pgBorders property.
255     *
256     * @return
257     *     possible object is
258     *     {@link org.docx4j.wml.SectPr.PgBorders }
259     *     
260     */
261    public org.docx4j.wml.SectPr.PgBorders getPgBorders() {
262        return pgBorders;
263    }
264
265    /**
266     * Sets the value of the pgBorders property.
267     *
268     * @param value
269     *     allowed object is
270     *     {@link org.docx4j.wml.SectPr.PgBorders }
271     *     
272     */
273    public void setPgBorders(org.docx4j.wml.SectPr.PgBorders value) {
274        this.pgBorders = value;
275    }
276
277    /**
278     * Gets the value of the lnNumType property.
279     *
280     * @return
281     *     possible object is
282     *     {@link CTLineNumber }
283     *     
284     */
285    public CTLineNumber getLnNumType() {
286        return lnNumType;
287    }
288
289    /**
290     * Sets the value of the lnNumType property.
291     *
292     * @param value
293     *     allowed object is
294     *     {@link CTLineNumber }
295     *     
296     */
297    public void setLnNumType(CTLineNumber value) {
298        this.lnNumType = value;
299    }
300
301    /**
302     * Gets the value of the pgNumType property.
303     *
304     * @return
305     *     possible object is
306     *     {@link CTPageNumber }
307     *     
308     */
309    public CTPageNumber getPgNumType() {
310        return pgNumType;
311    }
312
313    /**
314     * Sets the value of the pgNumType property.
315     *
316     * @param value
317     *     allowed object is
318     *     {@link CTPageNumber }
319     *     
320     */
321    public void setPgNumType(CTPageNumber value) {
322        this.pgNumType = value;
323    }
324
325    /**
326     * Gets the value of the cols property.
327     *
328     * @return
329     *     possible object is
330     *     {@link CTColumns }
331     *     
332     */
333    public CTColumns getCols() {
334        return cols;
335    }
336
337    /**
338     * Sets the value of the cols property.
339     *
340     * @param value
341     *     allowed object is
342     *     {@link CTColumns }
343     *     
344     */
345    public void setCols(CTColumns value) {
346        this.cols = value;
347    }
348
349    /**
350     * Gets the value of the formProt property.
351     *
352     * @return
353     *     possible object is
354     *     {@link BooleanDefaultTrue }
355     *     
356     */
357    public BooleanDefaultTrue getFormProt() {
358        return formProt;
359    }
360
361    /**
362     * Sets the value of the formProt property.
363     *
364     * @param value
365     *     allowed object is
366     *     {@link BooleanDefaultTrue }
367     *     
368     */
369    public void setFormProt(BooleanDefaultTrue value) {
370        this.formProt = value;
371    }
372
373    /**
374     * Gets the value of the vAlign property.
375     *
376     * @return
377     *     possible object is
378     *     {@link CTVerticalJc }
379     *     
380     */
381    public CTVerticalJc getVAlign() {
382        return vAlign;
383    }
384
385    /**
386     * Sets the value of the vAlign property.
387     *
388     * @param value
389     *     allowed object is
390     *     {@link CTVerticalJc }
391     *     
392     */
393    public void setVAlign(CTVerticalJc value) {
394        this.vAlign = value;
395    }
396
397    /**
398     * Gets the value of the noEndnote property.
399     *
400     * @return
401     *     possible object is
402     *     {@link BooleanDefaultTrue }
403     *     
404     */
405    public BooleanDefaultTrue getNoEndnote() {
406        return noEndnote;
407    }
408
409    /**
410     * Sets the value of the noEndnote property.
411     *
412     * @param value
413     *     allowed object is
414     *     {@link BooleanDefaultTrue }
415     *     
416     */
417    public void setNoEndnote(BooleanDefaultTrue value) {
418        this.noEndnote = value;
419    }
420
421    /**
422     * Gets the value of the titlePg property.
423     *
424     * @return
425     *     possible object is
426     *     {@link BooleanDefaultTrue }
427     *     
428     */
429    public BooleanDefaultTrue getTitlePg() {
430        return titlePg;
431    }
432
433    /**
434     * Sets the value of the titlePg property.
435     *
436     * @param value
437     *     allowed object is
438     *     {@link BooleanDefaultTrue }
439     *     
440     */
441    public void setTitlePg(BooleanDefaultTrue value) {
442        this.titlePg = value;
443    }
444
445    /**
446     * Gets the value of the textDirection property.
447     *
448     * @return
449     *     possible object is
450     *     {@link TextDirection }
451     *     
452     */
453    public TextDirection getTextDirection() {
454        return textDirection;
455    }
456
457    /**
458     * Sets the value of the textDirection property.
459     *
460     * @param value
461     *     allowed object is
462     *     {@link TextDirection }
463     *     
464     */
465    public void setTextDirection(TextDirection value) {
466        this.textDirection = value;
467    }
468
469    /**
470     * Gets the value of the bidi property.
471     *
472     * @return
473     *     possible object is
474     *     {@link BooleanDefaultTrue }
475     *     
476     */
477    public BooleanDefaultTrue getBidi() {
478        return bidi;
479    }
480
481    /**
482     * Sets the value of the bidi property.
483     *
484     * @param value
485     *     allowed object is
486     *     {@link BooleanDefaultTrue }
487     *     
488     */
489    public void setBidi(BooleanDefaultTrue value) {
490        this.bidi = value;
491    }
492
493    /**
494     * Gets the value of the rtlGutter property.
495     *
496     * @return
497     *     possible object is
498     *     {@link BooleanDefaultTrue }
499     *     
500     */
501    public BooleanDefaultTrue getRtlGutter() {
502        return rtlGutter;
503    }
504
505    /**
506     * Sets the value of the rtlGutter property.
507     *
508     * @param value
509     *     allowed object is
510     *     {@link BooleanDefaultTrue }
511     *     
512     */
513    public void setRtlGutter(BooleanDefaultTrue value) {
514        this.rtlGutter = value;
515    }
516
517    /**
518     * Gets the value of the docGrid property.
519     *
520     * @return
521     *     possible object is
522     *     {@link CTDocGrid }
523     *     
524     */
525    public CTDocGrid getDocGrid() {
526        return docGrid;
527    }
528
529    /**
530     * Sets the value of the docGrid property.
531     *
532     * @param value
533     *     allowed object is
534     *     {@link CTDocGrid }
535     *     
536     */
537    public void setDocGrid(CTDocGrid value) {
538        this.docGrid = value;
539    }
540
541    /**
542     * Gets the value of the printerSettings property.
543     *
544     * @return
545     *     possible object is
546     *     {@link CTRel }
547     *     
548     */
549    public CTRel getPrinterSettings() {
550        return printerSettings;
551    }
552
553    /**
554     * Sets the value of the printerSettings property.
555     *
556     * @param value
557     *     allowed object is
558     *     {@link CTRel }
559     *     
560     */
561    public void setPrinterSettings(CTRel value) {
562        this.printerSettings = value;
563    }
564
565    /**
566     * Gets the value of the rsidRPr property.
567     *
568     * @return
569     *     possible object is
570     *     {@link String }
571     *     
572     */
573    public String getRsidRPr() {
574        return rsidRPr;
575    }
576
577    /**
578     * Sets the value of the rsidRPr property.
579     *
580     * @param value
581     *     allowed object is
582     *     {@link String }
583     *     
584     */
585    public void setRsidRPr(String value) {
586        this.rsidRPr = value;
587    }
588
589    /**
590     * Gets the value of the rsidDel property.
591     *
592     * @return
593     *     possible object is
594     *     {@link String }
595     *     
596     */
597    public String getRsidDel() {
598        return rsidDel;
599    }
600
601    /**
602     * Sets the value of the rsidDel property.
603     *
604     * @param value
605     *     allowed object is
606     *     {@link String }
607     *     
608     */
609    public void setRsidDel(String value) {
610        this.rsidDel = value;
611    }
612
613    /**
614     * Gets the value of the rsidR property.
615     *
616     * @return
617     *     possible object is
618     *     {@link String }
619     *     
620     */
621    public String getRsidR() {
622        return rsidR;
623    }
624
625    /**
626     * Sets the value of the rsidR property.
627     *
628     * @param value
629     *     allowed object is
630     *     {@link String }
631     *     
632     */
633    public void setRsidR(String value) {
634        this.rsidR = value;
635    }
636
637    /**
638     * Gets the value of the rsidSect property.
639     *
640     * @return
641     *     possible object is
642     *     {@link String }
643     *     
644     */
645    public String getRsidSect() {
646        return rsidSect;
647    }
648
649    /**
650     * Sets the value of the rsidSect property.
651     *
652     * @param value
653     *     allowed object is
654     *     {@link String }
655     *     
656     */
657    public void setRsidSect(String value) {
658        this.rsidSect = value;
659    }
660
661    /**
662     * Gets the parent object in the object tree representing the unmarshalled xml document.
663     *
664     * @return
665     *     The parent object.
666     */
667    public Object getParent() {
668        return this.parent;
669    }
670
671    public void setParent(Object parent) {
672        this.parent = parent;
673    }
674
675    /**
676     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
677     *
678     * @param parent
679     *     The parent object in the object tree.
680     * @param unmarshaller
681     *     The unmarshaller that generated the instance.
682     */
683    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
684        setParent(parent);
685    }
686
687}
Note: See TracBrowser for help on using the repository browser.