filters

pen.h

00001 
00002 /*
00003 ** Header file for inclusion with kspread_xml2latex.c
00004 **
00005 ** Copyright (C) 2003 Robert JACOLIN
00006 **
00007 ** This library is free software; you can redistribute it and/or
00008 ** modify it under the terms of the GNU Library General Public
00009 ** License as published by the Free Software Foundation; either
00010 ** version 2 of the License, or (at your option) any later version.
00011 **
00012 ** This library is distributed in the hope that it will be useful,
00013 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015 ** Library General Public License for more details.
00016 **
00017 ** To receive a copy of the GNU Library General Public License, write to the
00018 ** Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020 **
00021 */
00022 
00023 #ifndef __KSPREAD_LATEX_PEN_H__
00024 #define __KSPREAD_LATEX_PEN_H__
00025 
00026 #include <qtextstream.h>
00027 #include <qstring.h>
00028 #include <qcolor.h>
00029 #include "xmlparser.h"
00030 
00031 /***********************************************************************/
00032 /* Class: Pen                                                          */
00033 /***********************************************************************/
00034 
00038 class Pen: public XmlParser
00039 {
00040     double _width;
00041     int _style;
00042     QColor _color;
00043 
00044     public:
00050         Pen();
00051 
00052         /* 
00053          * Destructor
00054          *
00055          * Nothing to do
00056          */
00057         virtual ~Pen() {}
00058 
00062         double getWidth() const { return _width; }
00063         int getStyle() const { return _style; }
00064         QColor getColor() const { return _color; }
00065         
00069         void setWidth(double w) { _width = w; }
00070         void setStyle(int s) { _style = s; }
00071         void setColor(QString color) { _color.setNamedColor(color); }
00072 
00080         virtual void analyse(const QDomNode);
00081 
00082         virtual void generate(QTextStream&);
00083 
00084 };
00085 
00086 #endif /* __KSPREAD_LATEX_PEN_H__ */
KDE Home | KDE Accessibility Home | Description of Access Keys