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
- All Implemented Interfaces:
Iterable<EscherRecord>,GenericRecord
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.
[MS-PPT] - v20210216 refers to this as a DrawingContainer.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new, empty, PPDrawing (typically for use with a new Slide or Notes) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a new EscherTextboxWrapper to thisPPDrawing.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 RecordslongWe are type 1036Get access to the atoms inside Textboxesiterator()voidwriteOut(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
getMaxRecordLength, isAnAtom, setMaxRecordLengthMethods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
-
Constructor Details
-
PPDrawing
public PPDrawing()Creates a new, empty, PPDrawing (typically for use with a new Slide or Notes)
-
-
Method Details
-
getEscherRecords
Get access to the underlying Escher Records -
iterator
- Specified by:
iteratorin interfaceIterable<EscherRecord>
-
spliterator
- Specified by:
spliteratorin interfaceIterable<EscherRecord>- Since:
- POI 5.2.0
-
getTextboxWrappers
Get access to the atoms inside Textboxes -
getRecordType
public long getRecordType()We are type 1036- Specified by:
getRecordTypein classRecord
-
getChildRecords
We're pretending to be an atom, so return null- Overrides:
getChildRecordsin 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:
writeOutin 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
-
getNumberedListInfo
-
getGenericProperties
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-