> Does anyone know how to identify the various shapes that commonly appear
> in SlideMaster objects?  I'd like to be able to iterate over the shapes
> in a SlideMaster and determine whether each shape represents a 
> date/time, footer or slide number.

The record atoms representing slide master placeholders are not yet
implemented.

You can iterate over the master shapes but you will get a collection
of AutoShapes. For now you can't tell which of them represents
date/time or footer or slide number.

I will see if I can include this support in POI-3.1-final.


> For that matter, is there any way to
> determine that a shape is a master title or subtitle?  (I know I can put
> some kind of flagging text in the master's title and subtitle, so this
> is not really necessarily, but it would be nice to be able to do this 
> directly.)

TextRun.getRunType() defines the type of text.

        Shape[] sh = slide.getShapes();
        for (int i = 0; i < sh.length; i++) {
            if(sh[i] instanceof TextShape){
                TextShape shape = (TextShape)sh[i];
                TextRun run = shape.getTextRun();
                switch(run.getRunType()){
                    case TextHeaderAtom.CENTER_TITLE_TYPE:
                        System.out.println("title in title master");
                        break;
                    case TextHeaderAtom.CENTER_BODY_TYPE:
                        System.out.println("body in title master");
                        break;
                    case TextHeaderAtom.TITLE_TYPE:
                        System.out.println("title");
                        break;
                    case TextHeaderAtom.BODY_TYPE:
                        System.out.println("body placeholder");
                        break;
                    case TextHeaderAtom.OTHER_TYPE:
                        System.out.println("text shape inserted via Insert/Text 
Box");
                        break;
                }
            }
        }

        
        
Yegor
        
> Thanks for any help!

> -r

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to