filters

pen.h
1
2/*
3** Header file for inclusion with kspread_xml2latex.c
4**
5** Copyright (C) 2003 Robert JACOLIN
6**
7** This library is free software; you can redistribute it and/or
8** modify it under the terms of the GNU Library General Public
9** License as published by the Free Software Foundation; either
10** version 2 of the License, or (at your option) any later version.
11**
12** This library is distributed in the hope that it will be useful,
13** but WITHOUT ANY WARRANTY; without even the implied warranty of
14** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15** Library General Public License for more details.
16**
17** To receive a copy of the GNU Library General Public License, write to the
18** Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20**
21*/
22
23#ifndef __KSPREAD_LATEX_PEN_H__
24#define __KSPREAD_LATEX_PEN_H__
25
26#include <tqtextstream.h>
27#include <tqstring.h>
28#include <tqcolor.h>
29#include "xmlparser.h"
30
31/***********************************************************************/
32/* Class: Pen */
33/***********************************************************************/
34
38class Pen: public XmlParser
39{
40 double _width;
41 int _style;
42 TQColor _color;
43
44 public:
50 Pen();
51
52 /*
53 * Destructor
54 *
55 * Nothing to do
56 */
57 virtual ~Pen() {}
58
62 double getWidth() const { return _width; }
63 int getStyle() const { return _style; }
64 TQColor getColor() const { return _color; }
65
69 void setWidth(double w) { _width = w; }
70 void setStyle(int s) { _style = s; }
71 void setColor(TQString color) { _color.setNamedColor(color); }
72
76
80 virtual void analyse(const TQDomNode);
81
82 virtual void generate(TQTextStream&);
83
84};
85
86#endif /* __KSPREAD_LATEX_PEN_H__ */
Pen()
Constructors.
Definition pen.cpp:29
virtual void analyse(const TQDomNode)
Helpfull functions.
Definition pen.cpp:34
void setWidth(double w)
setters
Definition pen.h:69
double getWidth() const
getters
Definition pen.h:62