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
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
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a new EscherTextboxWrapper to thisPPDrawing
.protected EscherContainerRecord[]
protected EscherContainerRecord
protected EscherRecord
findFirstEscherRecordOfType
(RecordTypes type, EscherContainerRecord parent) Record[]
We're pretending to be an atom, so return nullReturn EscherDgRecord which keeps track of the number of shapes and shapeId in this drawing groupGet access to the underlying Escher Recordslong
We are type 1036Get access to the atoms inside Textboxesvoid
writeOut
(OutputStream out) Write the contents of the record back, so it can be written to disk Walks the escher layer to get the contentsMethods 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
-
Constructor Details
-
PPDrawing
public PPDrawing()Creates a new, empty, PPDrawing (typically for use with a new Slide or Notes) -
PPDrawing
protected PPDrawing(byte[] source, int start, int len) Sets everything up, groks the escher etc
-
-
Method Details
-
getEscherRecords
Get access to the underlying Escher Records -
getTextboxWrappers
Get access to the atoms inside Textboxes -
getRecordType
public long getRecordType()We are type 1036- Specified by:
getRecordType
in classRecord
-
getChildRecords
We're pretending to be an atom, so return null- Overrides:
getChildRecords
in classRecordAtom
-
writeOut
Write the contents of the record back, so it can be written to disk Walks the escher layer to get the contents- Specified by:
writeOut
in classRecord
- Throws:
IOException
-
addTextboxWrapper
Add a new EscherTextboxWrapper to thisPPDrawing
. -
getDgContainer
- Returns:
- the container record for drawings
- Since:
- POI 3.14-Beta2
-
getEscherDgRecord
Return EscherDgRecord which keeps track of the number of shapes and shapeId in this drawing group- Returns:
- EscherDgRecord
-
findFirstEscherContainerRecordOfType
protected EscherContainerRecord findFirstEscherContainerRecordOfType(RecordTypes type, EscherContainerRecord parent) -
findFirstEscherRecordOfType
-
findAllEscherContainerRecordOfType
protected EscherContainerRecord[] findAllEscherContainerRecordOfType(RecordTypes type, EscherContainerRecord parent) -
getNumberedListInfo
-