Maybe I'm missing something but it looks like an error to me.
Let's create a single slide PowerPoint presentation (I'm using ppt 2002
sp3). The slide will contain just two objects: 1) title "Foo" 2) [ppt main
menu]->[insert]->[text box] "Bar". Then we'll try following code:
Slide slide = slideshow.getSlides()[0];
Shape[] shapeList = slide.getShapes();
for (int i = 0; i < shapeList.length; i++) {
if (shapeList[i] instanceof TextBox) {
System.out.println("Text content = " +
((TextBox)shapeList[i]).getText());
} else {
System.out.println("Other shape type");
}
}
It writes:
Text content = Bar
Text content = Bar
Which seems to be different compared to default slide's layout (= title +
text item list) which writes Bar + Foo. Inserting table instead of text box
leads to the same error.
--
View this message in context:
http://www.nabble.com/HSLF%3A-slide%27s-title-TextBox-overwritten-by-other-object--tp15291434p15291434.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]