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 Stringstatic final Stringconstant for fieldstatic final Stringconstant for field pageref modelstatic final Stringconstant for field resultFields inherited from class 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 RtfContainer
addChild, containsText, dump, findChildren, getChildCount, getChildren, getOptions, okToWriteRtf, setChildren, setOptions, toStringMethods inherited from class RtfElement
close, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
-
Field Details
-
RTF_FIELD
-
RTF_FIELD_PAGEREF_MODEL
-
RTF_FIELD_RESULT
-
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:
writeRtfContentin classRtfContainer- Throws:
IOException- for I/O problems
-
isValid
private boolean isValid()checks that the 'ref-id' attribute exists -
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classRtfContainer- Returns:
- true if this element would generate no "useful" RTF content
-