filters

key.cc

00001 /*
00002 ** A program to convert the XML rendered by KWord into LATEX.
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 #include <kdebug.h>     /* for kdDebug() stream */
00023 #include "key.h"
00024 
00025 /*******************************************/
00026 /* Constructor                             */
00027 /*******************************************/
00028 Key::Key(eKeyType type): _type(type)
00029 {
00030     _name = "";
00031     _filename = "";
00032 }
00033 
00034 /*******************************************/
00035 /* Destructor                              */
00036 /*******************************************/
00037 Key::~Key()
00038 {
00039     kdDebug(30522) << "Destruction of a key." << endl;
00040 }
00041 
00042 /*******************************************/
00043 /* Analyse                                 */
00044 /*******************************************/
00045 void Key::analyse(const QDomNode balise)
00046 {
00047     /* MARKUP TYPE :  PARAGRAPH */
00048 
00049     kdDebug(30522) << "**** KEY ****" << endl;
00050     kdDebug(30522) << getAttr(balise, "name") << endl;
00051     setName(getAttr(balise, "name"));
00052     setFilename(getAttr(balise, "filename"));
00053     setHour(getAttr(balise, "hour").toInt());
00054     setMSec(getAttr(balise, "msec").toInt());
00055     setDay(getAttr(balise, "day").toInt());
00056     setMinute(getAttr(balise, "minute").toInt());
00057     setSecond(getAttr(balise, "second").toInt());
00058     setMonth(getAttr(balise, "month").toInt());
00059     setYear(getAttr(balise, "year").toInt());
00060     kdDebug(30522) << "**** END KEY ****" << endl;
00061 }
00062 
00063 /*******************************************/
00064 /* Generate                                */
00065 /*******************************************/
00066 /* Generate each text zone with the parag. */
00067 /* markup.                                 */
00068 /*******************************************/
00069 void Key::generate(QTextStream &out)
00070 {
00071 
00072     kdDebug(30522) << "  GENERATION KEY" << endl;
00073 
00074     kdDebug(30522) << "PARA KEY" << endl;
00075 }
KDE Home | KDE Accessibility Home | Description of Access Keys