filters
footnote.h
00001 /* A PARA IS A TITLE, A SET OF WORDS OR A LIST. TO KNOW ITS TYPE, 00002 * YOU MUST LOOK AT IN THE LAYOUT CLASS. 00003 */ 00004 /* 00005 ** Header file for inclusion with kword_xml2latex.c 00006 ** 00007 ** Copyright (C) 2000 Robert JACOLIN 00008 ** 00009 ** This library is free software; you can redistribute it and/or 00010 ** modify it under the terms of the GNU Library General Public 00011 ** License as published by the Free Software Foundation; either 00012 ** version 2 of the License, or (at your option) any later version. 00013 ** 00014 ** This library is distributed in the hope that it will be useful, 00015 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 ** Library General Public License for more details. 00018 ** 00019 ** To receive a copy of the GNU Library General Public License, write to the 00020 ** Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00021 * Boston, MA 02110-1301, USA. 00022 ** 00023 */ 00024 00025 #ifndef __KWORD_LATEX_FOOTNOTE_H__ 00026 #define __KWORD_LATEX_FOOTNOTE_H__ 00027 00028 #include <qstring.h> 00029 #include "format.h" 00030 00031 /***********************************************************************/ 00032 /* Class: Footnote */ 00033 /***********************************************************************/ 00034 00039 class Footnote: public Format 00040 { 00041 int _from, _to; 00042 int _start, _end; 00043 QString _before, _after, _space; // TODO: Change in QChar 00044 QString _ref; 00045 00046 public: 00054 Footnote(Para* para = 0); 00055 //Footnote(TextZone); 00056 00057 /* 00058 * Destructor 00059 * 00060 * Nothing to do 00061 */ 00062 virtual ~Footnote(); 00063 00071 void setFrom (int f) { _from = f; } 00072 void setTo (int t) { _to = t; } 00073 void setSpace (QString); 00074 void setStart (int s) { _start = s; } 00075 void setEnd (int e) { _end = e; } 00076 void setBefore(QString); 00077 void setAfter (QString); 00078 void setRef (QString); 00079 00083 void analyse (const QDomNode); 00084 void analyseInternal(const QDomNode); 00085 void analyseRange(const QDomNode); 00086 void analyseText(const QDomNode); 00087 void analyseDescript(const QDomNode); 00088 00089 void generate(QTextStream&); 00090 00091 //private: 00092 }; 00093 00094 00095 #endif /* __KWORD_LATEX_FOOTNOTE_H__ */ 00096