filters
formula.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __KWORD_LATEXFORMULA__
00024 #define __KWORD_LATEXFORMULA__
00025
00026 #include "element.h"
00027 #include <qstring.h>
00028 #include <qtextstream.h>
00029
00030
00031
00032
00033
00038 class Formula: public Element
00039 {
00040
00041 int _left,
00042 _top,
00043 _right,
00044 _bottom;
00045 TAround _runaround;
00046 double _runaroundGap;
00047 TCreate _autoCreate;
00048 TNFrame _newFrameBehaviour;
00049 TSide _sheetSide;
00050
00051
00052 QString _formula;
00053
00054 public:
00060 Formula();
00061
00062
00063
00064
00065
00066
00067 virtual ~Formula() {
00068 kdDebug(30522) << "Destruction of a formula" << endl; }
00069
00073
00074
00075 TAround getRunAround () const { return _runaround; }
00076 double getAroundGap () const { return _runaroundGap; }
00077 TCreate getAutoCreate () const { return _autoCreate; }
00078 TNFrame getNewFrame () const { return _newFrameBehaviour; }
00079 TSide getSheetSide () const { return _sheetSide; }
00080
00081 void getFormula(QDomNode, int);
00082
00086 void setRunAround (const int a) { _runaround = (TAround) a; }
00087 void setAroundGap (const double r) { _runaroundGap = r; }
00088 void setAutoCreate(const int a) { _autoCreate = (TCreate) a; }
00089 void setNewFrame (const int n) { _newFrameBehaviour = (TNFrame) n; }
00090 void setSheetSide (const int s) { _sheetSide = (TSide) s; }
00091
00100 void analyse(const QDomNode);
00101
00105 void generate(QTextStream&);
00106
00107 private:
00108 void analyseParamFrame(const QDomNode);
00109 };
00110
00111 #endif
|