filters

kword/latex/export/formula.h
1/* A TEXT IS A SET OF TITLES, A (SET OF) PARAGRAPHS OR LISTS */
2/*
3** Header file for inclusion with kword_xml2latex.c
4**
5** Copyright (C) 2000 Robert JACOLIN
6**
7** This library is free software; you can redistribute it and/or
8** modify it under the terms of the GNU Library General Public
9** License as published by the Free Software Foundation; either
10** version 2 of the License, or (at your option) any later version.
11**
12** This library is distributed in the hope that it will be useful,
13** but WITHOUT ANY WARRANTY; without even the implied warranty of
14** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15** Library General Public License for more details.
16**
17** To receive a copy of the GNU Library General Public License, write to the
18** Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20**
21*/
22
23#ifndef __KWORD_LATEXFORMULA__
24#define __KWORD_LATEXFORMULA__
25
26#include "element.h"
27#include <tqstring.h>
28#include <tqtextstream.h>
29
30/***********************************************************************/
31/* Class: Formula */
32/***********************************************************************/
33
38class Formula: public Element
39{
40 /* DATA MARKUP */
41 int _left,
42 _top,
43 _right,
44 _bottom;
45 TAround _runaround;
46 double _runaroundGap;
47 TCreate _autoCreate;
48 TNFrame _newFrameBehaviour;
49 TSide _sheetSide;
50
51 /* CHILDREN MARKUPS */
52 TQString _formula;
53
54 public:
61
62 /*
63 * Destructor
64 *
65 * Nothing to do.
66 */
67 virtual ~Formula() {
68 kdDebug(30522) << "Destruction of a formula" << endl; }
69
73 /*bool hasColor () const;
74 bool hasUline () const;*/
75 TAround getRunAround () const { return _runaround; }
76 double getAroundGap () const { return _runaroundGap; }
77 TCreate getAutoCreate () const { return _autoCreate; }
78 TNFrame getNewFrame () const { return _newFrameBehaviour; }
79 TSide getSheetSide () const { return _sheetSide; }
80
81 void getFormula(TQDomNode, int);
82
86 void setRunAround (const int a) { _runaround = (TAround) a; }
87 void setAroundGap (const double r) { _runaroundGap = r; }
88 void setAutoCreate(const int a) { _autoCreate = (TCreate) a; }
89 void setNewFrame (const int n) { _newFrameBehaviour = (TNFrame) n; }
90 void setSheetSide (const int s) { _sheetSide = (TSide) s; }
91
95
100 void analyse(const TQDomNode);
101
105 void generate(TQTextStream&);
106
107 private:
108 void analyseParamFrame(const TQDomNode);
109};
110
111#endif /* __KWORD_LATEXFORMULA_H__ */
This class is a element.
This class hold a formula.
Formula()
Constructors.
void generate(TQTextStream &)
Write the formula in a file.
TAround getRunAround() const
Accessors.
void setRunAround(const int a)
Modifiers.
void analyse(const TQDomNode)
Helpfull functions.