Class XSLFObjectShape

All Implemented Interfaces:
GraphicalFrame<XSLFShape,XSLFTextParagraph>, ObjectShape<XSLFShape,XSLFTextParagraph>, PlaceableShape<XSLFShape,XSLFTextParagraph>, Shape<XSLFShape,XSLFTextParagraph>

public class XSLFObjectShape extends XSLFGraphicFrame implements ObjectShape<XSLFShape,XSLFTextParagraph>
  • Method Details

    • getCTOleObject

      @Internal public org.openxmlformats.schemas.presentationml.x2006.main.CTOleObject getCTOleObject()
    • getObjectData

      public XSLFObjectData getObjectData()
      Specified by:
      getObjectData in interface ObjectShape<XSLFShape,XSLFTextParagraph>
      Returns:
      the data object
    • getProgId

      public String getProgId()
      Description copied from interface: ObjectShape
      Returns the ProgID that stores the OLE Programmatic Identifier. A ProgID is a string that uniquely identifies a given object, for example, "Word.Document.8" or "Excel.Sheet.8".
      Specified by:
      getProgId in interface ObjectShape<XSLFShape,XSLFTextParagraph>
      Returns:
      the ProgID
    • getFullName

      public String getFullName()
      Description copied from interface: ObjectShape
      Returns the full name of the embedded object, e.g. "Microsoft Word Document" or "Microsoft Office Excel Worksheet".
      Specified by:
      getFullName in interface ObjectShape<XSLFShape,XSLFTextParagraph>
      Returns:
      the full name of the embedded object
    • getPictureData

      public XSLFPictureData getPictureData()
      Return the data on the (internal) picture. For an external linked picture, will return null
      Specified by:
      getPictureData in interface ObjectShape<XSLFShape,XSLFTextParagraph>
      Returns:
      the picture data for this picture.
    • getBlip

      protected org.openxmlformats.schemas.drawingml.x2006.main.CTBlip getBlip()
    • getBlipId

      protected String getBlipId()
    • getBlipFill

      protected org.openxmlformats.schemas.drawingml.x2006.main.CTBlipFillProperties getBlipFill()
    • updateObjectData

      public OutputStream updateObjectData(ObjectMetaData.Application application, ObjectMetaData metaData) throws IOException
      Description copied from interface: ObjectShape
      Updates the ole data. If there wasn't an object registered before, a new ole embedding is registered in the parent slideshow.

      For HSLF this needs to be a POIFSFileSystem stream.

      Specified by:
      updateObjectData in interface ObjectShape<XSLFShape,XSLFTextParagraph>
      Parameters:
      application - a preset application enum
      metaData - or a custom metaData object, can be null if the application has been set
      Returns:
      an OutputStream which receives the new data, the data will be persisted on close()
      Throws:
      IOException - if the linked object data couldn't be found or a new object data couldn't be initialized