Changeset 1741
- Timestamp:
- 01/05/12 03:06:51 (5 months ago)
- Location:
- trunk/docx4j
- Files:
-
- 1 added
- 3 edited
-
src/main/java/org/docx4j/wml/CTCompat.java (modified) (6 diffs)
-
src/main/java/org/docx4j/wml/CTCompatSetting.java (added)
-
src/main/java/org/docx4j/wml/ObjectFactory.java (modified) (1 diff)
-
xsd/wml/wml.xsd (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/docx4j/src/main/java/org/docx4j/wml/CTCompat.java
r1129 r1741 1 1 /* 2 * Copyright 2007-20 08, Plutext Pty Ltd.2 * Copyright 2007-2012, Plutext Pty Ltd. 3 3 * 4 4 * This file is part of docx4j. … … 22 22 package org.docx4j.wml; 23 23 24 import java.util.ArrayList; 25 import java.util.List; 24 26 import javax.xml.bind.Unmarshaller; 25 27 import javax.xml.bind.annotation.XmlAccessType; … … 105 107 * <element name="useAnsiKerningPairs" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/> 106 108 * <element name="cachedColBalance" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/> 109 * <element name="compatSetting" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_CompatSetting" maxOccurs="unbounded" minOccurs="0"/> 107 110 * </sequence> 108 111 * </restriction> … … 179 182 "doNotVertAlignInTxbx", 180 183 "useAnsiKerningPairs", 181 "cachedColBalance" 184 "cachedColBalance", 185 "compatSetting" 182 186 }) 183 187 public class CTCompat … … 250 254 protected BooleanDefaultTrue useAnsiKerningPairs; 251 255 protected BooleanDefaultTrue cachedColBalance; 256 protected List<CTCompatSetting> compatSetting; 252 257 @XmlTransient 253 258 private Object parent; … … 1811 1816 public void setCachedColBalance(BooleanDefaultTrue value) { 1812 1817 this.cachedColBalance = value; 1818 } 1819 1820 /** 1821 * Gets the value of the compatSetting property. 1822 * 1823 * <p> 1824 * This accessor method returns a reference to the live list, 1825 * not a snapshot. Therefore any modification you make to the 1826 * returned list will be present inside the JAXB object. 1827 * This is why there is not a <CODE>set</CODE> method for the compatSetting property. 1828 * 1829 * <p> 1830 * For example, to add a new item, do as follows: 1831 * <pre> 1832 * getCompatSetting().add(newItem); 1833 * </pre> 1834 * 1835 * 1836 * <p> 1837 * Objects of the following type(s) are allowed in the list 1838 * {@link CTCompatSetting } 1839 * 1840 * 1841 */ 1842 public List<CTCompatSetting> getCompatSetting() { 1843 if (compatSetting == null) { 1844 compatSetting = new ArrayList<CTCompatSetting>(); 1845 } 1846 return this.compatSetting; 1813 1847 } 1814 1848 -
trunk/docx4j/src/main/java/org/docx4j/wml/ObjectFactory.java
r1471 r1741 343 343 return new CTCompat(); 344 344 } 345 346 /** 347 * Create an instance of {@link CTCompatSetting } 348 * 349 */ 350 public CTCompatSetting createCTCompatSetting() { 351 return new CTCompatSetting(); 352 } 345 353 346 354 /** -
trunk/docx4j/xsd/wml/wml.xsd
r1664 r1741 26 26 27 27 20091010 - oops, added EG_MathContent back into EG_RunElements 28 29 20120105 - add element name="compatSetting" and type="CT_CompatSetting" from 2ed, so Word 2010 can detect docx as native 28 30 29 31 USAGE INSTRUCTIONS … … 35 37 And the parent-pointer-plugin. See http://fisheye5.cenqua.com/browse/jaxb2-commons/parent-pointer-plugin 36 38 37 We have a copy of this in the lib dir. Or you can build it yourself:39 We have a copy of this in thealib dir. Or you can build it yourself: 38 40 39 41 cvs -d :pserver:$DEV_JAVA_NET_USERNAME@cvs.dev.java.net:/cvs checkout -P jaxb2-commons … … 68 70 ) 69 71 72 Windows: 73 74 C:>\Java\jaxb-ri-20110601\bin\xjc.bat -classpath \Java\parent-pointer-plugin-1.0.jar -Xparent-pointer wml.xsd -d t2 -no-header -target 2.0 70 75 71 76 … … 10590 10595 </xsd:annotation> 10591 10596 </xsd:element> 10597 <xsd:element name="compatSetting" type="CT_CompatSetting" minOccurs="0" maxOccurs="unbounded"> 10598 <!-- Added from 3ed for docx4j 2.7.2, so native Word 2010 docx can be produced --> 10599 <xsd:annotation> 10600 <xsd:documentation>Custom Compatibility Setting</xsd:documentation> 10601 </xsd:annotation> 10602 </xsd:element> 10592 10603 </xsd:sequence> 10593 10604 </xsd:complexType> 10605 <xsd:complexType name="CT_CompatSetting"> 10606 <xsd:attribute name="name" type="ST_String"> 10607 <xsd:annotation> 10608 <xsd:documentation>Name of Setting</xsd:documentation> 10609 </xsd:annotation> 10610 </xsd:attribute> 10611 <xsd:attribute name="uri" type="ST_String"> 10612 <xsd:annotation> 10613 <xsd:documentation>Namespace of Setting</xsd:documentation> 10614 </xsd:annotation> 10615 </xsd:attribute> 10616 <xsd:attribute name="val" type="ST_String"> 10617 <xsd:annotation> 10618 <xsd:documentation>Value of Setting</xsd:documentation> 10619 </xsd:annotation> 10620 </xsd:attribute> 10621 </xsd:complexType> 10594 10622 <xsd:complexType name="CT_DocVar"> 10595 10623 <xsd:attribute name="name" type="ST_String" use="required">
Note: See TracChangeset
for help on using the changeset viewer.
