Module pro.verron.officestamper
Class PowerpointParagraph
java.lang.Object
pro.verron.officestamper.experimental.PowerpointParagraph
- All Implemented Interfaces:
Paragraph
A "Run" defines a region of text within a docx document with a common set of properties. Word processors are relatively free in splitting a paragraph of text into multiple runs, so there is no strict rule to say over how many runs a word or a string of words is spread.
This class aggregates multiple runs so they can be treated as a single text, no matter how many runs the text spans.
- Since:
- 1.0.8
- Version:
- ${version}
- Author:
- Joseph Verron, Tom Hombergs
-
Constructor Summary
ConstructorDescriptionPowerpointParagraph
(org.docx4j.dml.CTTextParagraph paragraph) Constructs a new ParagraphWrapper for the given paragraph. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface pro.verron.officestamper.api.Paragraph
contains, replaceAll
-
Constructor Details
-
PowerpointParagraph
public PowerpointParagraph(org.docx4j.dml.CTTextParagraph paragraph) Constructs a new ParagraphWrapper for the given paragraph.- Parameters:
paragraph
- the paragraph to wrap.
-
-
Method Details
-
replace
Replaces the given expression with the replacement object within the paragraph. The replacement object must be a valid DOCX4J Object. -
asString
Returns the aggregated text over all runs. -
toString
-