Slidepublic class Slide extends SheetContainer Master container for Slides. There is one of these for every slide,
and they have certain specific children |
Fields Summary |
---|
private byte[] | _header | private static long | _type | private SlideAtom | slideAtom | private PPDrawing | ppDrawing | private ColorSchemeAtom | _colorScheme |
Constructors Summary |
---|
protected Slide(byte[] source, int start, int len)Set things up, and find our more interesting children
// Grab the header
_header = new byte[8];
System.arraycopy(source,start,_header,0,8);
// Find our children
_children = Record.findChildRecords(source,start+8,len-8);
// Find the interesting ones in there
for(int i=0; i<_children.length; i++) {
if(_children[i] instanceof SlideAtom) {
slideAtom = (SlideAtom)_children[i];
}
else if(_children[i] instanceof PPDrawing) {
ppDrawing = (PPDrawing)_children[i];
}
if(ppDrawing != null && _children[i] instanceof ColorSchemeAtom) {
_colorScheme = (ColorSchemeAtom)_children[i];
}
}
| public Slide()Create a new, empty, Slide, along with its required
child records.
_header = new byte[8];
LittleEndian.putUShort(_header, 0, 15);
LittleEndian.putUShort(_header, 2, (int)_type);
LittleEndian.putInt(_header, 4, 0);
slideAtom = new SlideAtom();
ppDrawing = new PPDrawing();
ColorSchemeAtom colorAtom = new ColorSchemeAtom();
_children = new Record[] {
slideAtom,
ppDrawing,
colorAtom
};
|
|