filters

key.h

00001 /*
00002 ** Header file for inclusion with kword_xml2latex.c
00003 **
00004 ** Copyright (C) 2002 Robert JACOLIN
00005 **
00006 ** This library is free software; you can redistribute it and/or
00007 ** modify it under the terms of the GNU Library General Public
00008 ** License as published by the Free Software Foundation; either
00009 ** version 2 of the License, or (at your option) any later version.
00010 **
00011 ** This library is distributed in the hope that it will be useful,
00012 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 ** Library General Public License for more details.
00015 **
00016 ** To receive a copy of the GNU Library General Public License, write to the
00017 ** Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 **
00020 */
00021 
00022 #ifndef __KWORD_LATEX_EXPORT_KEY_H__
00023 #define __KWORD_LATEX_EXPORT_KEY_H__
00024 
00025 #include <qstring.h>
00026 
00027 #include "xmlparser.h"
00028 
00029 /***********************************************************************/
00030 /* Class: Key                                                         */
00031 /***********************************************************************/
00032 
00038 class Key: public XmlParser
00039 {
00040     public:
00041         enum eKeyType { PIXMAP, PICTURE };
00042     private:
00043         /* MARKUP DATA */
00044         QString _filename;
00045         QString _name;
00046         int _hour;
00047         int _minute;
00048         int _second;
00049         int _msec;
00050         int _day;
00051         int _month;
00052         int _year;
00053 
00054         eKeyType _type;
00055 
00056     public:
00064         Key(eKeyType);
00065 
00066         /* 
00067          * Destructor
00068          *
00069          * The destructor must remove the list of little zones.
00070          */
00071         virtual ~Key();
00072 
00080         QString getName() const { return _name; }
00081         QString getFilename() const { return _filename; }
00082         int getHour() const { return _hour; }
00083         int getMSec() const { return _msec; }
00084         int getDay() const { return _day; }
00085         int getMinute() const { return _minute; }
00086         int getSecond() const { return _second; }
00087         int getMonth() const { return _month; }
00088         int getYear() const { return _year; }
00089 
00090         //bool notEmpty() const { return (_lines == 0) ? false : (_lines->count() != 0); }
00094         void setName(QString name) { _name = name; }
00095         void setFilename(QString filename) { _filename = filename; }
00096         void setHour(int hour) { _hour = hour; }
00097         void setMSec(int msec) { _msec = msec; }
00098         void setDay(int day) { _day = day; }
00099         void setMinute(int minute) { _minute = minute; }
00100         void setSecond(int second) { _second = second; }
00101         void setMonth(int month) { _month = month; }
00102         void setYear(int year) { _year = year; }
00103 
00111         void analyse         (const QDomNode);
00112 
00116         void generate        (QTextStream&);
00117 
00118     private:
00119 
00120 };
00121 
00122 #endif /* __KWORD_LATEX_EXPORT_KEY_H__ */
KDE Home | KDE Accessibility Home | Description of Access Keys