com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class OleObjectFrame

    • Method Detail

      • getSubstitutePictureTitle

        public final java.lang.String getSubstitutePictureTitle()

        Returns or sets the title for OleObject icon. Read/write String.


        When IsObjectIcon == false this value is ignored. The string can be truncated according to the size of the Ole icon.
        Specified by:
        getSubstitutePictureTitle in interface IOleObjectFrame
      • setSubstitutePictureTitle

        public final void setSubstitutePictureTitle(java.lang.String value)

        Returns or sets the title for OleObject icon. Read/write String.


        When IsObjectIcon == false this value is ignored. The string can be truncated according to the size of the Ole icon.
        Specified by:
        setSubstitutePictureTitle in interface IOleObjectFrame
      • getObjectName

        public final java.lang.String getObjectName()

        Returns or sets the name of an object. Read/write String.

        Specified by:
        getObjectName in interface IOleObjectFrame
      • setObjectName

        public final void setObjectName(java.lang.String value)

        Returns or sets the name of an object. Read/write String.

        Specified by:
        setObjectName in interface IOleObjectFrame
      • getObjectProgId

        public final java.lang.String getObjectProgId()

        Returns the ProgID of an object. Read only String.

        Specified by:
        getObjectProgId in interface IOleObjectFrame
      • setObjectProgId

        public final void setObjectProgId(java.lang.String value)

        Returns the ProgID of an object. Read only String.

        Specified by:
        setObjectProgId in interface IOleObjectFrame
      • getObjectData

        @Deprecated
        public final byte[] getObjectData()
        Deprecated. Use OleObjectFrame.SetEmbeddedData method and EmbeddedData property instead. The property will be removed after release of version 21.11.

        Returns or sets embedded object as byte array. Read/write byte[].

        Specified by:
        getObjectData in interface IOleObjectFrame
      • setObjectData

        @Deprecated
        public final void setObjectData(byte[] value)
        Deprecated. Use OleObjectFrame.SetEmbeddedData method and EmbeddedData property instead. The property will be removed after release of version 21.11.

        Returns or sets embedded object as byte array. Read/write byte[].

        Specified by:
        setObjectData in interface IOleObjectFrame
      • getLinkFileName

        public final java.lang.String getLinkFileName()

        Returns the full path to a linked file. Short file name will be used. Read-only String.

        Specified by:
        getLinkFileName in interface IOleObjectFrame
      • getLinkPathLong

        public final java.lang.String getLinkPathLong()

        Returns the full path to a linked file. Long file name will be used. Read/write String.

        Specified by:
        getLinkPathLong in interface IOleObjectFrame
      • setLinkPathLong

        public final void setLinkPathLong(java.lang.String value)

        Returns the full path to a linked file. Long file name will be used. Read/write String.

        Specified by:
        setLinkPathLong in interface IOleObjectFrame
      • getEmbeddedFileLabel

        public final java.lang.String getEmbeddedFileLabel()

        Returns the file name of embedded OLE object

        Specified by:
        getEmbeddedFileLabel in interface IOleObjectFrame
      • getEmbeddedFileName

        public final java.lang.String getEmbeddedFileName()

        Returns the path of embedded OLE object

        Specified by:
        getEmbeddedFileName in interface IOleObjectFrame
      • getEmbeddedFileExtension

        @Deprecated
        public final java.lang.String getEmbeddedFileExtension()
        Deprecated. Use OleObjectFrame.SetEmbeddedData method and EmbeddedData property instead. The property will be removed after release of version 21.11.

        Returns the file extension for the current embedded object or empty string if object is not a link

        Specified by:
        getEmbeddedFileExtension in interface IOleObjectFrame
      • getEmbeddedFileData

        @Deprecated
        public final byte[] getEmbeddedFileData()
        Deprecated. Use OleObjectFrame.SetEmbeddedData method and EmbeddedData property instead. The property will be removed after release of version 21.11.

        Returns the file data of embedded OLE object

        Specified by:
        getEmbeddedFileData in interface IOleObjectFrame
      • setEmbeddedData

        public final void setEmbeddedData(IOleEmbeddedDataInfo embeddedData)

        Sets information about OLE embedded data.


         
         Presentation pres = new Presentation("SomePresentation.pptx");
         try {
             OleObjectFrame oof = (OleObjectFrame) pres.getSlides().get_Item(0).getShapes().get_Item(0);
             if (oof != null)
             {
                 IOleEmbeddedDataInfo newData = new OleEmbeddedDataInfo(Files.readAllBytes(Paths.get("Picture.png")), "png");
                 oof.setEmbeddedData(newData);
             }
         } catch (IOException e) {
         } finally {
             if (pres != null) pres.dispose();
         }
         
        Specified by:
        setEmbeddedData in interface IOleObjectFrame
        Parameters:
        embeddedData - Embedded data IOleEmbeddedDataInfo


        This method changes the properties of the object to reflect the new data and sets the IsObjectLink flag to false, indicating that the OLE object is embedded.
        Throws:
        com.aspose.ms.System.ArgumentNullException - When embeddedData parameter is null.
      • isObjectIcon

        public final boolean isObjectIcon()

        Determines whether an object is visible as icon. Read/write boolean.

        Specified by:
        isObjectIcon in interface IOleObjectFrame
      • setObjectIcon

        public final void setObjectIcon(boolean value)

        Determines whether an object is visible as icon. Read/write boolean.

        Specified by:
        setObjectIcon in interface IOleObjectFrame
      • isObjectLink

        public final boolean isObjectLink()

        Determines whether an object is linked to external file. Read-only boolean.

        Specified by:
        isObjectLink in interface IOleObjectFrame
      • getUpdateAutomatic

        public final boolean getUpdateAutomatic()

        Determines if the linked embedded object is automatically updated when the presentation is opened or printed. Read/write boolean.

        Specified by:
        getUpdateAutomatic in interface IOleObjectFrame
      • setUpdateAutomatic

        public final void setUpdateAutomatic(boolean value)

        Determines if the linked embedded object is automatically updated when the presentation is opened or printed. Read/write boolean.

        Specified by:
        setUpdateAutomatic in interface IOleObjectFrame