IVbaProject
public interface IVbaProject
Represents VBA project with presentation macros.
Methods
Method | Description |
---|---|
getName() | Returns the name of the VBA project. |
getModules() | Returns the list of all modules that are contained in the VBA project. |
getReferences() | Returns the list of all references that are contained in the VBA project. |
toBinary() | Returns the binary representation of the VBA project as OLE container. |
isPasswordProtected() | Indicates whether the VBAProject is protected by a password to view project properties. |
getName()
public abstract String getName()
Returns the name of the VBA project. Read-only String.
Returns: java.lang.String
getModules()
public abstract IVbaModuleCollection getModules()
Returns the list of all modules that are contained in the VBA project. Read-only IVbaModuleCollection.
Returns: IVbaModuleCollection
getReferences()
public abstract IVbaReferenceCollection getReferences()
Returns the list of all references that are contained in the VBA project. Read-only IVbaReferenceCollection.
Returns: IVbaReferenceCollection
toBinary()
public abstract byte[] toBinary()
Returns the binary representation of the VBA project as OLE container. Read-only byte[].
Returns: byte[] - Binary representation of the VBA project as OLE container
isPasswordProtected()
public abstract boolean isPasswordProtected()
Indicates whether the VBAProject is protected by a password to view project properties. Read-only boolean.
Presentation presentation = new Presentation("demo.pptm"); try { if (presentation.getVbaProject().isPasswordProtected()) System.out.println("The VBAProject '" + presentation.getVbaProject().getName() + "' is protected by password to view project properties."); } finally { if (presentation != null) presentation.dispose(); }
Returns: boolean