mirror of https://github.com/apache/poi.git
#46210 - Title placeholder not recognized by Powerpoint 2003
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1717020 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9e45a9d9fd
commit
644f7b6c99
|
@ -43,6 +43,7 @@ import org.apache.poi.sl.draw.DrawFactory;
|
|||
import org.apache.poi.sl.draw.Drawable;
|
||||
import org.apache.poi.sl.usermodel.Notes;
|
||||
import org.apache.poi.sl.usermodel.ShapeType;
|
||||
import org.apache.poi.sl.usermodel.SimpleShape.Placeholder;
|
||||
import org.apache.poi.sl.usermodel.Slide;
|
||||
|
||||
/**
|
||||
|
@ -197,6 +198,7 @@ public final class HSLFSlide extends HSLFSheet implements Slide<HSLFShape,HSLFTe
|
|||
public HSLFTextBox addTitle() {
|
||||
HSLFPlaceholder pl = new HSLFPlaceholder();
|
||||
pl.setShapeType(ShapeType.RECT);
|
||||
pl.setPlaceholder(Placeholder.TITLE);
|
||||
pl.setRunType(TextHeaderAtom.TITLE_TYPE);
|
||||
pl.setText("Click to edit title");
|
||||
pl.setAnchor(new java.awt.Rectangle(54, 48, 612, 90));
|
||||
|
|
Loading…
Reference in New Issue