From ca8b649bfe1f79b33772d832ddc457b6c2edad98 Mon Sep 17 00:00:00 2001
From: Nick Burch
Date: Mon, 8 May 2006 16:43:11 +0000
Subject: [PATCH] Fixes from Yegor, from bug #39395
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@405092 13f79535-47bb-0310-9956-ffa450edef68
---
.../content/xdocs/hslf/how-to-shapes.xml | 25 ++-
.../content/xdocs/hslf/hslf_shapes.gif | Bin 5855 -> 7140 bytes
.../org/apache/poi/hslf/model/Ellipse.java | 59 ------
.../apache/poi/hslf/model/PPGraphics2D.java | 2 +-
.../apache/poi/hslf/model/Placeholder.java | 97 +++++++++
.../org/apache/poi/hslf/model/Rectangle.java | 52 -----
.../src/org/apache/poi/hslf/model/Shape.java | 22 +-
.../apache/poi/hslf/model/ShapeFactory.java | 16 +-
.../src/org/apache/poi/hslf/model/Slide.java | 27 ++-
.../org/apache/poi/hslf/model/TextBox.java | 117 ++++++++--
.../poi/hslf/record/OEPlaceholderAtom.java | 200 ++++++++++++++++++
.../poi/hslf/record/OutlineTextRefAtom.java | 107 ++++++++++
.../apache/poi/hslf/record/RecordTypes.java | 4 +-
.../poi/hslf/usermodel/RichTextRun.java | 17 +-
.../org/apache/poi/hslf/model/TestShapes.java | 77 ++++---
15 files changed, 644 insertions(+), 178 deletions(-)
delete mode 100644 src/scratchpad/src/org/apache/poi/hslf/model/Ellipse.java
create mode 100644 src/scratchpad/src/org/apache/poi/hslf/model/Placeholder.java
delete mode 100644 src/scratchpad/src/org/apache/poi/hslf/model/Rectangle.java
create mode 100644 src/scratchpad/src/org/apache/poi/hslf/record/OEPlaceholderAtom.java
create mode 100644 src/scratchpad/src/org/apache/poi/hslf/record/OutlineTextRefAtom.java
diff --git a/src/documentation/content/xdocs/hslf/how-to-shapes.xml b/src/documentation/content/xdocs/hslf/how-to-shapes.xml
index 21cdb00d18..f20bcef03b 100644
--- a/src/documentation/content/xdocs/hslf/how-to-shapes.xml
+++ b/src/documentation/content/xdocs/hslf/how-to-shapes.xml
@@ -18,6 +18,7 @@
How to get shapes contained in a particular slide
Drawing a shape on a slide
How to add/retrieve pictures
+ How to set slide title
Features
@@ -62,7 +63,7 @@
The following pictute shows the class tree of HSLF shapes:
-
+
The following fragment demonstrates how to iterate over shapes for each slide.
@@ -209,6 +210,28 @@
+
+ How to set slide title
+
+
+ Below is the equivalent code in PowerPoint VBA:
+
+
+
+