filters

key.h
1/*
2** Header file for inclusion with kword_xml2latex.c
3**
4** Copyright (C) 2002 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#ifndef __KWORD_LATEX_EXPORT_KEY_H__
23#define __KWORD_LATEX_EXPORT_KEY_H__
24
25#include <tqstring.h>
26
27#include "xmlparser.h"
28
29/***********************************************************************/
30/* Class: Key */
31/***********************************************************************/
32
38class Key: public XmlParser
39{
40 public:
41 enum eKeyType { PIXMAP, PICTURE };
42 private:
43 /* MARKUP DATA */
44 TQString _filename;
45 TQString _name;
46 int _hour;
47 int _minute;
48 int _second;
49 int _msec;
50 int _day;
51 int _month;
52 int _year;
53
54 eKeyType _type;
55
56 public:
64 Key(eKeyType);
65
66 /*
67 * Destructor
68 *
69 * The destructor must remove the list of little zones.
70 */
71 virtual ~Key();
72
76
80 TQString getName() const { return _name; }
81 TQString getFilename() const { return _filename; }
82 int getHour() const { return _hour; }
83 int getMSec() const { return _msec; }
84 int getDay() const { return _day; }
85 int getMinute() const { return _minute; }
86 int getSecond() const { return _second; }
87 int getMonth() const { return _month; }
88 int getYear() const { return _year; }
89
90 //bool notEmpty() const { return (_lines == 0) ? false : (_lines->count() != 0); }
94 void setName(TQString name) { _name = name; }
95 void setFilename(TQString filename) { _filename = filename; }
96 void setHour(int hour) { _hour = hour; }
97 void setMSec(int msec) { _msec = msec; }
98 void setDay(int day) { _day = day; }
99 void setMinute(int minute) { _minute = minute; }
100 void setSecond(int second) { _second = second; }
101 void setMonth(int month) { _month = month; }
102 void setYear(int year) { _year = year; }
103
107
111 void analyse (const TQDomNode);
112
116 void generate (TQTextStream&);
117
118 private:
119
120};
121
122#endif /* __KWORD_LATEX_EXPORT_KEY_H__ */
void setName(TQString name)
Modifiers.
Definition key.h:94
void generate(TQTextStream &)
Write the paragraph in a file.
Definition key.cpp:69
TQString getName() const
Accessors.
Definition key.h:80
void analyse(const TQDomNode)
Helpfull functions.
Definition key.cpp:45
Key(eKeyType)
Constructors.
Definition key.cpp:28
static TQString _filename
Latex output file.