]> source.dussan.org Git - poi.git/commitdiff
#46210 - Title placeholder not recognized by Powerpoint 2003
authorAndreas Beeker <kiwiwings@apache.org>
Sun, 29 Nov 2015 01:23:54 +0000 (01:23 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Sun, 29 Nov 2015 01:23:54 +0000 (01:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1717020 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFSlide.java

index 1e485de9ff64095287189d6740b4282008f69455..1ebd32368e9d05ae5cb4125629ea079241f5b024 100644 (file)
@@ -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));