filters

body.h

00001 /* This file is part of the KDE project
00002  * Copyright (C) 2003 Robert JACOLIN <rjacolin@ifrance.com>
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Library General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Library General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public License
00015  * along with this library; see the file COPYING.LIB.  If not, write to
00016  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
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 /* __KWORD_LATEX_IMPORT_BODY_H__ */
KDE Home | KDE Accessibility Home | Description of Access Keys