Package org.apache.poi.hslf.record
Class PPDrawing
- java.lang.Object
-
- org.apache.poi.hslf.record.Record
-
- org.apache.poi.hslf.record.RecordAtom
-
- org.apache.poi.hslf.record.PPDrawing
-
public final class PPDrawing extends RecordAtom
These are actually wrappers onto Escher drawings. Make use of the DDF classes to do useful things with them. For now, creates a tree of the Escher records, and then creates any PowerPoint (hslf) records found within the EscherTextboxRecord (msofbtClientTextbox) records. Also provides easy access to the EscherTextboxRecords, so that their text may be extracted and used in Sheets
-
-
Constructor Summary
Constructors Constructor Description PPDrawing()
Creates a new, empty, PPDrawing (typically for use with a new Slide or Notes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTextboxWrapper(EscherTextboxWrapper txtbox)
Add a new EscherTextboxWrapper to thisPPDrawing
.Record[]
getChildRecords()
We're pretending to be an atom, so return nullEscherContainerRecord
getDgContainer()
EscherDgRecord
getEscherDgRecord()
Return EscherDgRecord which keeps track of the number of shapes and shapeId in this drawing groupjava.util.List<EscherRecord>
getEscherRecords()
Get access to the underlying Escher RecordsStyleTextProp9Atom[]
getNumberedListInfo()
long
getRecordType()
We are type 1036EscherTextboxWrapper[]
getTextboxWrappers()
Get access to the atoms inside Textboxesvoid
writeOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written to disk Walks the escher layer to get the contents-
Methods inherited from class org.apache.poi.hslf.record.RecordAtom
isAnAtom
-
Methods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian
-
-
-
-
Method Detail
-
getEscherRecords
public java.util.List<EscherRecord> getEscherRecords()
Get access to the underlying Escher Records
-
getTextboxWrappers
public EscherTextboxWrapper[] getTextboxWrappers()
Get access to the atoms inside Textboxes
-
getRecordType
public long getRecordType()
We are type 1036- Specified by:
getRecordType
in classRecord
-
getChildRecords
public Record[] getChildRecords()
We're pretending to be an atom, so return null- Overrides:
getChildRecords
in classRecordAtom
-
writeOut
public void writeOut(java.io.OutputStream out) throws java.io.IOException
Write the contents of the record back, so it can be written to disk Walks the escher layer to get the contents
-
addTextboxWrapper
public void addTextboxWrapper(EscherTextboxWrapper txtbox)
Add a new EscherTextboxWrapper to thisPPDrawing
.
-
getDgContainer
public EscherContainerRecord getDgContainer()
- Returns:
- the container record for drawings
- Since:
- POI 3.14-Beta2
-
getEscherDgRecord
public EscherDgRecord getEscherDgRecord()
Return EscherDgRecord which keeps track of the number of shapes and shapeId in this drawing group- Returns:
- EscherDgRecord
-
getNumberedListInfo
public StyleTextProp9Atom[] getNumberedListInfo()
-
-