diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2015-11-29 01:23:54 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2015-11-29 01:23:54 +0000 |
commit | 644f7b6c99913db5555e284bd4327ca08c88ebc7 (patch) | |
tree | 0294ca4ebdd3fb4b561137c29bd15f60da5588d5 | |
parent | 9e45a9d9fd0fa25759c49f85d3bd9b4b09aa3579 (diff) | |
download | poi-644f7b6c99913db5555e284bd4327ca08c88ebc7.tar.gz poi-644f7b6c99913db5555e284bd4327ca08c88ebc7.zip |
#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
-rw-r--r-- | src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFSlide.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFSlide.java b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFSlide.java index 1e485de9ff..1ebd32368e 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFSlide.java +++ b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFSlide.java @@ -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)); |