org.apache.fop.render.rtf.rtflib.rtfdoc
Class RtfSpaceManager
java.lang.Object
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfSpaceManager
public class RtfSpaceManager
extends java.lang.Object
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.
RtfSpaceManager
public RtfSpaceManager()
Construct a newly allocated RtfSpaceManager
object.
getLastInlineAttribute
public RtfAttributes getLastInlineAttribute()
Peeks at inline-level attribute stack.
- RtfAttributes from top of inline-level stack
popInlineAttributes
public void popInlineAttributes()
Pops inline attributes from inline-level stack.
popRtfSpaceSplitter
public void popRtfSpaceSplitter()
Removes RtfSpaceSplitter from top of block-level stack.
pushInlineAttributes
public void pushInlineAttributes(RtfAttributes attrs)
Pushes inline attributes to inline-level stack.
attrs
- attributes to add
pushRtfSpaceSplitter
public RtfSpaceSplitter pushRtfSpaceSplitter(RtfAttributes attrs)
Builds RtfSpaceSplitter on attrs
and adds it to the
block-level stack.
attrs
- RtfAttribute to add
- instance of RtfSpaceSplitter
setCandidate
public void setCandidate(RtfAttributes attrs)
Set attributes as candidate for space attributes inheritance.
attrs
- attributes to set
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.
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.