Class ActiveXShape

All Implemented Interfaces:
IAdjustableShape, PictureShape<HSLFShape,HSLFTextParagraph>, PlaceableShape<HSLFShape,HSLFTextParagraph>, Shape<HSLFShape,HSLFTextParagraph>, SimpleShape<HSLFShape,HSLFTextParagraph>

public final class ActiveXShape extends HSLFPictureShape
Represents an ActiveX control in a PowerPoint document.
  • Field Details

    • DEFAULT_ACTIVEX_THUMBNAIL

      public static final int DEFAULT_ACTIVEX_THUMBNAIL
      See Also:
  • Constructor Details

    • ActiveXShape

      public ActiveXShape(int movieIdx, HSLFPictureData pictureData)
      Create a new Picture
      Parameters:
      pictureData - the picture data
    • ActiveXShape

      protected ActiveXShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
      Create a Picture object
      Parameters:
      escherRecord - the EscherSpContainer record which holds information about this picture in the Slide
      parent - the parent shape of this picture
  • Method Details

    • createSpContainer

      protected EscherContainerRecord createSpContainer(int idx, boolean isChild)
      Create a new Placeholder and initialize internal structures
      Overrides:
      createSpContainer in class HSLFPictureShape
      Parameters:
      idx - the index of the picture which refers to EscherBSE container.
      Returns:
      the created EscherContainerRecord which holds shape data
    • setActiveXIndex

      public void setActiveXIndex(int idx)
      Assign a control to this shape
      Parameters:
      idx - the index of the movie
      See Also:
    • getControlIndex

      public int getControlIndex()
    • setProperty

      public void setProperty(String key, String value)
      Set a property of this ActiveX control
      Parameters:
      key -
      value -
    • getExControl

      public ExControl getExControl()
      Document-level container that specifies information about an ActiveX control
      Returns:
      container that specifies information about an ActiveX control
    • afterInsert

      protected void afterInsert(HSLFSheet sheet)
      Description copied from class: HSLFPictureShape
      By default set the orininal image size
      Overrides:
      afterInsert in class HSLFPictureShape
      Parameters:
      sheet - - owning shape