Class RtfPageNumberCitation
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.RtfPageNumberCitation
Page number citation container.
This work was authored by Christopher Scott (scottc@westinghouse.com) and Boris Pouderous (boris.pouderous@free.fr).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
static final String
constant for fieldstatic final String
constant for field pageref modelstatic final String
constant for field resultFields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
attrib, parent, writer
-
Constructor Summary
ConstructorsConstructorDescriptionRtfPageNumberCitation
(RtfContainer parent, Writer w, String id) Create an RTF page number citation as a child of given container with default attributesRtfPageNumberCitation
(RtfParagraph parent, Writer w, String id) Create an RTF page number citation as a child of given paragraph, copying its attributes -
Method Summary
Methods 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_PAGEREF_MODEL
constant for field pageref model- See Also:
-
RTF_FIELD_RESULT
constant for field result- See Also:
-
id
-
-
Constructor Details
-
RtfPageNumberCitation
RtfPageNumberCitation(RtfContainer parent, Writer w, String id) throws IOException Create an RTF page number citation as a child of given container with default attributes- Throws:
IOException
-
RtfPageNumberCitation
RtfPageNumberCitation(RtfParagraph parent, Writer w, String id) throws IOException Create an RTF page number citation as a child of given paragraph, copying its attributes- Throws:
IOException
-
-
Method Details
-
writeRtfContent
Write the content- Overrides:
writeRtfContent
in classRtfContainer
- Throws:
IOException
- for I/O problems
-
isValid
private boolean isValid()checks that the 'ref-id' attribute exists -
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classRtfContainer
- Returns:
- true if this element would generate no "useful" RTF content
-