Class RtfPageNumber
java.lang.Object
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfPageNumber
Page number container.
This work was authored by Christopher Scott (scottc@westinghouse.com).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
constant for fieldstatic final String
constant for field on pagestatic final String
constant for field resultFields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
attrib, parent, writer
-
Constructor Summary
ConstructorsConstructorDescriptionRtfPageNumber
(IRtfPageNumberContainer parent, Writer w) Create an RTF paragraph as a child of given container with default attributesRtfPageNumber
(RtfContainer parent, Writer w, RtfAttributes attrs) Create an RTF page number as a child of given container with given attributesRtfPageNumber
(RtfParagraph parent, Writer w) Create an RTF page number as a child of given paragraph, copying the paragraph attributes -
Method Summary
Modifier and TypeMethodDescriptionboolean
isEmpty()
protected void
Write our attributes and contentMethods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
addChild, containsText, dump, findChildren, getChildCount, getChildren, getOptions, okToWriteRtf, setChildren, setOptions, toString
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
close, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
-
Field Details
-
RTF_FIELD
constant for field- See Also:
-
RTF_FIELD_PAGE
constant for field on page- See Also:
-
RTF_FIELD_RESULT
constant for field result- See Also:
-
-
Constructor Details
-
RtfPageNumber
RtfPageNumber(IRtfPageNumberContainer parent, Writer w) throws IOException Create an RTF paragraph as a child of given container with default attributes- Throws:
IOException
-
RtfPageNumber
RtfPageNumber(RtfContainer parent, Writer w, RtfAttributes attrs) throws IOException Create an RTF page number as a child of given container with given attributes- Throws:
IOException
-
RtfPageNumber
RtfPageNumber(RtfParagraph parent, Writer w) throws IOException Create an RTF page number as a child of given paragraph, copying the paragraph attributes- Throws:
IOException
-
-
Method Details
-
writeRtfContent
Write our attributes and content- Overrides:
writeRtfContent
in classRtfContainer
- Throws:
IOException
- for I/O problems
-
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classRtfContainer
- Returns:
- true if this element would generate no "useful" RTF content
-