Class MainPresentationPart
java.lang.Object
org.docx4j.openpackaging.Base
org.docx4j.openpackaging.parts.Part
org.docx4j.openpackaging.parts.JaxbXmlPart<E>
org.docx4j.openpackaging.parts.JaxbXmlPartXPathAware<E>
org.docx4j.openpackaging.parts.PresentationML.JaxbPmlPart<Presentation>
org.docx4j.openpackaging.parts.PresentationML.MainPresentationPart
- All Implemented Interfaces:
XPathEnabled<Presentation>
-
Field Summary
FieldsFields inherited from class org.docx4j.openpackaging.parts.PresentationML.JaxbPmlPart
COLOR_MAPPING, COMMON_SLIDE_DATA, randomFields inherited from class org.docx4j.openpackaging.parts.JaxbXmlPartXPathAware
binderFields inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
jaxbElement, jc, MAX_BYTES_Unmarshal_ErrorFields inherited from class org.docx4j.openpackaging.Base
contentType, partName, relationships -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInserts the slide at the specified position in the presentation.booleanAppend the slide at the end of the presentation.addSlideIdListEntry(SlidePart slidePart) Add a slide to this presentation.addSlideIdListEntry(SlidePart slidePart, RelationshipsPart.AddPartBehaviour mode) Deprecated.addSlideMasterIdListEntry(SlideMasterPart slideMasterPart) static Presentationstatic PresentationcreateJaxbPresentationElement(SlideSizesWellKnown sz, boolean landscape) static Presentation.SldSzcreateSlideSize(SlideSizesWellKnown sz, boolean landscape) getExtContaining(Class containingClass) get p:ext containing specified classgetExtendedGuideList(boolean createIfAbsent) getExtensionList(boolean createIfAbsent) getNotesMasterPart(boolean createIfAbsent) getNotesMasterPart creating if createIfAbsent flag allowsgetSection(SlidePart sp) getSectionList(boolean createIfAbsent) getSldIdByRelId(String relId) Get a SdlId from SldIdLst by its relIdgetSlide(int index) intvoidinit()booleanremove the p:ext containing specified classvoidremoveSlide(int index) voidremoveSlide(Relationship rel) booleansetPartShortcut(Part part) booleansetPartShortcut(Part part, String relationshipType) Tell the source Part about this target Part, so the source can use this part via a convenience method.Methods inherited from class org.docx4j.openpackaging.parts.PresentationML.JaxbPmlPart
getSlideId, getSlideLayoutOrMasterId, newPartForContentTypeMethods inherited from class org.docx4j.openpackaging.parts.JaxbXmlPartXPathAware
createBinderAndJaxbElement, getBinder, getJAXBAssociationsForXPath, getJAXBAssociationsForXPath, getJAXBNodesViaXPath, getJAXBNodesViaXPath, setJaxbElement, unmarshal, unmarshalMethods inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
addMcChoiceNamespace, getConfiguredUnmarshaller, getContents, getJAXBContext, getJaxbElement, getMcChoiceNamespaces, getMceIgnorable, getXML, getXMLStreamReader, inputStreamToXSR, isContentEqual, isUnmarshalled, marshal, marshal, marshal, marshal, pipe, pipe, pipe, preprocess, replacePartContent, setContents, setJAXBContext, setJaxbElement, setMceIgnorable, transform, transformToDom, variableReplaceMethods inherited from class org.docx4j.openpackaging.parts.Part
getContentLengthAsLoaded, getOwningRelationshipPart, getPackage, getRelationshipType, getSourceRelationship, getSourceRelationships, getVersion, remove, rename, setContentLengthAsLoaded, setOwningRelationshipPart, setPackage, setRelationshipType, setSourceRelationship, setVersionMethods inherited from class org.docx4j.openpackaging.Base
addTargetPart, addTargetPart, addTargetPart, addTargetPart, getContentType, getPartName, getRelationshipsPart, getRelationshipsPart, getUserData, reset, setContentType, setPartName, setRelationships, setUserData
-
Field Details
-
log
protected static org.slf4j.Logger log
-
-
Constructor Details
-
MainPresentationPart
- Throws:
InvalidFormatException
-
MainPresentationPart
- Throws:
InvalidFormatException
-
-
Method Details
-
init
public void init() -
setPartShortcut
-
setPartShortcut
Description copied from class:BaseTell the source Part about this target Part, so the source can use this part via a convenience method.- Overrides:
setPartShortcutin classPart- Returns:
- true if the source Part does use the target Part in a convenience method.
-
getCommentAuthorsPart
- Since:
- 3.2.0
-
getThemePart
- Since:
- 8.1.3
-
getNotesMasterPart
getNotesMasterPart creating if createIfAbsent flag allows- Throws:
Pptx4jException- Since:
- 8.1.3
-
createSlideSize
- Since:
- 2.7
-
createJaxbPresentationElement
- Throws:
jakarta.xml.bind.JAXBException
-
createJaxbPresentationElement
public static Presentation createJaxbPresentationElement(SlideSizesWellKnown sz, boolean landscape) throws jakarta.xml.bind.JAXBException - Throws:
jakarta.xml.bind.JAXBException- Since:
- 2.7
-
addSlideIdListEntry
public Presentation.SldIdLst.SldId addSlideIdListEntry(SlidePart slidePart) throws InvalidFormatException Add a slide to this presentation.- Parameters:
slidePart-- Returns:
- Throws:
InvalidFormatException
-
addSlideIdListEntry
@Deprecated public Presentation.SldIdLst.SldId addSlideIdListEntry(SlidePart slidePart, RelationshipsPart.AddPartBehaviour mode) throws InvalidFormatException Deprecated.- Throws:
InvalidFormatException- Since:
- 2.8.1
-
addSlideMasterIdListEntry
public Presentation.SldMasterIdLst.SldMasterId addSlideMasterIdListEntry(SlideMasterPart slideMasterPart) throws InvalidFormatException - Throws:
InvalidFormatException
-
addSlide
Append the slide at the end of the presentation.- Parameters:
slidePart-- Throws:
Pptx4jException- Since:
- 3.0
-
addSlide
Inserts the slide at the specified position in the presentation. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).- Parameters:
index-slidePart-- Throws:
Pptx4jException- Since:
- 3.0
-
removeSlide
- Parameters:
index-- Throws:
Pptx4jException- Since:
- 3.0
-
removeSlide
- Parameters:
rel-- Throws:
Pptx4jException- Since:
- 3.0
-
getSlide
- Parameters:
index-- Throws:
Pptx4jException- Since:
- 3.0.1
-
getSlideParts
- Throws:
Pptx4jException- Since:
- 3.4
-
getSlideCount
- Parameters:
index-- Throws:
Pptx4jException- Since:
- 3.2.0
-
getExtContaining
get p:ext containing specified class- Parameters:
extLst-containingClass-- Returns:
- Since:
- 8.1.0
-
removeExt
remove the p:ext containing specified class- Parameters:
containingClass-- Returns:
- Since:
- 8.1.0
-
getSectionList
- Since:
- 8.1.0
-
getExtendedGuideList
- Since:
- 8.1.0
-
getExtensionList
- Since:
- 8.1.0
-
getSection
- Since:
- 8.1.0
-
getSldIdByRelId
Get a SdlId from SldIdLst by its relId- Parameters:
relId-- Returns:
- Since:
- 8.1.0
-