kword/latex/export/format.cpp
1/*
2** A program to convert the XML rendered by KWord into LATEX.
3**
4** Copyright (C) 2000 Robert JACOLIN
5**
6** This library is free software; you can redistribute it and/or
7** modify it under the terms of the GNU Library General Public
8** License as published by the Free Software Foundation; either
9** version 2 of the License, or (at your option) any later version.
10**
11** This library is distributed in the hope that it will be useful,
12** but WITHOUT ANY WARRANTY; without even the implied warranty of
13** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14** Library General Public License for more details.
15**
16** To receive a copy of the GNU Library General Public License, write to the
17** Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19**
20*/
21
22#include <stdlib.h>
23
24#include <kdebug.h>
25
26#include "fileheader.h" /* for the use of _header (color and underlined) */
27#include "format.h"
28
29/* Get the set of info. about a text format */
30void Format::analyse(const TQDomNode balise)
31{
32 /* <FORMAT id="1" pos="0" len="17"> */
33 setId(getAttr(balise, "id").toInt());
34 setPos(getAttr(balise, "pos").toInt());
35 setLength(getAttr(balise, "len").toInt());
36}
37
38/*void Format::generate(TQTextStream&, int)
39{
40}*/
void setId(int id)
Modifiers.
virtual void analyse(const TQDomNode)
Helpfull functions.