mirror of https://github.com/apache/poi.git
Make SlideLayout bullets accessible
based on question from mailing list: http://apache-poi.1045710.n5.nabble.com/PPTX-how-to-get-the-marked-list-with-adjacent-icons-tp5734952.html git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875328 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e807eed528
commit
a54394de7c
|
@ -204,4 +204,8 @@ public class XDDFParagraphBulletProperties {
|
|||
props.unsetBuSzTx();
|
||||
}
|
||||
}
|
||||
|
||||
public CTTextParagraphProperties getXmlObject() {
|
||||
return props;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,6 +59,16 @@ public class XSLFPlaceholderDetails implements PlaceholderDetails {
|
|||
return Placeholder.lookupOoxml(ph.getType().intValue());
|
||||
}
|
||||
|
||||
public XSLFSimpleShape getPlaceholderShape() {
|
||||
CTPlaceholder ph = getCTPlaceholder(false);
|
||||
if (ph == null) {
|
||||
return null;
|
||||
}
|
||||
XSLFSheet sheet = (XSLFSheet)shape.getSheet().getMasterSheet();
|
||||
return sheet.getPlaceholder(ph);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void setPlaceholder(final Placeholder placeholder) {
|
||||
CTPlaceholder ph = getCTPlaceholder(placeholder != null);
|
||||
|
@ -66,7 +76,10 @@ public class XSLFPlaceholderDetails implements PlaceholderDetails {
|
|||
if (placeholder != null) {
|
||||
ph.setType(STPlaceholderType.Enum.forInt(placeholder.ooxmlId));
|
||||
} else {
|
||||
getNvProps().unsetPh();
|
||||
CTApplicationNonVisualDrawingProps nvProps = getNvProps();
|
||||
if (nvProps != null) {
|
||||
nvProps.unsetPh();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,6 +49,7 @@ import org.apache.poi.sl.usermodel.Placeholder;
|
|||
import org.apache.poi.sl.usermodel.Sheet;
|
||||
import org.apache.poi.util.Beta;
|
||||
import org.apache.poi.util.IOUtils;
|
||||
import org.apache.poi.util.Internal;
|
||||
import org.apache.poi.util.POILogFactory;
|
||||
import org.apache.poi.util.POILogger;
|
||||
import org.apache.poi.util.Units;
|
||||
|
@ -540,7 +541,8 @@ implements XSLFShapeContainer, Sheet<XSLFShape,XSLFTextParagraph> {
|
|||
return getPlaceholderByType(ph.ooxmlId);
|
||||
}
|
||||
|
||||
XSLFSimpleShape getPlaceholder(CTPlaceholder ph) {
|
||||
@Internal
|
||||
public XSLFSimpleShape getPlaceholder(CTPlaceholder ph) {
|
||||
XSLFSimpleShape shape = null;
|
||||
if(ph.isSetIdx()) {
|
||||
shape = getPlaceholderById((int)ph.getIdx());
|
||||
|
|
Loading…
Reference in New Issue