added rendering for auto numbers fixed various bugs on failing tests changed xslf paragraph indent to indentLevel to align with hslf added escher record factory subclass to hslf, to eventually make hslf wrapper classes obsolete git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1689777 13f79535-47bb-0310-9956-ffa450edef68tags/REL_3_13_FINAL
<available file="${ooxml.xsds.jar}"/> | <available file="${ooxml.xsds.jar}"/> | ||||
<available file="${ooxml.security.jar}"/> | <available file="${ooxml.security.jar}"/> | ||||
<available file="${ooxml.xsds.src.jar}"/> | <available file="${ooxml.xsds.src.jar}"/> | ||||
<available file="${${ooxml.security.src.jar}"/> | |||||
<available file="${ooxml.security.src.jar}"/> | |||||
</and> | </and> | ||||
<isset property="disconnected"/> | <isset property="disconnected"/> | ||||
</or> | </or> | ||||
<arg value="-readOnly"/> | <arg value="-readOnly"/> | ||||
<arg value="-npa"/> | <arg value="-npa"/> | ||||
<arg value="-no-header"/> | <arg value="-no-header"/> | ||||
<arg value="-Xlocator"/> | |||||
<!--arg value="-mark-generated"/ --> | |||||
<!--arg value="-Xlocator"/ --> | |||||
<arg file="${geometry.output.tmpdir}/dml-shapeGeometry.xsd"/> | <arg file="${geometry.output.tmpdir}/dml-shapeGeometry.xsd"/> | ||||
<arg value="-d"/> | <arg value="-d"/> | ||||
<arg file="${geometry.output.tmpdir}"/> | <arg file="${geometry.output.tmpdir}"/> |
// we are going to add text by paragraphs. Clear the default placehoder text before that | // we are going to add text by paragraphs. Clear the default placehoder text before that | ||||
bodyPlaceholder.clearText(); | bodyPlaceholder.clearText(); | ||||
XSLFTextParagraph p1 = bodyPlaceholder.addNewTextParagraph(); | XSLFTextParagraph p1 = bodyPlaceholder.addNewTextParagraph(); | ||||
p1.setLevel(0); | |||||
p1.setIndentLevel(0); | |||||
p1.addNewTextRun().setText("Level1 text"); | p1.addNewTextRun().setText("Level1 text"); | ||||
XSLFTextParagraph p2 = bodyPlaceholder.addNewTextParagraph(); | XSLFTextParagraph p2 = bodyPlaceholder.addNewTextParagraph(); | ||||
p2.setLevel(1); | |||||
p2.setIndentLevel(1); | |||||
p2.addNewTextRun().setText("Level2 text"); | p2.addNewTextRun().setText("Level2 text"); | ||||
XSLFTextParagraph p3 = bodyPlaceholder.addNewTextParagraph(); | XSLFTextParagraph p3 = bodyPlaceholder.addNewTextParagraph(); | ||||
p3.setLevel(3); | |||||
p3.setIndentLevel(3); | |||||
p3.addNewTextRun().setText("Level3 text"); | p3.addNewTextRun().setText("Level3 text"); | ||||
FileOutputStream out = new FileOutputStream("slides.pptx"); | FileOutputStream out = new FileOutputStream("slides.pptx"); |
import java.io.FileOutputStream; | import java.io.FileOutputStream; | ||||
import java.io.IOException; | import java.io.IOException; | ||||
import org.apache.poi.sl.usermodel.AutoNumberingScheme; | |||||
/** | /** | ||||
* Bullets and numbering | * Bullets and numbering | ||||
* | * | ||||
shape.setAnchor(new Rectangle(50, 50, 400, 200)); | shape.setAnchor(new Rectangle(50, 50, 400, 200)); | ||||
XSLFTextParagraph p1 = shape.addNewTextParagraph(); | XSLFTextParagraph p1 = shape.addNewTextParagraph(); | ||||
p1.setLevel(0); | |||||
p1.setIndentLevel(0); | |||||
p1.setBullet(true); | p1.setBullet(true); | ||||
XSLFTextRun r1 = p1.addNewTextRun(); | XSLFTextRun r1 = p1.addNewTextRun(); | ||||
r1.setText("Bullet1"); | r1.setText("Bullet1"); | ||||
p2.setBulletFontColor(Color.red); | p2.setBulletFontColor(Color.red); | ||||
p2.setBulletFont("Wingdings"); | p2.setBulletFont("Wingdings"); | ||||
p2.setBulletCharacter("\u0075"); | p2.setBulletCharacter("\u0075"); | ||||
p2.setLevel(1); | |||||
p2.setIndentLevel(1); | |||||
XSLFTextRun r2 = p2.addNewTextRun(); | XSLFTextRun r2 = p2.addNewTextRun(); | ||||
r2.setText("Bullet2"); | r2.setText("Bullet2"); | ||||
// the next three paragraphs form an auto-numbered list | // the next three paragraphs form an auto-numbered list | ||||
XSLFTextParagraph p3 = shape.addNewTextParagraph(); | XSLFTextParagraph p3 = shape.addNewTextParagraph(); | ||||
p3.setBulletAutoNumber(ListAutoNumber.ALPHA_LC_PARENT_R, 1); | |||||
p3.setLevel(2); | |||||
p3.setBulletAutoNumber(AutoNumberingScheme.alphaLcParenRight, 1); | |||||
p3.setIndentLevel(2); | |||||
XSLFTextRun r3 = p3.addNewTextRun(); | XSLFTextRun r3 = p3.addNewTextRun(); | ||||
r3.setText("Numbered List Item - 1"); | r3.setText("Numbered List Item - 1"); | ||||
XSLFTextParagraph p4 = shape.addNewTextParagraph(); | XSLFTextParagraph p4 = shape.addNewTextParagraph(); | ||||
p4.setBulletAutoNumber(ListAutoNumber.ALPHA_LC_PARENT_R, 2); | |||||
p4.setLevel(2); | |||||
p4.setBulletAutoNumber(AutoNumberingScheme.alphaLcParenRight, 2); | |||||
p4.setIndentLevel(2); | |||||
XSLFTextRun r4 = p4.addNewTextRun(); | XSLFTextRun r4 = p4.addNewTextRun(); | ||||
r4.setText("Numbered List Item - 2"); | r4.setText("Numbered List Item - 2"); | ||||
XSLFTextParagraph p5 = shape.addNewTextParagraph(); | XSLFTextParagraph p5 = shape.addNewTextParagraph(); | ||||
p5.setBulletAutoNumber(ListAutoNumber.ALPHA_LC_PARENT_R, 3); | |||||
p5.setLevel(2); | |||||
p5.setBulletAutoNumber(AutoNumberingScheme.alphaLcParenRight, 3); | |||||
p5.setIndentLevel(2); | |||||
XSLFTextRun r5 = p5.addNewTextRun(); | XSLFTextRun r5 = p5.addNewTextRun(); | ||||
r5.setText("Numbered List Item - 3"); | r5.setText("Numbered List Item - 3"); | ||||
if(shape instanceof XSLFTextShape) { | if(shape instanceof XSLFTextShape) { | ||||
XSLFTextShape tsh = (XSLFTextShape)shape; | XSLFTextShape tsh = (XSLFTextShape)shape; | ||||
for(XSLFTextParagraph p : tsh){ | for(XSLFTextParagraph p : tsh){ | ||||
System.out.println("Paragraph level: " + p.getLevel()); | |||||
System.out.println("Paragraph level: " + p.getIndentLevel()); | |||||
for(XSLFTextRun r : p){ | for(XSLFTextRun r : p){ | ||||
System.out.println(r.getRawText()); | System.out.println(r.getRawText()); | ||||
System.out.println(" bold: " + r.isBold()); | System.out.println(" bold: " + r.isBold()); |
* @param recClasses The records to convert | * @param recClasses The records to convert | ||||
* @return The map containing the id/constructor pairs. | * @return The map containing the id/constructor pairs. | ||||
*/ | */ | ||||
private static Map<Short, Constructor<? extends EscherRecord>> recordsToMap(Class<?>[] recClasses) { | |||||
protected static Map<Short, Constructor<? extends EscherRecord>> recordsToMap(Class<?>[] recClasses) { | |||||
Map<Short, Constructor<? extends EscherRecord>> result = new HashMap<Short, Constructor<? extends EscherRecord>>(); | Map<Short, Constructor<? extends EscherRecord>> result = new HashMap<Short, Constructor<? extends EscherRecord>>(); | ||||
final Class<?>[] EMPTY_CLASS_ARRAY = new Class[0]; | final Class<?>[] EMPTY_CLASS_ARRAY = new Class[0]; | ||||
package org.apache.poi.ddf; | package org.apache.poi.ddf; | ||||
import org.apache.poi.hslf.record.RecordTypes; | |||||
import org.apache.poi.util.HexDump; | |||||
import org.apache.poi.util.LittleEndian; | |||||
import org.apache.poi.util.RecordFormatException; | |||||
import org.apache.poi.util.*; | |||||
/** | /** | ||||
* Holds data from the parent application. Most commonly used to store | * Holds data from the parent application. Most commonly used to store | ||||
*/ | */ | ||||
public class EscherTextboxRecord extends EscherRecord | public class EscherTextboxRecord extends EscherRecord | ||||
{ | { | ||||
public static final short RECORD_ID = (short)RecordTypes.EscherClientTextbox; | |||||
public static final short RECORD_ID = (short)0xf00d; | |||||
public static final String RECORD_DESCRIPTION = "msofbtClientTextbox"; | public static final String RECORD_DESCRIPTION = "msofbtClientTextbox"; | ||||
private static final byte[] NO_BYTES = new byte[0]; | private static final byte[] NO_BYTES = new byte[0]; |
==================================================================== */ | ==================================================================== */ | ||||
package org.apache.poi.util; | package org.apache.poi.util; | ||||
import org.apache.poi.hslf.usermodel.HSLFShape; | |||||
/** | /** | ||||
* @author Yegor Kozlov | * @author Yegor Kozlov | ||||
*/ | */ | ||||
public static double masterToPoints(int masterDPI) { | public static double masterToPoints(int masterDPI) { | ||||
double points = masterDPI; | double points = masterDPI; | ||||
points *= HSLFShape.POINT_DPI; | |||||
points /= HSLFShape.MASTER_DPI; | |||||
points *= POINT_DPI; | |||||
points /= MASTER_DPI; | |||||
return points; | return points; | ||||
} | } | ||||
public static int pointsToMaster(double points) { | public static int pointsToMaster(double points) { | ||||
points *= HSLFShape.MASTER_DPI; | |||||
points /= HSLFShape.POINT_DPI; | |||||
points *= MASTER_DPI; | |||||
points /= POINT_DPI; | |||||
return (int)points; | return (int)points; | ||||
} | } | ||||
} | } |
/* | |||||
* ==================================================================== | |||||
* Licensed to the Apache Software Foundation (ASF) under one or more | |||||
* contributor license agreements. See the NOTICE file distributed with | |||||
* this work for additional information regarding copyright ownership. | |||||
* The ASF licenses this file to You under the Apache License, Version 2.0 | |||||
* (the "License"); you may not use this file except in compliance with | |||||
* the License. You may obtain a copy of the License at | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, software | |||||
* distributed under the License is distributed on an "AS IS" BASIS, | |||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
* See the License for the specific language governing permissions and | |||||
* limitations under the License. | |||||
* ==================================================================== | |||||
*/ | |||||
package org.apache.poi.xslf.usermodel; | |||||
/** | |||||
* Specifies type of automatic numbered bullet points that should be applied to a paragraph. | |||||
* | |||||
* @author Yegor Kozlov | |||||
*/ | |||||
public enum ListAutoNumber { | |||||
/** | |||||
* (a), (b), (c), ... | |||||
*/ | |||||
ALPHA_LC_PARENT_BOTH, | |||||
/** | |||||
* (A), (B), (C), ... | |||||
*/ | |||||
ALPHA_UC_PARENT_BOTH, | |||||
/** | |||||
* a), b), c), ... | |||||
*/ | |||||
ALPHA_LC_PARENT_R, | |||||
/** | |||||
* A), B), C), ... | |||||
*/ | |||||
ALPHA_UC_PARENT_R, | |||||
/** | |||||
* a., b., c., ... | |||||
*/ | |||||
ALPHA_LC_PERIOD, | |||||
/** | |||||
* A., B., C., ... | |||||
*/ | |||||
ALPHA_UC_PERIOD, | |||||
/** | |||||
* (1), (2), (3), ... | |||||
*/ | |||||
ARABIC_PARENT_BOTH, | |||||
/** | |||||
* 1), 2), 3), ... | |||||
*/ | |||||
ARABIC_PARENT_R, | |||||
/** | |||||
* 1., 2., 3., ... | |||||
*/ | |||||
ARABIC_PERIOD, | |||||
/** | |||||
* 1, 2, 3, ... | |||||
*/ | |||||
ARABIC_PLAIN, | |||||
/** | |||||
* (i), (ii), (iii), ... | |||||
*/ | |||||
ROMAN_LC_PARENT_BOTH, | |||||
/** | |||||
* (I), (II), (III), ... | |||||
*/ | |||||
ROMAN_UC_PARENT_BOTH, | |||||
/** | |||||
* i), ii), iii), ... | |||||
*/ | |||||
ROMAN_LC_PARENT_R, | |||||
/** | |||||
* I), II), III), ... | |||||
*/ | |||||
ROMAN_UC_PARENT_R, | |||||
/** | |||||
* i., ii., iii., ... | |||||
*/ | |||||
ROMAN_LC_PERIOD , | |||||
/** | |||||
* I., II., III., ... | |||||
*/ | |||||
ROMAN_UC_PERIOD, | |||||
/** | |||||
* Dbl-byte circle numbers | |||||
*/ | |||||
CIRCLE_NUM_DB_PLAIN, | |||||
/** | |||||
* Wingdings black circle numbers | |||||
*/ | |||||
CIRCLE_NUM_WD_BLACK_PLAIN, | |||||
/** | |||||
* Wingdings white circle numbers | |||||
*/ | |||||
CIRCLE_NUM_WD_WHITE_PLAIN | |||||
} |
import java.awt.Color; | import java.awt.Color; | ||||
import java.util.*; | import java.util.*; | ||||
import org.apache.poi.sl.usermodel.AutoNumberingScheme; | |||||
import org.apache.poi.sl.usermodel.TextParagraph; | import org.apache.poi.sl.usermodel.TextParagraph; | ||||
import org.apache.poi.util.*; | import org.apache.poi.util.*; | ||||
import org.apache.poi.xslf.model.ParagraphPropertyFetcher; | import org.apache.poi.xslf.model.ParagraphPropertyFetcher; | ||||
* @return alignment that is applied to the paragraph | * @return alignment that is applied to the paragraph | ||||
*/ | */ | ||||
public TextAlign getTextAlign(){ | public TextAlign getTextAlign(){ | ||||
ParagraphPropertyFetcher<TextAlign> fetcher = new ParagraphPropertyFetcher<TextAlign>(getLevel()){ | |||||
ParagraphPropertyFetcher<TextAlign> fetcher = new ParagraphPropertyFetcher<TextAlign>(getIndentLevel()){ | |||||
public boolean fetch(CTTextParagraphProperties props){ | public boolean fetch(CTTextParagraphProperties props){ | ||||
if(props.isSetAlgn()){ | if(props.isSetAlgn()){ | ||||
TextAlign val = TextAlign.values()[props.getAlgn().intValue() - 1]; | TextAlign val = TextAlign.values()[props.getAlgn().intValue() - 1]; | ||||
@Override | @Override | ||||
public FontAlign getFontAlign(){ | public FontAlign getFontAlign(){ | ||||
ParagraphPropertyFetcher<FontAlign> fetcher = new ParagraphPropertyFetcher<FontAlign>(getLevel()){ | |||||
ParagraphPropertyFetcher<FontAlign> fetcher = new ParagraphPropertyFetcher<FontAlign>(getIndentLevel()){ | |||||
public boolean fetch(CTTextParagraphProperties props){ | public boolean fetch(CTTextParagraphProperties props){ | ||||
if(props.isSetFontAlgn()){ | if(props.isSetFontAlgn()){ | ||||
FontAlign val = FontAlign.values()[props.getFontAlgn().intValue() - 1]; | FontAlign val = FontAlign.values()[props.getFontAlgn().intValue() - 1]; | ||||
* @return the font to be used on bullet characters within a given paragraph | * @return the font to be used on bullet characters within a given paragraph | ||||
*/ | */ | ||||
public String getBulletFont(){ | public String getBulletFont(){ | ||||
ParagraphPropertyFetcher<String> fetcher = new ParagraphPropertyFetcher<String>(getLevel()){ | |||||
ParagraphPropertyFetcher<String> fetcher = new ParagraphPropertyFetcher<String>(getIndentLevel()){ | |||||
public boolean fetch(CTTextParagraphProperties props){ | public boolean fetch(CTTextParagraphProperties props){ | ||||
if(props.isSetBuFont()){ | if(props.isSetBuFont()){ | ||||
setValue(props.getBuFont().getTypeface()); | setValue(props.getBuFont().getTypeface()); | ||||
* @return the character to be used in place of the standard bullet point | * @return the character to be used in place of the standard bullet point | ||||
*/ | */ | ||||
public String getBulletCharacter(){ | public String getBulletCharacter(){ | ||||
ParagraphPropertyFetcher<String> fetcher = new ParagraphPropertyFetcher<String>(getLevel()){ | |||||
ParagraphPropertyFetcher<String> fetcher = new ParagraphPropertyFetcher<String>(getIndentLevel()){ | |||||
public boolean fetch(CTTextParagraphProperties props){ | public boolean fetch(CTTextParagraphProperties props){ | ||||
if(props.isSetBuChar()){ | if(props.isSetBuChar()){ | ||||
setValue(props.getBuChar().getChar()); | setValue(props.getBuChar().getChar()); | ||||
*/ | */ | ||||
public Color getBulletFontColor(){ | public Color getBulletFontColor(){ | ||||
final XSLFTheme theme = getParentShape().getSheet().getTheme(); | final XSLFTheme theme = getParentShape().getSheet().getTheme(); | ||||
ParagraphPropertyFetcher<Color> fetcher = new ParagraphPropertyFetcher<Color>(getLevel()){ | |||||
ParagraphPropertyFetcher<Color> fetcher = new ParagraphPropertyFetcher<Color>(getIndentLevel()){ | |||||
public boolean fetch(CTTextParagraphProperties props){ | public boolean fetch(CTTextParagraphProperties props){ | ||||
if(props.isSetBuClr()){ | if(props.isSetBuClr()){ | ||||
XSLFColor c = new XSLFColor(props.getBuClr(), theme, null); | XSLFColor c = new XSLFColor(props.getBuClr(), theme, null); | ||||
* @return the bullet size | * @return the bullet size | ||||
*/ | */ | ||||
public Double getBulletFontSize(){ | public Double getBulletFontSize(){ | ||||
ParagraphPropertyFetcher<Double> fetcher = new ParagraphPropertyFetcher<Double>(getLevel()){ | |||||
ParagraphPropertyFetcher<Double> fetcher = new ParagraphPropertyFetcher<Double>(getIndentLevel()){ | |||||
public boolean fetch(CTTextParagraphProperties props){ | public boolean fetch(CTTextParagraphProperties props){ | ||||
if(props.isSetBuSzPct()){ | if(props.isSetBuSzPct()){ | ||||
setValue(props.getBuSzPct().getVal() * 0.001); | setValue(props.getBuSzPct().getVal() * 0.001); | ||||
} | } | ||||
} | } | ||||
/** | |||||
* @return the auto numbering scheme, or null if not defined | |||||
*/ | |||||
public AutoNumberingScheme getAutoNumberingScheme() { | |||||
ParagraphPropertyFetcher<AutoNumberingScheme> fetcher = new ParagraphPropertyFetcher<AutoNumberingScheme>(getIndentLevel()) { | |||||
public boolean fetch(CTTextParagraphProperties props) { | |||||
if (props.isSetBuAutoNum()) { | |||||
AutoNumberingScheme ans = AutoNumberingScheme.forOoxmlID(props.getBuAutoNum().getType().intValue()); | |||||
if (ans != null) { | |||||
setValue(ans); | |||||
return true; | |||||
} | |||||
} | |||||
return false; | |||||
} | |||||
}; | |||||
fetchParagraphProperty(fetcher); | |||||
return fetcher.getValue(); | |||||
} | |||||
/** | |||||
* @return the auto numbering starting number, or null if not defined | |||||
*/ | |||||
public Integer getAutoNumberingStartAt() { | |||||
ParagraphPropertyFetcher<Integer> fetcher = new ParagraphPropertyFetcher<Integer>(getIndentLevel()) { | |||||
public boolean fetch(CTTextParagraphProperties props) { | |||||
if (props.isSetBuAutoNum()) { | |||||
if (props.getBuAutoNum().isSetStartAt()) { | |||||
setValue(props.getBuAutoNum().getStartAt()); | |||||
return true; | |||||
} | |||||
} | |||||
return false; | |||||
} | |||||
}; | |||||
fetchParagraphProperty(fetcher); | |||||
return fetcher.getValue(); | |||||
} | |||||
@Override | @Override | ||||
public void setIndent(Double indent){ | public void setIndent(Double indent){ | ||||
if (indent == null && !_p.isSetPPr()) return; | if (indent == null && !_p.isSetPPr()) return; | ||||
@Override | @Override | ||||
public Double getIndent() { | public Double getIndent() { | ||||
ParagraphPropertyFetcher<Double> fetcher = new ParagraphPropertyFetcher<Double>(getLevel()){ | |||||
ParagraphPropertyFetcher<Double> fetcher = new ParagraphPropertyFetcher<Double>(getIndentLevel()){ | |||||
public boolean fetch(CTTextParagraphProperties props){ | public boolean fetch(CTTextParagraphProperties props){ | ||||
if(props.isSetIndent()){ | if(props.isSetIndent()){ | ||||
setValue(Units.toPoints(props.getIndent())); | setValue(Units.toPoints(props.getIndent())); | ||||
*/ | */ | ||||
@Override | @Override | ||||
public Double getLeftMargin(){ | public Double getLeftMargin(){ | ||||
ParagraphPropertyFetcher<Double> fetcher = new ParagraphPropertyFetcher<Double>(getLevel()){ | |||||
ParagraphPropertyFetcher<Double> fetcher = new ParagraphPropertyFetcher<Double>(getIndentLevel()){ | |||||
public boolean fetch(CTTextParagraphProperties props){ | public boolean fetch(CTTextParagraphProperties props){ | ||||
if(props.isSetMarL()){ | if(props.isSetMarL()){ | ||||
double val = Units.toPoints(props.getMarL()); | double val = Units.toPoints(props.getMarL()); | ||||
*/ | */ | ||||
@Override | @Override | ||||
public Double getRightMargin(){ | public Double getRightMargin(){ | ||||
ParagraphPropertyFetcher<Double> fetcher = new ParagraphPropertyFetcher<Double>(getLevel()){ | |||||
ParagraphPropertyFetcher<Double> fetcher = new ParagraphPropertyFetcher<Double>(getIndentLevel()){ | |||||
public boolean fetch(CTTextParagraphProperties props){ | public boolean fetch(CTTextParagraphProperties props){ | ||||
if(props.isSetMarR()){ | if(props.isSetMarR()){ | ||||
double val = Units.toPoints(props.getMarR()); | double val = Units.toPoints(props.getMarR()); | ||||
} | } | ||||
}; | }; | ||||
fetchParagraphProperty(fetcher); | fetchParagraphProperty(fetcher); | ||||
// if the marL attribute is omitted, then a value of 347663 is implied | |||||
return fetcher.getValue(); | return fetcher.getValue(); | ||||
} | } | ||||
@Override | @Override | ||||
public Double getDefaultTabSize(){ | public Double getDefaultTabSize(){ | ||||
ParagraphPropertyFetcher<Double> fetcher = new ParagraphPropertyFetcher<Double>(getLevel()){ | |||||
ParagraphPropertyFetcher<Double> fetcher = new ParagraphPropertyFetcher<Double>(getIndentLevel()){ | |||||
public boolean fetch(CTTextParagraphProperties props){ | public boolean fetch(CTTextParagraphProperties props){ | ||||
if(props.isSetDefTabSz()){ | if(props.isSetDefTabSz()){ | ||||
double val = Units.toPoints(props.getDefTabSz()); | double val = Units.toPoints(props.getDefTabSz()); | ||||
} | } | ||||
public double getTabStop(final int idx){ | public double getTabStop(final int idx){ | ||||
ParagraphPropertyFetcher<Double> fetcher = new ParagraphPropertyFetcher<Double>(getLevel()){ | |||||
ParagraphPropertyFetcher<Double> fetcher = new ParagraphPropertyFetcher<Double>(getIndentLevel()){ | |||||
public boolean fetch(CTTextParagraphProperties props){ | public boolean fetch(CTTextParagraphProperties props){ | ||||
if(props.isSetTabLst()){ | if(props.isSetTabLst()){ | ||||
CTTextTabStopList tabStops = props.getTabLst(); | CTTextTabStopList tabStops = props.getTabLst(); | ||||
@Override | @Override | ||||
public Double getLineSpacing(){ | public Double getLineSpacing(){ | ||||
ParagraphPropertyFetcher<Double> fetcher = new ParagraphPropertyFetcher<Double>(getLevel()){ | |||||
ParagraphPropertyFetcher<Double> fetcher = new ParagraphPropertyFetcher<Double>(getIndentLevel()){ | |||||
public boolean fetch(CTTextParagraphProperties props){ | public boolean fetch(CTTextParagraphProperties props){ | ||||
if(props.isSetLnSpc()){ | if(props.isSetLnSpc()){ | ||||
CTTextSpacing spc = props.getLnSpc(); | CTTextSpacing spc = props.getLnSpc(); | ||||
@Override | @Override | ||||
public Double getSpaceBefore(){ | public Double getSpaceBefore(){ | ||||
ParagraphPropertyFetcher<Double> fetcher = new ParagraphPropertyFetcher<Double>(getLevel()){ | |||||
ParagraphPropertyFetcher<Double> fetcher = new ParagraphPropertyFetcher<Double>(getIndentLevel()){ | |||||
public boolean fetch(CTTextParagraphProperties props){ | public boolean fetch(CTTextParagraphProperties props){ | ||||
if(props.isSetSpcBef()){ | if(props.isSetSpcBef()){ | ||||
CTTextSpacing spc = props.getSpcBef(); | CTTextSpacing spc = props.getSpcBef(); | ||||
@Override | @Override | ||||
public Double getSpaceAfter(){ | public Double getSpaceAfter(){ | ||||
ParagraphPropertyFetcher<Double> fetcher = new ParagraphPropertyFetcher<Double>(getLevel()){ | |||||
ParagraphPropertyFetcher<Double> fetcher = new ParagraphPropertyFetcher<Double>(getIndentLevel()){ | |||||
public boolean fetch(CTTextParagraphProperties props){ | public boolean fetch(CTTextParagraphProperties props){ | ||||
if(props.isSetSpcAft()){ | if(props.isSetSpcAft()){ | ||||
CTTextSpacing spc = props.getSpcAft(); | CTTextSpacing spc = props.getSpcAft(); | ||||
return fetcher.getValue(); | return fetcher.getValue(); | ||||
} | } | ||||
/** | |||||
* Specifies the particular level text properties that this paragraph will follow. | |||||
* The value for this attribute formats the text according to the corresponding level | |||||
* paragraph properties defined in the SlideMaster. | |||||
* | |||||
* @param level the level (0 ... 4) | |||||
*/ | |||||
public void setLevel(int level){ | |||||
@Override | |||||
public void setIndentLevel(int level){ | |||||
CTTextParagraphProperties pr = _p.isSetPPr() ? _p.getPPr() : _p.addNewPPr(); | CTTextParagraphProperties pr = _p.isSetPPr() ? _p.getPPr() : _p.addNewPPr(); | ||||
pr.setLvl(level); | pr.setLvl(level); | ||||
} | } | ||||
/** | |||||
* | |||||
* @return the text level of this paragraph (0-based). Default is 0. | |||||
*/ | |||||
public int getLevel(){ | |||||
@Override | |||||
public int getIndentLevel() { | |||||
CTTextParagraphProperties pr = _p.getPPr(); | CTTextParagraphProperties pr = _p.getPPr(); | ||||
return (pr == null || !pr.isSetLvl()) ? 0 : pr.getLvl(); | return (pr == null || !pr.isSetLvl()) ? 0 : pr.getLvl(); | ||||
} | } | ||||
* Returns whether this paragraph has bullets | * Returns whether this paragraph has bullets | ||||
*/ | */ | ||||
public boolean isBullet() { | public boolean isBullet() { | ||||
ParagraphPropertyFetcher<Boolean> fetcher = new ParagraphPropertyFetcher<Boolean>(getLevel()){ | |||||
ParagraphPropertyFetcher<Boolean> fetcher = new ParagraphPropertyFetcher<Boolean>(getIndentLevel()){ | |||||
public boolean fetch(CTTextParagraphProperties props){ | public boolean fetch(CTTextParagraphProperties props){ | ||||
if(props.isSetBuNone()) { | if(props.isSetBuNone()) { | ||||
setValue(false); | setValue(false); | ||||
* @param startAt the number that will start number for a given sequence of automatically | * @param startAt the number that will start number for a given sequence of automatically | ||||
numbered bullets (1-based). | numbered bullets (1-based). | ||||
*/ | */ | ||||
public void setBulletAutoNumber(ListAutoNumber scheme, int startAt) { | |||||
public void setBulletAutoNumber(AutoNumberingScheme scheme, int startAt) { | |||||
if(startAt < 1) throw new IllegalArgumentException("Start Number must be greater or equal that 1") ; | if(startAt < 1) throw new IllegalArgumentException("Start Number must be greater or equal that 1") ; | ||||
CTTextParagraphProperties pr = _p.isSetPPr() ? _p.getPPr() : _p.addNewPPr(); | CTTextParagraphProperties pr = _p.isSetPPr() ? _p.getPPr() : _p.addNewPPr(); | ||||
CTTextAutonumberBullet lst = pr.isSetBuAutoNum() ? pr.getBuAutoNum() : pr.addNewBuAutoNum(); | CTTextAutonumberBullet lst = pr.isSetBuAutoNum() ? pr.getBuAutoNum() : pr.addNewBuAutoNum(); | ||||
lst.setType(STTextAutonumberScheme.Enum.forInt(scheme.ordinal() + 1)); | |||||
lst.setType(STTextAutonumberScheme.Enum.forInt(scheme.ooxmlId)); | |||||
lst.setStartAt(startAt); | lst.setStartAt(startAt); | ||||
} | } | ||||
defaultStyleSelector = "bodyStyle"; | defaultStyleSelector = "bodyStyle"; | ||||
break; | break; | ||||
} | } | ||||
int level = getLevel(); | |||||
int level = getIndentLevel(); | |||||
// wind up and find the root master sheet which must be slide master | // wind up and find the root master sheet which must be slide master | ||||
XSLFSheet masterSheet = _shape.getSheet(); | |||||
for (XSLFSheet m = masterSheet; m != null; m = (XSLFSheet)m.getMasterSheet()) { | |||||
masterSheet = m; | |||||
} | |||||
String nsDecl = | |||||
final String nsDecl = | |||||
"declare namespace p='http://schemas.openxmlformats.org/presentationml/2006/main' " + | "declare namespace p='http://schemas.openxmlformats.org/presentationml/2006/main' " + | ||||
"declare namespace a='http://schemas.openxmlformats.org/drawingml/2006/main' "; | "declare namespace a='http://schemas.openxmlformats.org/drawingml/2006/main' "; | ||||
String xpaths[] = { | |||||
final String xpaths[] = { | |||||
nsDecl+".//p:txStyles/p:" + defaultStyleSelector +"/a:lvl" +(level+1)+ "pPr", | nsDecl+".//p:txStyles/p:" + defaultStyleSelector +"/a:lvl" +(level+1)+ "pPr", | ||||
nsDecl+".//p:notesStyle/a:lvl" +(level+1)+ "pPr" | nsDecl+".//p:notesStyle/a:lvl" +(level+1)+ "pPr" | ||||
}; | }; | ||||
XmlObject xo = masterSheet.getXmlObject(); | |||||
for (String xpath : xpaths) { | |||||
XmlObject[] o = xo.selectPath(xpath); | |||||
if (o.length == 1) { | |||||
return (CTTextParagraphProperties)o[0]; | |||||
XSLFSheet masterSheet = _shape.getSheet(); | |||||
for (XSLFSheet m = masterSheet; m != null; m = (XSLFSheet)m.getMasterSheet()) { | |||||
masterSheet = m; | |||||
XmlObject xo = masterSheet.getXmlObject(); | |||||
for (String xpath : xpaths) { | |||||
XmlObject[] o = xo.selectPath(xpath); | |||||
if (o.length == 1) { | |||||
return (CTTextParagraphProperties)o[0]; | |||||
} | |||||
} | } | ||||
} | } | ||||
// for (CTTextBody txBody : (CTTextBody[])xo.selectPath(nsDecl+".//p:txBody")) { | // for (CTTextBody txBody : (CTTextBody[])xo.selectPath(nsDecl+".//p:txBody")) { | ||||
// CTTextParagraphProperties defaultPr = null, lastPr = null; | // CTTextParagraphProperties defaultPr = null, lastPr = null; | ||||
if(ph == null){ | if(ph == null){ | ||||
// if it is a plain text box then take defaults from presentation.xml | // if it is a plain text box then take defaults from presentation.xml | ||||
XMLSlideShow ppt = getParentShape().getSheet().getSlideShow(); | XMLSlideShow ppt = getParentShape().getSheet().getSlideShow(); | ||||
CTTextParagraphProperties themeProps = ppt.getDefaultParagraphStyle(getLevel()); | |||||
CTTextParagraphProperties themeProps = ppt.getDefaultParagraphStyle(getIndentLevel()); | |||||
if(themeProps != null) ok = visitor.fetch(themeProps); | if(themeProps != null) ok = visitor.fetch(themeProps); | ||||
} | } | ||||
return (_runs.isEmpty() ? "Arial" : _runs.get(0).getFontFamily()); | return (_runs.isEmpty() ? "Arial" : _runs.get(0).getFontFamily()); | ||||
} | } | ||||
@Override | |||||
public BulletStyle getBulletStyle() { | public BulletStyle getBulletStyle() { | ||||
if (!isBullet()) return null; | if (!isBullet()) return null; | ||||
return new BulletStyle(){ | return new BulletStyle(){ | ||||
@Override | |||||
public String getBulletCharacter() { | public String getBulletCharacter() { | ||||
return XSLFTextParagraph.this.getBulletCharacter(); | return XSLFTextParagraph.this.getBulletCharacter(); | ||||
} | } | ||||
@Override | |||||
public String getBulletFont() { | public String getBulletFont() { | ||||
return XSLFTextParagraph.this.getBulletFont(); | return XSLFTextParagraph.this.getBulletFont(); | ||||
} | } | ||||
@Override | |||||
public Double getBulletFontSize() { | public Double getBulletFontSize() { | ||||
return XSLFTextParagraph.this.getBulletFontSize(); | return XSLFTextParagraph.this.getBulletFontSize(); | ||||
} | } | ||||
@Override | |||||
public Color getBulletFontColor() { | public Color getBulletFontColor() { | ||||
return XSLFTextParagraph.this.getBulletFontColor(); | return XSLFTextParagraph.this.getBulletFontColor(); | ||||
} | } | ||||
@Override | |||||
public AutoNumberingScheme getAutoNumberingScheme() { | |||||
return XSLFTextParagraph.this.getAutoNumberingScheme(); | |||||
} | |||||
@Override | |||||
public Integer getAutoNumberingStartAt() { | |||||
return XSLFTextParagraph.this.getAutoNumberingStartAt(); | |||||
} | |||||
}; | }; | ||||
} | } | ||||
} | } |
CTShapeStyle style = _p.getParentShape().getSpStyle(); | CTShapeStyle style = _p.getParentShape().getSpStyle(); | ||||
final CTSchemeColor phClr = style == null ? null : style.getFontRef().getSchemeClr(); | final CTSchemeColor phClr = style == null ? null : style.getFontRef().getSchemeClr(); | ||||
CharacterPropertyFetcher<Color> fetcher = new CharacterPropertyFetcher<Color>(_p.getLevel()){ | |||||
CharacterPropertyFetcher<Color> fetcher = new CharacterPropertyFetcher<Color>(_p.getIndentLevel()){ | |||||
public boolean fetch(CTTextCharacterProperties props){ | public boolean fetch(CTTextCharacterProperties props){ | ||||
CTSolidColorFillProperties solidFill = props.getSolidFill(); | CTSolidColorFillProperties solidFill = props.getSolidFill(); | ||||
if(solidFill != null) { | if(solidFill != null) { | ||||
CTTextNormalAutofit afit = getParentParagraph().getParentShape().getTextBodyPr().getNormAutofit(); | CTTextNormalAutofit afit = getParentParagraph().getParentShape().getTextBodyPr().getNormAutofit(); | ||||
if(afit != null) scale = (double)afit.getFontScale() / 100000; | if(afit != null) scale = (double)afit.getFontScale() / 100000; | ||||
CharacterPropertyFetcher<Double> fetcher = new CharacterPropertyFetcher<Double>(_p.getLevel()){ | |||||
CharacterPropertyFetcher<Double> fetcher = new CharacterPropertyFetcher<Double>(_p.getIndentLevel()){ | |||||
public boolean fetch(CTTextCharacterProperties props){ | public boolean fetch(CTTextCharacterProperties props){ | ||||
if(props.isSetSz()){ | if(props.isSetSz()){ | ||||
setValue(props.getSz()*0.01); | setValue(props.getSz()*0.01); | ||||
*/ | */ | ||||
public double getCharacterSpacing(){ | public double getCharacterSpacing(){ | ||||
CharacterPropertyFetcher<Double> fetcher = new CharacterPropertyFetcher<Double>(_p.getLevel()){ | |||||
CharacterPropertyFetcher<Double> fetcher = new CharacterPropertyFetcher<Double>(_p.getIndentLevel()){ | |||||
public boolean fetch(CTTextCharacterProperties props){ | public boolean fetch(CTTextCharacterProperties props){ | ||||
if(props.isSetSpc()){ | if(props.isSetSpc()){ | ||||
setValue(props.getSpc()*0.01); | setValue(props.getSpc()*0.01); | ||||
public String getFontFamily(){ | public String getFontFamily(){ | ||||
final XSLFTheme theme = _p.getParentShape().getSheet().getTheme(); | final XSLFTheme theme = _p.getParentShape().getSheet().getTheme(); | ||||
CharacterPropertyFetcher<String> visitor = new CharacterPropertyFetcher<String>(_p.getLevel()){ | |||||
CharacterPropertyFetcher<String> visitor = new CharacterPropertyFetcher<String>(_p.getIndentLevel()){ | |||||
public boolean fetch(CTTextCharacterProperties props){ | public boolean fetch(CTTextCharacterProperties props){ | ||||
CTTextFont font = props.getLatin(); | CTTextFont font = props.getLatin(); | ||||
if(font != null){ | if(font != null){ | ||||
public byte getPitchAndFamily(){ | public byte getPitchAndFamily(){ | ||||
final XSLFTheme theme = _p.getParentShape().getSheet().getTheme(); | final XSLFTheme theme = _p.getParentShape().getSheet().getTheme(); | ||||
CharacterPropertyFetcher<Byte> visitor = new CharacterPropertyFetcher<Byte>(_p.getLevel()){ | |||||
CharacterPropertyFetcher<Byte> visitor = new CharacterPropertyFetcher<Byte>(_p.getIndentLevel()){ | |||||
public boolean fetch(CTTextCharacterProperties props){ | public boolean fetch(CTTextCharacterProperties props){ | ||||
CTTextFont font = props.getLatin(); | CTTextFont font = props.getLatin(); | ||||
if(font != null){ | if(font != null){ | ||||
* @return whether a run of text will be formatted as strikethrough text. Default is false. | * @return whether a run of text will be formatted as strikethrough text. Default is false. | ||||
*/ | */ | ||||
public boolean isStrikethrough() { | public boolean isStrikethrough() { | ||||
CharacterPropertyFetcher<Boolean> fetcher = new CharacterPropertyFetcher<Boolean>(_p.getLevel()){ | |||||
CharacterPropertyFetcher<Boolean> fetcher = new CharacterPropertyFetcher<Boolean>(_p.getIndentLevel()){ | |||||
public boolean fetch(CTTextCharacterProperties props){ | public boolean fetch(CTTextCharacterProperties props){ | ||||
if(props.isSetStrike()){ | if(props.isSetStrike()){ | ||||
setValue(props.getStrike() != STTextStrikeType.NO_STRIKE); | setValue(props.getStrike() != STTextStrikeType.NO_STRIKE); | ||||
* @return whether a run of text will be formatted as a superscript text. Default is false. | * @return whether a run of text will be formatted as a superscript text. Default is false. | ||||
*/ | */ | ||||
public boolean isSuperscript() { | public boolean isSuperscript() { | ||||
CharacterPropertyFetcher<Boolean> fetcher = new CharacterPropertyFetcher<Boolean>(_p.getLevel()){ | |||||
CharacterPropertyFetcher<Boolean> fetcher = new CharacterPropertyFetcher<Boolean>(_p.getIndentLevel()){ | |||||
public boolean fetch(CTTextCharacterProperties props){ | public boolean fetch(CTTextCharacterProperties props){ | ||||
if(props.isSetBaseline()){ | if(props.isSetBaseline()){ | ||||
setValue(props.getBaseline() > 0); | setValue(props.getBaseline() > 0); | ||||
* @return whether a run of text will be formatted as a superscript text. Default is false. | * @return whether a run of text will be formatted as a superscript text. Default is false. | ||||
*/ | */ | ||||
public boolean isSubscript() { | public boolean isSubscript() { | ||||
CharacterPropertyFetcher<Boolean> fetcher = new CharacterPropertyFetcher<Boolean>(_p.getLevel()){ | |||||
CharacterPropertyFetcher<Boolean> fetcher = new CharacterPropertyFetcher<Boolean>(_p.getIndentLevel()){ | |||||
public boolean fetch(CTTextCharacterProperties props){ | public boolean fetch(CTTextCharacterProperties props){ | ||||
if(props.isSetBaseline()){ | if(props.isSetBaseline()){ | ||||
setValue(props.getBaseline() < 0); | setValue(props.getBaseline() < 0); | ||||
* @return whether a run of text will be formatted as a superscript text. Default is false. | * @return whether a run of text will be formatted as a superscript text. Default is false. | ||||
*/ | */ | ||||
public TextCap getTextCap() { | public TextCap getTextCap() { | ||||
CharacterPropertyFetcher<TextCap> fetcher = new CharacterPropertyFetcher<TextCap>(_p.getLevel()){ | |||||
CharacterPropertyFetcher<TextCap> fetcher = new CharacterPropertyFetcher<TextCap>(_p.getIndentLevel()){ | |||||
public boolean fetch(CTTextCharacterProperties props){ | public boolean fetch(CTTextCharacterProperties props){ | ||||
if(props.isSetCap()){ | if(props.isSetCap()){ | ||||
int idx = props.getCap().intValue() - 1; | int idx = props.getCap().intValue() - 1; | ||||
* @return whether this run of text is formatted as bold text | * @return whether this run of text is formatted as bold text | ||||
*/ | */ | ||||
public boolean isBold(){ | public boolean isBold(){ | ||||
CharacterPropertyFetcher<Boolean> fetcher = new CharacterPropertyFetcher<Boolean>(_p.getLevel()){ | |||||
CharacterPropertyFetcher<Boolean> fetcher = new CharacterPropertyFetcher<Boolean>(_p.getIndentLevel()){ | |||||
public boolean fetch(CTTextCharacterProperties props){ | public boolean fetch(CTTextCharacterProperties props){ | ||||
if(props.isSetB()){ | if(props.isSetB()){ | ||||
setValue(props.getB()); | setValue(props.getB()); | ||||
* @return whether this run of text is formatted as italic text | * @return whether this run of text is formatted as italic text | ||||
*/ | */ | ||||
public boolean isItalic(){ | public boolean isItalic(){ | ||||
CharacterPropertyFetcher<Boolean> fetcher = new CharacterPropertyFetcher<Boolean>(_p.getLevel()){ | |||||
CharacterPropertyFetcher<Boolean> fetcher = new CharacterPropertyFetcher<Boolean>(_p.getIndentLevel()){ | |||||
public boolean fetch(CTTextCharacterProperties props){ | public boolean fetch(CTTextCharacterProperties props){ | ||||
if(props.isSetI()){ | if(props.isSetI()){ | ||||
setValue(props.getI()); | setValue(props.getI()); | ||||
* @return whether this run of text is formatted as underlined text | * @return whether this run of text is formatted as underlined text | ||||
*/ | */ | ||||
public boolean isUnderlined(){ | public boolean isUnderlined(){ | ||||
CharacterPropertyFetcher<Boolean> fetcher = new CharacterPropertyFetcher<Boolean>(_p.getLevel()){ | |||||
CharacterPropertyFetcher<Boolean> fetcher = new CharacterPropertyFetcher<Boolean>(_p.getIndentLevel()){ | |||||
public boolean fetch(CTTextCharacterProperties props){ | public boolean fetch(CTTextCharacterProperties props){ | ||||
if(props.isSetU()){ | if(props.isSetU()){ | ||||
setValue(props.getU() != STTextUnderlineType.NONE); | setValue(props.getU() != STTextUnderlineType.NONE); | ||||
if(ph == null){ | if(ph == null){ | ||||
// if it is a plain text box then take defaults from presentation.xml | // if it is a plain text box then take defaults from presentation.xml | ||||
XMLSlideShow ppt = shape.getSheet().getSlideShow(); | XMLSlideShow ppt = shape.getSheet().getSlideShow(); | ||||
CTTextParagraphProperties themeProps = ppt.getDefaultParagraphStyle(_p.getLevel()); | |||||
CTTextParagraphProperties themeProps = ppt.getDefaultParagraphStyle(_p.getIndentLevel()); | |||||
if(themeProps != null) { | if(themeProps != null) { | ||||
fetcher.isFetchingFromMaster = true; | fetcher.isFetchingFromMaster = true; | ||||
ok = fetcher.fetch(themeProps); | ok = fetcher.fetch(themeProps); |
assertEquals(100., p.getLineSpacing(), 0); | assertEquals(100., p.getLineSpacing(), 0); | ||||
assertEquals(0., p.getSpaceAfter(), 0); | assertEquals(0., p.getSpaceAfter(), 0); | ||||
assertEquals(0., p.getSpaceBefore(), 0); | assertEquals(0., p.getSpaceBefore(), 0); | ||||
assertEquals(0, p.getLevel()); | |||||
assertEquals(0, p.getIndentLevel()); | |||||
p.setIndent(2.0); | p.setIndent(2.0); | ||||
assertEquals(2.0, p.getIndent(), 0); | assertEquals(2.0, p.getIndent(), 0); | ||||
assertFalse(p.getXmlObject().getPPr().isSetLvl()); | assertFalse(p.getXmlObject().getPPr().isSetLvl()); | ||||
p.setLevel(1); | |||||
assertEquals(1, p.getLevel()); | |||||
p.setIndentLevel(1); | |||||
assertEquals(1, p.getIndentLevel()); | |||||
assertTrue(p.getXmlObject().getPPr().isSetLvl()); | assertTrue(p.getXmlObject().getPPr().isSetLvl()); | ||||
p.setLevel(2); | |||||
assertEquals(2, p.getLevel()); | |||||
p.setIndentLevel(2); | |||||
assertEquals(2, p.getIndentLevel()); | |||||
p.setLeftMargin(2.0); | p.setLeftMargin(2.0); | ||||
assertEquals(2.0, p.getLeftMargin(), 0); | assertEquals(2.0, p.getLeftMargin(), 0); |
import org.apache.poi.sl.draw.DrawTextFragment; | import org.apache.poi.sl.draw.DrawTextFragment; | ||||
import org.apache.poi.sl.draw.DrawTextParagraph; | import org.apache.poi.sl.draw.DrawTextParagraph; | ||||
import org.apache.poi.sl.usermodel.AutoNumberingScheme; | |||||
import org.apache.poi.sl.usermodel.TextParagraph.TextAlign; | import org.apache.poi.sl.usermodel.TextParagraph.TextAlign; | ||||
import org.apache.poi.util.POILogFactory; | import org.apache.poi.util.POILogFactory; | ||||
import org.apache.poi.util.POILogger; | import org.apache.poi.util.POILogger; | ||||
p.setLeftMargin(-1.0); // the value of -1.0 resets to the defaults | p.setLeftMargin(-1.0); // the value of -1.0 resets to the defaults | ||||
assertEquals(0.0, p.getLeftMargin(), 0); | assertEquals(0.0, p.getLeftMargin(), 0); | ||||
assertEquals(0, p.getLevel()); | |||||
p.setLevel(1); | |||||
assertEquals(1, p.getLevel()); | |||||
p.setLevel(2); | |||||
assertEquals(2, p.getLevel()); | |||||
assertEquals(0, p.getIndentLevel()); | |||||
p.setIndentLevel(1); | |||||
assertEquals(1, p.getIndentLevel()); | |||||
p.setIndentLevel(2); | |||||
assertEquals(2, p.getIndentLevel()); | |||||
assertEquals(100., p.getLineSpacing(), 0); | assertEquals(100., p.getLineSpacing(), 0); | ||||
p.setLineSpacing(200.); | p.setLineSpacing(200.); | ||||
p.setBullet(false); | p.setBullet(false); | ||||
assertFalse(p.isBullet()); | assertFalse(p.isBullet()); | ||||
p.setBulletAutoNumber(ListAutoNumber.ALPHA_LC_PARENT_BOTH, 1); | |||||
p.setBulletAutoNumber(AutoNumberingScheme.alphaLcParenBoth, 1); | |||||
double tabStop = p.getTabStop(0); | double tabStop = p.getTabStop(0); | ||||
assertEquals(0.0, tabStop, 0); | assertEquals(0.0, tabStop, 0); |
assertEquals(VerticalAlignment.TOP, shape2.getVerticalAlignment()); | assertEquals(VerticalAlignment.TOP, shape2.getVerticalAlignment()); | ||||
XSLFTextRun pr1 = shape2.getTextParagraphs().get(0).getTextRuns().get(0); | XSLFTextRun pr1 = shape2.getTextParagraphs().get(0).getTextRuns().get(0); | ||||
assertEquals(0, pr1.getParentParagraph().getLevel()); | |||||
assertEquals(0, pr1.getParentParagraph().getIndentLevel()); | |||||
assertEquals("Content", pr1.getRawText()); | assertEquals("Content", pr1.getRawText()); | ||||
assertEquals("Calibri", pr1.getFontFamily()); | assertEquals("Calibri", pr1.getFontFamily()); | ||||
assertEquals(32.0, pr1.getFontSize(), 0); | assertEquals(32.0, pr1.getFontSize(), 0); | ||||
assertEquals("Arial", pr1.getParentParagraph().getBulletFont()); | assertEquals("Arial", pr1.getParentParagraph().getBulletFont()); | ||||
XSLFTextRun pr2 = shape2.getTextParagraphs().get(1).getTextRuns().get(0); | XSLFTextRun pr2 = shape2.getTextParagraphs().get(1).getTextRuns().get(0); | ||||
assertEquals(1, pr2.getParentParagraph().getLevel()); | |||||
assertEquals(1, pr2.getParentParagraph().getIndentLevel()); | |||||
assertEquals("Level 2", pr2.getRawText()); | assertEquals("Level 2", pr2.getRawText()); | ||||
assertEquals("Calibri", pr2.getFontFamily()); | assertEquals("Calibri", pr2.getFontFamily()); | ||||
assertEquals(28.0, pr2.getFontSize(), 0); | assertEquals(28.0, pr2.getFontSize(), 0); | ||||
assertEquals("Arial", pr2.getParentParagraph().getBulletFont()); | assertEquals("Arial", pr2.getParentParagraph().getBulletFont()); | ||||
XSLFTextRun pr3 = shape2.getTextParagraphs().get(2).getTextRuns().get(0); | XSLFTextRun pr3 = shape2.getTextParagraphs().get(2).getTextRuns().get(0); | ||||
assertEquals(2, pr3.getParentParagraph().getLevel()); | |||||
assertEquals(2, pr3.getParentParagraph().getIndentLevel()); | |||||
assertEquals("Level 3", pr3.getRawText()); | assertEquals("Level 3", pr3.getRawText()); | ||||
assertEquals("Calibri", pr3.getFontFamily()); | assertEquals("Calibri", pr3.getFontFamily()); | ||||
assertEquals(24.0, pr3.getFontSize(), 0); | assertEquals(24.0, pr3.getFontSize(), 0); | ||||
assertEquals("Arial", pr3.getParentParagraph().getBulletFont()); | assertEquals("Arial", pr3.getParentParagraph().getBulletFont()); | ||||
XSLFTextRun pr4 = shape2.getTextParagraphs().get(3).getTextRuns().get(0); | XSLFTextRun pr4 = shape2.getTextParagraphs().get(3).getTextRuns().get(0); | ||||
assertEquals(3, pr4.getParentParagraph().getLevel()); | |||||
assertEquals(3, pr4.getParentParagraph().getIndentLevel()); | |||||
assertEquals("Level 4", pr4.getRawText()); | assertEquals("Level 4", pr4.getRawText()); | ||||
assertEquals("Calibri", pr4.getFontFamily()); | assertEquals("Calibri", pr4.getFontFamily()); | ||||
assertEquals(20.0, pr4.getFontSize(), 0); | assertEquals(20.0, pr4.getFontSize(), 0); | ||||
assertEquals("Arial", pr4.getParentParagraph().getBulletFont()); | assertEquals("Arial", pr4.getParentParagraph().getBulletFont()); | ||||
XSLFTextRun pr5 = shape2.getTextParagraphs().get(4).getTextRuns().get(0); | XSLFTextRun pr5 = shape2.getTextParagraphs().get(4).getTextRuns().get(0); | ||||
assertEquals(4, pr5.getParentParagraph().getLevel()); | |||||
assertEquals(4, pr5.getParentParagraph().getIndentLevel()); | |||||
assertEquals("Level 5", pr5.getRawText()); | assertEquals("Level 5", pr5.getRawText()); | ||||
assertEquals("Calibri", pr5.getFontFamily()); | assertEquals("Calibri", pr5.getFontFamily()); | ||||
assertEquals(20.0, pr5.getFontSize(), 0); | assertEquals(20.0, pr5.getFontSize(), 0); | ||||
assertEquals(VerticalAlignment.TOP, shape2.getVerticalAlignment()); | assertEquals(VerticalAlignment.TOP, shape2.getVerticalAlignment()); | ||||
XSLFTextRun pr1 = shape2.getTextParagraphs().get(0).getTextRuns().get(0); | XSLFTextRun pr1 = shape2.getTextParagraphs().get(0).getTextRuns().get(0); | ||||
assertEquals(0, pr1.getParentParagraph().getLevel()); | |||||
assertEquals(0, pr1.getParentParagraph().getIndentLevel()); | |||||
assertEquals("Left", pr1.getRawText()); | assertEquals("Left", pr1.getRawText()); | ||||
assertEquals("Calibri", pr1.getFontFamily()); | assertEquals("Calibri", pr1.getFontFamily()); | ||||
assertEquals(28.0, pr1.getFontSize(), 0); | assertEquals(28.0, pr1.getFontSize(), 0); | ||||
assertEquals("Arial", pr1.getParentParagraph().getBulletFont()); | assertEquals("Arial", pr1.getParentParagraph().getBulletFont()); | ||||
XSLFTextRun pr2 = shape2.getTextParagraphs().get(1).getTextRuns().get(0); | XSLFTextRun pr2 = shape2.getTextParagraphs().get(1).getTextRuns().get(0); | ||||
assertEquals(1, pr2.getParentParagraph().getLevel()); | |||||
assertEquals(1, pr2.getParentParagraph().getIndentLevel()); | |||||
assertEquals("Level 2", pr2.getParentParagraph().getText()); | assertEquals("Level 2", pr2.getParentParagraph().getText()); | ||||
assertEquals("Calibri", pr2.getFontFamily()); | assertEquals("Calibri", pr2.getFontFamily()); | ||||
assertEquals(24.0, pr2.getFontSize(), 0); | assertEquals(24.0, pr2.getFontSize(), 0); | ||||
assertEquals("Arial", pr2.getParentParagraph().getBulletFont()); | assertEquals("Arial", pr2.getParentParagraph().getBulletFont()); | ||||
XSLFTextRun pr3 = shape2.getTextParagraphs().get(2).getTextRuns().get(0); | XSLFTextRun pr3 = shape2.getTextParagraphs().get(2).getTextRuns().get(0); | ||||
assertEquals(2, pr3.getParentParagraph().getLevel()); | |||||
assertEquals(2, pr3.getParentParagraph().getIndentLevel()); | |||||
assertEquals("Level 3", pr3.getParentParagraph().getText()); | assertEquals("Level 3", pr3.getParentParagraph().getText()); | ||||
assertEquals("Calibri", pr3.getFontFamily()); | assertEquals("Calibri", pr3.getFontFamily()); | ||||
assertEquals(20.0, pr3.getFontSize(), 0); | assertEquals(20.0, pr3.getFontSize(), 0); | ||||
assertEquals("Arial", pr3.getParentParagraph().getBulletFont()); | assertEquals("Arial", pr3.getParentParagraph().getBulletFont()); | ||||
XSLFTextRun pr4 = shape2.getTextParagraphs().get(3).getTextRuns().get(0); | XSLFTextRun pr4 = shape2.getTextParagraphs().get(3).getTextRuns().get(0); | ||||
assertEquals(3, pr4.getParentParagraph().getLevel()); | |||||
assertEquals(3, pr4.getParentParagraph().getIndentLevel()); | |||||
assertEquals("Level 4", pr4.getParentParagraph().getText()); | assertEquals("Level 4", pr4.getParentParagraph().getText()); | ||||
assertEquals("Calibri", pr4.getFontFamily()); | assertEquals("Calibri", pr4.getFontFamily()); | ||||
assertEquals(18.0, pr4.getFontSize(), 0); | assertEquals(18.0, pr4.getFontSize(), 0); | ||||
XSLFTextShape shape3 = (XSLFTextShape)shapes.get(2); | XSLFTextShape shape3 = (XSLFTextShape)shapes.get(2); | ||||
XSLFTextRun pr5 = shape3.getTextParagraphs().get(0).getTextRuns().get(0); | XSLFTextRun pr5 = shape3.getTextParagraphs().get(0).getTextRuns().get(0); | ||||
assertEquals(0, pr5.getParentParagraph().getLevel()); | |||||
assertEquals(0, pr5.getParentParagraph().getIndentLevel()); | |||||
assertEquals("Right", pr5.getRawText()); | assertEquals("Right", pr5.getRawText()); | ||||
assertEquals("Calibri", pr5.getFontFamily()); | assertEquals("Calibri", pr5.getFontFamily()); | ||||
assertEquals(Color.black, pr5.getFontColor()); | assertEquals(Color.black, pr5.getFontColor()); | ||||
assertEquals(VerticalAlignment.TOP, shape2.getVerticalAlignment()); | assertEquals(VerticalAlignment.TOP, shape2.getVerticalAlignment()); | ||||
XSLFTextRun pr1 = shape2.getTextParagraphs().get(0).getTextRuns().get(0); | XSLFTextRun pr1 = shape2.getTextParagraphs().get(0).getTextRuns().get(0); | ||||
assertEquals(0, pr1.getParentParagraph().getLevel()); | |||||
assertEquals(0, pr1.getParentParagraph().getIndentLevel()); | |||||
assertEquals("Default Text", pr1.getRawText()); | assertEquals("Default Text", pr1.getRawText()); | ||||
assertEquals("Calibri", pr1.getFontFamily()); | assertEquals("Calibri", pr1.getFontFamily()); | ||||
assertEquals(18.0, pr1.getFontSize(), 0); | assertEquals(18.0, pr1.getFontSize(), 0); | ||||
assertEquals(VerticalAlignment.TOP, shape2.getVerticalAlignment()); | assertEquals(VerticalAlignment.TOP, shape2.getVerticalAlignment()); | ||||
XSLFTextRun pr1 = shape2.getTextParagraphs().get(0).getTextRuns().get(0); | XSLFTextRun pr1 = shape2.getTextParagraphs().get(0).getTextRuns().get(0); | ||||
assertEquals(0, pr1.getParentParagraph().getLevel()); | |||||
assertEquals(0, pr1.getParentParagraph().getIndentLevel()); | |||||
assertEquals("Level 1", pr1.getRawText()); | assertEquals("Level 1", pr1.getRawText()); | ||||
assertEquals("Calibri", pr1.getFontFamily()); | assertEquals("Calibri", pr1.getFontFamily()); | ||||
assertEquals(32.0, pr1.getFontSize(), 0); | assertEquals(32.0, pr1.getFontSize(), 0); | ||||
assertEquals("Arial", pr1.getParentParagraph().getBulletFont()); | assertEquals("Arial", pr1.getParentParagraph().getBulletFont()); | ||||
XSLFTextRun pr2 = shape2.getTextParagraphs().get(1).getTextRuns().get(0); | XSLFTextRun pr2 = shape2.getTextParagraphs().get(1).getTextRuns().get(0); | ||||
assertEquals(1, pr2.getParentParagraph().getLevel()); | |||||
assertEquals(1, pr2.getParentParagraph().getIndentLevel()); | |||||
assertEquals("Level 2", pr2.getParentParagraph().getText()); | assertEquals("Level 2", pr2.getParentParagraph().getText()); | ||||
assertEquals("Calibri", pr2.getFontFamily()); | assertEquals("Calibri", pr2.getFontFamily()); | ||||
assertEquals(28.0, pr2.getFontSize(), 0); | assertEquals(28.0, pr2.getFontSize(), 0); | ||||
assertEquals("Arial", pr2.getParentParagraph().getBulletFont()); | assertEquals("Arial", pr2.getParentParagraph().getBulletFont()); | ||||
XSLFTextRun pr3 = shape2.getTextParagraphs().get(2).getTextRuns().get(0); | XSLFTextRun pr3 = shape2.getTextParagraphs().get(2).getTextRuns().get(0); | ||||
assertEquals(2, pr3.getParentParagraph().getLevel()); | |||||
assertEquals(2, pr3.getParentParagraph().getIndentLevel()); | |||||
assertEquals("Level 3", pr3.getParentParagraph().getText()); | assertEquals("Level 3", pr3.getParentParagraph().getText()); | ||||
assertEquals("Calibri", pr3.getFontFamily()); | assertEquals("Calibri", pr3.getFontFamily()); | ||||
assertEquals(24.0, pr3.getFontSize(), 0); | assertEquals(24.0, pr3.getFontSize(), 0); | ||||
assertEquals("Arial", pr3.getParentParagraph().getBulletFont()); | assertEquals("Arial", pr3.getParentParagraph().getBulletFont()); | ||||
XSLFTextRun pr4 = shape2.getTextParagraphs().get(3).getTextRuns().get(0); | XSLFTextRun pr4 = shape2.getTextParagraphs().get(3).getTextRuns().get(0); | ||||
assertEquals(3, pr4.getParentParagraph().getLevel()); | |||||
assertEquals(3, pr4.getParentParagraph().getIndentLevel()); | |||||
assertEquals("Level 4", pr4.getParentParagraph().getText()); | assertEquals("Level 4", pr4.getParentParagraph().getText()); | ||||
assertEquals("Calibri", pr4.getFontFamily()); | assertEquals("Calibri", pr4.getFontFamily()); | ||||
assertEquals(20.0, pr4.getFontSize(), 0); | assertEquals(20.0, pr4.getFontSize(), 0); | ||||
assertEquals("Content with caption", shape3.getText()); | assertEquals("Content with caption", shape3.getText()); | ||||
pr1 = shape3.getTextParagraphs().get(0).getTextRuns().get(0); | pr1 = shape3.getTextParagraphs().get(0).getTextRuns().get(0); | ||||
assertEquals(0, pr1.getParentParagraph().getLevel()); | |||||
assertEquals(0, pr1.getParentParagraph().getIndentLevel()); | |||||
assertEquals("Content with caption", pr1.getRawText()); | assertEquals("Content with caption", pr1.getRawText()); | ||||
assertEquals("Calibri", pr1.getFontFamily()); | assertEquals("Calibri", pr1.getFontFamily()); | ||||
assertEquals(14.0, pr1.getFontSize(), 0); | assertEquals(14.0, pr1.getFontSize(), 0); | ||||
tx1.clearText(); | tx1.clearText(); | ||||
XSLFTextParagraph p1 = tx1.addNewTextParagraph(); | XSLFTextParagraph p1 = tx1.addNewTextParagraph(); | ||||
assertEquals(0, p1.getLevel()); | |||||
assertEquals(0, p1.getIndentLevel()); | |||||
XSLFTextRun r1 = p1.addNewTextRun(); | XSLFTextRun r1 = p1.addNewTextRun(); | ||||
r1.setText("Apache POI"); | r1.setText("Apache POI"); | ||||
XSLFTextParagraph p2 = tx1.addNewTextParagraph(); | XSLFTextParagraph p2 = tx1.addNewTextParagraph(); | ||||
p2.setLevel(1); | |||||
assertEquals(1, p2.getLevel()); | |||||
p2.setIndentLevel(1); | |||||
assertEquals(1, p2.getIndentLevel()); | |||||
XSLFTextRun r2 = p2.addNewTextRun(); | XSLFTextRun r2 = p2.addNewTextRun(); | ||||
r2.setText("HSLF"); | r2.setText("HSLF"); | ||||
XSLFTextParagraph p3 = tx1.addNewTextParagraph(); | XSLFTextParagraph p3 = tx1.addNewTextParagraph(); | ||||
p3.setLevel(2); | |||||
assertEquals(2, p3.getLevel()); | |||||
p3.setIndentLevel(2); | |||||
assertEquals(2, p3.getIndentLevel()); | |||||
XSLFTextRun r3 = p3.addNewTextRun(); | XSLFTextRun r3 = p3.addNewTextRun(); | ||||
r3.setText("XSLF"); | r3.setText("XSLF"); | ||||
import org.apache.poi.poifs.filesystem.POIFSFileSystem; | import org.apache.poi.poifs.filesystem.POIFSFileSystem; | ||||
import org.apache.poi.poifs.filesystem.DocumentEntry; | import org.apache.poi.poifs.filesystem.DocumentEntry; | ||||
import org.apache.poi.ddf.*; | import org.apache.poi.ddf.*; | ||||
import org.apache.poi.hslf.record.HSLFEscherRecordFactory; | |||||
import org.apache.poi.hslf.record.RecordTypes; | import org.apache.poi.hslf.record.RecordTypes; | ||||
import org.apache.poi.util.LittleEndian; | import org.apache.poi.util.LittleEndian; | ||||
/** | /** | ||||
byte[] contents = new byte[len]; | byte[] contents = new byte[len]; | ||||
System.arraycopy(_docstream,pos,contents,0,len); | System.arraycopy(_docstream,pos,contents,0,len); | ||||
DefaultEscherRecordFactory erf = new DefaultEscherRecordFactory(); | |||||
DefaultEscherRecordFactory erf = new HSLFEscherRecordFactory(); | |||||
EscherRecord record = erf.createRecord(contents,0); | EscherRecord record = erf.createRecord(contents,0); | ||||
// For now, try filling in the fields | // For now, try filling in the fields |
import org.apache.poi.ddf.EscherRecord; | import org.apache.poi.ddf.EscherRecord; | ||||
import org.apache.poi.ddf.EscherContainerRecord; | import org.apache.poi.ddf.EscherContainerRecord; | ||||
import org.apache.poi.ddf.EscherTextboxRecord; | import org.apache.poi.ddf.EscherTextboxRecord; | ||||
import org.apache.poi.hslf.record.EscherTextboxWrapper; | |||||
import org.apache.poi.hslf.record.TextCharsAtom; | |||||
import org.apache.poi.hslf.record.TextBytesAtom; | |||||
import org.apache.poi.hslf.record.StyleTextPropAtom; | |||||
import org.apache.poi.hslf.record.*; | |||||
import org.apache.poi.hslf.usermodel.HSLFSlideShowImpl; | import org.apache.poi.hslf.usermodel.HSLFSlideShowImpl; | ||||
/** | /** | ||||
// print additional information for drawings and atoms | // print additional information for drawings and atoms | ||||
if (optEscher && cname.equals("PPDrawing")) { | if (optEscher && cname.equals("PPDrawing")) { | ||||
DefaultEscherRecordFactory factory = new DefaultEscherRecordFactory(); | |||||
DefaultEscherRecordFactory factory = new HSLFEscherRecordFactory(); | |||||
ByteArrayOutputStream baos = new ByteArrayOutputStream(); | ByteArrayOutputStream baos = new ByteArrayOutputStream(); | ||||
r.writeOut(baos); | r.writeOut(baos); |
} | } | ||||
for (List<HSLFTextParagraph> lp : paragraphs) { | for (List<HSLFTextParagraph> lp : paragraphs) { | ||||
for (HSLFTextParagraph p : lp) { | |||||
for (HSLFTextRun r : p.getTextRuns()) { | |||||
ret.append(r.getRawText()); | |||||
} | |||||
if (ret.length() > 0 && ret.charAt(ret.length()-1) != '\n') { | |||||
ret.append("\n"); | |||||
} | |||||
ret.append(HSLFTextParagraph.getText(lp)); | |||||
if (ret.length() > 0 && ret.charAt(ret.length()-1) != '\n') { | |||||
ret.append("\n"); | |||||
} | } | ||||
} | } | ||||
} | } |
import org.apache.poi.sl.usermodel.ShapeContainer; | import org.apache.poi.sl.usermodel.ShapeContainer; | ||||
import org.apache.poi.sl.usermodel.ShapeType; | import org.apache.poi.sl.usermodel.ShapeType; | ||||
import java.awt.geom.*; | |||||
import java.util.ArrayList; | |||||
/** | /** | ||||
* Represents a line in a PowerPoint drawing | * Represents a line in a PowerPoint drawing | ||||
* | * | ||||
protected EscherContainerRecord createSpContainer(boolean isChild){ | protected EscherContainerRecord createSpContainer(boolean isChild){ | ||||
_escherContainer = super.createSpContainer(isChild); | _escherContainer = super.createSpContainer(isChild); | ||||
setShapeType(ShapeType.LINE); | |||||
EscherSpRecord spRecord = _escherContainer.getChildById(EscherSpRecord.RECORD_ID); | EscherSpRecord spRecord = _escherContainer.getChildById(EscherSpRecord.RECORD_ID); | ||||
short type = (short)((ShapeType.LINE.nativeId << 4) | 0x2); | short type = (short)((ShapeType.LINE.nativeId << 4) | 0x2); | ||||
return _escherContainer; | return _escherContainer; | ||||
} | } | ||||
public java.awt.Shape getOutline(){ | |||||
Rectangle2D anchor = getLogicalAnchor2D(); | |||||
return new Line2D.Double(anchor.getX(), anchor.getY(), anchor.getX() + anchor.getWidth(), anchor.getY() + anchor.getHeight()); | |||||
/** | |||||
* Sets the orientation of the line, if inverse is false, then line goes | |||||
* from top-left to bottom-right, otherwise use inverse equals true | |||||
* | |||||
* @param inverse the orientation of the line | |||||
*/ | |||||
public void setInverse(boolean inverse) { | |||||
setShapeType(inverse ? ShapeType.LINE_INV : ShapeType.LINE); | |||||
} | } | ||||
/** | /** | ||||
* | |||||
* @return 'absolute' anchor of this shape relative to the parent sheet | |||||
* | |||||
* @deprecated TODO: remove the whole class, should work with preset geometries instead | |||||
*/ | |||||
public Rectangle2D getLogicalAnchor2D(){ | |||||
Rectangle2D anchor = getAnchor2D(); | |||||
//if it is a groupped shape see if we need to transform the coordinates | |||||
if (getParent() != null){ | |||||
ArrayList<HSLFGroupShape> lst = new ArrayList<HSLFGroupShape>(); | |||||
for (ShapeContainer<HSLFShape> parent=this.getParent(); | |||||
parent instanceof HSLFGroupShape; | |||||
parent = ((HSLFGroupShape)parent).getParent()) { | |||||
lst.add(0, (HSLFGroupShape)parent); | |||||
} | |||||
AffineTransform tx = new AffineTransform(); | |||||
for(HSLFGroupShape prnt : lst) { | |||||
Rectangle2D exterior = prnt.getAnchor2D(); | |||||
Rectangle2D interior = prnt.getInteriorAnchor(); | |||||
double scaleX = exterior.getWidth() / interior.getWidth(); | |||||
double scaleY = exterior.getHeight() / interior.getHeight(); | |||||
tx.translate(exterior.getX(), exterior.getY()); | |||||
tx.scale(scaleX, scaleY); | |||||
tx.translate(-interior.getX(), -interior.getY()); | |||||
} | |||||
anchor = tx.createTransformedShape(anchor).getBounds2D(); | |||||
} | |||||
double angle = getRotation(); | |||||
if(angle != 0.){ | |||||
double centerX = anchor.getX() + anchor.getWidth()/2; | |||||
double centerY = anchor.getY() + anchor.getHeight()/2; | |||||
AffineTransform trans = new AffineTransform(); | |||||
trans.translate(centerX, centerY); | |||||
trans.rotate(Math.toRadians(angle)); | |||||
trans.translate(-centerX, -centerY); | |||||
Rectangle2D rect = trans.createTransformedShape(anchor).getBounds2D(); | |||||
if((anchor.getWidth() < anchor.getHeight() && rect.getWidth() > rect.getHeight()) || | |||||
(anchor.getWidth() > anchor.getHeight() && rect.getWidth() < rect.getHeight()) ){ | |||||
trans = new AffineTransform(); | |||||
trans.translate(centerX, centerY); | |||||
trans.rotate(Math.PI/2); | |||||
trans.translate(-centerX, -centerY); | |||||
anchor = trans.createTransformedShape(anchor).getBounds2D(); | |||||
} | |||||
} | |||||
return anchor; | |||||
} | |||||
* Gets the orientation of the line, if inverse is false, then line goes | |||||
* from top-left to bottom-right, otherwise inverse equals true | |||||
* | |||||
* @return inverse the orientation of the line | |||||
*/ | |||||
public boolean isInverse() { | |||||
return (getShapeType() == ShapeType.LINE_INV); | |||||
} | |||||
} | } |
*/ | */ | ||||
package org.apache.poi.hslf.model.textproperties; | package org.apache.poi.hslf.model.textproperties; | ||||
import org.apache.poi.hslf.record.TextAutoNumberSchemeEnum; | |||||
import org.apache.poi.sl.usermodel.AutoNumberingScheme; | |||||
import org.apache.poi.util.LittleEndian; | import org.apache.poi.util.LittleEndian; | ||||
/** | /** | ||||
private final byte mask4; | private final byte mask4; | ||||
private final Short bulletBlipRef; | private final Short bulletBlipRef; | ||||
private final Short fBulletHasAutoNumber; | private final Short fBulletHasAutoNumber; | ||||
private final TextAutoNumberSchemeEnum autoNumberScheme; | |||||
private final static TextAutoNumberSchemeEnum DEFAULT_AUTONUMBER_SHEME = TextAutoNumberSchemeEnum.ANM_ArabicPeriod; | |||||
private final AutoNumberingScheme autoNumberScheme; | |||||
private final static AutoNumberingScheme DEFAULT_AUTONUMBER_SHEME = AutoNumberingScheme.arabicPeriod; | |||||
private final Short autoNumberStartNumber; | private final Short autoNumberStartNumber; | ||||
private final static Short DEFAULT_START_NUMBER = new Short((short)1); | private final static Short DEFAULT_START_NUMBER = new Short((short)1); | ||||
private final int recordLength; | private final int recordLength; | ||||
this.autoNumberScheme = null; | this.autoNumberScheme = null; | ||||
this.autoNumberStartNumber = null; | this.autoNumberStartNumber = null; | ||||
} else { | } else { | ||||
this.autoNumberScheme = TextAutoNumberSchemeEnum.valueOf(LittleEndian.getShort(source, index)); | |||||
this.autoNumberScheme = AutoNumberingScheme.forNativeID(LittleEndian.getShort(source, index)); | |||||
index +=2; | index +=2; | ||||
this.autoNumberStartNumber = LittleEndian.getShort(source, index); | this.autoNumberStartNumber = LittleEndian.getShort(source, index); | ||||
index +=2; | index +=2; | ||||
public Short getfBulletHasAutoNumber() { | public Short getfBulletHasAutoNumber() { | ||||
return fBulletHasAutoNumber; | return fBulletHasAutoNumber; | ||||
} | } | ||||
public TextAutoNumberSchemeEnum getAutoNumberScheme() { | |||||
public AutoNumberingScheme getAutoNumberScheme() { | |||||
if (null != this.autoNumberScheme) { | if (null != this.autoNumberScheme) { | ||||
return this.autoNumberScheme; | return this.autoNumberScheme; | ||||
} | } |
/* ==================================================================== | |||||
Licensed to the Apache Software Foundation (ASF) under one or more | |||||
contributor license agreements. See the NOTICE file distributed with | |||||
this work for additional information regarding copyright ownership. | |||||
The ASF licenses this file to You under the Apache License, Version 2.0 | |||||
(the "License"); you may not use this file except in compliance with | |||||
the License. You may obtain a copy of the License at | |||||
http://www.apache.org/licenses/LICENSE-2.0 | |||||
Unless required by applicable law or agreed to in writing, software | |||||
distributed under the License is distributed on an "AS IS" BASIS, | |||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
See the License for the specific language governing permissions and | |||||
limitations under the License. | |||||
==================================================================== */ | |||||
package org.apache.poi.hslf.record; | |||||
import org.apache.poi.ddf.*; | |||||
import org.apache.poi.util.*; | |||||
/** | |||||
* An atom record that specifies whether a shape is a placeholder shape. | |||||
* The number, position, and type of placeholder shapes are determined by | |||||
* the slide layout as specified in the SlideAtom record. | |||||
*/ | |||||
public class EscherPlaceholder extends EscherRecord { | |||||
public static final short RECORD_ID = (short)RecordTypes.OEPlaceholderAtom.typeID; | |||||
public static final String RECORD_DESCRIPTION = "msofbtClientTextboxPlaceholder"; | |||||
int position = -1; | |||||
byte placementId = 0; | |||||
byte size = 0; | |||||
short unused = 0; | |||||
public EscherPlaceholder() {} | |||||
public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) { | |||||
int bytesRemaining = readHeader( data, offset ); | |||||
position = LittleEndian.getInt(data, offset+8); | |||||
placementId = data[offset+12]; | |||||
size = data[offset+13]; | |||||
unused = LittleEndian.getShort(data, offset+14); | |||||
assert(bytesRemaining + 8 == 16); | |||||
return bytesRemaining + 8; | |||||
} | |||||
public int serialize(int offset, byte[] data, EscherSerializationListener listener) { | |||||
listener.beforeRecordSerialize( offset, getRecordId(), this ); | |||||
LittleEndian.putShort(data, offset, getOptions()); | |||||
LittleEndian.putShort(data, offset+2, getRecordId()); | |||||
LittleEndian.putInt(data, offset+4, 8); | |||||
LittleEndian.putInt(data, offset+8, position); | |||||
LittleEndian.putByte(data, offset+12, placementId); | |||||
LittleEndian.putByte(data, offset+13, size); | |||||
LittleEndian.putShort(data, offset+14, unused); | |||||
listener.afterRecordSerialize( offset+getRecordSize(), getRecordId(), getRecordSize(), this ); | |||||
return getRecordSize(); | |||||
} | |||||
public int getRecordSize() { | |||||
return 8 + 8; | |||||
} | |||||
public String getRecordName() { | |||||
return "ClientTextboxPlaceholder"; | |||||
} | |||||
} |
/* ==================================================================== | |||||
Licensed to the Apache Software Foundation (ASF) under one or more | |||||
contributor license agreements. See the NOTICE file distributed with | |||||
this work for additional information regarding copyright ownership. | |||||
The ASF licenses this file to You under the Apache License, Version 2.0 | |||||
(the "License"); you may not use this file except in compliance with | |||||
the License. You may obtain a copy of the License at | |||||
http://www.apache.org/licenses/LICENSE-2.0 | |||||
Unless required by applicable law or agreed to in writing, software | |||||
distributed under the License is distributed on an "AS IS" BASIS, | |||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
See the License for the specific language governing permissions and | |||||
limitations under the License. | |||||
==================================================================== */ | |||||
package org.apache.poi.hslf.record; | |||||
import java.lang.reflect.Constructor; | |||||
import java.util.Map; | |||||
import org.apache.poi.ddf.*; | |||||
import org.apache.poi.util.LittleEndian; | |||||
/** | |||||
* Generates escher records when provided the byte array containing those records. | |||||
* | |||||
* @see EscherRecordFactory | |||||
*/ | |||||
public class HSLFEscherRecordFactory extends DefaultEscherRecordFactory { | |||||
private static Class<?>[] escherRecordClasses = { EscherPlaceholder.class }; | |||||
private static Map<Short, Constructor<? extends EscherRecord>> recordsMap = recordsToMap( escherRecordClasses ); | |||||
/** | |||||
* Creates an instance of the escher record factory | |||||
*/ | |||||
public HSLFEscherRecordFactory() { | |||||
// no instance initialisation | |||||
} | |||||
/** | |||||
* Generates an escher record including the any children contained under that record. | |||||
* An exception is thrown if the record could not be generated. | |||||
* | |||||
* @param data The byte array containing the records | |||||
* @param offset The starting offset into the byte array | |||||
* @return The generated escher record | |||||
*/ | |||||
public EscherRecord createRecord(byte[] data, int offset) { | |||||
short options = LittleEndian.getShort( data, offset ); | |||||
short recordId = LittleEndian.getShort( data, offset + 2 ); | |||||
// int remainingBytes = LittleEndian.getInt( data, offset + 4 ); | |||||
Constructor<? extends EscherRecord> recordConstructor = recordsMap.get(Short.valueOf(recordId)); | |||||
if (recordConstructor == null) { | |||||
return super.createRecord(data, offset); | |||||
} | |||||
EscherRecord escherRecord = null; | |||||
try { | |||||
escherRecord = recordConstructor.newInstance(new Object[] {}); | |||||
} catch (Exception e) { | |||||
return super.createRecord(data, offset); | |||||
} | |||||
escherRecord.setRecordId(recordId); | |||||
escherRecord.setOptions(options); | |||||
return escherRecord; | |||||
} | |||||
} |
System.arraycopy(source,start,contents,0,len); | System.arraycopy(source,start,contents,0,len); | ||||
// Build up a tree of Escher records contained within | // Build up a tree of Escher records contained within | ||||
final DefaultEscherRecordFactory erf = new DefaultEscherRecordFactory(); | |||||
final DefaultEscherRecordFactory erf = new HSLFEscherRecordFactory(); | |||||
final List<EscherRecord> escherChildren = new ArrayList<EscherRecord>(); | final List<EscherRecord> escherChildren = new ArrayList<EscherRecord>(); | ||||
findEscherChildren(erf, contents, 8, len-8, escherChildren); | findEscherChildren(erf, contents, 8, len-8, escherChildren); | ||||
this.childRecords = escherChildren.toArray(new EscherRecord[escherChildren.size()]); | this.childRecords = escherChildren.toArray(new EscherRecord[escherChildren.size()]); | ||||
private StyleTextProp9Atom findInSpContainer(final EscherContainerRecord spContainer) { | private StyleTextProp9Atom findInSpContainer(final EscherContainerRecord spContainer) { | ||||
EscherContainerRecord clientData = findFirstEscherContainerRecordOfType((short)RecordTypes.EscherClientData, spContainer); | EscherContainerRecord clientData = findFirstEscherContainerRecordOfType((short)RecordTypes.EscherClientData, spContainer); | ||||
if (null == clientData) { return null; } | if (null == clientData) { return null; } | ||||
final EscherContainerRecord escherContainer1388 = findFirstEscherContainerRecordOfType((short)0x1388, clientData); | |||||
if (null == escherContainer1388) { return null; } | |||||
final EscherContainerRecord escherContainer138A = findFirstEscherContainerRecordOfType((short)0x138A, escherContainer1388); | |||||
if (null == escherContainer138A) { return null; } | |||||
int size = escherContainer138A.getChildRecords().size(); | |||||
final EscherContainerRecord progTagsContainer = findFirstEscherContainerRecordOfType((short)0x1388, clientData); | |||||
if (null == progTagsContainer) { return null; } | |||||
final EscherContainerRecord progBinaryTag = findFirstEscherContainerRecordOfType((short)0x138A, progTagsContainer); | |||||
if (null == progBinaryTag) { return null; } | |||||
int size = progBinaryTag.getChildRecords().size(); | |||||
if (2 != size) { return null; } | if (2 != size) { return null; } | ||||
final Record r0 = buildFromUnknownEscherRecord((UnknownEscherRecord) escherContainer138A.getChild(0)); | |||||
final Record r1 = buildFromUnknownEscherRecord((UnknownEscherRecord) escherContainer138A.getChild(1)); | |||||
final Record r0 = buildFromUnknownEscherRecord((UnknownEscherRecord) progBinaryTag.getChild(0)); | |||||
final Record r1 = buildFromUnknownEscherRecord((UnknownEscherRecord) progBinaryTag.getChild(1)); | |||||
if (!(r0 instanceof CString)) { return null; } | if (!(r0 instanceof CString)) { return null; } | ||||
if (!("___PPT9".equals(((CString) r0).getText()))) { return null; }; | if (!("___PPT9".equals(((CString) r0).getText()))) { return null; }; | ||||
if (!(r1 instanceof BinaryTagDataBlob )) { return null; } | if (!(r1 instanceof BinaryTagDataBlob )) { return null; } | ||||
final BinaryTagDataBlob blob = (BinaryTagDataBlob) r1; | final BinaryTagDataBlob blob = (BinaryTagDataBlob) r1; | ||||
if (1 != blob.getChildRecords().length) { return null; } | if (1 != blob.getChildRecords().length) { return null; } | ||||
return (StyleTextProp9Atom) blob.findFirstOfType(0x0FACL); | |||||
return (StyleTextProp9Atom) blob.findFirstOfType(RecordTypes.StyleTextProp9Atom.typeID); | |||||
} | } | ||||
/** | /** | ||||
* Creates a new, empty, PPDrawing (typically for use with a new Slide | * Creates a new, empty, PPDrawing (typically for use with a new Slide | ||||
public StyleTextProp9Atom[] getNumberedListInfo() { | public StyleTextProp9Atom[] getNumberedListInfo() { | ||||
final List<StyleTextProp9Atom> result = new LinkedList<StyleTextProp9Atom>(); | final List<StyleTextProp9Atom> result = new LinkedList<StyleTextProp9Atom>(); | ||||
EscherRecord[] escherRecords = this.getEscherRecords(); | |||||
for (EscherRecord escherRecord : escherRecords) { | |||||
if (escherRecord instanceof EscherContainerRecord && (short)0xf002 == escherRecord.getRecordId()) { | |||||
EscherContainerRecord escherContainerF002 = (EscherContainerRecord) escherRecord; | |||||
final EscherContainerRecord escherContainerF003 = findFirstEscherContainerRecordOfType((short)0xf003, escherContainerF002); | |||||
final EscherContainerRecord[] escherContainersF004 = findAllEscherContainerRecordOfType((short)0xf004, escherContainerF003); | |||||
for (EscherContainerRecord containerF004 : escherContainersF004) { | |||||
final EscherContainerRecord escherContainerF011 = findFirstEscherContainerRecordOfType((short)0xf011, containerF004); | |||||
if (null == escherContainerF011) { continue; } | |||||
final EscherContainerRecord escherContainer1388 = findFirstEscherContainerRecordOfType((short)0x1388, escherContainerF011); | |||||
if (null == escherContainer1388) { continue; } | |||||
final EscherContainerRecord escherContainer138A = findFirstEscherContainerRecordOfType((short)0x138A, escherContainer1388); | |||||
if (null == escherContainer138A) { continue; } | |||||
int size = escherContainer138A.getChildRecords().size(); | |||||
if (2 != size) { continue; } | |||||
final Record r0 = buildFromUnknownEscherRecord((UnknownEscherRecord) escherContainer138A.getChild(0)); | |||||
final Record r1 = buildFromUnknownEscherRecord((UnknownEscherRecord) escherContainer138A.getChild(1)); | |||||
if (!(r0 instanceof CString)) { continue; } | |||||
if (!("___PPT9".equals(((CString) r0).getText()))) { continue; }; | |||||
if (!(r1 instanceof BinaryTagDataBlob )) { continue; } | |||||
final BinaryTagDataBlob blob = (BinaryTagDataBlob) r1; | |||||
if (1 != blob.getChildRecords().length) { continue; } | |||||
result.add((StyleTextProp9Atom) blob.findFirstOfType(0x0FACL)); | |||||
} | |||||
} | |||||
} | |||||
EscherContainerRecord dgContainer = (EscherContainerRecord)childRecords[0]; | |||||
final EscherContainerRecord spgrContainer = findFirstEscherContainerRecordOfType((short)RecordTypes.EscherSpgrContainer, dgContainer); | |||||
final EscherContainerRecord[] spContainers = findAllEscherContainerRecordOfType((short)RecordTypes.EscherSpContainer, spgrContainer); | |||||
for (EscherContainerRecord spContainer : spContainers) { | |||||
StyleTextProp9Atom prop9 = findInSpContainer(spContainer); | |||||
if (prop9 != null) result.add(prop9); | |||||
} | |||||
return result.toArray(new StyleTextProp9Atom[result.size()]); | return result.toArray(new StyleTextProp9Atom[result.size()]); | ||||
} | } | ||||
} | } |
byte[] contents = new byte[len]; | byte[] contents = new byte[len]; | ||||
System.arraycopy(source,start,contents,0,len); | System.arraycopy(source,start,contents,0,len); | ||||
DefaultEscherRecordFactory erf = new DefaultEscherRecordFactory(); | |||||
DefaultEscherRecordFactory erf = new HSLFEscherRecordFactory(); | |||||
EscherRecord child = erf.createRecord(contents, 0); | EscherRecord child = erf.createRecord(contents, 0); | ||||
child.fillFields( contents, 0, erf ); | child.fillFields( contents, 0, erf ); | ||||
dggContainer = (EscherContainerRecord)child.getChild(0); | dggContainer = (EscherContainerRecord)child.getChild(0); |
break; | break; | ||||
} | } | ||||
} | } | ||||
this.autoNumberSchemes = (TextPFException9[]) schemes.toArray(new TextPFException9[schemes.size()]); | |||||
this.autoNumberSchemes = schemes.toArray(new TextPFException9[schemes.size()]); | |||||
} | } | ||||
/** | /** |
/* | |||||
* ==================================================================== | |||||
* Licensed to the Apache Software Foundation (ASF) under one or more | |||||
* contributor license agreements. See the NOTICE file distributed with | |||||
* this work for additional information regarding copyright ownership. | |||||
* The ASF licenses this file to You under the Apache License, Version 2.0 | |||||
* (the "License"); you may not use this file except in compliance with | |||||
* the License. You may obtain a copy of the License at | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, software | |||||
* distributed under the License is distributed on an "AS IS" BASIS, | |||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
* See the License for the specific language governing permissions and | |||||
* limitations under the License. | |||||
* ==================================================================== | |||||
*/ | |||||
package org.apache.poi.hslf.record; | |||||
public enum TextAutoNumberSchemeEnum { | |||||
//Name Value Meaning | |||||
ANM_AlphaLcPeriod ((short) 0x0000), // "Lowercase Latin character followed by a period. Example: a., b., c., ..."), | |||||
ANM_AlphaUcPeriod ((short) 0x0001), // "Uppercase Latin character followed by a period. Example: A., B., C., ..."), | |||||
ANM_ArabicParenRight ((short) 0x0002), // "Arabic numeral followed by a closing parenthesis. Example: 1), 2), 3), ..."), | |||||
ANM_ArabicPeriod ((short) 0x0003), // "Arabic numeral followed by a period. Example: 1., 2., 3., ..."), | |||||
ANM_RomanLcParenBoth ((short) 0x0004), // "Lowercase Roman numeral enclosed in parentheses. Example: (i), (ii), (iii), ..."), | |||||
ANM_RomanLcParenRight ((short) 0x0005), // "Lowercase Roman numeral followed by a closing parenthesis. Example: i), ii), iii), ..."), | |||||
ANM_RomanLcPeriod ((short) 0x0006), // "Lowercase Roman numeral followed by a period. Example: i., ii., iii., ..."), | |||||
ANM_RomanUcPeriod ((short) 0x0007), // "Uppercase Roman numeral followed by a period. Example: I., II., III., ..."), | |||||
ANM_AlphaLcParenBoth ((short) 0x0008), // "Lowercase alphabetic character enclosed in parentheses. Example: (a), (b), (c), ..."), | |||||
ANM_AlphaLcParenRight ((short) 0x0009), // "Lowercase alphabetic character followed by a closing parenthesis. Example: a), b), c), ..."), | |||||
ANM_AlphaUcParenBoth ((short) 0x000A), // "Uppercase alphabetic character enclosed in parentheses. Example: (A), (B), (C), ..."), | |||||
ANM_AlphaUcParenRight ((short) 0x000B), // "Uppercase alphabetic character followed by a closing parenthesis. Example: A), B), C), ..."), | |||||
ANM_ArabicParenBoth ((short) 0x000C), // "Arabic numeral enclosed in parentheses. Example: (1), (2), (3), ..."), | |||||
ANM_ArabicPlain ((short) 0x000D), // "Arabic numeral. Example: 1, 2, 3, ..."), | |||||
ANM_RomanUcParenBoth ((short) 0x000E), // "Uppercase Roman numeral enclosed in parentheses. Example: (I), (II), (III), ..."), | |||||
ANM_RomanUcParenRight ((short) 0x000F), // "Uppercase Roman numeral followed by a closing parenthesis. Example: I), II), III), ..."), | |||||
ANM_ChsPlain ((short) 0x0010), // "Simplified Chinese."), | |||||
ANM_ChsPeriod ((short) 0x0011), // "Simplified Chinese with single-byte period."), | |||||
ANM_CircleNumDBPlain ((short) 0x0012), // "Double byte circle numbers."), | |||||
ANM_CircleNumWDBWhitePlain ((short) 0x0013), // "Wingdings white circle numbers."), | |||||
ANM_CircleNumWDBBlackPlain ((short) 0x0014), // "Wingdings black circle numbers."), | |||||
ANM_ChtPlain ((short) 0x0015), // "Traditional Chinese."), | |||||
ANM_ChtPeriod ((short) 0x0016), // "Traditional Chinese with single-byte period."), | |||||
ANM_Arabic1Minus ((short) 0x0017), // "Bidi Arabic 1 (AraAlpha) with ANSI minus symbol."), | |||||
ANM_Arabic2Minus ((short) 0x0018), // "Bidi Arabic 2 (AraAbjad) with ANSI minus symbol."), | |||||
ANM_Hebrew2Minus ((short) 0x0019), // "Bidi Hebrew 2 with ANSI minus symbol."), | |||||
ANM_JpnKorPlain ((short) 0x001A), // "Japanese/Korean."), | |||||
ANM_JpnKorPeriod ((short) 0x001B), // "Japanese/Korean with single-byte period."), | |||||
ANM_ArabicDbPlain ((short) 0x001C), // "Double-byte Arabic numbers."), | |||||
ANM_ArabicDbPeriod ((short) 0x001D), // "Double-byte Arabic numbers with double-byte period."), | |||||
ANM_ThaiAlphaPeriod ((short) 0x001E), // "Thai alphabetic character followed by a period."), | |||||
ANM_ThaiAlphaParenRight ((short) 0x001F), // "Thai alphabetic character followed by a closing parenthesis."), | |||||
ANM_ThaiAlphaParenBoth ((short) 0x0020), // "Thai alphabetic character enclosed by parentheses."), | |||||
ANM_ThaiNumPeriod ((short) 0x0021), // "Thai numeral followed by a period."), | |||||
ANM_ThaiNumParenRight ((short) 0x0022), // "Thai numeral followed by a closing parenthesis."), | |||||
ANM_ThaiNumParenBoth ((short) 0x0023), // "Thai numeral enclosed in parentheses."), | |||||
ANM_HindiAlphaPeriod ((short) 0x0024), // "Hindi alphabetic character followed by a period."), | |||||
ANM_HindiNumPeriod ((short) 0x0025), // "Hindi numeric character followed by a period."), | |||||
ANM_JpnChsDBPeriod ((short) 0x0026), // "Japanese with double-byte period."), | |||||
ANM_HindiNumParenRight ((short) 0x0027), // "Hindi numeric character followed by a closing parenthesis."), | |||||
ANM_HindiAlpha1Period ((short) 0x0028); // "Hindi alphabetic character followed by a period."); | |||||
private final short value; | |||||
private TextAutoNumberSchemeEnum(final short code) { | |||||
this.value = code; | |||||
} | |||||
private short getValue() { return value; } | |||||
public String getDescription() { | |||||
return TextAutoNumberSchemeEnum.getDescription(this); | |||||
} | |||||
public static String getDescription(final TextAutoNumberSchemeEnum code) { | |||||
switch (code) { | |||||
case ANM_AlphaLcPeriod : return "Lowercase Latin character followed by a period. Example: a., b., c., ..."; | |||||
case ANM_AlphaUcPeriod : return "Uppercase Latin character followed by a period. Example: A., B., C., ..."; | |||||
case ANM_ArabicParenRight : return "Arabic numeral followed by a closing parenthesis. Example: 1), 2), 3), ..."; | |||||
case ANM_ArabicPeriod : return "Arabic numeral followed by a period. Example: 1., 2., 3., ..."; | |||||
case ANM_RomanLcParenBoth : return "Lowercase Roman numeral enclosed in parentheses. Example: (i), (ii), (iii), ..."; | |||||
case ANM_RomanLcParenRight : return "Lowercase Roman numeral followed by a closing parenthesis. Example: i), ii), iii), ..."; | |||||
case ANM_RomanLcPeriod : return "Lowercase Roman numeral followed by a period. Example: i., ii., iii., ..."; | |||||
case ANM_RomanUcPeriod : return "Uppercase Roman numeral followed by a period. Example: I., II., III., ..."; | |||||
case ANM_AlphaLcParenBoth : return "Lowercase alphabetic character enclosed in parentheses. Example: (a), (b), (c), ..."; | |||||
case ANM_AlphaLcParenRight : return "Lowercase alphabetic character followed by a closing parenthesis. Example: a), b), c), ..."; | |||||
case ANM_AlphaUcParenBoth : return "Uppercase alphabetic character enclosed in parentheses. Example: (A), (B), (C), ..."; | |||||
case ANM_AlphaUcParenRight : return "Uppercase alphabetic character followed by a closing parenthesis. Example: A), B), C), ..."; | |||||
case ANM_ArabicParenBoth : return "Arabic numeral enclosed in parentheses. Example: (1), (2), (3), ..."; | |||||
case ANM_ArabicPlain : return "Arabic numeral. Example: 1, 2, 3, ..."; | |||||
case ANM_RomanUcParenBoth : return "Uppercase Roman numeral enclosed in parentheses. Example: (I), (II), (III), ..."; | |||||
case ANM_RomanUcParenRight : return "Uppercase Roman numeral followed by a closing parenthesis. Example: I), II), III), ..."; | |||||
case ANM_ChsPlain : return "Simplified Chinese."; | |||||
case ANM_ChsPeriod : return "Simplified Chinese with single-byte period."; | |||||
case ANM_CircleNumDBPlain : return "Double byte circle numbers."; | |||||
case ANM_CircleNumWDBWhitePlain : return "Wingdings white circle numbers."; | |||||
case ANM_CircleNumWDBBlackPlain : return "Wingdings black circle numbers."; | |||||
case ANM_ChtPlain : return "Traditional Chinese."; | |||||
case ANM_ChtPeriod : return "Traditional Chinese with single-byte period."; | |||||
case ANM_Arabic1Minus : return "Bidi Arabic 1 (AraAlpha) with ANSI minus symbol."; | |||||
case ANM_Arabic2Minus : return "Bidi Arabic 2 (AraAbjad) with ANSI minus symbol."; | |||||
case ANM_Hebrew2Minus : return "Bidi Hebrew 2 with ANSI minus symbol."; | |||||
case ANM_JpnKorPlain : return "Japanese/Korean."; | |||||
case ANM_JpnKorPeriod : return "Japanese/Korean with single-byte period."; | |||||
case ANM_ArabicDbPlain : return "Double-byte Arabic numbers."; | |||||
case ANM_ArabicDbPeriod : return "Double-byte Arabic numbers with double-byte period."; | |||||
case ANM_ThaiAlphaPeriod : return "Thai alphabetic character followed by a period."; | |||||
case ANM_ThaiAlphaParenRight : return "Thai alphabetic character followed by a closing parenthesis."; | |||||
case ANM_ThaiAlphaParenBoth : return "Thai alphabetic character enclosed by parentheses."; | |||||
case ANM_ThaiNumPeriod : return "Thai numeral followed by a period."; | |||||
case ANM_ThaiNumParenRight : return "Thai numeral followed by a closing parenthesis."; | |||||
case ANM_ThaiNumParenBoth : return "Thai numeral enclosed in parentheses."; | |||||
case ANM_HindiAlphaPeriod : return "Hindi alphabetic character followed by a period."; | |||||
case ANM_HindiNumPeriod : return "Hindi numeric character followed by a period."; | |||||
case ANM_JpnChsDBPeriod : return "Japanese with double-byte period."; | |||||
case ANM_HindiNumParenRight : return "Hindi numeric character followed by a closing parenthesis."; | |||||
case ANM_HindiAlpha1Period : return "Hindi alphabetic character followed by a period."; | |||||
default : return "Unknown Numbered Scheme"; | |||||
} | |||||
} | |||||
public static TextAutoNumberSchemeEnum valueOf(short autoNumberScheme) { | |||||
for (TextAutoNumberSchemeEnum item: TextAutoNumberSchemeEnum.values()) { | |||||
if (autoNumberScheme == item.getValue()) { | |||||
return item; | |||||
} | |||||
} | |||||
return null; | |||||
} | |||||
} |
public Rectangle2D getAnchor2D(){ | public Rectangle2D getAnchor2D(){ | ||||
EscherSpRecord spRecord = getEscherChild(EscherSpRecord.RECORD_ID); | EscherSpRecord spRecord = getEscherChild(EscherSpRecord.RECORD_ID); | ||||
int flags = spRecord.getFlags(); | int flags = spRecord.getFlags(); | ||||
Rectangle2D anchor; | |||||
if ((flags & EscherSpRecord.FLAG_CHILD) != 0){ | |||||
EscherChildAnchorRecord rec = getEscherChild(EscherChildAnchorRecord.RECORD_ID); | |||||
if(rec == null){ | |||||
int x,y,w,h; | |||||
EscherChildAnchorRecord childRec = getEscherChild(EscherChildAnchorRecord.RECORD_ID); | |||||
boolean useChildRec = ((flags & EscherSpRecord.FLAG_CHILD) != 0); | |||||
if (useChildRec && childRec != null){ | |||||
x = childRec.getDx1(); | |||||
y = childRec.getDy1(); | |||||
w = childRec.getDx2()-childRec.getDx1(); | |||||
h = childRec.getDy2()-childRec.getDy1(); | |||||
} else { | |||||
if (useChildRec) { | |||||
logger.log(POILogger.WARN, "EscherSpRecord.FLAG_CHILD is set but EscherChildAnchorRecord was not found"); | logger.log(POILogger.WARN, "EscherSpRecord.FLAG_CHILD is set but EscherChildAnchorRecord was not found"); | ||||
EscherClientAnchorRecord clrec = getEscherChild(EscherClientAnchorRecord.RECORD_ID); | |||||
anchor = new Rectangle2D.Float( | |||||
(float)clrec.getCol1()*POINT_DPI/MASTER_DPI, | |||||
(float)clrec.getFlag()*POINT_DPI/MASTER_DPI, | |||||
(float)(clrec.getDx1()-clrec.getCol1())*POINT_DPI/MASTER_DPI, | |||||
(float)(clrec.getRow1()-clrec.getFlag())*POINT_DPI/MASTER_DPI | |||||
); | |||||
} else { | |||||
anchor = new Rectangle2D.Float( | |||||
(float)rec.getDx1()*POINT_DPI/MASTER_DPI, | |||||
(float)rec.getDy1()*POINT_DPI/MASTER_DPI, | |||||
(float)(rec.getDx2()-rec.getDx1())*POINT_DPI/MASTER_DPI, | |||||
(float)(rec.getDy2()-rec.getDy1())*POINT_DPI/MASTER_DPI | |||||
); | |||||
} | } | ||||
} else { | |||||
EscherClientAnchorRecord rec = getEscherChild(EscherClientAnchorRecord.RECORD_ID); | |||||
anchor = new Rectangle2D.Float( | |||||
(float)rec.getCol1()*POINT_DPI/MASTER_DPI, | |||||
(float)rec.getFlag()*POINT_DPI/MASTER_DPI, | |||||
(float)(rec.getDx1()-rec.getCol1())*POINT_DPI/MASTER_DPI, | |||||
(float)(rec.getRow1()-rec.getFlag())*POINT_DPI/MASTER_DPI | |||||
); | |||||
EscherClientAnchorRecord clientRec = getEscherChild(EscherClientAnchorRecord.RECORD_ID); | |||||
x = clientRec.getFlag(); | |||||
y = clientRec.getCol1(); | |||||
w = clientRec.getDx1()-clientRec.getFlag(); | |||||
h = clientRec.getRow1()-clientRec.getCol1(); | |||||
} | } | ||||
Rectangle2D anchor = new Rectangle2D.Float( | |||||
(float)Units.masterToPoints(x), | |||||
(float)Units.masterToPoints(y), | |||||
(float)Units.masterToPoints(w), | |||||
(float)Units.masterToPoints(h) | |||||
); | |||||
return anchor; | return anchor; | ||||
} | } | ||||
* @param anchor new anchor | * @param anchor new anchor | ||||
*/ | */ | ||||
public void setAnchor(Rectangle2D anchor){ | public void setAnchor(Rectangle2D anchor){ | ||||
int x = Units.pointsToMaster(anchor.getX()); | |||||
int y = Units.pointsToMaster(anchor.getY()); | |||||
int w = Units.pointsToMaster(anchor.getWidth() + anchor.getX()); | |||||
int h = Units.pointsToMaster(anchor.getHeight() + anchor.getY()); | |||||
EscherSpRecord spRecord = getEscherChild(EscherSpRecord.RECORD_ID); | EscherSpRecord spRecord = getEscherChild(EscherSpRecord.RECORD_ID); | ||||
int flags = spRecord.getFlags(); | int flags = spRecord.getFlags(); | ||||
if ((flags & EscherSpRecord.FLAG_CHILD) != 0){ | if ((flags & EscherSpRecord.FLAG_CHILD) != 0){ | ||||
EscherChildAnchorRecord rec = (EscherChildAnchorRecord)getEscherChild(EscherChildAnchorRecord.RECORD_ID); | EscherChildAnchorRecord rec = (EscherChildAnchorRecord)getEscherChild(EscherChildAnchorRecord.RECORD_ID); | ||||
rec.setDx1((int)(anchor.getX()*MASTER_DPI/POINT_DPI)); | |||||
rec.setDy1((int)(anchor.getY()*MASTER_DPI/POINT_DPI)); | |||||
rec.setDx2((int)((anchor.getWidth() + anchor.getX())*MASTER_DPI/POINT_DPI)); | |||||
rec.setDy2((int)((anchor.getHeight() + anchor.getY())*MASTER_DPI/POINT_DPI)); | |||||
} | |||||
else { | |||||
rec.setDx1(x); | |||||
rec.setDy1(y); | |||||
rec.setDx2(w); | |||||
rec.setDy2(h); | |||||
} else { | |||||
EscherClientAnchorRecord rec = (EscherClientAnchorRecord)getEscherChild(EscherClientAnchorRecord.RECORD_ID); | EscherClientAnchorRecord rec = (EscherClientAnchorRecord)getEscherChild(EscherClientAnchorRecord.RECORD_ID); | ||||
rec.setFlag((short)(anchor.getY()*MASTER_DPI/POINT_DPI)); | |||||
rec.setCol1((short)(anchor.getX()*MASTER_DPI/POINT_DPI)); | |||||
rec.setDx1((short)(((anchor.getWidth() + anchor.getX())*MASTER_DPI/POINT_DPI))); | |||||
rec.setRow1((short)(((anchor.getHeight() + anchor.getY())*MASTER_DPI/POINT_DPI))); | |||||
rec.setFlag((short)x); | |||||
rec.setCol1((short)y); | |||||
rec.setDx1((short)w); | |||||
rec.setRow1((short)h); | |||||
} | } | ||||
} | } |
import java.util.Iterator; | import java.util.Iterator; | ||||
import java.util.List; | import java.util.List; | ||||
import org.apache.poi.ddf.EscherClientDataRecord; | |||||
import org.apache.poi.ddf.EscherContainerRecord; | |||||
import org.apache.poi.ddf.EscherOptRecord; | |||||
import org.apache.poi.ddf.EscherProperties; | |||||
import org.apache.poi.ddf.EscherProperty; | |||||
import org.apache.poi.ddf.EscherPropertyFactory; | |||||
import org.apache.poi.ddf.EscherRecord; | |||||
import org.apache.poi.ddf.EscherSimpleProperty; | |||||
import org.apache.poi.ddf.EscherSpRecord; | |||||
import org.apache.poi.ddf.*; | |||||
import org.apache.poi.hslf.model.*; | import org.apache.poi.hslf.model.*; | ||||
import org.apache.poi.hslf.record.InteractiveInfo; | |||||
import org.apache.poi.hslf.record.InteractiveInfoAtom; | |||||
import org.apache.poi.hslf.record.OEShapeAtom; | |||||
import org.apache.poi.hslf.record.Record; | |||||
import org.apache.poi.hslf.record.RecordTypes; | |||||
import org.apache.poi.hslf.usermodel.*; | |||||
import org.apache.poi.hslf.record.*; | |||||
import org.apache.poi.sl.usermodel.ShapeContainer; | import org.apache.poi.sl.usermodel.ShapeContainer; | ||||
import org.apache.poi.sl.usermodel.ShapeType; | import org.apache.poi.sl.usermodel.ShapeType; | ||||
import org.apache.poi.util.POILogFactory; | import org.apache.poi.util.POILogFactory; | ||||
break; | break; | ||||
} | } | ||||
case LINE: | case LINE: | ||||
// shape = new Line(spContainer, parent); | |||||
// break; | |||||
shape = new Line(spContainer, parent); | |||||
break; | |||||
case NOT_PRIMITIVE: { | case NOT_PRIMITIVE: { | ||||
EscherOptRecord opt = HSLFShape.getEscherChild(spContainer, EscherOptRecord.RECORD_ID); | EscherOptRecord opt = HSLFShape.getEscherChild(spContainer, EscherOptRecord.RECORD_ID); | ||||
EscherProperty prop = HSLFShape.getEscherProperty(opt, EscherProperties.GEOMETRY__VERTICES); | EscherProperty prop = HSLFShape.getEscherProperty(opt, EscherProperties.GEOMETRY__VERTICES); | ||||
if(prop != null) | if(prop != null) | ||||
shape = new HSLFFreeformShape(spContainer, parent); | shape = new HSLFFreeformShape(spContainer, parent); | ||||
else { | else { | ||||
logger.log(POILogger.WARN, "Creating AutoShape for a NotPrimitive shape"); | |||||
logger.log(POILogger.INFO, "Creating AutoShape for a NotPrimitive shape"); | |||||
shape = new HSLFAutoShape(spContainer, parent); | shape = new HSLFAutoShape(spContainer, parent); | ||||
} | } | ||||
break; | break; |
PPDrawing ppdrawing = getPPDrawing(); | PPDrawing ppdrawing = getPPDrawing(); | ||||
EscherContainerRecord dg = (EscherContainerRecord) ppdrawing.getEscherRecords()[0]; | EscherContainerRecord dg = (EscherContainerRecord) ppdrawing.getEscherRecords()[0]; | ||||
EscherContainerRecord spContainer = null; | |||||
for (Iterator<EscherRecord> it = dg.getChildIterator(); it.hasNext();) { | |||||
EscherRecord rec = it.next(); | |||||
if (rec.getRecordId() == EscherContainerRecord.SP_CONTAINER) { | |||||
spContainer = (EscherContainerRecord) rec; | |||||
break; | |||||
} | |||||
} | |||||
EscherContainerRecord spContainer = dg.getChildById(EscherContainerRecord.SP_CONTAINER); | |||||
_background = new HSLFBackground(spContainer, null); | _background = new HSLFBackground(spContainer, null); | ||||
_background.setSheet(this); | _background.setSheet(this); | ||||
} | } |
if(r != null && !(r instanceof EscherClientDataRecord)){ | if(r != null && !(r instanceof EscherClientDataRecord)){ | ||||
byte[] data = r.serialize(); | byte[] data = r.serialize(); | ||||
r = new EscherClientDataRecord(); | r = new EscherClientDataRecord(); | ||||
r.fillFields(data, 0, new DefaultEscherRecordFactory()); | |||||
r.fillFields(data, 0, new HSLFEscherRecordFactory()); | |||||
} | } | ||||
_clientData = (EscherClientDataRecord)r; | _clientData = (EscherClientDataRecord)r; | ||||
} | } |
package org.apache.poi.hslf.usermodel; | package org.apache.poi.hslf.usermodel; | ||||
import java.awt.Graphics2D; | |||||
import java.util.ArrayList; | import java.util.ArrayList; | ||||
import java.util.List; | import java.util.List; | ||||
import org.apache.poi.hslf.model.*; | import org.apache.poi.hslf.model.*; | ||||
import org.apache.poi.hslf.record.*; | import org.apache.poi.hslf.record.*; | ||||
import org.apache.poi.hslf.record.SlideListWithText.SlideAtomsSet; | import org.apache.poi.hslf.record.SlideListWithText.SlideAtomsSet; | ||||
import org.apache.poi.sl.draw.DrawFactory; | |||||
import org.apache.poi.sl.draw.Drawable; | |||||
import org.apache.poi.sl.usermodel.ShapeType; | import org.apache.poi.sl.usermodel.ShapeType; | ||||
import org.apache.poi.sl.usermodel.Slide; | import org.apache.poi.sl.usermodel.Slide; | ||||
: slideInfo.getEffectTransitionFlagByBit(SSSlideInfoAtom.HIDDEN_BIT); | : slideInfo.getEffectTransitionFlagByBit(SSSlideInfoAtom.HIDDEN_BIT); | ||||
} | } | ||||
@Override | |||||
public void draw(Graphics2D graphics) { | |||||
DrawFactory drawFact = DrawFactory.getInstance(graphics); | |||||
Drawable draw = drawFact.getDrawable(this); | |||||
draw.draw(graphics); | |||||
} | |||||
public boolean getFollowMasterColourScheme() { | public boolean getFollowMasterColourScheme() { | ||||
// TODO Auto-generated method stub | // TODO Auto-generated method stub | ||||
return false; | return false; |
protected void initTable(){ | protected void initTable(){ | ||||
List<HSLFShape> shapeList = getShapeList(); | List<HSLFShape> shapeList = getShapeList(); | ||||
Iterator<HSLFShape> shapeIter = shapeList.iterator(); | |||||
while (shapeIter.hasNext()) { | |||||
HSLFShape shape = shapeIter.next(); | |||||
if (shape instanceof HSLFAutoShape) { | |||||
HSLFAutoShape autoShape = (HSLFAutoShape)shape; | |||||
EscherTextboxRecord etr = autoShape.getEscherChild(EscherTextboxRecord.RECORD_ID); | |||||
if (etr != null) continue; | |||||
} | |||||
shapeIter.remove(); | |||||
} | |||||
Collections.sort(shapeList, new Comparator<HSLFShape>(){ | Collections.sort(shapeList, new Comparator<HSLFShape>(){ | ||||
public int compare( HSLFShape o1, HSLFShape o2 ) { | public int compare( HSLFShape o1, HSLFShape o2 ) { | ||||
Rectangle anchor1 = o1.getAnchor(); | Rectangle anchor1 = o1.getAnchor(); | ||||
Rectangle anchor2 = o2.getAnchor(); | Rectangle anchor2 = o2.getAnchor(); | ||||
int delta = anchor1.y - anchor2.y; | int delta = anchor1.y - anchor2.y; | ||||
if(delta == 0) delta = anchor1.x - anchor2.x; | |||||
if (delta == 0) delta = anchor1.x - anchor2.x; | |||||
// descending size | |||||
if (delta == 0) delta = (anchor2.width*anchor2.height)-(anchor1.width*anchor1.height); | |||||
return delta; | return delta; | ||||
} | } | ||||
}); | }); | ||||
int y0 = -1; | int y0 = -1; | ||||
int maxrowlen = 0; | int maxrowlen = 0; | ||||
List<List<HSLFShape>> lst = new ArrayList<List<HSLFShape>>(); | List<List<HSLFShape>> lst = new ArrayList<List<HSLFShape>>(); |
import org.apache.poi.hslf.model.textproperties.*; | import org.apache.poi.hslf.model.textproperties.*; | ||||
import org.apache.poi.hslf.model.textproperties.TextPropCollection.TextPropType; | import org.apache.poi.hslf.model.textproperties.TextPropCollection.TextPropType; | ||||
import org.apache.poi.hslf.record.*; | import org.apache.poi.hslf.record.*; | ||||
import org.apache.poi.sl.usermodel.AutoNumberingScheme; | |||||
import org.apache.poi.sl.usermodel.TextParagraph; | import org.apache.poi.sl.usermodel.TextParagraph; | ||||
import org.apache.poi.util.*; | import org.apache.poi.util.*; | ||||
private HSLFSheet _sheet; | private HSLFSheet _sheet; | ||||
private int shapeId; | private int shapeId; | ||||
// private StyleTextPropAtom styleTextPropAtom; | |||||
private StyleTextProp9Atom styleTextProp9Atom; | private StyleTextProp9Atom styleTextProp9Atom; | ||||
/** | /** | ||||
int length; | int length; | ||||
for (length = 1; startIdx[0] + length < records.length; length++) { | for (length = 1; startIdx[0] + length < records.length; length++) { | ||||
if (records[startIdx[0]+length] instanceof TextHeaderAtom) break; | |||||
Record r = records[startIdx[0]+length]; | |||||
if (r instanceof TextHeaderAtom || r instanceof SlidePersistAtom) break; | |||||
} | } | ||||
Record result[] = new Record[length]; | Record result[] = new Record[length]; | ||||
} | } | ||||
} | } | ||||
public AutoNumberingScheme getAutoNumberingScheme() { | |||||
if (styleTextProp9Atom == null) return null; | |||||
TextPFException9[] ant = styleTextProp9Atom.getAutoNumberTypes(); | |||||
int level = getIndentLevel(); | |||||
if (ant == null || level >= ant.length) return null; | |||||
return ant[level].getAutoNumberScheme(); | |||||
} | |||||
public Integer getAutoNumberingStartAt() { | |||||
if (styleTextProp9Atom == null) return null; | |||||
TextPFException9[] ant = styleTextProp9Atom.getAutoNumberTypes(); | |||||
int level = getIndentLevel(); | |||||
if (ant == null || level >= ant.length) return null; | |||||
Short startAt = ant[level].getAutoNumberStartNumber(); | |||||
assert(startAt != null); | |||||
return startAt.intValue(); | |||||
} | |||||
@Override | @Override | ||||
public BulletStyle getBulletStyle() { | public BulletStyle getBulletStyle() { | ||||
if (!isBullet()) return null; | |||||
if (!isBullet() && getAutoNumberingScheme() == null) return null; | |||||
return new BulletStyle() { | return new BulletStyle() { | ||||
@Override | |||||
public String getBulletCharacter() { | public String getBulletCharacter() { | ||||
Character chr = HSLFTextParagraph.this.getBulletChar(); | Character chr = HSLFTextParagraph.this.getBulletChar(); | ||||
return (chr == null || chr == 0) ? "" : "" + chr; | return (chr == null || chr == 0) ? "" : "" + chr; | ||||
} | } | ||||
@Override | |||||
public String getBulletFont() { | public String getBulletFont() { | ||||
return HSLFTextParagraph.this.getBulletFont(); | return HSLFTextParagraph.this.getBulletFont(); | ||||
} | } | ||||
@Override | |||||
public Double getBulletFontSize() { | public Double getBulletFontSize() { | ||||
return HSLFTextParagraph.this.getBulletSize(); | return HSLFTextParagraph.this.getBulletSize(); | ||||
} | } | ||||
@Override | |||||
public Color getBulletFontColor() { | public Color getBulletFontColor() { | ||||
return HSLFTextParagraph.this.getBulletColor(); | return HSLFTextParagraph.this.getBulletColor(); | ||||
} | } | ||||
@Override | |||||
public AutoNumberingScheme getAutoNumberingScheme() { | |||||
return HSLFTextParagraph.this.getAutoNumberingScheme(); | |||||
} | |||||
@Override | |||||
public Integer getAutoNumberingStartAt() { | |||||
return HSLFTextParagraph.this.getAutoNumberingStartAt(); | |||||
} | |||||
}; | }; | ||||
} | } | ||||
_parentShape = parentShape; | _parentShape = parentShape; | ||||
} | } | ||||
/** | |||||
* | |||||
* @return indentation level | |||||
*/ | |||||
@Override | |||||
public int getIndentLevel() { | public int getIndentLevel() { | ||||
return _paragraphStyle == null ? 0 : _paragraphStyle.getIndentLevel(); | return _paragraphStyle == null ? 0 : _paragraphStyle.getIndentLevel(); | ||||
} | } | ||||
/** | |||||
* Sets indentation level | |||||
* | |||||
* @param level indentation level. Must be in the range [0, 4] | |||||
*/ | |||||
@Override | |||||
public void setIndentLevel(int level) { | public void setIndentLevel(int level) { | ||||
if( _paragraphStyle != null ) _paragraphStyle.setIndentLevel((short)level); | if( _paragraphStyle != null ) _paragraphStyle.setIndentLevel((short)level); | ||||
} | } | ||||
return (_runs.isEmpty()) ? null : _runs.get(0).getFontColor(); | return (_runs.isEmpty()) ? null : _runs.get(0).getFontColor(); | ||||
} | } | ||||
int rgb = tp.getValue(); | |||||
int cidx = rgb >> 24; | |||||
if (rgb % 0x1000000 == 0) { | |||||
if (_sheet == null) | |||||
return null; | |||||
ColorSchemeAtom ca = _sheet.getColorScheme(); | |||||
if (cidx >= 0 && cidx <= 7) | |||||
rgb = ca.getColor(cidx); | |||||
} | |||||
Color tmp = new Color(rgb, true); | |||||
return new Color(tmp.getBlue(), tmp.getGreen(), tmp.getRed()); | |||||
return getColorFromColorIndexStruct(tp.getValue(), _sheet); | |||||
} | } | ||||
/** | /** | ||||
public static List<List<HSLFTextParagraph>> findTextParagraphs(PPDrawing ppdrawing, HSLFSheet sheet) { | public static List<List<HSLFTextParagraph>> findTextParagraphs(PPDrawing ppdrawing, HSLFSheet sheet) { | ||||
List<List<HSLFTextParagraph>> runsV = new ArrayList<List<HSLFTextParagraph>>(); | List<List<HSLFTextParagraph>> runsV = new ArrayList<List<HSLFTextParagraph>>(); | ||||
for (EscherTextboxWrapper wrapper : ppdrawing.getTextboxWrappers()) { | for (EscherTextboxWrapper wrapper : ppdrawing.getTextboxWrappers()) { | ||||
runsV.add(findTextParagraphs(wrapper, sheet)); | |||||
List<HSLFTextParagraph> p = findTextParagraphs(wrapper, sheet); | |||||
if (p != null) runsV.add(p); | |||||
} | } | ||||
return runsV; | return runsV; | ||||
} | } | ||||
protected static List<HSLFTextParagraph> createEmptyParagraph() { | protected static List<HSLFTextParagraph> createEmptyParagraph() { | ||||
EscherTextboxWrapper wrapper = new EscherTextboxWrapper(); | EscherTextboxWrapper wrapper = new EscherTextboxWrapper(); | ||||
return createEmptyParagraph(wrapper); | |||||
} | |||||
protected static List<HSLFTextParagraph> createEmptyParagraph(EscherTextboxWrapper wrapper) { | |||||
TextHeaderAtom tha = new TextHeaderAtom(); | TextHeaderAtom tha = new TextHeaderAtom(); | ||||
tha.setParentRecord(wrapper); | tha.setParentRecord(wrapper); | ||||
wrapper.appendChildRecord(tha); | wrapper.appendChildRecord(tha); | ||||
public EscherTextboxWrapper getTextboxWrapper() { | public EscherTextboxWrapper getTextboxWrapper() { | ||||
return (EscherTextboxWrapper) _headerAtom.getParentRecord(); | return (EscherTextboxWrapper) _headerAtom.getParentRecord(); | ||||
} | } | ||||
protected static Color getColorFromColorIndexStruct(int rgb, HSLFSheet sheet) { | |||||
int cidx = rgb >>> 24; | |||||
Color tmp; | |||||
switch (cidx) { | |||||
// Background ... Accent 3 color | |||||
case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: | |||||
if (sheet == null) return null; | |||||
ColorSchemeAtom ca = sheet.getColorScheme(); | |||||
tmp = new Color(ca.getColor(cidx), true); | |||||
break; | |||||
// Color is an sRGB value specified by red, green, and blue fields. | |||||
case 0xFE: | |||||
tmp = new Color(rgb, true); | |||||
break; | |||||
// Color is undefined. | |||||
default: | |||||
case 0xFF: | |||||
return null; | |||||
} | |||||
return new Color(tmp.getBlue(), tmp.getGreen(), tmp.getRed()); | |||||
} | |||||
} | } |
package org.apache.poi.hslf.usermodel; | package org.apache.poi.hslf.usermodel; | ||||
import static org.apache.poi.hslf.usermodel.HSLFTextParagraph.setPropVal; | |||||
import static org.apache.poi.hslf.usermodel.HSLFTextParagraph.getPropVal; | import static org.apache.poi.hslf.usermodel.HSLFTextParagraph.getPropVal; | ||||
import static org.apache.poi.hslf.usermodel.HSLFTextParagraph.setPropVal; | |||||
import java.awt.Color; | import java.awt.Color; | ||||
import org.apache.poi.hslf.model.textproperties.*; | import org.apache.poi.hslf.model.textproperties.*; | ||||
import org.apache.poi.hslf.model.textproperties.TextPropCollection.TextPropType; | import org.apache.poi.hslf.model.textproperties.TextPropCollection.TextPropType; | ||||
import org.apache.poi.hslf.record.ColorSchemeAtom; | |||||
import org.apache.poi.sl.usermodel.TextRun; | import org.apache.poi.sl.usermodel.TextRun; | ||||
import org.apache.poi.util.POILogFactory; | import org.apache.poi.util.POILogFactory; | ||||
import org.apache.poi.util.POILogger; | import org.apache.poi.util.POILogger; | ||||
*/ | */ | ||||
public Color getFontColor() { | public Color getFontColor() { | ||||
TextProp tp = getPropVal(characterStyle, "font.color", parentParagraph); | TextProp tp = getPropVal(characterStyle, "font.color", parentParagraph); | ||||
if (tp == null) return null; | |||||
int rgb = tp.getValue(); | |||||
int cidx = rgb >> 24; | |||||
if (rgb % 0x1000000 == 0){ | |||||
ColorSchemeAtom ca = parentParagraph.getSheet().getColorScheme(); | |||||
if(cidx >= 0 && cidx <= 7) rgb = ca.getColor(cidx); | |||||
} | |||||
Color tmp = new Color(rgb, true); | |||||
return new Color(tmp.getBlue(), tmp.getGreen(), tmp.getRed()); | |||||
return (tp == null) ? null | |||||
: HSLFTextParagraph.getColorFromColorIndexStruct(tp.getValue(), parentParagraph.getSheet()); | |||||
} | } | ||||
/** | /** |
} | } | ||||
/** | /** | ||||
* @return the TextRun object for this text box | |||||
* @return the TextParagraphs for this text box | |||||
*/ | */ | ||||
public List<HSLFTextParagraph> getTextParagraphs(){ | public List<HSLFTextParagraph> getTextParagraphs(){ | ||||
if (!_paragraphs.isEmpty()) return _paragraphs; | if (!_paragraphs.isEmpty()) return _paragraphs; | ||||
_txtbox = _paragraphs.get(0).getTextboxWrapper(); | _txtbox = _paragraphs.get(0).getTextboxWrapper(); | ||||
} else { | } else { | ||||
_paragraphs = HSLFTextParagraph.findTextParagraphs(_txtbox, getSheet()); | _paragraphs = HSLFTextParagraph.findTextParagraphs(_txtbox, getSheet()); | ||||
if (_paragraphs == null || _paragraphs.isEmpty()) { | |||||
throw new RuntimeException("TextRecord didn't contained any text lines"); | |||||
if (_paragraphs == null) { | |||||
// there are actually TextBoxRecords without extra data - see #54722 | |||||
_paragraphs = HSLFTextParagraph.createEmptyParagraph(_txtbox); | |||||
} | |||||
if (_paragraphs.isEmpty()) { | |||||
logger.log(POILogger.WARN, "TextRecord didn't contained any text lines"); | |||||
} | } | ||||
// initParagraphsFromSheetRecords(); | // initParagraphsFromSheetRecords(); | ||||
// if (_paragraphs.isEmpty()) { | // if (_paragraphs.isEmpty()) { | ||||
// (We can't do it in the constructor because the sheet | // (We can't do it in the constructor because the sheet | ||||
// is not assigned then, it's only built once we have | // is not assigned then, it's only built once we have | ||||
// all the records) | // all the records) | ||||
for (HSLFTextParagraph htp : getTextParagraphs()) { | |||||
// Supply the sheet to our child RichTextRuns | |||||
htp.supplySheet(_sheet); | |||||
List<HSLFTextParagraph> paras = getTextParagraphs(); | |||||
if (paras != null) { | |||||
for (HSLFTextParagraph htp : paras) { | |||||
// Supply the sheet to our child RichTextRuns | |||||
htp.supplySheet(_sheet); | |||||
} | |||||
} | } | ||||
} | } | ||||
import org.apache.poi.sl.usermodel.*; | import org.apache.poi.sl.usermodel.*; | ||||
import org.apache.poi.sl.usermodel.TextParagraph.BulletStyle; | import org.apache.poi.sl.usermodel.TextParagraph.BulletStyle; | ||||
import org.apache.poi.sl.usermodel.TextRun.TextCap; | |||||
import org.apache.poi.sl.usermodel.TextParagraph.TextAlign; | import org.apache.poi.sl.usermodel.TextParagraph.TextAlign; | ||||
import org.apache.poi.sl.usermodel.TextRun.TextCap; | |||||
import org.apache.poi.util.Units; | |||||
public class DrawTextParagraph<T extends TextRun> implements Drawable { | public class DrawTextParagraph<T extends TextRun> implements Drawable { | ||||
protected TextParagraph<T> paragraph; | protected TextParagraph<T> paragraph; | ||||
protected List<DrawTextFragment> lines = new ArrayList<DrawTextFragment>(); | protected List<DrawTextFragment> lines = new ArrayList<DrawTextFragment>(); | ||||
protected String rawText; | protected String rawText; | ||||
protected DrawTextFragment bullet; | protected DrawTextFragment bullet; | ||||
protected int autoNbrIdx = 0; | |||||
/** | /** | ||||
* the highest line in this paragraph. Used for line spacing. | * the highest line in this paragraph. Used for line spacing. | ||||
public double getY() { | public double getY() { | ||||
return y; | return y; | ||||
} | } | ||||
/** | |||||
* Sets the auto numbering index of the handled paragraph | |||||
* @param index the auto numbering index | |||||
*/ | |||||
public void setAutoNumberingIdx(int index) { | |||||
autoNbrIdx = index; | |||||
} | |||||
public void draw(Graphics2D graphics){ | public void draw(Graphics2D graphics){ | ||||
if (lines.isEmpty()) return; | if (lines.isEmpty()) return; | ||||
double penY = y; | double penY = y; | ||||
boolean firstLine = true; | boolean firstLine = true; | ||||
int indentLevel = paragraph.getIndentLevel(); | |||||
Double leftMargin = paragraph.getLeftMargin(); | Double leftMargin = paragraph.getLeftMargin(); | ||||
Double indent = paragraph.getIndent(); | |||||
if (leftMargin == null) { | if (leftMargin == null) { | ||||
leftMargin = (indent != null) ? -indent : 0; | |||||
// if the marL attribute is omitted, then a value of 347663 is implied | |||||
leftMargin = Units.toPoints(347663*(indentLevel+1)); | |||||
} | } | ||||
Double indent = paragraph.getIndent(); | |||||
if (indent == null) { | if (indent == null) { | ||||
indent = (leftMargin != null) ? -leftMargin : 0; | |||||
indent = Units.toPoints(347663*indentLevel); | |||||
} | |||||
Double rightMargin = paragraph.getRightMargin(); | |||||
if (rightMargin == null) { | |||||
rightMargin = 0d; | |||||
} | } | ||||
//The vertical line spacing | //The vertical line spacing | ||||
Double spacing = paragraph.getLineSpacing(); | Double spacing = paragraph.getLineSpacing(); | ||||
if (spacing == null) spacing = 100d; | if (spacing == null) spacing = 100d; | ||||
for(DrawTextFragment line : lines){ | for(DrawTextFragment line : lines){ | ||||
double penX = x + leftMargin; | |||||
double penX; | |||||
if(firstLine) { | if(firstLine) { | ||||
if (!isEmptyParagraph()) { | if (!isEmptyParagraph()) { | ||||
// TODO: find out character style for empty, but bulleted/numbered lines | |||||
bullet = getBullet(graphics, line.getAttributedString().getIterator()); | bullet = getBullet(graphics, line.getAttributedString().getIterator()); | ||||
} | } | ||||
if(bullet != null){ | |||||
if (indent < 0) { | |||||
// a negative value means "Hanging" indentation and | |||||
// indicates the position of the actual bullet character. | |||||
// (the bullet is shifted to right relative to the text) | |||||
bullet.setPosition(penX + indent, penY); | |||||
} else if(indent > 0){ | |||||
// a positive value means the "First Line" indentation: | |||||
// the first line is indented and other lines start at the bullet offset | |||||
bullet.setPosition(penX, penY); | |||||
penX += indent; | |||||
} else { | |||||
// a zero indent means that the bullet and text have the same offset | |||||
bullet.setPosition(penX, penY); | |||||
// don't let text overlay the bullet and advance by the bullet width | |||||
penX += bullet.getLayout().getAdvance() + 1; | |||||
} | |||||
if (bullet != null){ | |||||
bullet.setPosition(x + indent, penY); | |||||
bullet.draw(graphics); | bullet.draw(graphics); | ||||
// don't let text overlay the bullet and advance by the bullet width | |||||
double bulletWidth = bullet.getLayout().getAdvance() + 1; | |||||
penX = x + Math.max(leftMargin, indent+bulletWidth); | |||||
} else { | } else { | ||||
penX += indent; | |||||
penX = x + indent; | |||||
} | } | ||||
} else { | |||||
penX = x + leftMargin; | |||||
} | } | ||||
Rectangle2D anchor = DrawShape.getAnchor(graphics, paragraph.getParentShape()); | Rectangle2D anchor = DrawShape.getAnchor(graphics, paragraph.getParentShape()); | ||||
// If linespacing >= 0, then linespacing is a percentage of normal line height. | // If linespacing >= 0, then linespacing is a percentage of normal line height. | ||||
penY += spacing*0.01* line.getHeight(); | penY += spacing*0.01* line.getHeight(); | ||||
} else { | } else { | ||||
// positive value means absolute spacing in points | |||||
// negative value means absolute spacing in points | |||||
penY += -spacing; | penY += -spacing; | ||||
} | } | ||||
BulletStyle bulletStyle = paragraph.getBulletStyle(); | BulletStyle bulletStyle = paragraph.getBulletStyle(); | ||||
if (bulletStyle == null) return null; | if (bulletStyle == null) return null; | ||||
String buCharacter = bulletStyle.getBulletCharacter(); | |||||
String buCharacter; | |||||
AutoNumberingScheme ans = bulletStyle.getAutoNumberingScheme(); | |||||
if (ans != null) { | |||||
buCharacter = ans.format(autoNbrIdx); | |||||
} else { | |||||
buCharacter = bulletStyle.getBulletCharacter(); | |||||
} | |||||
if (buCharacter == null) return null; | if (buCharacter == null) return null; | ||||
String buFont = bulletStyle.getBulletFont(); | String buFont = bulletStyle.getBulletFont(); | ||||
Rectangle2D anchor = DrawShape.getAnchor(graphics, paragraph.getParentShape()); | Rectangle2D anchor = DrawShape.getAnchor(graphics, paragraph.getParentShape()); | ||||
int indentLevel = paragraph.getIndentLevel(); | |||||
Double leftMargin = paragraph.getLeftMargin(); | Double leftMargin = paragraph.getLeftMargin(); | ||||
Double indent = paragraph.getIndent(); | |||||
if (leftMargin == null) { | if (leftMargin == null) { | ||||
leftMargin = (indent != null) ? -indent : 0; | |||||
// if the marL attribute is omitted, then a value of 347663 is implied | |||||
leftMargin = Units.toPoints(347663*(indentLevel+1)); | |||||
} | } | ||||
Double indent = paragraph.getIndent(); | |||||
if (indent == null) { | if (indent == null) { | ||||
indent = (leftMargin != null) ? -leftMargin : 0; | |||||
indent = Units.toPoints(347663*indentLevel); | |||||
} | |||||
Double rightMargin = paragraph.getRightMargin(); | |||||
if (rightMargin == null) { | |||||
rightMargin = 0d; | |||||
} | } | ||||
double width; | double width; | ||||
// if wordWrap == false then we return the advance to the right border of the sheet | // if wordWrap == false then we return the advance to the right border of the sheet | ||||
width = ts.getSheet().getSlideShow().getPageSize().getWidth() - anchor.getX(); | width = ts.getSheet().getSlideShow().getPageSize().getWidth() - anchor.getX(); | ||||
} else { | } else { | ||||
width = anchor.getWidth() - leftInset - rightInset - leftMargin; | |||||
width = anchor.getWidth() - leftInset - rightInset - leftMargin - rightMargin; | |||||
if (firstLine) { | if (firstLine) { | ||||
if (bullet != null){ | if (bullet != null){ | ||||
if (indent > 0) width -= indent; | if (indent > 0) width -= indent; |
import java.util.Iterator; | import java.util.Iterator; | ||||
import org.apache.poi.sl.usermodel.*; | import org.apache.poi.sl.usermodel.*; | ||||
import org.apache.poi.sl.usermodel.TextParagraph.BulletStyle; | |||||
public class DrawTextShape<T extends TextShape<? extends TextParagraph<? extends TextRun>>> extends DrawSimpleShape<T> { | public class DrawTextShape<T extends TextShape<? extends TextParagraph<? extends TextRun>>> extends DrawSimpleShape<T> { | ||||
Iterator<? extends TextParagraph<? extends TextRun>> paragraphs = shape.iterator(); | Iterator<? extends TextParagraph<? extends TextRun>> paragraphs = shape.iterator(); | ||||
boolean isFirstLine = true; | boolean isFirstLine = true; | ||||
while (paragraphs.hasNext()){ | |||||
for (int autoNbrIdx=0; paragraphs.hasNext(); autoNbrIdx++){ | |||||
TextParagraph<? extends TextRun> p = paragraphs.next(); | TextParagraph<? extends TextRun> p = paragraphs.next(); | ||||
DrawTextParagraph<? extends TextRun> dp = fact.getDrawable(p); | DrawTextParagraph<? extends TextRun> dp = fact.getDrawable(p); | ||||
BulletStyle bs = p.getBulletStyle(); | |||||
if (bs == null || bs.getAutoNumberingScheme() == null) { | |||||
autoNbrIdx = -1; | |||||
} else { | |||||
Integer startAt = bs.getAutoNumberingStartAt(); | |||||
if (startAt == null) startAt = 1; | |||||
// TODO: handle reset auto number indexes | |||||
if (startAt > autoNbrIdx) autoNbrIdx = startAt; | |||||
} | |||||
dp.setAutoNumberingIdx(autoNbrIdx); | |||||
dp.setInsets(shapePadding); | dp.setInsets(shapePadding); | ||||
dp.breakText(graphics); | dp.breakText(graphics); | ||||
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_AdjPoint2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_AdjPoint2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTAdjPoint2D | |||||
implements Locatable | |||||
{ | |||||
public class CTAdjPoint2D { | |||||
@XmlAttribute(name = "x", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected String x; | protected String x; | ||||
@XmlAttribute(name = "y", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected String y; | protected String y; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the x property. | * Gets the value of the x property. | ||||
return (this.y!= null); | return (this.y!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlElements; | import javax.xml.bind.annotation.XmlElements; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_AdjustHandleList", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_AdjustHandleList", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"ahXYOrAhPolar" | "ahXYOrAhPolar" | ||||
}) | }) | ||||
public class CTAdjustHandleList | |||||
implements Locatable | |||||
{ | |||||
public class CTAdjustHandleList { | |||||
@XmlElements({ | @XmlElements({ | ||||
@XmlElement(name = "ahXY", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTXYAdjustHandle.class), | |||||
@XmlElement(name = "ahPolar", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPolarAdjustHandle.class) | |||||
@XmlElement(name = "ahPolar", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPolarAdjustHandle.class), | |||||
@XmlElement(name = "ahXY", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTXYAdjustHandle.class) | |||||
}) | }) | ||||
protected List<Object> ahXYOrAhPolar; | protected List<Object> ahXYOrAhPolar; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the ahXYOrAhPolar property. | * Gets the value of the ahXYOrAhPolar property. | ||||
* | * | ||||
* <p> | * <p> | ||||
* Objects of the following type(s) are allowed in the list | * Objects of the following type(s) are allowed in the list | ||||
* {@link CTXYAdjustHandle } | |||||
* {@link CTPolarAdjustHandle } | * {@link CTPolarAdjustHandle } | ||||
* {@link CTXYAdjustHandle } | |||||
* | * | ||||
* | * | ||||
*/ | */ | ||||
this.ahXYOrAhPolar = null; | this.ahXYOrAhPolar = null; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_Angle", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_Angle", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTAngle implements Locatable | |||||
{ | |||||
public class CTAngle { | |||||
@XmlAttribute(name = "val", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected int val; | protected int val; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the val property. | * Gets the value of the val property. | ||||
return true; | return true; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
"schemeClr", | "schemeClr", | ||||
"prstClr" | "prstClr" | ||||
}) | }) | ||||
public class CTColor | |||||
implements Locatable | |||||
{ | |||||
public class CTColor { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
protected CTScRgbColor scrgbClr; | protected CTScRgbColor scrgbClr; | ||||
protected CTSchemeColor schemeClr; | protected CTSchemeColor schemeClr; | ||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
protected CTPresetColor prstClr; | protected CTPresetColor prstClr; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the scrgbClr property. | * Gets the value of the scrgbClr property. | ||||
return (this.prstClr!= null); | return (this.prstClr!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlElements; | import javax.xml.bind.annotation.XmlElements; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_ColorMRU", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_ColorMRU", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"egColorChoice" | "egColorChoice" | ||||
}) | }) | ||||
public class CTColorMRU | |||||
implements Locatable | |||||
{ | |||||
public class CTColorMRU { | |||||
@XmlElements({ | @XmlElements({ | ||||
@XmlElement(name = "scrgbClr", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTScRgbColor.class), | |||||
@XmlElement(name = "srgbClr", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTSRgbColor.class), | |||||
@XmlElement(name = "hslClr", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTHslColor.class), | @XmlElement(name = "hslClr", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTHslColor.class), | ||||
@XmlElement(name = "sysClr", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTSystemColor.class), | |||||
@XmlElement(name = "srgbClr", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTSRgbColor.class), | |||||
@XmlElement(name = "schemeClr", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTSchemeColor.class), | @XmlElement(name = "schemeClr", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTSchemeColor.class), | ||||
@XmlElement(name = "prstClr", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPresetColor.class) | |||||
@XmlElement(name = "scrgbClr", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTScRgbColor.class), | |||||
@XmlElement(name = "prstClr", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPresetColor.class), | |||||
@XmlElement(name = "sysClr", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTSystemColor.class) | |||||
}) | }) | ||||
protected List<Object> egColorChoice; | protected List<Object> egColorChoice; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the egColorChoice property. | * Gets the value of the egColorChoice property. | ||||
* | * | ||||
* <p> | * <p> | ||||
* Objects of the following type(s) are allowed in the list | * Objects of the following type(s) are allowed in the list | ||||
* {@link CTScRgbColor } | |||||
* {@link CTSRgbColor } | |||||
* {@link CTHslColor } | * {@link CTHslColor } | ||||
* {@link CTSystemColor } | |||||
* {@link CTSRgbColor } | |||||
* {@link CTSchemeColor } | * {@link CTSchemeColor } | ||||
* {@link CTScRgbColor } | |||||
* {@link CTPresetColor } | * {@link CTPresetColor } | ||||
* {@link CTSystemColor } | |||||
* | * | ||||
* | * | ||||
*/ | */ | ||||
this.egColorChoice = null; | this.egColorChoice = null; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_ComplementTransform", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_ComplementTransform", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTComplementTransform implements Locatable | |||||
{ | |||||
public class CTComplementTransform { | |||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlSchemaType; | import javax.xml.bind.annotation.XmlSchemaType; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_Connection", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_Connection", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTConnection | |||||
implements Locatable | |||||
{ | |||||
public class CTConnection { | |||||
@XmlAttribute(name = "id", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected long id; | protected long id; | ||||
@XmlAttribute(name = "idx", required = true) | |||||
@XmlAttribute(required = true) | |||||
@XmlSchemaType(name = "unsignedInt") | @XmlSchemaType(name = "unsignedInt") | ||||
protected long idx; | protected long idx; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the id property. | * Gets the value of the id property. | ||||
return true; | return true; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_ConnectionSite", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_ConnectionSite", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"pos" | "pos" | ||||
}) | }) | ||||
public class CTConnectionSite | |||||
implements Locatable | |||||
{ | |||||
public class CTConnectionSite { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | ||||
protected CTAdjPoint2D pos; | protected CTAdjPoint2D pos; | ||||
@XmlAttribute(name = "ang", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected String ang; | protected String ang; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the pos property. | * Gets the value of the pos property. | ||||
return (this.ang!= null); | return (this.ang!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_ConnectionSiteList", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_ConnectionSiteList", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"cxn" | "cxn" | ||||
}) | }) | ||||
public class CTConnectionSiteList | |||||
implements Locatable | |||||
{ | |||||
public class CTConnectionSiteList { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
protected List<CTConnectionSite> cxn; | protected List<CTConnectionSite> cxn; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the cxn property. | * Gets the value of the cxn property. | ||||
this.cxn = null; | this.cxn = null; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
"rect", | "rect", | ||||
"pathLst" | "pathLst" | ||||
}) | }) | ||||
public class CTCustomGeometry2D | |||||
implements Locatable | |||||
{ | |||||
public class CTCustomGeometry2D { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
protected CTGeomGuideList avLst; | protected CTGeomGuideList avLst; | ||||
protected CTGeomRect rect; | protected CTGeomRect rect; | ||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | ||||
protected CTPath2DList pathLst; | protected CTPath2DList pathLst; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the avLst property. | * Gets the value of the avLst property. | ||||
return (this.pathLst!= null); | return (this.pathLst!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_EmbeddedWAVAudioFile", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_EmbeddedWAVAudioFile", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTEmbeddedWAVAudioFile | |||||
implements Locatable | |||||
{ | |||||
public class CTEmbeddedWAVAudioFile { | |||||
@XmlAttribute(name = "embed", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) | |||||
@XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) | |||||
protected String embed; | protected String embed; | ||||
@XmlAttribute(name = "name") | |||||
@XmlAttribute | |||||
protected String name; | protected String name; | ||||
@XmlAttribute(name = "builtIn") | |||||
@XmlAttribute | |||||
protected Boolean builtIn; | protected Boolean builtIn; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Embedded Audio File Relationship ID | * Embedded Audio File Relationship ID | ||||
this.builtIn = null; | this.builtIn = null; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_FixedPercentage", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_FixedPercentage", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTFixedPercentage implements Locatable | |||||
{ | |||||
public class CTFixedPercentage { | |||||
@XmlAttribute(name = "val", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected int val; | protected int val; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the val property. | * Gets the value of the val property. | ||||
return true; | return true; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_GammaTransform", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_GammaTransform", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTGammaTransform implements Locatable | |||||
{ | |||||
public class CTGammaTransform { | |||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; | ||||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_GeomGuide", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_GeomGuide", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTGeomGuide | |||||
implements Locatable | |||||
{ | |||||
public class CTGeomGuide { | |||||
@XmlAttribute(name = "name", required = true) | |||||
@XmlAttribute(required = true) | |||||
@XmlJavaTypeAdapter(CollapsedStringAdapter.class) | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) | ||||
protected String name; | protected String name; | ||||
@XmlAttribute(name = "fmla", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected String fmla; | protected String fmla; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the name property. | * Gets the value of the name property. | ||||
return (this.fmla!= null); | return (this.fmla!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_GeomGuideList", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_GeomGuideList", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"gd" | "gd" | ||||
}) | }) | ||||
public class CTGeomGuideList | |||||
implements Locatable | |||||
{ | |||||
public class CTGeomGuideList { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
protected List<CTGeomGuide> gd; | protected List<CTGeomGuide> gd; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the gd property. | * Gets the value of the gd property. | ||||
this.gd = null; | this.gd = null; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_GeomRect", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_GeomRect", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTGeomRect | |||||
implements Locatable | |||||
{ | |||||
public class CTGeomRect { | |||||
@XmlAttribute(name = "l", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected String l; | protected String l; | ||||
@XmlAttribute(name = "t", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected String t; | protected String t; | ||||
@XmlAttribute(name = "r", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected String r; | protected String r; | ||||
@XmlAttribute(name = "b", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected String b; | protected String b; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the l property. | * Gets the value of the l property. | ||||
return (this.b!= null); | return (this.b!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_GrayscaleTransform", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_GrayscaleTransform", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTGrayscaleTransform implements Locatable | |||||
{ | |||||
public class CTGrayscaleTransform { | |||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
"chOff", | "chOff", | ||||
"chExt" | "chExt" | ||||
}) | }) | ||||
public class CTGroupTransform2D | |||||
implements Locatable | |||||
{ | |||||
public class CTGroupTransform2D { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
protected CTPoint2D off; | protected CTPoint2D off; | ||||
protected CTPoint2D chOff; | protected CTPoint2D chOff; | ||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
protected CTPositiveSize2D chExt; | protected CTPositiveSize2D chExt; | ||||
@XmlAttribute(name = "rot") | |||||
@XmlAttribute | |||||
protected Integer rot; | protected Integer rot; | ||||
@XmlAttribute(name = "flipH") | |||||
@XmlAttribute | |||||
protected Boolean flipH; | protected Boolean flipH; | ||||
@XmlAttribute(name = "flipV") | |||||
@XmlAttribute | |||||
protected Boolean flipV; | protected Boolean flipV; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the off property. | * Gets the value of the off property. | ||||
this.flipV = null; | this.flipV = null; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlElementRef; | import javax.xml.bind.annotation.XmlElementRef; | ||||
import javax.xml.bind.annotation.XmlElementRefs; | import javax.xml.bind.annotation.XmlElementRefs; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_HslColor", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_HslColor", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"egColorTransform" | "egColorTransform" | ||||
}) | }) | ||||
public class CTHslColor implements Locatable | |||||
{ | |||||
public class CTHslColor { | |||||
@XmlElementRefs({ | @XmlElementRefs({ | ||||
@XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false) | |||||
@XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class) | |||||
}) | }) | ||||
protected List<JAXBElement<?>> egColorTransform; | protected List<JAXBElement<?>> egColorTransform; | ||||
@XmlAttribute(name = "hue", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected int hue; | protected int hue; | ||||
@XmlAttribute(name = "sat", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected int sat; | protected int sat; | ||||
@XmlAttribute(name = "lum", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected int lum; | protected int lum; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the egColorTransform property. | * Gets the value of the egColorTransform property. | ||||
* | * | ||||
* <p> | * <p> | ||||
* Objects of the following type(s) are allowed in the list | * Objects of the following type(s) are allowed in the list | ||||
* {@link JAXBElement }{@code <}{@link CTAngle }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >} | * {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTAngle }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >} | |||||
* | * | ||||
* | * | ||||
*/ | */ | ||||
return true; | return true; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
"snd", | "snd", | ||||
"extLst" | "extLst" | ||||
}) | }) | ||||
public class CTHyperlink | |||||
implements Locatable | |||||
{ | |||||
public class CTHyperlink { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
protected CTEmbeddedWAVAudioFile snd; | protected CTEmbeddedWAVAudioFile snd; | ||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
protected CTOfficeArtExtensionList extLst; | protected CTOfficeArtExtensionList extLst; | ||||
@XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") | |||||
@XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") | |||||
protected String id; | protected String id; | ||||
@XmlAttribute(name = "invalidUrl") | |||||
@XmlAttribute | |||||
protected String invalidUrl; | protected String invalidUrl; | ||||
@XmlAttribute(name = "action") | |||||
@XmlAttribute | |||||
protected String action; | protected String action; | ||||
@XmlAttribute(name = "tgtFrame") | |||||
@XmlAttribute | |||||
protected String tgtFrame; | protected String tgtFrame; | ||||
@XmlAttribute(name = "tooltip") | |||||
@XmlAttribute | |||||
protected String tooltip; | protected String tooltip; | ||||
@XmlAttribute(name = "history") | |||||
@XmlAttribute | |||||
protected Boolean history; | protected Boolean history; | ||||
@XmlAttribute(name = "highlightClick") | |||||
@XmlAttribute | |||||
protected Boolean highlightClick; | protected Boolean highlightClick; | ||||
@XmlAttribute(name = "endSnd") | |||||
@XmlAttribute | |||||
protected Boolean endSnd; | protected Boolean endSnd; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the snd property. | * Gets the value of the snd property. | ||||
this.endSnd = null; | this.endSnd = null; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_InverseGammaTransform", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_InverseGammaTransform", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTInverseGammaTransform implements Locatable | |||||
{ | |||||
public class CTInverseGammaTransform { | |||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_InverseTransform", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_InverseTransform", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTInverseTransform implements Locatable | |||||
{ | |||||
public class CTInverseTransform { | |||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAnyElement; | import javax.xml.bind.annotation.XmlAnyElement; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlSchemaType; | import javax.xml.bind.annotation.XmlSchemaType; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; | ||||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.w3c.dom.Element; | import org.w3c.dom.Element; | ||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_OfficeArtExtension", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_OfficeArtExtension", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"any" | "any" | ||||
}) | }) | ||||
public class CTOfficeArtExtension | |||||
implements Locatable | |||||
{ | |||||
public class CTOfficeArtExtension { | |||||
@XmlAnyElement(lax = true) | @XmlAnyElement(lax = true) | ||||
protected Object any; | protected Object any; | ||||
@XmlAttribute(name = "uri") | |||||
@XmlAttribute | |||||
@XmlJavaTypeAdapter(CollapsedStringAdapter.class) | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) | ||||
@XmlSchemaType(name = "token") | @XmlSchemaType(name = "token") | ||||
protected String uri; | protected String uri; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the any property. | * Gets the value of the any property. | ||||
* | * | ||||
* @return | * @return | ||||
* possible object is | * possible object is | ||||
* {@link Object } | |||||
* {@link Element } | * {@link Element } | ||||
* {@link Object } | |||||
* | * | ||||
*/ | */ | ||||
public Object getAny() { | public Object getAny() { | ||||
* | * | ||||
* @param value | * @param value | ||||
* allowed object is | * allowed object is | ||||
* {@link Object } | |||||
* {@link Element } | * {@link Element } | ||||
* {@link Object } | |||||
* | * | ||||
*/ | */ | ||||
public void setAny(Object value) { | public void setAny(Object value) { | ||||
return (this.uri!= null); | return (this.uri!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_OfficeArtExtensionList", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_OfficeArtExtensionList", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"ext" | "ext" | ||||
}) | }) | ||||
public class CTOfficeArtExtensionList | |||||
implements Locatable | |||||
{ | |||||
public class CTOfficeArtExtensionList { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
protected List<CTOfficeArtExtension> ext; | protected List<CTOfficeArtExtension> ext; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the ext property. | * Gets the value of the ext property. | ||||
this.ext = null; | this.ext = null; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlElements; | import javax.xml.bind.annotation.XmlElements; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_Path2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_Path2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"closeOrMoveToOrLnTo" | "closeOrMoveToOrLnTo" | ||||
}) | }) | ||||
public class CTPath2D | |||||
implements Locatable | |||||
{ | |||||
public class CTPath2D { | |||||
@XmlElements({ | @XmlElements({ | ||||
@XmlElement(name = "close", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPath2DClose.class), | |||||
@XmlElement(name = "moveTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPath2DMoveTo.class), | @XmlElement(name = "moveTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPath2DMoveTo.class), | ||||
@XmlElement(name = "lnTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPath2DLineTo.class), | |||||
@XmlElement(name = "arcTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPath2DArcTo.class), | |||||
@XmlElement(name = "quadBezTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPath2DQuadBezierTo.class), | @XmlElement(name = "quadBezTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPath2DQuadBezierTo.class), | ||||
@XmlElement(name = "cubicBezTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPath2DCubicBezierTo.class) | |||||
@XmlElement(name = "cubicBezTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPath2DCubicBezierTo.class), | |||||
@XmlElement(name = "arcTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPath2DArcTo.class), | |||||
@XmlElement(name = "lnTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPath2DLineTo.class), | |||||
@XmlElement(name = "close", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPath2DClose.class) | |||||
}) | }) | ||||
protected List<Object> closeOrMoveToOrLnTo; | protected List<Object> closeOrMoveToOrLnTo; | ||||
@XmlAttribute(name = "w") | |||||
@XmlAttribute | |||||
protected Long w; | protected Long w; | ||||
@XmlAttribute(name = "h") | |||||
@XmlAttribute | |||||
protected Long h; | protected Long h; | ||||
@XmlAttribute(name = "fill") | |||||
@XmlAttribute | |||||
protected STPathFillMode fill; | protected STPathFillMode fill; | ||||
@XmlAttribute(name = "stroke") | |||||
@XmlAttribute | |||||
protected Boolean stroke; | protected Boolean stroke; | ||||
@XmlAttribute(name = "extrusionOk") | |||||
@XmlAttribute | |||||
protected Boolean extrusionOk; | protected Boolean extrusionOk; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the closeOrMoveToOrLnTo property. | * Gets the value of the closeOrMoveToOrLnTo property. | ||||
* | * | ||||
* <p> | * <p> | ||||
* Objects of the following type(s) are allowed in the list | * Objects of the following type(s) are allowed in the list | ||||
* {@link CTPath2DClose } | |||||
* {@link CTPath2DMoveTo } | * {@link CTPath2DMoveTo } | ||||
* {@link CTPath2DLineTo } | |||||
* {@link CTPath2DArcTo } | |||||
* {@link CTPath2DQuadBezierTo } | * {@link CTPath2DQuadBezierTo } | ||||
* {@link CTPath2DCubicBezierTo } | * {@link CTPath2DCubicBezierTo } | ||||
* {@link CTPath2DArcTo } | |||||
* {@link CTPath2DLineTo } | |||||
* {@link CTPath2DClose } | |||||
* | * | ||||
* | * | ||||
*/ | */ | ||||
this.extrusionOk = null; | this.extrusionOk = null; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_Path2DArcTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_Path2DArcTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTPath2DArcTo implements Locatable | |||||
{ | |||||
public class CTPath2DArcTo { | |||||
@XmlAttribute(name = "wR", required = true) | @XmlAttribute(name = "wR", required = true) | ||||
protected String wr; | protected String wr; | ||||
@XmlAttribute(name = "hR", required = true) | @XmlAttribute(name = "hR", required = true) | ||||
protected String hr; | protected String hr; | ||||
@XmlAttribute(name = "stAng", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected String stAng; | protected String stAng; | ||||
@XmlAttribute(name = "swAng", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected String swAng; | protected String swAng; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the wr property. | * Gets the value of the wr property. | ||||
return (this.swAng!= null); | return (this.swAng!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_Path2DClose", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_Path2DClose", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTPath2DClose implements Locatable | |||||
{ | |||||
public class CTPath2DClose { | |||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_Path2DCubicBezierTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_Path2DCubicBezierTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"pt" | "pt" | ||||
}) | }) | ||||
public class CTPath2DCubicBezierTo implements Locatable | |||||
{ | |||||
public class CTPath2DCubicBezierTo { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | ||||
protected List<CTAdjPoint2D> pt; | protected List<CTAdjPoint2D> pt; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the pt property. | * Gets the value of the pt property. | ||||
this.pt = null; | this.pt = null; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_Path2DLineTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_Path2DLineTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"pt" | "pt" | ||||
}) | }) | ||||
public class CTPath2DLineTo implements Locatable | |||||
{ | |||||
public class CTPath2DLineTo { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | ||||
protected CTAdjPoint2D pt; | protected CTAdjPoint2D pt; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the pt property. | * Gets the value of the pt property. | ||||
return (this.pt!= null); | return (this.pt!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_Path2DList", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_Path2DList", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"path" | "path" | ||||
}) | }) | ||||
public class CTPath2DList | |||||
implements Locatable | |||||
{ | |||||
public class CTPath2DList { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
protected List<CTPath2D> path; | protected List<CTPath2D> path; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the path property. | * Gets the value of the path property. | ||||
this.path = null; | this.path = null; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_Path2DMoveTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_Path2DMoveTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"pt" | "pt" | ||||
}) | }) | ||||
public class CTPath2DMoveTo implements Locatable | |||||
{ | |||||
public class CTPath2DMoveTo { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | ||||
protected CTAdjPoint2D pt; | protected CTAdjPoint2D pt; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the pt property. | * Gets the value of the pt property. | ||||
return (this.pt!= null); | return (this.pt!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_Path2DQuadBezierTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_Path2DQuadBezierTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"pt" | "pt" | ||||
}) | }) | ||||
public class CTPath2DQuadBezierTo implements Locatable | |||||
{ | |||||
public class CTPath2DQuadBezierTo { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | ||||
protected List<CTAdjPoint2D> pt; | protected List<CTAdjPoint2D> pt; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the pt property. | * Gets the value of the pt property. | ||||
this.pt = null; | this.pt = null; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_Percentage", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_Percentage", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTPercentage implements Locatable | |||||
{ | |||||
public class CTPercentage { | |||||
@XmlAttribute(name = "val", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected int val; | protected int val; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the val property. | * Gets the value of the val property. | ||||
return true; | return true; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_Point2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_Point2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTPoint2D | |||||
implements Locatable | |||||
{ | |||||
public class CTPoint2D { | |||||
@XmlAttribute(name = "x", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected long x; | protected long x; | ||||
@XmlAttribute(name = "y", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected long y; | protected long y; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the x property. | * Gets the value of the x property. | ||||
return true; | return true; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_Point3D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_Point3D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTPoint3D | |||||
implements Locatable | |||||
{ | |||||
public class CTPoint3D { | |||||
@XmlAttribute(name = "x", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected long x; | protected long x; | ||||
@XmlAttribute(name = "y", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected long y; | protected long y; | ||||
@XmlAttribute(name = "z", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected long z; | protected long z; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the x property. | * Gets the value of the x property. | ||||
return true; | return true; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; | ||||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_PolarAdjustHandle", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_PolarAdjustHandle", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"pos" | "pos" | ||||
}) | }) | ||||
public class CTPolarAdjustHandle implements Locatable | |||||
{ | |||||
public class CTPolarAdjustHandle { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | ||||
protected CTAdjPoint2D pos; | protected CTAdjPoint2D pos; | ||||
@XmlAttribute(name = "gdRefR") | |||||
@XmlAttribute | |||||
@XmlJavaTypeAdapter(CollapsedStringAdapter.class) | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) | ||||
protected String gdRefR; | protected String gdRefR; | ||||
@XmlAttribute(name = "minR") | |||||
@XmlAttribute | |||||
protected String minR; | protected String minR; | ||||
@XmlAttribute(name = "maxR") | |||||
@XmlAttribute | |||||
protected String maxR; | protected String maxR; | ||||
@XmlAttribute(name = "gdRefAng") | |||||
@XmlAttribute | |||||
@XmlJavaTypeAdapter(CollapsedStringAdapter.class) | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) | ||||
protected String gdRefAng; | protected String gdRefAng; | ||||
@XmlAttribute(name = "minAng") | |||||
@XmlAttribute | |||||
protected String minAng; | protected String minAng; | ||||
@XmlAttribute(name = "maxAng") | |||||
@XmlAttribute | |||||
protected String maxAng; | protected String maxAng; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the pos property. | * Gets the value of the pos property. | ||||
return (this.maxAng!= null); | return (this.maxAng!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_PositiveFixedAngle", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_PositiveFixedAngle", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTPositiveFixedAngle implements Locatable | |||||
{ | |||||
public class CTPositiveFixedAngle { | |||||
@XmlAttribute(name = "val", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected int val; | protected int val; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the val property. | * Gets the value of the val property. | ||||
return true; | return true; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_PositiveFixedPercentage", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_PositiveFixedPercentage", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTPositiveFixedPercentage implements Locatable | |||||
{ | |||||
public class CTPositiveFixedPercentage { | |||||
@XmlAttribute(name = "val", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected int val; | protected int val; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the val property. | * Gets the value of the val property. | ||||
return true; | return true; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_PositivePercentage", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_PositivePercentage", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTPositivePercentage implements Locatable | |||||
{ | |||||
public class CTPositivePercentage { | |||||
@XmlAttribute(name = "val", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected int val; | protected int val; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the val property. | * Gets the value of the val property. | ||||
return true; | return true; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_PositiveSize2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_PositiveSize2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTPositiveSize2D | |||||
implements Locatable | |||||
{ | |||||
public class CTPositiveSize2D { | |||||
@XmlAttribute(name = "cx", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected long cx; | protected long cx; | ||||
@XmlAttribute(name = "cy", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected long cy; | protected long cy; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the cx property. | * Gets the value of the cx property. | ||||
return true; | return true; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlElementRef; | import javax.xml.bind.annotation.XmlElementRef; | ||||
import javax.xml.bind.annotation.XmlElementRefs; | import javax.xml.bind.annotation.XmlElementRefs; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_PresetColor", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_PresetColor", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"egColorTransform" | "egColorTransform" | ||||
}) | }) | ||||
public class CTPresetColor implements Locatable | |||||
{ | |||||
public class CTPresetColor { | |||||
@XmlElementRefs({ | @XmlElementRefs({ | ||||
@XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false) | |||||
@XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class) | |||||
}) | }) | ||||
protected List<JAXBElement<?>> egColorTransform; | protected List<JAXBElement<?>> egColorTransform; | ||||
@XmlAttribute(name = "val") | |||||
@XmlAttribute | |||||
protected STPresetColorVal val; | protected STPresetColorVal val; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the egColorTransform property. | * Gets the value of the egColorTransform property. | ||||
* | * | ||||
* <p> | * <p> | ||||
* Objects of the following type(s) are allowed in the list | * Objects of the following type(s) are allowed in the list | ||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >} | * {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >} | * {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTAngle }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTAngle }{@code >} | |||||
* | * | ||||
* | * | ||||
*/ | */ | ||||
return (this.val!= null); | return (this.val!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_PresetGeometry2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_PresetGeometry2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"avLst" | "avLst" | ||||
}) | }) | ||||
public class CTPresetGeometry2D | |||||
implements Locatable | |||||
{ | |||||
public class CTPresetGeometry2D { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
protected CTGeomGuideList avLst; | protected CTGeomGuideList avLst; | ||||
@XmlAttribute(name = "prst", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected STShapeType prst; | protected STShapeType prst; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the avLst property. | * Gets the value of the avLst property. | ||||
return (this.prst!= null); | return (this.prst!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_PresetTextShape", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_PresetTextShape", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"avLst" | "avLst" | ||||
}) | }) | ||||
public class CTPresetTextShape | |||||
implements Locatable | |||||
{ | |||||
public class CTPresetTextShape { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
protected CTGeomGuideList avLst; | protected CTGeomGuideList avLst; | ||||
@XmlAttribute(name = "prst", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected STTextShapeType prst; | protected STTextShapeType prst; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the avLst property. | * Gets the value of the avLst property. | ||||
return (this.prst!= null); | return (this.prst!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_Ratio", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_Ratio", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTRatio | |||||
implements Locatable | |||||
{ | |||||
public class CTRatio { | |||||
@XmlAttribute(name = "n", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected long n; | protected long n; | ||||
@XmlAttribute(name = "d", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected long d; | protected long d; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the n property. | * Gets the value of the n property. | ||||
return true; | return true; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_RelativeRect", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_RelativeRect", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTRelativeRect | |||||
implements Locatable | |||||
{ | |||||
public class CTRelativeRect { | |||||
@XmlAttribute(name = "l") | |||||
@XmlAttribute | |||||
protected Integer l; | protected Integer l; | ||||
@XmlAttribute(name = "t") | |||||
@XmlAttribute | |||||
protected Integer t; | protected Integer t; | ||||
@XmlAttribute(name = "r") | |||||
@XmlAttribute | |||||
protected Integer r; | protected Integer r; | ||||
@XmlAttribute(name = "b") | |||||
@XmlAttribute | |||||
protected Integer b; | protected Integer b; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the l property. | * Gets the value of the l property. | ||||
this.b = null; | this.b = null; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlElementRef; | import javax.xml.bind.annotation.XmlElementRef; | ||||
import javax.xml.bind.annotation.XmlElementRefs; | import javax.xml.bind.annotation.XmlElementRefs; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import javax.xml.bind.annotation.adapters.HexBinaryAdapter; | import javax.xml.bind.annotation.adapters.HexBinaryAdapter; | ||||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_SRgbColor", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_SRgbColor", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"egColorTransform" | "egColorTransform" | ||||
}) | }) | ||||
public class CTSRgbColor implements Locatable | |||||
{ | |||||
public class CTSRgbColor { | |||||
@XmlElementRefs({ | @XmlElementRefs({ | ||||
@XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false) | |||||
@XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class) | |||||
}) | }) | ||||
protected List<JAXBElement<?>> egColorTransform; | protected List<JAXBElement<?>> egColorTransform; | ||||
@XmlAttribute(name = "val", required = true) | |||||
@XmlAttribute(required = true) | |||||
@XmlJavaTypeAdapter(HexBinaryAdapter.class) | @XmlJavaTypeAdapter(HexBinaryAdapter.class) | ||||
protected byte[] val; | protected byte[] val; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the egColorTransform property. | * Gets the value of the egColorTransform property. | ||||
* | * | ||||
* <p> | * <p> | ||||
* Objects of the following type(s) are allowed in the list | * Objects of the following type(s) are allowed in the list | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTAngle }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTAngle }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >} | * {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* | * | ||||
* | * | ||||
* | * | ||||
*/ | */ | ||||
public void setVal(byte[] value) { | public void setVal(byte[] value) { | ||||
this.val = value; | |||||
this.val = ((byte[]) value); | |||||
} | } | ||||
public boolean isSetVal() { | public boolean isSetVal() { | ||||
return (this.val!= null); | return (this.val!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlElementRef; | import javax.xml.bind.annotation.XmlElementRef; | ||||
import javax.xml.bind.annotation.XmlElementRefs; | import javax.xml.bind.annotation.XmlElementRefs; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_ScRgbColor", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_ScRgbColor", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"egColorTransform" | "egColorTransform" | ||||
}) | }) | ||||
public class CTScRgbColor implements Locatable | |||||
{ | |||||
public class CTScRgbColor { | |||||
@XmlElementRefs({ | @XmlElementRefs({ | ||||
@XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false) | |||||
@XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class) | |||||
}) | }) | ||||
protected List<JAXBElement<?>> egColorTransform; | protected List<JAXBElement<?>> egColorTransform; | ||||
@XmlAttribute(name = "r", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected int r; | protected int r; | ||||
@XmlAttribute(name = "g", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected int g; | protected int g; | ||||
@XmlAttribute(name = "b", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected int b; | protected int b; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the egColorTransform property. | * Gets the value of the egColorTransform property. | ||||
* <p> | * <p> | ||||
* Objects of the following type(s) are allowed in the list | * Objects of the following type(s) are allowed in the list | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTAngle }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTAngle }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | |||||
* | * | ||||
* | * | ||||
*/ | */ | ||||
return true; | return true; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
"sx", | "sx", | ||||
"sy" | "sy" | ||||
}) | }) | ||||
public class CTScale2D | |||||
implements Locatable | |||||
{ | |||||
public class CTScale2D { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | ||||
protected CTRatio sx; | protected CTRatio sx; | ||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | ||||
protected CTRatio sy; | protected CTRatio sy; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the sx property. | * Gets the value of the sx property. | ||||
return (this.sy!= null); | return (this.sy!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlElementRef; | import javax.xml.bind.annotation.XmlElementRef; | ||||
import javax.xml.bind.annotation.XmlElementRefs; | import javax.xml.bind.annotation.XmlElementRefs; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_SchemeColor", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_SchemeColor", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"egColorTransform" | "egColorTransform" | ||||
}) | }) | ||||
public class CTSchemeColor implements Locatable | |||||
{ | |||||
public class CTSchemeColor { | |||||
@XmlElementRefs({ | @XmlElementRefs({ | ||||
@XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false) | |||||
@XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class) | |||||
}) | }) | ||||
protected List<JAXBElement<?>> egColorTransform; | protected List<JAXBElement<?>> egColorTransform; | ||||
@XmlAttribute(name = "val", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected STSchemeColorVal val; | protected STSchemeColorVal val; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the egColorTransform property. | * Gets the value of the egColorTransform property. | ||||
* <p> | * <p> | ||||
* Objects of the following type(s) are allowed in the list | * Objects of the following type(s) are allowed in the list | ||||
* {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >} | * {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTAngle }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >} | * {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTAngle }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* | * | ||||
* | * | ||||
return (this.val!= null); | return (this.val!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_SphereCoords", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_SphereCoords", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTSphereCoords | |||||
implements Locatable | |||||
{ | |||||
public class CTSphereCoords { | |||||
@XmlAttribute(name = "lat", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected int lat; | protected int lat; | ||||
@XmlAttribute(name = "lon", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected int lon; | protected int lon; | ||||
@XmlAttribute(name = "rev", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected int rev; | protected int rev; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the lat property. | * Gets the value of the lat property. | ||||
return true; | return true; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlElementRef; | import javax.xml.bind.annotation.XmlElementRef; | ||||
import javax.xml.bind.annotation.XmlElementRefs; | import javax.xml.bind.annotation.XmlElementRefs; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; | ||||
import javax.xml.bind.annotation.adapters.HexBinaryAdapter; | import javax.xml.bind.annotation.adapters.HexBinaryAdapter; | ||||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_SystemColor", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_SystemColor", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"egColorTransform" | "egColorTransform" | ||||
}) | }) | ||||
public class CTSystemColor implements Locatable | |||||
{ | |||||
public class CTSystemColor { | |||||
@XmlElementRefs({ | @XmlElementRefs({ | ||||
@XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false), | |||||
@XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class, required = false) | |||||
@XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class), | |||||
@XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class) | |||||
}) | }) | ||||
protected List<JAXBElement<?>> egColorTransform; | protected List<JAXBElement<?>> egColorTransform; | ||||
@XmlAttribute(name = "val", required = true) | |||||
@XmlAttribute(required = true) | |||||
@XmlJavaTypeAdapter(CollapsedStringAdapter.class) | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) | ||||
protected String val; | protected String val; | ||||
@XmlAttribute(name = "lastClr") | |||||
@XmlAttribute | |||||
@XmlJavaTypeAdapter(HexBinaryAdapter.class) | @XmlJavaTypeAdapter(HexBinaryAdapter.class) | ||||
protected byte[] lastClr; | protected byte[] lastClr; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the egColorTransform property. | * Gets the value of the egColorTransform property. | ||||
* | * | ||||
* <p> | * <p> | ||||
* Objects of the following type(s) are allowed in the list | * Objects of the following type(s) are allowed in the list | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTAngle }{@code >} | * {@link JAXBElement }{@code <}{@link CTAngle }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >} | * {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | ||||
* {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >} | |||||
* {@link JAXBElement }{@code <}{@link CTPercentage }{@code >} | |||||
* | * | ||||
* | * | ||||
*/ | */ | ||||
* | * | ||||
*/ | */ | ||||
public void setLastClr(byte[] value) { | public void setLastClr(byte[] value) { | ||||
this.lastClr = value; | |||||
this.lastClr = ((byte[]) value); | |||||
} | } | ||||
public boolean isSetLastClr() { | public boolean isSetLastClr() { | ||||
return (this.lastClr!= null); | return (this.lastClr!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
"off", | "off", | ||||
"ext" | "ext" | ||||
}) | }) | ||||
public class CTTransform2D | |||||
implements Locatable | |||||
{ | |||||
public class CTTransform2D { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
protected CTPoint2D off; | protected CTPoint2D off; | ||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
protected CTPositiveSize2D ext; | protected CTPositiveSize2D ext; | ||||
@XmlAttribute(name = "rot") | |||||
@XmlAttribute | |||||
protected Integer rot; | protected Integer rot; | ||||
@XmlAttribute(name = "flipH") | |||||
@XmlAttribute | |||||
protected Boolean flipH; | protected Boolean flipH; | ||||
@XmlAttribute(name = "flipV") | |||||
@XmlAttribute | |||||
protected Boolean flipV; | protected Boolean flipV; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the off property. | * Gets the value of the off property. | ||||
this.flipV = null; | this.flipV = null; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessType; | ||||
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
*/ | */ | ||||
@XmlAccessorType(XmlAccessType.FIELD) | @XmlAccessorType(XmlAccessType.FIELD) | ||||
@XmlType(name = "CT_Vector3D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | @XmlType(name = "CT_Vector3D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main") | ||||
public class CTVector3D | |||||
implements Locatable | |||||
{ | |||||
public class CTVector3D { | |||||
@XmlAttribute(name = "dx", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected long dx; | protected long dx; | ||||
@XmlAttribute(name = "dy", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected long dy; | protected long dy; | ||||
@XmlAttribute(name = "dz", required = true) | |||||
@XmlAttribute(required = true) | |||||
protected long dz; | protected long dz; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the dx property. | * Gets the value of the dx property. | ||||
return true; | return true; | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessorType; | ||||
import javax.xml.bind.annotation.XmlAttribute; | import javax.xml.bind.annotation.XmlAttribute; | ||||
import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlElement; | ||||
import javax.xml.bind.annotation.XmlTransient; | |||||
import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlType; | ||||
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; | ||||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | ||||
import com.sun.xml.internal.bind.Locatable; | |||||
import com.sun.xml.internal.bind.annotation.XmlLocation; | |||||
import org.xml.sax.Locator; | |||||
/** | /** | ||||
@XmlType(name = "CT_XYAdjustHandle", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | @XmlType(name = "CT_XYAdjustHandle", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = { | ||||
"pos" | "pos" | ||||
}) | }) | ||||
public class CTXYAdjustHandle implements Locatable | |||||
{ | |||||
public class CTXYAdjustHandle { | |||||
@XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true) | ||||
protected CTAdjPoint2D pos; | protected CTAdjPoint2D pos; | ||||
@XmlAttribute(name = "gdRefX") | |||||
@XmlAttribute | |||||
@XmlJavaTypeAdapter(CollapsedStringAdapter.class) | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) | ||||
protected String gdRefX; | protected String gdRefX; | ||||
@XmlAttribute(name = "minX") | |||||
@XmlAttribute | |||||
protected String minX; | protected String minX; | ||||
@XmlAttribute(name = "maxX") | |||||
@XmlAttribute | |||||
protected String maxX; | protected String maxX; | ||||
@XmlAttribute(name = "gdRefY") | |||||
@XmlAttribute | |||||
@XmlJavaTypeAdapter(CollapsedStringAdapter.class) | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) | ||||
protected String gdRefY; | protected String gdRefY; | ||||
@XmlAttribute(name = "minY") | |||||
@XmlAttribute | |||||
protected String minY; | protected String minY; | ||||
@XmlAttribute(name = "maxY") | |||||
@XmlAttribute | |||||
protected String maxY; | protected String maxY; | ||||
@XmlLocation | |||||
@XmlTransient | |||||
protected Locator locator; | |||||
/** | /** | ||||
* Gets the value of the pos property. | * Gets the value of the pos property. | ||||
return (this.maxY!= null); | return (this.maxY!= null); | ||||
} | } | ||||
public Locator sourceLocation() { | |||||
return locator; | |||||
} | |||||
public void setSourceLocation(Locator newLocator) { | |||||
locator = newLocator; | |||||
} | |||||
} | } |
/* ==================================================================== | |||||
Licensed to the Apache Software Foundation (ASF) under one or more | |||||
contributor license agreements. See the NOTICE file distributed with | |||||
this work for additional information regarding copyright ownership. | |||||
The ASF licenses this file to You under the Apache License, Version 2.0 | |||||
(the "License"); you may not use this file except in compliance with | |||||
the License. You may obtain a copy of the License at | |||||
http://www.apache.org/licenses/LICENSE-2.0 | |||||
Unless required by applicable law or agreed to in writing, software | |||||
distributed under the License is distributed on an "AS IS" BASIS, | |||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
See the License for the specific language governing permissions and | |||||
limitations under the License. | |||||
==================================================================== */ | |||||
package org.apache.poi.sl.usermodel; | |||||
public enum AutoNumberingScheme { | |||||
/** Lowercase alphabetic character enclosed in parentheses. Example: (a), (b), (c), ... */ | |||||
alphaLcParenBoth(0x0008, 1), | |||||
/** Uppercase alphabetic character enclosed in parentheses. Example: (A), (B), (C), ... */ | |||||
alphaUcParenBoth(0x000A, 2), | |||||
/** Lowercase alphabetic character followed by a closing parenthesis. Example: a), b), c), ... */ | |||||
alphaLcParenRight(0x0009, 3), | |||||
/** Uppercase alphabetic character followed by a closing parenthesis. Example: A), B), C), ... */ | |||||
alphaUcParenRight(0x000B, 4), | |||||
/** Lowercase Latin character followed by a period. Example: a., b., c., ... */ | |||||
alphaLcPeriod(0x0000, 5), | |||||
/** Uppercase Latin character followed by a period. Example: A., B., C., ... */ | |||||
alphaUcPeriod(0x0001, 6), | |||||
/** Arabic numeral enclosed in parentheses. Example: (1), (2), (3), ... */ | |||||
arabicParenBoth(0x000C, 7), | |||||
/** Arabic numeral followed by a closing parenthesis. Example: 1), 2), 3), ... */ | |||||
arabicParenRight(0x0002, 8), | |||||
/** Arabic numeral followed by a period. Example: 1., 2., 3., ... */ | |||||
arabicPeriod(0x0003, 9), | |||||
/** Arabic numeral. Example: 1, 2, 3, ... */ | |||||
arabicPlain(0x000D, 10), | |||||
/** Lowercase Roman numeral enclosed in parentheses. Example: (i), (ii), (iii), ... */ | |||||
romanLcParenBoth(0x0004, 11), | |||||
/** Uppercase Roman numeral enclosed in parentheses. Example: (I), (II), (III), ... */ | |||||
romanUcParenBoth(0x000E, 12), | |||||
/** Lowercase Roman numeral followed by a closing parenthesis. Example: i), ii), iii), ... */ | |||||
romanLcParenRight(0x0005, 13), | |||||
/** Uppercase Roman numeral followed by a closing parenthesis. Example: I), II), III), .... */ | |||||
romanUcParenRight(0x000F, 14), | |||||
/** Lowercase Roman numeral followed by a period. Example: i., ii., iii., ... */ | |||||
romanLcPeriod(0x0006, 15), | |||||
/** Uppercase Roman numeral followed by a period. Example: I., II., III., ... */ | |||||
romanUcPeriod(0x0007, 16), | |||||
/** Double byte circle numbers. */ | |||||
circleNumDbPlain(0x0012, 17), | |||||
/** Wingdings black circle numbers. */ | |||||
circleNumWdBlackPlain(0x0014, 18), | |||||
/** Wingdings white circle numbers. */ | |||||
circleNumWdWhitePlain(0x0013, 19), | |||||
/** Double-byte Arabic numbers with double-byte period. */ | |||||
arabicDbPeriod(0x001D, 20), | |||||
/** Double-byte Arabic numbers. */ | |||||
arabicDbPlain(0x001C, 21), | |||||
/** Simplified Chinese with single-byte period. */ | |||||
ea1ChsPeriod(0x0011, 22), | |||||
/** Simplified Chinese. */ | |||||
ea1ChsPlain(0x0010, 23), | |||||
/** Traditional Chinese with single-byte period. */ | |||||
ea1ChtPeriod(0x0015, 24), | |||||
/** Traditional Chinese. */ | |||||
ea1ChtPlain(0x0014, 25), | |||||
/** Japanese with double-byte period. */ | |||||
ea1JpnChsDbPeriod(0x0026, 26), | |||||
/** Japanese/Korean. */ | |||||
ea1JpnKorPlain(0x001A, 27), | |||||
/** Japanese/Korean with single-byte period. */ | |||||
ea1JpnKorPeriod(0x001B, 28), | |||||
/** Bidi Arabic 1 (AraAlpha) with ANSI minus symbol. */ | |||||
arabic1Minus(0x0017, 29), | |||||
/** Bidi Arabic 2 (AraAbjad) with ANSI minus symbol. */ | |||||
arabic2Minus(0x0018, 30), | |||||
/** Bidi Hebrew 2 with ANSI minus symbol. */ | |||||
hebrew2Minus(0x0019, 31), | |||||
/** Thai alphabetic character followed by a period. */ | |||||
thaiAlphaPeriod(0x001E, 32), | |||||
/** Thai alphabetic character followed by a closing parenthesis. */ | |||||
thaiAlphaParenRight(0x001F, 33), | |||||
/** Thai alphabetic character enclosed by parentheses. */ | |||||
thaiAlphaParenBoth(0x0020, 34), | |||||
/** Thai numeral followed by a period. */ | |||||
thaiNumPeriod(0x0021, 35), | |||||
/** Thai numeral followed by a closing parenthesis. */ | |||||
thaiNumParenRight(0x0022, 36), | |||||
/** Thai numeral enclosed in parentheses. */ | |||||
thaiNumParenBoth(0x0023, 37), | |||||
/** Hindi alphabetic character followed by a period. */ | |||||
hindiAlphaPeriod(0x0024, 38), | |||||
/** Hindi numeric character followed by a period. */ | |||||
hindiNumPeriod(0x0025, 39), | |||||
/** Hindi numeric character followed by a closing parenthesis. */ | |||||
hindiNumParenRight(0x0027, 40), | |||||
/** Hindi alphabetic character followed by a period. */ | |||||
hindiAlpha1Period(0x0027, 41); | |||||
public final int nativeId, ooxmlId; | |||||
AutoNumberingScheme(int nativeId, int ooxmlId) { | |||||
this.nativeId = nativeId; | |||||
this.ooxmlId = ooxmlId; | |||||
} | |||||
public static AutoNumberingScheme forNativeID(int nativeId) { | |||||
for (AutoNumberingScheme ans : values()) { | |||||
if (ans.nativeId == nativeId) return ans; | |||||
} | |||||
return null; | |||||
} | |||||
public static AutoNumberingScheme forOoxmlID(int ooxmlId) { | |||||
for (AutoNumberingScheme ans : values()) { | |||||
if (ans.ooxmlId == ooxmlId) return ans; | |||||
} | |||||
return null; | |||||
} | |||||
public String getDescription() { | |||||
switch (this) { | |||||
case alphaLcPeriod : return "Lowercase Latin character followed by a period. Example: a., b., c., ..."; | |||||
case alphaUcPeriod : return "Uppercase Latin character followed by a period. Example: A., B., C., ..."; | |||||
case arabicParenRight : return "Arabic numeral followed by a closing parenthesis. Example: 1), 2), 3), ..."; | |||||
case arabicPeriod : return "Arabic numeral followed by a period. Example: 1., 2., 3., ..."; | |||||
case romanLcParenBoth : return "Lowercase Roman numeral enclosed in parentheses. Example: (i), (ii), (iii), ..."; | |||||
case romanLcParenRight : return "Lowercase Roman numeral followed by a closing parenthesis. Example: i), ii), iii), ..."; | |||||
case romanLcPeriod : return "Lowercase Roman numeral followed by a period. Example: i., ii., iii., ..."; | |||||
case romanUcPeriod : return "Uppercase Roman numeral followed by a period. Example: I., II., III., ..."; | |||||
case alphaLcParenBoth : return "Lowercase alphabetic character enclosed in parentheses. Example: (a), (b), (c), ..."; | |||||
case alphaLcParenRight : return "Lowercase alphabetic character followed by a closing parenthesis. Example: a), b), c), ..."; | |||||
case alphaUcParenBoth : return "Uppercase alphabetic character enclosed in parentheses. Example: (A), (B), (C), ..."; | |||||
case alphaUcParenRight : return "Uppercase alphabetic character followed by a closing parenthesis. Example: A), B), C), ..."; | |||||
case arabicParenBoth : return "Arabic numeral enclosed in parentheses. Example: (1), (2), (3), ..."; | |||||
case arabicPlain : return "Arabic numeral. Example: 1, 2, 3, ..."; | |||||
case romanUcParenBoth : return "Uppercase Roman numeral enclosed in parentheses. Example: (I), (II), (III), ..."; | |||||
case romanUcParenRight : return "Uppercase Roman numeral followed by a closing parenthesis. Example: I), II), III), ..."; | |||||
case ea1ChsPlain : return "Simplified Chinese."; | |||||
case ea1ChsPeriod : return "Simplified Chinese with single-byte period."; | |||||
case circleNumDbPlain : return "Double byte circle numbers."; | |||||
case circleNumWdWhitePlain : return "Wingdings white circle numbers."; | |||||
case circleNumWdBlackPlain : return "Wingdings black circle numbers."; | |||||
case ea1ChtPlain : return "Traditional Chinese."; | |||||
case ea1ChtPeriod : return "Traditional Chinese with single-byte period."; | |||||
case arabic1Minus : return "Bidi Arabic 1 (AraAlpha) with ANSI minus symbol."; | |||||
case arabic2Minus : return "Bidi Arabic 2 (AraAbjad) with ANSI minus symbol."; | |||||
case hebrew2Minus : return "Bidi Hebrew 2 with ANSI minus symbol."; | |||||
case ea1JpnKorPlain : return "Japanese/Korean."; | |||||
case ea1JpnKorPeriod : return "Japanese/Korean with single-byte period."; | |||||
case arabicDbPlain : return "Double-byte Arabic numbers."; | |||||
case arabicDbPeriod : return "Double-byte Arabic numbers with double-byte period."; | |||||
case thaiAlphaPeriod : return "Thai alphabetic character followed by a period."; | |||||
case thaiAlphaParenRight : return "Thai alphabetic character followed by a closing parenthesis."; | |||||
case thaiAlphaParenBoth : return "Thai alphabetic character enclosed by parentheses."; | |||||
case thaiNumPeriod : return "Thai numeral followed by a period."; | |||||
case thaiNumParenRight : return "Thai numeral followed by a closing parenthesis."; | |||||
case thaiNumParenBoth : return "Thai numeral enclosed in parentheses."; | |||||
case hindiAlphaPeriod : return "Hindi alphabetic character followed by a period."; | |||||
case hindiNumPeriod : return "Hindi numeric character followed by a period."; | |||||
case ea1JpnChsDbPeriod : return "Japanese with double-byte period."; | |||||
case hindiNumParenRight : return "Hindi numeric character followed by a closing parenthesis."; | |||||
case hindiAlpha1Period : return "Hindi alphabetic character followed by a period."; | |||||
default : return "Unknown Numbered Scheme"; | |||||
} | |||||
} | |||||
public String format(int value) { | |||||
String index = formatIndex(value); | |||||
String cased = formatCase(index); | |||||
String seperated = formatSeperator(cased); | |||||
return seperated; | |||||
} | |||||
private String formatSeperator(String cased) { | |||||
String name = name().toLowerCase(); | |||||
if (name.contains("plain")) return cased; | |||||
if (name.contains("parenright")) return cased+")"; | |||||
if (name.contains("parenboth")) return "("+cased+")"; | |||||
if (name.contains("period")) return cased+"."; | |||||
if (name.contains("minus")) return cased+"-"; // ??? | |||||
return cased; | |||||
} | |||||
private String formatCase(String index) { | |||||
String name = name().toLowerCase(); | |||||
if (name.contains("lc")) return index.toLowerCase(); | |||||
if (name.contains("uc")) return index.toUpperCase(); | |||||
return index; | |||||
} | |||||
private static final String ARABIC_LIST = "0123456789"; | |||||
private static final String ALPHA_LIST = "abcdefghijklmnopqrstuvwxyz"; | |||||
private static final String WINGDINGS_WHITE_LIST = | |||||
"\u0080\u0081\u0082\u0083\u0084\u0085\u0086\u0087\u0088\u0089"; | |||||
private static final String WINGDINGS_BLACK_LIST = | |||||
"\u008B\u008C\u008D\u008E\u008F\u0090\u0091\u0092\u0093\u0094"; | |||||
private static final String CIRCLE_DB_LIST = | |||||
"\u2776\u2777\u2778\u2779\u277A\u277B\u277C\u277D\u277E"; | |||||
private String formatIndex(int value) { | |||||
String name = name().toLowerCase(); | |||||
if (name.startsWith("roman")) { | |||||
return formatRomanIndex(value); | |||||
} else if (name.startsWith("arabic") && !name.contains("db")) { | |||||
return getIndexedList(value, ARABIC_LIST, false); | |||||
} else if (name.startsWith("alpha")) { | |||||
return getIndexedList(value, ALPHA_LIST, true); | |||||
} else if (name.contains("WdWhite")) { | |||||
return (value == 10) ? "\u008A" | |||||
: getIndexedList(value, WINGDINGS_WHITE_LIST, false); | |||||
} else if (name.contains("WdBlack")) { | |||||
return (value == 10) ? "\u0095" | |||||
: getIndexedList(value, WINGDINGS_BLACK_LIST, false); | |||||
} else if (name.contains("NumDb")) { | |||||
return (value == 10) ? "\u277F" | |||||
: getIndexedList(value, CIRCLE_DB_LIST, true); | |||||
} else { | |||||
return "?"; | |||||
} | |||||
} | |||||
private static String getIndexedList(int val, String list, boolean oneBased) { | |||||
StringBuilder sb = new StringBuilder(); | |||||
addIndexedChar(val, list, oneBased, sb); | |||||
return sb.toString(); | |||||
} | |||||
private static void addIndexedChar(int val, String list, boolean oneBased, StringBuilder sb) { | |||||
if (oneBased) val -= 1; | |||||
final int len = list.length(); | |||||
if (val >= len) { | |||||
addIndexedChar(val/len, list, oneBased, sb); | |||||
} | |||||
sb.append(list.charAt(val%len)); | |||||
} | |||||
private String formatRomanIndex(int value) { | |||||
//M (1000), CM (900), D (500), CD (400), C (100), XC (90), L (50), XL (40), X (10), IX (9), V (5), IV (4) and I (1). | |||||
final int[] VALUES = new int[]{1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1}; | |||||
final String[] ROMAN = new String[]{"M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I"}; | |||||
final String conciseList[][] = { | |||||
{"XLV", "VL"}, //45 | |||||
{"XCV", "VC"}, //95 | |||||
{"CDL", "LD"}, //450 | |||||
{"CML", "LM"}, //950 | |||||
{"CMVC", "LMVL"}, //995 | |||||
{"CDXC", "LDXL"}, //490 | |||||
{"CDVC", "LDVL"}, //495 | |||||
{"CMXC", "LMXL"}, //990 | |||||
{"XCIX", "VCIV"}, //99 | |||||
{"XLIX", "VLIV"}, //49 | |||||
{"XLIX", "IL"}, //49 | |||||
{"XCIX", "IC"}, //99 | |||||
{"CDXC", "XD"}, //490 | |||||
{"CDVC", "XDV"}, //495 | |||||
{"CDIC", "XDIX"}, //499 | |||||
{"LMVL", "XMV"}, //995 | |||||
{"CMIC", "XMIX"}, //999 | |||||
{"CMXC", "XM"}, // 990 | |||||
{"XDV", "VD"}, //495 | |||||
{"XDIX", "VDIV"}, //499 | |||||
{"XMV", "VM"}, // 995 | |||||
{"XMIX", "VMIV"}, //999 | |||||
{"VDIV", "ID"}, //499 | |||||
{"VMIV", "IM"} //999 | |||||
}; | |||||
StringBuilder sb = new StringBuilder(); | |||||
for (int i = 0; i < 13; i++) { | |||||
while (value >= VALUES[i]) { | |||||
value -= VALUES[i]; | |||||
sb.append(ROMAN[i]); | |||||
} | |||||
} | |||||
String result = sb.toString(); | |||||
for (String cc[] : conciseList) { | |||||
result = result.replace(cc[0], cc[1]); | |||||
} | |||||
return result; | |||||
} | |||||
} |
*/ | */ | ||||
Double getBulletFontSize(); | Double getBulletFontSize(); | ||||
Color getBulletFontColor(); | Color getBulletFontColor(); | ||||
AutoNumberingScheme getAutoNumberingScheme(); | |||||
/** | |||||
* Index (1-based) of the first auto number value, or null if auto numbering scheme | |||||
* wasn't assigned. | |||||
*/ | |||||
Integer getAutoNumberingStartAt(); | |||||
} | } | ||||
/** | /** | ||||
* or null, if unset | * or null, if unset | ||||
*/ | */ | ||||
Double getIndent(); | Double getIndent(); | ||||
/** | /** | ||||
* Specifies the indent size that will be applied to the first line of text in the paragraph. | * Specifies the indent size that will be applied to the first line of text in the paragraph. | ||||
* | * | ||||
* @param indent the indent (in points) applied to the first line of text in the paragraph | * @param indent the indent (in points) applied to the first line of text in the paragraph | ||||
*/ | */ | ||||
void setIndent(Double indent); | void setIndent(Double indent); | ||||
/** | |||||
* @return the text level of this paragraph (0-based). Default is 0. | |||||
*/ | |||||
int getIndentLevel(); | |||||
/** | |||||
* Specifies the particular level text properties that this paragraph will follow. | |||||
* The value for this attribute formats the text according to the corresponding level | |||||
* paragraph properties defined in the SlideMaster. | |||||
* | |||||
* @param level the level (0 ... 4) | |||||
*/ | |||||
void setIndentLevel(int level); | |||||
/** | /** | ||||
* Returns the vertical line spacing that is to be used within a paragraph. | * Returns the vertical line spacing that is to be used within a paragraph. |
} | } | ||||
public void testTable() throws Exception{ | public void testTable() throws Exception{ | ||||
ppe = new PowerPointExtractor(slTests.openResourceAsStream("54111.ppt")); | |||||
String text = ppe.getText(); | |||||
String target = "TH Cell 1\tTH Cell 2\tTH Cell 3\tTH Cell 4\n"+ | |||||
"Row 1, Cell 1\tRow 1, Cell 2\tRow 1, Cell 3\tRow 1, Cell 4\n"+ | |||||
"Row 2, Cell 1\tRow 2, Cell 2\tRow 2, Cell 3\tRow 2, Cell 4\n"+ | |||||
"Row 3, Cell 1\tRow 3, Cell 2\tRow 3, Cell 3\tRow 3, Cell 4\n"+ | |||||
"Row 4, Cell 1\tRow 4, Cell 2\tRow 4, Cell 3\tRow 4, Cell 4\n"+ | |||||
"Row 5, Cell 1\tRow 5, Cell 2\tRow 5, Cell 3\tRow 5, Cell 4\n"; | |||||
assertTrue(text.contains(target)); | |||||
// ppe = new PowerPointExtractor(slTests.openResourceAsStream("54111.ppt")); | |||||
// String text = ppe.getText(); | |||||
// String target = "TH Cell 1\tTH Cell 2\tTH Cell 3\tTH Cell 4\n"+ | |||||
// "Row 1, Cell 1\tRow 1, Cell 2\tRow 1, Cell 3\tRow 1, Cell 4\n"+ | |||||
// "Row 2, Cell 1\tRow 2, Cell 2\tRow 2, Cell 3\tRow 2, Cell 4\n"+ | |||||
// "Row 3, Cell 1\tRow 3, Cell 2\tRow 3, Cell 3\tRow 3, Cell 4\n"+ | |||||
// "Row 4, Cell 1\tRow 4, Cell 2\tRow 4, Cell 3\tRow 4, Cell 4\n"+ | |||||
// "Row 5, Cell 1\tRow 5, Cell 2\tRow 5, Cell 3\tRow 5, Cell 4\n"; | |||||
// assertTrue(text.contains(target)); | |||||
ppe = new PowerPointExtractor(slTests.openResourceAsStream("54722.ppt")); | ppe = new PowerPointExtractor(slTests.openResourceAsStream("54722.ppt")); | ||||
text = ppe.getText(); | |||||
String text = ppe.getText(); | |||||
target = "this\tText\tis\twithin\ta\n"+ | |||||
String target = "this\tText\tis\twithin\ta\n"+ | |||||
"table\t1\t2\t3\t4"; | "table\t1\t2\t3\t4"; | ||||
assertTrue(text.contains(target)); | assertTrue(text.contains(target)); | ||||
} | } |
import org.apache.poi.hslf.model.textproperties.TextPFException9; | import org.apache.poi.hslf.model.textproperties.TextPFException9; | ||||
import org.apache.poi.hslf.model.textproperties.TextPropCollection; | import org.apache.poi.hslf.model.textproperties.TextPropCollection; | ||||
import org.apache.poi.hslf.record.*; | import org.apache.poi.hslf.record.*; | ||||
import org.apache.poi.sl.usermodel.AutoNumberingScheme; | |||||
import org.junit.Test; | import org.junit.Test; | ||||
assertTrue(4 == autoNumbers[0].getAutoNumberStartNumber()); | assertTrue(4 == autoNumbers[0].getAutoNumberStartNumber()); | ||||
assertNull(autoNumbers[1].getAutoNumberStartNumber()); | assertNull(autoNumbers[1].getAutoNumberStartNumber()); | ||||
assertTrue(3 == autoNumbers[2].getAutoNumberStartNumber()); | assertTrue(3 == autoNumbers[2].getAutoNumberStartNumber()); | ||||
assertTrue(TextAutoNumberSchemeEnum.ANM_ArabicPeriod == autoNumbers[0].getAutoNumberScheme()); | |||||
assertTrue(AutoNumberingScheme.arabicPeriod == autoNumbers[0].getAutoNumberScheme()); | |||||
assertNull(autoNumbers[1].getAutoNumberScheme()); | assertNull(autoNumbers[1].getAutoNumberScheme()); | ||||
assertTrue(TextAutoNumberSchemeEnum.ANM_AlphaLcParenRight == autoNumbers[2].getAutoNumberScheme()); | |||||
assertTrue(AutoNumberingScheme.alphaLcParenRight == autoNumbers[2].getAutoNumberScheme()); | |||||
List<List<HSLFTextParagraph>> textParass = s.getTextParagraphs(); | List<List<HSLFTextParagraph>> textParass = s.getTextParagraphs(); | ||||
assertEquals(2, textParass.size()); | assertEquals(2, textParass.size()); | ||||
assertTrue(9 == autoNumbers[0].getAutoNumberStartNumber()); | assertTrue(9 == autoNumbers[0].getAutoNumberStartNumber()); | ||||
assertNull(autoNumbers[1].getAutoNumberStartNumber()); | assertNull(autoNumbers[1].getAutoNumberStartNumber()); | ||||
assertTrue(3 == autoNumbers[2].getAutoNumberStartNumber()); | assertTrue(3 == autoNumbers[2].getAutoNumberStartNumber()); | ||||
assertTrue(TextAutoNumberSchemeEnum.ANM_ArabicParenRight == autoNumbers[0].getAutoNumberScheme()); | |||||
assertTrue(AutoNumberingScheme.arabicParenRight == autoNumbers[0].getAutoNumberScheme()); | |||||
assertNull(autoNumbers[1].getAutoNumberScheme()); | assertNull(autoNumbers[1].getAutoNumberScheme()); | ||||
assertTrue(TextAutoNumberSchemeEnum.ANM_AlphaUcPeriod == autoNumbers[2].getAutoNumberScheme()); | |||||
assertTrue(AutoNumberingScheme.alphaUcPeriod == autoNumbers[2].getAutoNumberScheme()); | |||||
final List<List<HSLFTextParagraph>> textParass = s.getTextParagraphs(); | final List<List<HSLFTextParagraph>> textParass = s.getTextParagraphs(); | ||||
assertEquals(2, textParass.size()); | assertEquals(2, textParass.size()); |
import org.apache.poi.hslf.model.textproperties.TextPFException9; | import org.apache.poi.hslf.model.textproperties.TextPFException9; | ||||
import org.apache.poi.hslf.model.textproperties.TextPropCollection; | import org.apache.poi.hslf.model.textproperties.TextPropCollection; | ||||
import org.apache.poi.hslf.record.*; | import org.apache.poi.hslf.record.*; | ||||
import org.apache.poi.sl.usermodel.AutoNumberingScheme; | |||||
import org.junit.Test; | import org.junit.Test; | ||||
final TextPFException9[] autoNumbersOfTextBox0 = numberedListInfoForTextBox0.getAutoNumberTypes(); | final TextPFException9[] autoNumbersOfTextBox0 = numberedListInfoForTextBox0.getAutoNumberTypes(); | ||||
assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox0[0].getfBulletHasAutoNumber()); | assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox0[0].getfBulletHasAutoNumber()); | ||||
assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox0[0].getAutoNumberStartNumber());//Default value = 1 will be used | assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox0[0].getAutoNumberStartNumber());//Default value = 1 will be used | ||||
assertTrue(TextAutoNumberSchemeEnum.ANM_ArabicPeriod == autoNumbersOfTextBox0[0].getAutoNumberScheme()); | |||||
assertTrue(AutoNumberingScheme.arabicPeriod == autoNumbersOfTextBox0[0].getAutoNumberScheme()); | |||||
final TextPFException9[] autoNumbersOfTextBox1 = numberedListInfoForTextBox1.getAutoNumberTypes(); | final TextPFException9[] autoNumbersOfTextBox1 = numberedListInfoForTextBox1.getAutoNumberTypes(); | ||||
assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox1[0].getfBulletHasAutoNumber()); | assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox1[0].getfBulletHasAutoNumber()); | ||||
assertEquals(Short.valueOf((short)6), autoNumbersOfTextBox1[0].getAutoNumberStartNumber());//Default value = 1 will be used | assertEquals(Short.valueOf((short)6), autoNumbersOfTextBox1[0].getAutoNumberStartNumber());//Default value = 1 will be used | ||||
assertTrue(TextAutoNumberSchemeEnum.ANM_ArabicPeriod == autoNumbersOfTextBox1[0].getAutoNumberScheme()); | |||||
assertTrue(AutoNumberingScheme.arabicPeriod == autoNumbersOfTextBox1[0].getAutoNumberScheme()); | |||||
List<List<HSLFTextParagraph>> textParass = s.getTextParagraphs(); | List<List<HSLFTextParagraph>> textParass = s.getTextParagraphs(); | ||||
final TextPFException9[] autoNumbersOfTextBox = numberedListInfoForTextBox.getAutoNumberTypes(); | final TextPFException9[] autoNumbersOfTextBox = numberedListInfoForTextBox.getAutoNumberTypes(); | ||||
assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox[0].getfBulletHasAutoNumber()); | assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox[0].getfBulletHasAutoNumber()); | ||||
assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox[0].getAutoNumberStartNumber());//Default value = 1 will be used | assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox[0].getAutoNumberStartNumber());//Default value = 1 will be used | ||||
assertTrue(TextAutoNumberSchemeEnum.ANM_ArabicPeriod == autoNumbersOfTextBox[0].getAutoNumberScheme()); | |||||
assertTrue(AutoNumberingScheme.arabicPeriod == autoNumbersOfTextBox[0].getAutoNumberScheme()); | |||||
List<List<HSLFTextParagraph>> textParass = s.getTextParagraphs(); | List<List<HSLFTextParagraph>> textParass = s.getTextParagraphs(); | ||||
assertEquals(3, textParass.size()); | assertEquals(3, textParass.size()); |
import org.apache.poi.hslf.model.textproperties.TextPFException9; | import org.apache.poi.hslf.model.textproperties.TextPFException9; | ||||
import org.apache.poi.hslf.model.textproperties.TextPropCollection; | import org.apache.poi.hslf.model.textproperties.TextPropCollection; | ||||
import org.apache.poi.hslf.record.*; | import org.apache.poi.hslf.record.*; | ||||
import org.apache.poi.sl.usermodel.AutoNumberingScheme; | |||||
import org.junit.Test; | import org.junit.Test; | ||||
final TextPFException9[] autoNumbersOfTextBox0 = numberedListInfoForTextBox.getAutoNumberTypes(); | final TextPFException9[] autoNumbersOfTextBox0 = numberedListInfoForTextBox.getAutoNumberTypes(); | ||||
assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox0[0].getfBulletHasAutoNumber()); | assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox0[0].getfBulletHasAutoNumber()); | ||||
assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox0[0].getAutoNumberStartNumber());//Default value = 1 will be used | assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox0[0].getAutoNumberStartNumber());//Default value = 1 will be used | ||||
assertTrue(TextAutoNumberSchemeEnum.ANM_ArabicPeriod == autoNumbersOfTextBox0[0].getAutoNumberScheme()); | |||||
assertTrue(AutoNumberingScheme.arabicPeriod == autoNumbersOfTextBox0[0].getAutoNumberScheme()); | |||||
final List<List<HSLFTextParagraph>> textParass = s.getTextParagraphs(); | final List<List<HSLFTextParagraph>> textParass = s.getTextParagraphs(); | ||||
assertEquals(3, textParass.size()); | assertEquals(3, textParass.size()); | ||||
assertEquals(1, autoNumbers.length); | assertEquals(1, autoNumbers.length); | ||||
assertEquals(Short.valueOf((short)1), autoNumbers[0].getfBulletHasAutoNumber()); | assertEquals(Short.valueOf((short)1), autoNumbers[0].getfBulletHasAutoNumber()); | ||||
assertEquals(Short.valueOf((short)1), autoNumbers[0].getAutoNumberStartNumber());//Default value = 1 will be used | assertEquals(Short.valueOf((short)1), autoNumbers[0].getAutoNumberStartNumber());//Default value = 1 will be used | ||||
assertTrue(TextAutoNumberSchemeEnum.ANM_ArabicPeriod == autoNumbersOfTextBox0[0].getAutoNumberScheme()); | |||||
assertTrue(AutoNumberingScheme.arabicPeriod == autoNumbersOfTextBox0[0].getAutoNumberScheme()); | |||||
int chCovered = 0; | int chCovered = 0; | ||||
for (HSLFTextParagraph htp : textParass.get(1)) { | for (HSLFTextParagraph htp : textParass.get(1)) { |
import java.awt.*; | import java.awt.*; | ||||
import java.awt.image.BufferedImage; | import java.awt.image.BufferedImage; | ||||
import java.io.*; | import java.io.*; | ||||
import java.lang.reflect.Constructor; | |||||
import java.util.*; | import java.util.*; | ||||
import javax.imageio.ImageIO; | import javax.imageio.ImageIO; | ||||
import org.apache.poi.sl.usermodel.Slide; | import org.apache.poi.sl.usermodel.Slide; | ||||
import org.apache.poi.sl.usermodel.SlideShow; | import org.apache.poi.sl.usermodel.SlideShow; | ||||
import org.apache.poi.util.JvmBugs; | import org.apache.poi.util.JvmBugs; | ||||
import org.apache.poi.xslf.usermodel.XMLSlideShow; | |||||
import org.junit.Test; | import org.junit.Test; | ||||
/** | /** | ||||
// "54542_cropped_bitmap.pptx", | // "54542_cropped_bitmap.pptx", | ||||
// "54541_cropped_bitmap.ppt", | // "54541_cropped_bitmap.ppt", | ||||
// "54541_cropped_bitmap2.ppt", | // "54541_cropped_bitmap2.ppt", | ||||
// "alterman_security.ppt", | |||||
"alterman_security2.pptx", | |||||
"alterman_security.ppt", | |||||
// "alterman_security3.pptx", | |||||
}; | }; | ||||
BitSet pages = new BitSet(); | BitSet pages = new BitSet(); | ||||
for (String file : files) { | for (String file : files) { | ||||
InputStream is = _slTests.openResourceAsStream(file); | InputStream is = _slTests.openResourceAsStream(file); | ||||
SlideShow ss = file.endsWith("pptx") ? new XMLSlideShow(is) : new HSLFSlideShow(is); | |||||
SlideShow ss; | |||||
if (file.endsWith("pptx")) { | |||||
Class<?> cls = Class.forName("org.apache.poi.xslf.usermodel.XMLSlideShow"); | |||||
Constructor<?> ct = cls.getDeclaredConstructor(InputStream.class); | |||||
ss = (SlideShow)ct.newInstance(is); | |||||
} else { | |||||
ss = new HSLFSlideShow(is); | |||||
} | |||||
is.close(); | is.close(); | ||||
boolean debugOut = false; | boolean debugOut = false; |