Package com.independentsoft.office.odf
Class TrackedChanges
java.lang.Object
com.independentsoft.office.odf.TrackedChanges
- All Implemented Interfaces:
IContentElement
Represents changes in an OpenDocument document.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Contains a collection of ChangedRegion objects.Returns all content elements.Returns the parent content element.booleanSpecifies whether changes to the document should be tracked and recorded.voidsetParent(IContentElement parent)Sets the parent content element.voidsetTrackChanges(boolean trackChanges)Specifies whether changes to the document should be tracked and recorded.toString()Converts the value of the current TrackedChanges object to its equivalent string representation.
-
Constructor Details
-
TrackedChanges
public TrackedChanges()Initializes a new instance of the TrackedChanges class.
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIContentElement- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current TrackedChanges object to its equivalent string representation. -
getChangedRegions
Contains a collection of ChangedRegion objects.- Returns:
- the changed regions
-
isTrackChanges
public boolean isTrackChanges()Specifies whether changes to the document should be tracked and recorded. The defined values are: -false: changes are not tracked. -true: changes are tracked.- Returns:
- true, if is track changes
-
setTrackChanges
public void setTrackChanges(boolean trackChanges)Specifies whether changes to the document should be tracked and recorded. The defined values are: -false: changes are not tracked. -true: changes are tracked.- Parameters:
trackChanges- the new track changes
-