svn commit: r1839384 - /poi/trunk/src/ooxml/testcases/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java

2018-08-27 Thread fanningpj
Author: fanningpj
Date: Tue Aug 28 01:38:34 2018
New Revision: 1839384

URL: http://svn.apache.org/viewvc?rev=1839384=rev
Log:
add missing classes to poi-ooxml-schema.jar

Modified:

poi/trunk/src/ooxml/testcases/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java

Modified: 
poi/trunk/src/ooxml/testcases/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java?rev=1839384=1839383=1839384=diff
==
--- 
poi/trunk/src/ooxml/testcases/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java
 (original)
+++ 
poi/trunk/src/ooxml/testcases/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java
 Tue Aug 28 01:38:34 2018
@@ -100,6 +100,15 @@ public class TestNecessaryOOXMLClasses {
 Assert.assertNotNull(e5);
 STMarkerStyle.Enum e6 = STMarkerStyle.Enum.forString("circle");
 Assert.assertNotNull(e6);
+
+CTTextBulletTypefaceFollowText ctTextBulletTypefaceFollowText = 
CTTextBulletTypefaceFollowText.Factory.newInstance();
+Assert.assertNotNull(ctTextBulletTypefaceFollowText);
+CTTextBulletSizeFollowText ctTextBulletSizeFollowText = 
CTTextBulletSizeFollowText.Factory.newInstance();
+Assert.assertNotNull(ctTextBulletSizeFollowText);
+CTTextBulletColorFollowText ctTextBulletColorFollowText = 
CTTextBulletColorFollowText.Factory.newInstance();
+Assert.assertNotNull(ctTextBulletColorFollowText);
+CTTextBlipBullet ctTextBlipBullet = 
CTTextBlipBullet.Factory.newInstance();
+Assert.assertNotNull(ctTextBlipBullet);
 }
 
 }



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



svn commit: r1839369 [2/2] - in /poi/trunk/src/ooxml/java/org/apache/poi: openxml4j/opc/internal/ xddf/usermodel/chart/ xddf/usermodel/text/ xslf/usermodel/

2018-08-27 Thread abearez
Modified: 
poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/XDDFTextParagraph.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/XDDFTextParagraph.java?rev=1839369=1839368=1839369=diff
==
--- 
poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/XDDFTextParagraph.java
 (original)
+++ 
poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/XDDFTextParagraph.java
 Mon Aug 27 19:25:34 2018
@@ -40,8 +40,8 @@ import org.openxmlformats.schemas.drawin
 import org.openxmlformats.schemas.drawingml.x2006.main.CTTextSpacing;
 
 /**
- * Represents a paragraph of text within the containing text body.
- * The paragraph is the highest level text separation mechanism.
+ * Represents a paragraph of text within the containing text body. The 
paragraph
+ * is the highest level text separation mechanism.
  */
 @Beta
 public class XDDFTextParagraph {
@@ -55,9 +55,7 @@ public class XDDFTextParagraph {
 this._p = paragraph;
 this._parent = parent;
 
-final int count = paragraph.sizeOfBrArray()
-+ paragraph.sizeOfFldArray()
-+ paragraph.sizeOfRArray();
+final int count = paragraph.sizeOfBrArray() + 
paragraph.sizeOfFldArray() + paragraph.sizeOfRArray();
 this._runs = new ArrayList<>(count);
 
 for (XmlObject xo : _p.selectChildren(QNameSet.ALL)) {
@@ -83,11 +81,11 @@ public class XDDFTextParagraph {
 return _parent;
 }
 
-public List getTextRuns(){
+public List getTextRuns() {
 return _runs;
 }
 
-public Iterator iterator(){
+public Iterator iterator() {
 return _runs.iterator();
 }
 
@@ -96,10 +94,10 @@ public class XDDFTextParagraph {
  *
  * @return text run representing this line break ('\n').
  */
-public XDDFTextRun appendLineBreak(){
+public XDDFTextRun appendLineBreak() {
 CTTextLineBreak br = _p.addNewBr();
 // by default, line break has the font properties of the last text run
-for (int i = _runs.size() - 1; i <= 0; i--){
+for (int i = _runs.size() - 1; i <= 0; i--) {
 CTTextCharacterProperties prevProps = _runs.get(i).getProperties();
 // let's find one that is not undefined
 if (prevProps != null) {
@@ -117,7 +115,7 @@ public class XDDFTextParagraph {
  *
  * @return the new text field.
  */
-public XDDFTextRun appendField(String id, String type, String text){
+public XDDFTextRun appendField(String id, String type, String text) {
 CTTextField f = _p.addNewFld();
 f.setId(id);
 f.setType(type);
@@ -134,7 +132,7 @@ public class XDDFTextParagraph {
  *
  * @return the new run of text.
  */
-public XDDFTextRun appendRegularRun(String text){
+public XDDFTextRun appendRegularRun(String text) {
 CTRegularTextRun r = _p.addNewR();
 r.setT(text);
 CTTextCharacterProperties rPr = r.addNewRPr();
@@ -148,19 +146,20 @@ public class XDDFTextParagraph {
  * Returns the alignment that is applied to the paragraph.
  *
  * If this attribute is omitted, then a value of left is implied.
+ *
  * @return alignment that is applied to the paragraph
  */
 public TextAlignment getTextAlignment() {
 return findDefinedParagraphProperty(props -> props.isSetAlgn(), props 
-> props.getAlgn())
-.map(align -> TextAlignment.valueOf(align))
-.orElse(null);
+.map(align -> TextAlignment.valueOf(align)).orElse(null);
 }
 
 /**
- * Specifies the alignment that is to be applied to the paragraph.
- * Possible values for this include left, right, centered, justified and 
distributed,
+ * Specifies the alignment that is to be applied to the paragraph. Possible
+ * values for this include left, right, centered, justified and 
distributed,
  *
- * @param align text alignment
+ * @param align
+ *text alignment
  */
 public void setTextAlignment(TextAlignment align) {
 if (align != null || _p.isSetPPr()) {
@@ -169,25 +168,27 @@ public class XDDFTextParagraph {
 }
 
 /**
- * Returns where vertically on a line of text the actual words are 
positioned. This deals
- * with vertical placement of the characters with respect to the baselines.
+ * Returns where vertically on a line of text the actual words are
+ * positioned. This deals with vertical placement of the characters with
+ * respect to the baselines.
  *
  * If this attribute is omitted, then a value of baseline is implied.
+ *
  * @return alignment that is applied to the paragraph
  */
 public FontAlignment getFontAlignment() {
 return findDefinedParagraphProperty(props -> props.isSetFontAlgn(), 
props -> props.getFontAlgn())
-.map(align ->