Class MPPSaveOptions
- java.lang.Object
-
- com.aspose.tasks.SimpleSaveOptions
-
- com.aspose.tasks.MPPSaveOptions
-
public class MPPSaveOptions extends SimpleSaveOptions
Allows to specify additional options when saving project data to MPP.
-
-
Constructor Summary
Constructors Constructor Description MPPSaveOptions()Initializes a new instance of theMPPSaveOptionsclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetClearVba()Gets a value indicating whether to remove existing VBA macros data when saving a project to MPP format.StringgetProtectionPassword()Gets a password which is used to protect a resulting MPP file.booleangetRemoveInvalidAssignments()Gets a value indicating whether to remove invalid resource assignments when saving to MPP.booleangetWriteFilters()Gets a value indicating whether to write filter data when saving a project to MPP for format.booleangetWriteGroups()Gets a value indicating whether to write groups data when saving a project to MPP for format.booleangetWriteVba()Gets a value indicating whether to update existing VBA macros data in MPP file.booleangetWriteViewData()Gets a value indicating whether to write view data when saving a project to MPP format.voidsetClearVba(boolean value)Sets a value indicating whether to remove existing VBA macros data when saving a project to MPP format.voidsetProtectionPassword(String value)Sets a password which is used to protect a resulting MPP file.voidsetRemoveInvalidAssignments(boolean value)Sets a value indicating whether to remove invalid resource assignments when saving to MPP.voidsetWriteFilters(boolean value)Sets a value indicating whether to write filter data when saving a project to MPP for format.voidsetWriteGroups(boolean value)Sets a value indicating whether to write groups data when saving a project to MPP for format.voidsetWriteVba(boolean value)Sets a value indicating whether to update existing VBA macros data in MPP file.voidsetWriteViewData(boolean value)Sets a value indicating whether to write view data when saving a project to MPP format.-
Methods inherited from class com.aspose.tasks.SimpleSaveOptions
getSaveFormat, getTasksComparer, getTasksFilter, setTasksComparer, setTasksFilter
-
-
-
-
Constructor Detail
-
MPPSaveOptions
public MPPSaveOptions()
Initializes a new instance of the
MPPSaveOptionsclass.
-
-
Method Detail
-
getClearVba
public final boolean getClearVba()
Gets a value indicating whether to remove existing VBA macros data when saving a project to MPP format.
- Returns:
- a value indicating whether to remove existing VBA macros data when saving a project to MPP format.
-
setClearVba
public final void setClearVba(boolean value)
Sets a value indicating whether to remove existing VBA macros data when saving a project to MPP format.
- Parameters:
value- a value indicating whether to remove existing VBA macros data when saving a project to MPP format.
-
getProtectionPassword
public final String getProtectionPassword()
Gets a password which is used to protect a resulting MPP file. Currently is supported for MS Project 2010 and newer formats.
Null value indicates that the project file is not protected.- Returns:
- a password which is used to protect a resulting MPP file.
-
setProtectionPassword
public final void setProtectionPassword(String value)
Sets a password which is used to protect a resulting MPP file. Currently is supported for MS Project 2010 and newer formats.
Null value indicates that the project file is not protected.- Parameters:
value- a password which is used to protect a resulting MPP file.
-
getRemoveInvalidAssignments
public final boolean getRemoveInvalidAssignments()
Gets a value indicating whether to remove invalid resource assignments when saving to MPP.
MS Project creates an empty resource assignment for each task. Set this flag to true to remove them on save.- Returns:
- a value indicating whether to remove invalid resource assignments when saving to MPP.
-
setRemoveInvalidAssignments
public final void setRemoveInvalidAssignments(boolean value)
Sets a value indicating whether to remove invalid resource assignments when saving to MPP.
MS Project creates an empty resource assignment for each task. Set this flag to true to remove them on save.- Parameters:
value- a value indicating whether to remove invalid resource assignments when saving to MPP.
-
getWriteFilters
public final boolean getWriteFilters()
Gets a value indicating whether to write filter data when saving a project to MPP for format.
Filter data includes Project.TaskFilters and Project.ResourceFilters collections.
Currently supported for MSP 2010 or newer formats.- Returns:
- a value indicating whether to write filter data when saving a project to MPP for format.
-
setWriteFilters
public final void setWriteFilters(boolean value)
Sets a value indicating whether to write filter data when saving a project to MPP for format.
Filter data includes Project.TaskFilters and Project.ResourceFilters collections.
Currently supported for MSP 2010 or newer formats.- Parameters:
value- a value indicating whether to write filter data when saving a project to MPP for format.
-
getWriteGroups
public final boolean getWriteGroups()
Gets a value indicating whether to write groups data when saving a project to MPP for format.
Group data includes Project.TaskGroups and Project.ResourceGroups collections.- Returns:
- a value indicating whether to write groups data when saving a project to MPP for format.
-
setWriteGroups
public final void setWriteGroups(boolean value)
Sets a value indicating whether to write groups data when saving a project to MPP for format.
Group data includes Project.TaskGroups and Project.ResourceGroups collections.- Parameters:
value- a value indicating whether to write groups data when saving a project to MPP for format.
-
getWriteVba
public final boolean getWriteVba()
Gets a value indicating whether to update existing VBA macros data in MPP file. Currently writing of VbaModule.SourceCode is supported.
- Returns:
- a value indicating whether to update existing VBA macros data in MPP file.
-
setWriteVba
public final void setWriteVba(boolean value)
Sets a value indicating whether to update existing VBA macros data in MPP file. Currently writing of VbaModule.SourceCode is supported.
- Parameters:
value- a value indicating whether to update existing VBA macros data in MPP file.
-
getWriteViewData
public final boolean getWriteViewData()
Gets a value indicating whether to write view data when saving a project to MPP format.
View data includes Project.Views, Filters and Tables collections.- Returns:
- a value indicating whether to write view data when saving a project to MPP format.
-
setWriteViewData
public final void setWriteViewData(boolean value)
Sets a value indicating whether to write view data when saving a project to MPP format.
View data includes Project.Views, Filters and Tables collections.- Parameters:
value- a value indicating whether to write view data when saving a project to MPP format.
-
-