body.h
1/* This file is part of the KDE project
2 * Copyright (C) 2003 Robert JACOLIN <rjacolin@ifrance.com>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20#ifndef __KWORD_LATEX_IMPORT_BODY_H__
21#define __KWORD_LATEX_IMPORT_BODY_H__
22
23#include <tqptrlist.h>
24#include "paragraph.h"
25
26class Element;
27class TQDomDocument;
28class TQDomElement;
29
30#define NORMALTEXT 0
31#define TEXTFRAME 1
32
37class Body
38{
39 public:
40 Body()
41 {
42 _leftMargin = 28;
43 _rightMargin = 28;
44 _topMargin = 42;
45 _bottomMargin = 42;
46 }
47
48 ~Body() { }
49
57 bool analyse(Element* elt);
58
64 bool generate(TQDomElement& framesets, TQDomDocument& doc);
65
66 private:
68 int _leftMargin;
70 int _rightMargin;
72 int _topMargin;
74 int _bottomMargin;
76 TQPtrList<Paragraph> _paragraphs;
77};
78
79#endif /* __KWORD_LATEX_IMPORT_BODY_H__ */
The body is a frameset.
Definition body.h:38
bool analyse(Element *elt)
Analyse the latex tree and keep data.
Definition body.cpp:24
bool generate(TQDomElement &framesets, TQDomDocument &doc)
Generate a kword document.
Definition body.cpp:29
This class is a element.