Aspose::Cells::Vba::IVbaProject Class Referenceabstract

Represents the VBA project. More...

Inherits Object.

Public Member Functions

virtual void SignByIIDigitalSignature (intrusive_ptr< Aspose::Cells::DigitalSignatures::IDigitalSignature > digitalSignature)=0
 Sign this VBA project by a DigitalSignature More...
 
virtual bool IsValidSigned ()=0
 Indicates whether the signature of VBA project is valid or not. More...
 
virtual intrusive_ptr< Aspose::Cells::Systems::Array1D< Aspose::Cells::Systems::Byte > > GetCertRawData ()=0
 Gets certificate raw data if this VBA project is signed. More...
 
virtual intrusive_ptr< Aspose::Cells::Systems::String > GetName ()=0
 Gets the name of the VBA project. More...
 
virtual void SetName (intrusive_ptr< Aspose::Cells::Systems::String > value)=0
 Sets the name of the VBA project. More...
 
virtual bool IsSigned ()=0
 Indicates whether VBAcode is signed or not. More...
 
virtual void Protect (bool islockedForViewing, intrusive_ptr< Aspose::Cells::Systems::String > password)=0
 Protects or unprotects this VBA project. More...
 
virtual bool IsProtected ()=0
 Indicates whether this VBA project is protected. More...
 
virtual bool GetIslockedForViewing ()=0
 Indicates whether this VBA project is locked for viewing. More...
 
virtual void Copy (intrusive_ptr< Aspose::Cells::Vba::IVbaProject > source)=0
 Copy VBA project from other file. More...
 
virtual intrusive_ptr< Aspose::Cells::Vba::IVbaModuleCollectionGetIVbaModules ()=0
 Gets all IVbaModule objects. More...
 
virtual intrusive_ptr< Aspose::Cells::Vba::IVbaProjectReferenceCollection > GetIReferences ()=0
 Gets all references of VBA project. More...
 
virtual bool ValidatePassword (intrusive_ptr< Aspose::Cells::Systems::String > password)=0
 Validates protection password. More...
 

Detailed Description

Represents the VBA project.

[C++]
//Instantiating a Workbook object
intrusive_ptr<IWorkbook> workbook = Factory::CreateIWorkbook();
// Init VBA project.
intrusive_ptr<IVbaProject> vbaProject = workbook->GetIVbaProject();
//Saving the Excel file
workbook->Save(new String("book1.xlsm"));

Member Function Documentation

◆ Copy()

virtual void Aspose::Cells::Vba::IVbaProject::Copy ( intrusive_ptr< Aspose::Cells::Vba::IVbaProject source)
pure virtual

Copy VBA project from other file.

Parameters
source

◆ GetCertRawData()

virtual intrusive_ptr<Aspose::Cells::Systems::Array1D<Aspose::Cells::Systems::Byte> > Aspose::Cells::Vba::IVbaProject::GetCertRawData ( )
pure virtual

Gets certificate raw data if this VBA project is signed.

◆ GetIReferences()

virtual intrusive_ptr<Aspose::Cells::Vba::IVbaProjectReferenceCollection> Aspose::Cells::Vba::IVbaProject::GetIReferences ( )
pure virtual

Gets all references of VBA project.

◆ GetIslockedForViewing()

virtual bool Aspose::Cells::Vba::IVbaProject::GetIslockedForViewing ( )
pure virtual

Indicates whether this VBA project is locked for viewing.

◆ GetIVbaModules()

virtual intrusive_ptr<Aspose::Cells::Vba::IVbaModuleCollection> Aspose::Cells::Vba::IVbaProject::GetIVbaModules ( )
pure virtual

Gets all IVbaModule objects.

◆ GetName()

virtual intrusive_ptr<Aspose::Cells::Systems::String> Aspose::Cells::Vba::IVbaProject::GetName ( )
pure virtual

Gets the name of the VBA project.

◆ IsProtected()

virtual bool Aspose::Cells::Vba::IVbaProject::IsProtected ( )
pure virtual

Indicates whether this VBA project is protected.

◆ IsSigned()

virtual bool Aspose::Cells::Vba::IVbaProject::IsSigned ( )
pure virtual

Indicates whether VBAcode is signed or not.

◆ IsValidSigned()

virtual bool Aspose::Cells::Vba::IVbaProject::IsValidSigned ( )
pure virtual

Indicates whether the signature of VBA project is valid or not.

◆ Protect()

virtual void Aspose::Cells::Vba::IVbaProject::Protect ( bool  islockedForViewing,
intrusive_ptr< Aspose::Cells::Systems::String >  password 
)
pure virtual

Protects or unprotects this VBA project.

Parameters
islockedForViewingindicates whether locks project for viewing.
passwordIf the value is null, unprotects this VBA project, otherwise projects the this VBA project.

If islockedForViewing is true, the password could not be null.

◆ SetName()

virtual void Aspose::Cells::Vba::IVbaProject::SetName ( intrusive_ptr< Aspose::Cells::Systems::String >  value)
pure virtual

Sets the name of the VBA project.

◆ SignByIIDigitalSignature()

virtual void Aspose::Cells::Vba::IVbaProject::SignByIIDigitalSignature ( intrusive_ptr< Aspose::Cells::DigitalSignatures::IDigitalSignature digitalSignature)
pure virtual

Sign this VBA project by a DigitalSignature

Parameters
digitalSignatureDigitalSignature

◆ ValidatePassword()

virtual bool Aspose::Cells::Vba::IVbaProject::ValidatePassword ( intrusive_ptr< Aspose::Cells::Systems::String >  password)
pure virtual

Validates protection password.

Parameters
passwordthe password
Returns
Whether password is the protection password of this VBA project