Class RtfSpaceManager
java.lang.Object
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfSpaceManager
This class is responsible for saving space-before/space-after attributes
history and adding spacing to established candidates (i.e. attributes) or
accumulation spacing in case of candidate absence.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPeeks at inline-level attribute stack.void
Pops inline attributes from inline-level stack.void
Removes RtfSpaceSplitter from top of block-level stack.void
Pushes inline attributes to inline-level stack.Builds RtfSpaceSplitter onattrs
and adds it to the block-level stack.void
setCandidate
(RtfAttributes attrs) Set attributes as candidate for space attributes inheritance.void
Iterates block-level stack (i.e.
-
Constructor Details
-
RtfSpaceManager
public RtfSpaceManager()Construct a newly allocatedRtfSpaceManager
object.
-
-
Method Details
-
stopUpdatingSpaceBefore
public void stopUpdatingSpaceBefore()Iterates block-level stack (i.e. all open blocks) and stops updating candidate for adding space-before/space-after attribute in case of candidate presence. -
setCandidate
Set attributes as candidate for space attributes inheritance.- Parameters:
attrs
- attributes to set
-
pushRtfSpaceSplitter
Builds RtfSpaceSplitter onattrs
and adds it to the block-level stack.- Parameters:
attrs
- RtfAttribute to add- Returns:
- instance of RtfSpaceSplitter
-
popRtfSpaceSplitter
public void popRtfSpaceSplitter()Removes RtfSpaceSplitter from top of block-level stack. -
pushInlineAttributes
Pushes inline attributes to inline-level stack.- Parameters:
attrs
- attributes to add
-
popInlineAttributes
public void popInlineAttributes()Pops inline attributes from inline-level stack. -
getLastInlineAttribute
Peeks at inline-level attribute stack.- Returns:
- RtfAttributes from top of inline-level stack
-