filters

format.cc

00001 /*
00002 ** A program to convert the XML rendered by KWord into LATEX.
00003 **
00004 ** Copyright (C) 2000 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 <stdlib.h>
00023 
00024 #include <kdebug.h>
00025 
00026 #include "fileheader.h" /* for the use of _header (color and underlined) */
00027 #include "format.h"
00028 
00029 /* Get the set of info. about a text format */
00030 void Format::analyse(const QDomNode balise)
00031 {
00032     /* <FORMAT id="1" pos="0" len="17"> */
00033     setId(getAttr(balise, "id").toInt());
00034     setPos(getAttr(balise, "pos").toInt());
00035     setLength(getAttr(balise, "len").toInt());
00036 }
00037 
00038 /*void Format::generate(QTextStream&, int)
00039 {
00040 }*/
KDE Home | KDE Accessibility Home | Description of Access Keys