34 kdDebug(30522) << "Destruction of a footnote." << endl;
38void Footnote::setSpace (TQString new_space)
43void Footnote::setBefore(TQString new_before)
49void Footnote::setAfter(TQString new_after)
54void Footnote::setRef(TQString new_ref)
64 kdDebug(30522) << "ANALYSE A FOOTNOTE" << endl;
67 for( int index= 0; index < getNbChild(balise); index++)
69 if(getChildName(balise, index).compare( "INTERNAL")== 0)
71 kdDebug(30522) << "INTERNAL : " << endl;
72 analyseInternal(balise);
74 else if(getChildName(balise, index).compare( "RANGE")== 0)
76 kdDebug(30522) << "RANGE : " << endl;
79 else if(getChildName(balise, index).compare( "TEXT")== 0)
81 kdDebug(30522) << "TEXT : " << endl;
84 else if(getChildName(balise, index).compare( "DESCRIPT")== 0)
86 kdDebug(30522) << "DESCRIPT : " << endl;
87 analyseDescript(balise);
89 else if(getChildName(balise, index).compare( "FORMAT")== 0)
91 kdDebug(30522) << "SUBFORMAT : " << endl;
95 kdDebug(30522) << "END OF FOOTNOTE" << endl;
98void Footnote::analyseInternal( const TQDomNode balise)
104 fils = getChild(balise, "PART");
105 for( int index= 0; index < getNbChild(balise); index++)
107 if(getChildName(balise, index).compare( "PART")== 0)
109 kdDebug(30522) << "PART : " << endl;
110 setFrom(getAttr(balise, "FROM").toInt());
111 setTo(getAttr(balise, "TO").toInt());
112 setSpace(getAttr(balise, "SPACE"));
118void Footnote::analyseRange( const TQDomNode balise)
120 kdDebug(30522) << "PARAM" << endl;
121 setStart(getAttr(balise, "START").toInt());
122 setEnd(getAttr(balise, "END").toInt());
125void Footnote::analyseText( const TQDomNode balise)
127 kdDebug(30522) << "PARAM" << endl;
128 setBefore(getAttr(balise, "BEFORE"));
129 setAfter(getAttr(balise, "AFTER"));
132void Footnote::analyseDescript( const TQDomNode balise)
134 kdDebug(30522) << "PARAM" << endl;
135 setRef(getAttr(balise, "REF"));
138void Footnote::generate(TQTextStream &out)
142 kdDebug(30522) << " GENERATION FOOTNOTE" << endl;
146 out << "\\,\\footnote{";
147 kdDebug(30522) << "footnote : " << _ref << endl;
148 if((footnote = getRoot()->searchFootnote(_ref)) != 0)
149 footnote->generate(out);
151 kdDebug(30522) << "FOOTNOTE GENERATED" << endl;
This class hold a real paragraph.
|