public final class MainPresentationPart extends JaxbPmlPart<Presentation>
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
COLOR_MAPPING, COMMON_SLIDE_DATA, randombinderjaxbElement, jc, MAX_BYTES_Unmarshal_ErrorcontentType, partName, relationships| Constructor and Description |
|---|
MainPresentationPart() |
MainPresentationPart(PartName partName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSlide(int index,
SlidePart slidePart)
Inserts the slide at the specified position in the presentation.
|
boolean |
addSlide(SlidePart slidePart)
Append the slide at the end of the presentation.
|
Presentation.SldIdLst.SldId |
addSlideIdListEntry(SlidePart slidePart)
Add a slide to this presentation.
|
Presentation.SldIdLst.SldId |
addSlideIdListEntry(SlidePart slidePart,
RelationshipsPart.AddPartBehaviour mode)
Deprecated.
|
Presentation.SldMasterIdLst.SldMasterId |
addSlideMasterIdListEntry(SlideMasterPart slideMasterPart) |
static Presentation |
createJaxbPresentationElement() |
static Presentation |
createJaxbPresentationElement(SlideSizesWellKnown sz,
boolean landscape) |
static Presentation.SldSz |
createSlideSize(SlideSizesWellKnown sz,
boolean landscape) |
CommentAuthorsPart |
getCommentAuthorsPart() |
CTExtension |
getExtContaining(java.lang.Class containingClass)
get p:ext containing specified class
|
CTExtendedGuideList |
getExtendedGuideList(boolean createIfAbsent) |
CTExtensionList |
getExtensionList(boolean createIfAbsent) |
NotesMasterPart |
getNotesMasterPart(boolean createIfAbsent)
getNotesMasterPart creating if createIfAbsent flag allows
|
CTSection |
getSection(SlidePart sp) |
CTSectionList |
getSectionList(boolean createIfAbsent) |
Presentation.SldIdLst.SldId |
getSldIdByRelId(java.lang.String relId)
Get a SdlId from SldIdLst by its relId
|
SlidePart |
getSlide(int index) |
int |
getSlideCount() |
java.util.List<SlidePart> |
getSlideParts() |
ThemePart |
getThemePart() |
void |
init() |
boolean |
removeExt(java.lang.Class containingClass)
remove the p:ext containing specified class
|
void |
removeSlide(int index) |
void |
removeSlide(Relationship rel) |
boolean |
setPartShortcut(Part part) |
boolean |
setPartShortcut(Part part,
java.lang.String relationshipType)
Tell the source Part about this target Part, so the
source can use this part via a convenience method.
|
getSlideId, getSlideLayoutOrMasterId, newPartForContentTypecreateBinderAndJaxbElement, getBinder, getJAXBAssociationsForXPath, getJAXBAssociationsForXPath, getJAXBNodesViaXPath, getJAXBNodesViaXPath, setJaxbElement, unmarshal, unmarshaladdMcChoiceNamespace, getConfiguredUnmarshaller, getContents, getJAXBContext, getJaxbElement, getMcChoiceNamespaces, getMceIgnorable, getXML, inputStreamToXSR, isContentEqual, isUnmarshalled, marshal, marshal, marshal, marshal, pipe, pipe, pipe, preprocess, setContents, setJAXBContext, setJaxbElement, setMceIgnorable, transform, transformToDom, variableReplacegetContentLengthAsLoaded, getOwningRelationshipPart, getPackage, getRelationshipType, getSourceRelationship, getSourceRelationships, getVersion, remove, rename, setContentLengthAsLoaded, setOwningRelationshipPart, setPackage, setRelationshipType, setSourceRelationship, setVersionaddTargetPart, addTargetPart, addTargetPart, addTargetPart, getContentType, getPartName, getRelationshipsPart, getRelationshipsPart, getUserData, reset, setContentType, setPartName, setRelationships, setUserDatapublic MainPresentationPart(PartName partName) throws InvalidFormatException
InvalidFormatExceptionpublic MainPresentationPart()
throws InvalidFormatException
InvalidFormatExceptionpublic void init()
public boolean setPartShortcut(Part part)
public boolean setPartShortcut(Part part, java.lang.String relationshipType)
BasesetPartShortcut in class Partpublic CommentAuthorsPart getCommentAuthorsPart()
public ThemePart getThemePart()
public NotesMasterPart getNotesMasterPart(boolean createIfAbsent) throws Pptx4jException
Pptx4jExceptionpublic static Presentation.SldSz createSlideSize(SlideSizesWellKnown sz, boolean landscape)
public static Presentation createJaxbPresentationElement() throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionpublic static Presentation createJaxbPresentationElement(SlideSizesWellKnown sz, boolean landscape) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionpublic Presentation.SldIdLst.SldId addSlideIdListEntry(SlidePart slidePart) throws InvalidFormatException
slidePart - InvalidFormatException@Deprecated public Presentation.SldIdLst.SldId addSlideIdListEntry(SlidePart slidePart, RelationshipsPart.AddPartBehaviour mode) throws InvalidFormatException
InvalidFormatExceptionpublic Presentation.SldMasterIdLst.SldMasterId addSlideMasterIdListEntry(SlideMasterPart slideMasterPart) throws InvalidFormatException
InvalidFormatExceptionpublic boolean addSlide(SlidePart slidePart) throws Pptx4jException
slidePart - Pptx4jExceptionpublic void addSlide(int index,
SlidePart slidePart)
throws Pptx4jException
index - slidePart - Pptx4jExceptionpublic void removeSlide(int index)
throws Pptx4jException
index - Pptx4jExceptionpublic void removeSlide(Relationship rel) throws Pptx4jException
rel - Pptx4jExceptionpublic SlidePart getSlide(int index) throws Pptx4jException
index - Pptx4jExceptionpublic java.util.List<SlidePart> getSlideParts() throws Pptx4jException
Pptx4jExceptionpublic int getSlideCount()
throws Pptx4jException
index - Pptx4jExceptionpublic CTExtension getExtContaining(java.lang.Class containingClass)
extLst - containingClass - public boolean removeExt(java.lang.Class containingClass)
containingClass - public CTSectionList getSectionList(boolean createIfAbsent)
public CTExtendedGuideList getExtendedGuideList(boolean createIfAbsent)
public CTExtensionList getExtensionList(boolean createIfAbsent)
public Presentation.SldIdLst.SldId getSldIdByRelId(java.lang.String relId)
relId - Copyright © 2007–2023. All rights reserved.