Class AttributeBlockFormatProvider<T>
- java.lang.Object
-
- com.vladsch.flexmark.docx.converter.util.BlockFormatProviderBase<T>
-
- com.vladsch.flexmark.docx.converter.util.AttributeBlockFormatProvider<T>
-
- All Implemented Interfaces:
BlockFormatProvider<T>
,FormatProvider<T>
public class AttributeBlockFormatProvider<T> extends BlockFormatProviderBase<T>
-
-
Field Summary
Fields Modifier and Type Field Description AttributeFormat
myAttributeFormat
-
Fields inherited from class com.vladsch.flexmark.docx.converter.util.BlockFormatProviderBase
myBaseStyleId, myDocx, myFrame, myParent, myPCount
-
Fields inherited from interface com.vladsch.flexmark.docx.converter.util.BlockFormatProvider
STYLE_TYPE_NUMBERING
-
-
Constructor Summary
Constructors Constructor Description AttributeBlockFormatProvider(DocxContext<T> docx, AttributeFormat attributeFormat)
AttributeBlockFormatProvider(DocxContext<T> docx, java.lang.String fontFamily, java.lang.String fontSize, java.lang.String fontWeight, java.lang.String fontStyle, java.lang.String textColor, java.lang.String fillColor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adjustPPrForFormatting(org.docx4j.wml.PPr pPr)
void
close()
finalize, add elements to the document after main part as needed after this method returns no more calls will be made to this providervoid
open()
initialize internal stuff based on the parent for future use optionally add elements to doc before main elements any P creates will call the getPPr(), getParaRPr() and addP() for this provider so don't create elements until you are ready to handle these calls-
Methods inherited from class com.vladsch.flexmark.docx.converter.util.BlockFormatProviderBase
adjustPPr, getBaseStyle, getBaseStyleId, getBlockParent, getParaRPr, getPPr, getProviderFrame, getStyle, getStyleId, getStyleParent, inheritBdr, inheritIndent, inheritParentFormat
-
-
-
-
Field Detail
-
myAttributeFormat
public final AttributeFormat myAttributeFormat
-
-
Constructor Detail
-
AttributeBlockFormatProvider
public AttributeBlockFormatProvider(DocxContext<T> docx, java.lang.String fontFamily, java.lang.String fontSize, java.lang.String fontWeight, java.lang.String fontStyle, java.lang.String textColor, java.lang.String fillColor)
-
AttributeBlockFormatProvider
public AttributeBlockFormatProvider(DocxContext<T> docx, AttributeFormat attributeFormat)
-
-
Method Detail
-
open
public void open()
Description copied from interface:FormatProvider
initialize internal stuff based on the parent for future use optionally add elements to doc before main elements any P creates will call the getPPr(), getParaRPr() and addP() for this provider so don't create elements until you are ready to handle these calls- Specified by:
open
in interfaceFormatProvider<T>
- Overrides:
open
in classBlockFormatProviderBase<T>
-
close
public void close()
Description copied from interface:FormatProvider
finalize, add elements to the document after main part as needed after this method returns no more calls will be made to this provider- Specified by:
close
in interfaceFormatProvider<T>
- Overrides:
close
in classBlockFormatProviderBase<T>
-
adjustPPrForFormatting
public void adjustPPrForFormatting(org.docx4j.wml.PPr pPr)
- Specified by:
adjustPPrForFormatting
in interfaceBlockFormatProvider<T>
- Overrides:
adjustPPrForFormatting
in classBlockFormatProviderBase<T>
-
-