File indexing completed on 2025-02-16 13:49:57

0001 /*
0002 ** A program to convert the XML rendered by KSpread into LATEX.
0003 **
0004 ** Copyright (C) 2003 Robert JACOLIN
0005 **
0006 ** This library is free software; you can redistribute it and/or
0007 ** modify it under the terms of the GNU Library General Public
0008 ** License as published by the Free Software Foundation; either
0009 ** version 2 of the License, or (at your option) any later version.
0010 **
0011 ** This library is distributed in the hope that it will be useful,
0012 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
0013 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0014 ** Library General Public License for more details.
0015 **
0016 ** To receive a copy of the GNU Library General Public License, write to the
0017 ** Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0018  * Boston, MA 02110-1301, USA.
0019 **
0020 */
0021 
0022 #include "pen.h"
0023 
0024 #include <stdlib.h>
0025 
0026 //#include "fileheader.h" /* for the use of _header (color and underlined) */
0027 #include <QTextStream>
0028 
0029 Pen::Pen()
0030 {
0031 }
0032 
0033 /* Get the set of info about a text format */
0034 void Pen::analyze(const QDomNode node)
0035 {
0036     /* <pen width="0" style="1" color="#000000" /> */
0037     setWidth(getAttr(node, "width").toDouble());
0038     setStyle(getAttr(node, "style").toInt());
0039     setColor(getAttr(node, "color"));
0040 }
0041 
0042 void Pen::generate(QTextStream&)
0043 {
0044 
0045 }