Package com.independentsoft.office.odf
Class Deletion
java.lang.Object
com.independentsoft.office.odf.Deletion
- All Implemented Interfaces:
IChangedRegionContent,IContentElement
Represents information that identifies the person responsible for a deletion and the date of that deletion.This information may also contain one or more objects which contains a comment on the deletion.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a Change object to the content.voidAdds a ChangeEnd object to the content.voidadd(ChangeStart changeStart)Adds a ChangeStart object to the content.voidAdds a Shape object to the content.voidAdds a Heading object to the content.voidadd(IndexOfIllustrations index)Adds an IndexOfIllustrations object to the content.voidadd(ITextContent textContent)Adds an ITextContent object to the content.voidAdds a List object to the content.voidAdds a Paragraph object to the content.voidAdds a Section object to the content.voidAdds a Table object to the content.voidadd(TableOfContents toc)Adds a TableOfContents object to the content.clone()Creates a new object that is a deep copy of the current instance.Specifies who made a change and when.Contains a collection of ITextContent objects.Returns all content elements.Returns the parent content element.voidsetChangeInfo(ChangeInfo changeInfo)Specifies who made a change and when.voidsetParent(IContentElement parent)Sets the parent content element.toString()Converts the value of the current Deletion object to its equivalent string representation.
-
Constructor Details
-
Deletion
public Deletion()Initializes a new instance of the Deletion class.
-
-
Method Details
-
add
Adds a Change object to the content.- Parameters:
change- the change
-
add
Adds a ChangeEnd object to the content.- Parameters:
changeEnd- the change end
-
add
Adds a ChangeStart object to the content.- Parameters:
changeStart- the change start
-
add
Adds a Shape object to the content.- Parameters:
shape- the shape
-
add
Adds an IndexOfIllustrations object to the content.- Parameters:
index- the index
-
add
Adds a Heading object to the content.- Parameters:
heading- the heading
-
add
Adds a List object to the content.- Parameters:
list- the list
-
add
Adds a Paragraph object to the content.- Parameters:
paragraph- the paragraph
-
add
Adds a Section object to the content.- Parameters:
section- the section
-
add
Adds a Table object to the content.- Parameters:
table- the table
-
add
Adds a TableOfContents object to the content.- Parameters:
toc- the toc
-
add
Adds an ITextContent object to the content.- Parameters:
textContent- the text content
-
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 interfaceIChangedRegionContent- 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 Deletion object to its equivalent string representation. -
getContent
Contains a collection of ITextContent objects.- Returns:
- the content
-
getChangeInfo
Specifies who made a change and when. It may also contain a comment on the change.- Returns:
- the change info
-
setChangeInfo
Specifies who made a change and when. It may also contain a comment on the change.- Parameters:
changeInfo- the new change info
-