com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IOleObjectFrame

    • Method Detail

      • getObjectName

        java.lang.String getObjectName()

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

      • setObjectName

        void setObjectName(java.lang.String value)

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

      • setEmbeddedData

        void setEmbeddedData(IOleEmbeddedDataInfo embeddedData)

        Sets information about OLE embedded data.


         Following example demonstrates how to change OLE embedded data
         and its type for existing IOleObjectFrame object 
         
         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();
         }
         
        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.
      • getObjectProgId

        java.lang.String getObjectProgId()

        Returns the ProgID of an object. Read olny String.

      • setObjectProgId

        void setObjectProgId(java.lang.String value)

        Returns the ProgID of an object. Read olny String.

      • getObjectData

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

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

      • setObjectData

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

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

      • getLinkFileName

        java.lang.String getLinkFileName()

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

      • getLinkPathLong

        java.lang.String getLinkPathLong()

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

      • setLinkPathLong

        void setLinkPathLong(java.lang.String value)

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

      • getEmbeddedFileLabel

        java.lang.String getEmbeddedFileLabel()

        Returns the file name of embedded OLE object

      • getEmbeddedFileName

        java.lang.String getEmbeddedFileName()

        Returns the path of embedded OLE object

      • getEmbeddedFileExtension

        @Deprecated
        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

      • getEmbeddedFileData

        @Deprecated
        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

      • isObjectIcon

        boolean isObjectIcon()

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

      • setObjectIcon

        void setObjectIcon(boolean value)

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

      • isObjectLink

        boolean isObjectLink()

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

      • getUpdateAutomatic

        boolean getUpdateAutomatic()

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

      • setUpdateAutomatic

        void setUpdateAutomatic(boolean value)

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

      • getSubstitutePictureTitle

        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.
      • setSubstitutePictureTitle

        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.