28#include "variablezone.h"
38 setSize(para->getSize());
39 setWeight(para->getWeight());
40 setItalic(para->isItalic());
41 setUnderlined(para->getUnderlineType());
42 setStrikeout(para->isStrikeout());
62VariableZone::~VariableZone()
64 kdDebug(30522) << "Destruction of an area" << endl;
75 kdDebug(30522) << "FORMAT" << endl;
80 analyseFormat(balise);
83 setTexte(getTexte().mid(getPos(), getLength()));
85 kdDebug(30522) << getTexte().length() << endl;
86 kdDebug(30522) << getTexte().latin1() << endl;
87 kdDebug(30522) << "END FORMAT" << endl;
95void VariableZone::generate(TQTextStream &out)
99 generate_format_begin(out);
102 kdDebug(30522) << "type : " << getType() << endl;
103 if((getType() == VAR_DATE) && !isFix())
104 out << "\\today" << endl;
105 else if(getType() == VAR_FOOTNOTE)
107 if(getNotetype() == "footnote")
108 out << "\\,\\footnote{";
109 else if(getNotetype() == "endnote")
110 out << "\\,\\endnote{";
112 Element* footnote = getRoot()->searchFootnote(getFrameset());
115 footnote->generate(out);
117 Config::instance()->writeIndent(out);
120 else if(getType() == VAR_NOTE)
122 out << "\\marginpar{\\scriptsize ";
123 if(Config::instance()->mustUseLatin1())
125 else if(Config::instance()->mustUseUnicode())
126 display(getNote(), out);
131 if(Config::instance()->mustUseLatin1())
133 else if(Config::instance()->mustUseUnicode())
134 display(getText(), out);
137 generate_format_end(out);
This class hold a real paragraph.
TQString escapeLatin1(TQString) convert a unicode text in latin1 enconding ala latex.
void analyse(const TQDomNode) Helpfull functions.
VariableZone(Para *para) Creates a new instance of VariableZone.
|