poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r956850 - in /poi/trunk: build.xml src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java
Date Tue, 22 Jun 2010 11:08:21 GMT
Author: nick
Date: Tue Jun 22 11:08:21 2010
New Revision: 956850

URL: http://svn.apache.org/viewvc?rev=956850&view=rev
Log:
Revert r954835 now that POI 3.7 beta1 is out - go back to using 1.5 compiled editions of the
ooxml schemas

Modified:
    poi/trunk/build.xml
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java
    poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java

Modified: poi/trunk/build.xml
URL: http://svn.apache.org/viewvc/poi/trunk/build.xml?rev=956850&r1=956849&r2=956850&view=diff
==============================================================================
--- poi/trunk/build.xml (original)
+++ poi/trunk/build.xml Tue Jun 22 11:08:21 2010
@@ -135,9 +135,9 @@ under the License.
     <property name="ooxml.jsr173.jar" location="${ooxml.lib}/geronimo-stax-api_1.0_spec-1.0.jar"/>
     <property name="ooxml.jsr173.url"
               value="${repository.m2}/maven2/org/apache/geronimo/specs/geronimo-stax-api_1.0_spec/1.0/geronimo-stax-api_1.0_spec-1.0.jar"/>
-    <property name="ooxml.schemas.jar" location="${ooxml.lib}/ooxml-schemas-1.0.jar"/>
+    <property name="ooxml.schemas.jar" location="${ooxml.lib}/ooxml-schemas-1.1.jar"/>
     <property name="ooxml.schemas.url"
-              value="${repository.m2}/maven2/org/apache/poi/ooxml-schemas/1.0/ooxml-schemas-1.0.jar"/>
+              value="${repository.m2}/maven2/org/apache/poi/ooxml-schemas/1.1/ooxml-schemas-1.1.jar"/>
 
     <!-- See http://www.ecma-international.org/publications/standards/Ecma-376.htm -->
     <!-- "Copy these file(s), free of charge" -->
@@ -146,8 +146,8 @@ under the License.
     <property name="ooxml.xsds.url"
               value="http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%201st%20edition%20Part%204%20(PDF).zip"/>
     <property name="ooxml.xsds.src.dir" location="build/ooxml-xsds-src"/>
-    <property name="ooxml.xsds.src.jar" location="${ooxml.lib}/ooxml-schemas-src-1.0.jar"/>
-    <property name="ooxml.xsds.jar" location="${ooxml.lib}/ooxml-schemas-1.0.jar"/>
+    <property name="ooxml.xsds.src.jar" location="${ooxml.lib}/ooxml-schemas-src-1.1.jar"/>
+    <property name="ooxml.xsds.jar" location="${ooxml.lib}/ooxml-schemas-1.1.jar"/>
 
     <property name="maven.ooxml.xsds.version.id" value="1.0"/>
     <property name="maven.ooxml.xsds.jar" value="ooxml-schemas-${maven.ooxml.xsds.version.id}.jar"/>
@@ -397,7 +397,7 @@ under the License.
                 srcgendir="${ooxml.xsds.src.dir}"
                 optimize="yes"
                 destfile="${ooxml.xsds.jar}"
-                javasource="1.4"
+                javasource="1.5"
                 failonerror="true"
                 fork="true"
                 memoryMaximumSize="512m"

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java?rev=956850&r1=956849&r2=956850&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java Tue Jun 22 11:08:21
2010
@@ -116,7 +116,7 @@ public class CommentsTable extends POIXM
         // Create the cache if needed
         if(commentRefs == null) {
            commentRefs = new HashMap<String, CTComment>();
-           for (CTComment comment : comments.getCommentList().getCommentArray()) {
+           for (CTComment comment : comments.getCommentList().getCommentList()) {
               commentRefs.put(comment.getRef(), comment);
            }
         }

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java?rev=956850&r1=956849&r2=956850&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java Tue Jun 22 11:08:21
2010
@@ -93,8 +93,8 @@ public class XWPFParagraph implements IB
         }
         
         runs = new ArrayList<XWPFRun>();
-        if (prgrph.getRArray().length > 0) {
-           for(CTR ctRun : prgrph.getRArray()) {
+        if (prgrph.getRList().size() > 0) {
+           for(CTR ctRun : prgrph.getRList()) {
               runs.add(new XWPFRun(ctRun, this));
            }
         }
@@ -111,17 +111,17 @@ public class XWPFParagraph implements IB
       // TODO - replace this with some sort of XPath expression
       // to directly find all the CTRs, in the right order
       ArrayList<CTR> rs = new ArrayList<CTR>();
-      rs.addAll( Arrays.asList(paragraph.getRArray()) );
+      rs.addAll( paragraph.getRList() );
       
-      for (CTSdtRun sdt : paragraph.getSdtArray()) {
+      for (CTSdtRun sdt : paragraph.getSdtList()) {
           CTSdtContentRun run = sdt.getSdtContent();
-          rs.addAll( Arrays.asList(run.getRArray()) );
+          rs.addAll( run.getRList() );
       }
-      for (CTRunTrackChange c : paragraph.getDelArray()) {
-          rs.addAll( Arrays.asList(c.getRArray()) );
+      for (CTRunTrackChange c : paragraph.getDelList()) {
+          rs.addAll( c.getRList() );
       }
-      for (CTRunTrackChange c : paragraph.getInsArray()) {
-          rs.addAll( Arrays.asList(c.getRArray()) );
+      for (CTRunTrackChange c : paragraph.getInsList()) {
+          rs.addAll( c.getRList() );
       }
 
       // Get text of the paragraph
@@ -179,7 +179,7 @@ public class XWPFParagraph implements IB
 
           // Loop over pictures inside our
           // paragraph, looking for text in them
-          for(CTPicture pict : rs.get(j).getPictArray()) {
+          for(CTPicture pict : rs.get(j).getPictList()) {
               XmlObject[] t = pict
                       .selectPath("declare namespace w='http://schemas.openxmlformats.org/wordprocessingml/2006/main'
.//w:t");
               for (int m = 0; m < t.length; m++) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message