FileDocCategorySizeDatePackage
OutlineTextRefAtom.javaAPI DocApache Poi 3.0.13324Sun Mar 11 12:59:30 GMT 2007org.apache.poi.hslf.record

OutlineTextRefAtom

public class OutlineTextRefAtom extends RecordAtom
OEPlaceholderAtom (3998).
What MSDN says about OutlineTextRefAtom:

Appears in a slide to indicate a text that is already contained in the document, in a SlideListWithText containter. Sometimes slide texts are not contained within the slide container to be able to delay loading a slide and still display the title and body text in outline view.

author
Yegor Kozlov

Fields Summary
private byte[]
_header
record header
private int
_index
the text's index within the SlideListWithText (0 for title, 1..n for the nth body)
Constructors Summary
protected OutlineTextRefAtom(byte[] source, int start, int len)
Build an instance of OutlineTextRefAtom from on-disk data

        // Get the header
        _header = new byte[8];
        System.arraycopy(source,start,_header,0,8);

        // Grab the record data
        _index = LittleEndian.getInt(source, start+8);
    
protected OutlineTextRefAtom()
Create a new instance of FontEntityAtom

        _index = 0;

        _header = new byte[8];
        LittleEndian.putUShort(_header, 0, 0);
        LittleEndian.putUShort(_header, 2, (int)getRecordType());
        LittleEndian.putInt(_header, 4, 4);
    
Methods Summary
public longgetRecordType()

        return RecordTypes.OutlineTextRefAtom.typeID;
    
public intgetTextIndex()
Return text's index within the SlideListWithText container (0 for title, 1..n for the nth body).

return
idx text's index

        return _index;
    
public voidsetTextIndex(int idx)
Sets text's index within the SlideListWithText container (0 for title, 1..n for the nth body).

param
idx 0-based text's index

        _index = idx;
    
public voidwriteOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written to disk

        out.write(_header);

        byte[] recdata = new byte[4];
        LittleEndian.putInt(recdata, 0, _index);
        out.write(recdata);