OutlineTextRefAtompublic 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.
|
Fields Summary |
---|
private byte[] | _headerrecord header | private int | _indexthe 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 long | getRecordType()
return RecordTypes.OutlineTextRefAtom.typeID;
| public int | getTextIndex()Return text's index within the SlideListWithText container
(0 for title, 1..n for the nth body).
return _index;
| public void | setTextIndex(int idx)Sets text's index within the SlideListWithText container
(0 for title, 1..n for the nth body).
_index = idx;
| public void | writeOut(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);
|
|