Package com.independentsoft.office.odf
Class TextDocumentBody
java.lang.Object
com.independentsoft.office.odf.TextDocumentBody
- All Implemented Interfaces:
IContentElement
The Class TextDocumentBody.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the.voidAdds the.voidadd(ChangeStart changeStart)Adds the.voidAdds the.voidAdds the.voidadd(IndexOfIllustrations index)Adds the.voidadd(ITextContent textContent)Adds the.voidAdds the.voidAdds the.voidAdds the.voidadd(SoftPageBreak softPageBreak)Adds the.voidAdds the.voidadd(TableOfContents toc)Adds the.clone()Creates a new object that is a deep copy of the current instance.Gets the content.Returns all content elements.Returns the parent content element.booleanisGlobal()Checks if is global.voidsetGlobal(boolean global)Sets the global.voidsetParent(IContentElement parent)Sets the parent content element.voidsetUseSoftPageBreaks(boolean useSoftPageBreaks)Sets the use soft page breaks.toString()Converts the value of the current TextDocumentBody object to its equivalent string representation.booleanUse soft page breaks.
-
Constructor Details
-
TextDocumentBody
public TextDocumentBody()Instantiates a new text document body.
-
-
Method Details
-
add
Adds the.- Parameters:
change- the change
-
add
Adds the.- Parameters:
changeEnd- the change end
-
add
Adds the.- Parameters:
changeStart- the change start
-
add
Adds the.- Parameters:
shape- the shape
-
add
Adds the.- Parameters:
index- the index
-
add
Adds the.- Parameters:
heading- the heading
-
add
Adds the.- Parameters:
list- the list
-
add
Adds the.- Parameters:
paragraph- the paragraph
-
add
Adds the.- Parameters:
section- the section
-
add
Adds the.- Parameters:
softPageBreak- the soft page break
-
add
Adds the.- Parameters:
table- the table
-
add
Adds the.- Parameters:
toc- the toc
-
add
Adds the.- 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 interfaceIContentElement- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current TextDocumentBody object to its equivalent string representation. -
getContent
Gets the content.- Returns:
- the content
-
isGlobal
public boolean isGlobal()Checks if is global.- Returns:
- true, if is global
-
setGlobal
public void setGlobal(boolean global)Sets the global.- Parameters:
global- the new global
-
useSoftPageBreaks
public boolean useSoftPageBreaks()Use soft page breaks.- Returns:
- true, if successful
-
setUseSoftPageBreaks
public void setUseSoftPageBreaks(boolean useSoftPageBreaks)Sets the use soft page breaks.- Parameters:
useSoftPageBreaks- the new use soft page breaks
-