https://issues.apache.org/bugzilla/show_bug.cgi?id=45150
--- Comment #7 from Yegor Kozlov <[EMAIL PROTECTED]> 2008-06-06 11:53:25 PST --- (In reply to comment #4) > Could you be so nice and show me the way you would walk through the slide > > to get > > the 4 textboxes > the autoform (leftrightarrow) and how to make a differen bethween them? > > im kinda blocked now -.- > Something like this: /** * Recursively walk the slides and print basic shape properties * * @author Yegor Kozlov */ public class SlideWalker { public static void main(String[] args) throws Exception { SlideShow ppt = new SlideShow(new FileInputStream(args[0])); Slide[] slide = ppt.getSlides(); for (int i = 0; i < slide.length; i++) { System.out.println("Slide: " + slide[i].getTitle()); Shape[] shape = slide[i].getShapes(); for (int j = 0; j < shape.length; j++) { print(shape[j]); } } } public static void print(Shape shape) throws Exception { if(shape instanceof ShapeGroup){ ShapeGroup group = (ShapeGroup)shape; Shape[] sh = group.getShapes(); for (int i = 0; i < sh.length; i++) { print(sh[i]); } } else { System.out.println("Name: " + shape.getShapeName()); System.out.println(" " + shape.getClass().getName()); System.out.println(" " + shape.getAnchor()); if(shape instanceof TextShape){ String text = ((TextShape)shape).getText(); if(text != null) System.out.println(" " + text); } } } } -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]