Class Containerization
java.lang.Object
org.docx4j.convert.out.common.preprocess.Containerization
public class Containerization
extends java.lang.Object
In Word, adjacent paragraphs with the same borders are enclosed in a single border
(unless bullets/numbering apply).
Similarly with shading. (If the 2 paragraphs are shaded different colors, then the
color of the first extends to the start of the second, so there is no white strip
between them).
To do the same in HTML and PDF output, we put matching paragraphs into a content
control, and set the border/shading on that. This gives us an appropriate
div or fo:block.
- Author:
- jharrop, alberto
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTAG_BORDERSstatic java.lang.StringTAG_RPRstatic java.lang.StringTAG_SHADING -
Constructor Summary
Constructors Constructor Description Containerization() -
Method Summary
Modifier and Type Method Description protected static voidgroupAdjacentBorders(java.util.List<java.lang.Object> content)static voidprocess(WordprocessingMLPackage wmlPackage)
-
Field Details
-
TAG_SHADING
public static final java.lang.String TAG_SHADING- See Also:
- Constant Field Values
-
TAG_BORDERS
public static final java.lang.String TAG_BORDERS- See Also:
- Constant Field Values
-
TAG_RPR
public static final java.lang.String TAG_RPR- See Also:
- Constant Field Values
-
-
Constructor Details
-
Containerization
public Containerization()
-
-
Method Details
-
process
-
groupAdjacentBorders
protected static void groupAdjacentBorders(java.util.List<java.lang.Object> content)
-