filters
body.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __KWORD_LATEX_IMPORT_BODY_H__
00021 #define __KWORD_LATEX_IMPORT_BODY_H__
00022
00023 #include <qptrlist.h>
00024 #include "paragraph.h"
00025
00026 class Element;
00027 class QDomDocument;
00028 class QDomElement;
00029
00030 #define NORMALTEXT 0
00031 #define TEXTFRAME 1
00032
00037 class Body
00038 {
00039 public:
00040 Body()
00041 {
00042 _leftMargin = 28;
00043 _rightMargin = 28;
00044 _topMargin = 42;
00045 _bottomMargin = 42;
00046 }
00047
00048 ~Body() { }
00049
00057 bool analyse(Element* elt);
00058
00064 bool generate(QDomElement& framesets, QDomDocument& doc);
00065
00066 private:
00068 int _leftMargin;
00070 int _rightMargin;
00072 int _topMargin;
00074 int _bottomMargin;
00076 QPtrList<Paragraph> _paragraphs;
00077 };
00078
00079 #endif
|