com.aspose.cells
Class VbaProject

java.lang.Object
    extended by com.aspose.cells.VbaProject

public class VbaProject 
extends java.lang.Object

Represents the VBA project.


Property Getters/Setters Summary
byte[]getCertRawData()
           Gets certificate raw data if this VBA project is signed.
booleangetIslockedForViewing()
           Indicates whether this VBA project is locked for viewing.
booleanisProtected()
           Indicates whether this VBA project is protected.
booleanisSigned()
           Indicates whether VBAcode is signed or not.
booleanisValidSigned()
           Indicates whether the signature of VBA project is valid or not.
VbaModuleCollectiongetModules()
           Gets all VbaModule objects.
java.lang.StringgetName()
voidsetName(java.lang.String)
           Gets and sets the name of the VBA project.
VbaProjectReferenceCollectiongetReferences()
           Gets all references of VBA project.
 
Method Summary
voidcopy(VbaProject source)
           Copy VBA project from other file.
voidprotect(boolean islockedForViewing, java.lang.String password)
           Protects or unprotects this VBA project.
voidsign(DigitalSignature digitalSignature)
           Sign this VBA project by a DigitalSignature
booleanvalidatePassword(java.lang.String password)
           Validates protection password.
 

Property Getters/Setters Detail

isValidSigned

public boolean isValidSigned()
Indicates whether the signature of VBA project is valid or not.

getCertRawData

public byte[] getCertRawData()
Gets certificate raw data if this VBA project is signed.

getName/setName

public java.lang.String getName() / public void setName(java.lang.String value)
Gets and sets the name of the VBA project.

setName

public void setName(java.lang.String value)
Gets and sets the name of the VBA project.

isSigned

public boolean isSigned()
Indicates whether VBAcode is signed or not.

isProtected

public boolean isProtected()
Indicates whether this VBA project is protected.

getIslockedForViewing

public boolean getIslockedForViewing()
Indicates whether this VBA project is locked for viewing.

getModules

public VbaModuleCollection getModules()
Gets all VbaModule objects.

getReferences

public VbaProjectReferenceCollection getReferences()
Gets all references of VBA project.

Method Detail

sign

public void sign(DigitalSignature digitalSignature)
         throws java.lang.Exception
Sign this VBA project by a DigitalSignature
Parameters:
digitalSignature - DigitalSignature

protect

public void protect(boolean islockedForViewing, java.lang.String password)
Protects or unprotects this VBA project. If islockedForViewing is true, the password could not be null.
Parameters:
islockedForViewing - indicates whether locks project for viewing.
password - If the value is null, unprotects this VBA project, otherwise projects the this VBA project.

copy

public void copy(VbaProject source)
Copy VBA project from other file.
Parameters:
source -

validatePassword

public boolean validatePassword(java.lang.String password)
Validates protection password.
Parameters:
password - the password
Returns:
Whether password is the protection password of this VBA project

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.