Class BlockFormatProviderBase<T>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void adjustPPr​(org.docx4j.wml.PPr pPrBase)  
      void adjustPPrForFormatting​(org.docx4j.wml.PPr pP)  
      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 provider
      protected org.docx4j.wml.Style getBaseStyle()  
      protected java.lang.String getBaseStyleId()  
      BlockFormatProvider<T> getBlockParent()  
      void getParaRPr​(org.docx4j.wml.RPr rPr)  
      void getPPr​(org.docx4j.wml.PPr pPr)  
      T getProviderFrame()
      get the node for this formatting block
      org.docx4j.wml.Style getStyle()  
      java.lang.String getStyleId()
      these are the hard-coded styles on which this block is based used for reference purposes by children to figure out what they need to combine
      protected BlockFormatProvider<T> getStyleParent()
      Get the style parent for the next P of this block
      protected void inheritBdr​(org.docx4j.wml.PPr pPr, org.docx4j.wml.PPr parentPPr)
      Inherit left border
      protected void inheritIndent​(org.docx4j.wml.PPr pPrBase, org.docx4j.wml.PPr parentPrBase)  
      protected void inheritParentFormat​(org.docx4j.wml.PPr pPr, org.docx4j.wml.PPr parentPPr)  
      void 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • myFrame

        protected final T myFrame
      • myBaseStyleId

        protected final java.lang.String myBaseStyleId
      • myPCount

        protected int myPCount
    • Constructor Detail

      • BlockFormatProviderBase

        public BlockFormatProviderBase​(DocxContext<T> docx,
                                       java.lang.String baseStyleId)
    • Method Detail

      • getProviderFrame

        public T getProviderFrame()
        Description copied from interface: FormatProvider
        get the node for this formatting block
        Specified by:
        getProviderFrame in interface FormatProvider<T>
        Returns:
        node for this format provider
      • 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 interface FormatProvider<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 interface FormatProvider<T>
      • getBaseStyle

        protected org.docx4j.wml.Style getBaseStyle()
      • getBaseStyleId

        protected java.lang.String getBaseStyleId()
      • getStyleId

        public java.lang.String getStyleId()
        Description copied from interface: FormatProvider
        these are the hard-coded styles on which this block is based used for reference purposes by children to figure out what they need to combine
        Specified by:
        getStyleId in interface FormatProvider<T>
        Returns:
        style id
      • getStyleParent

        protected BlockFormatProvider<T> getStyleParent()
        Get the style parent for the next P of this block
        Returns:
        parent to use for style inheritance
      • inheritIndent

        protected void inheritIndent​(org.docx4j.wml.PPr pPrBase,
                                     org.docx4j.wml.PPr parentPrBase)
      • inheritParentFormat

        protected void inheritParentFormat​(org.docx4j.wml.PPr pPr,
                                           org.docx4j.wml.PPr parentPPr)
      • adjustPPr

        protected void adjustPPr​(org.docx4j.wml.PPr pPrBase)
      • inheritBdr

        protected void inheritBdr​(org.docx4j.wml.PPr pPr,
                                  org.docx4j.wml.PPr parentPPr)
        Inherit left border

        must be called after ind has been determined

        Parameters:
        pPr - ppr to set
        parentPPr - parent ppr