filters

row.cc

00001 /*
00002 ** A program to convert the XML rendered by KSpread into LATEX.
00003 **
00004 ** Copyright (C) 2003 Robert JACOLIN
00005 **
00006 ** This library is free software; you can redistribute it and/or
00007 ** modify it under the terms of the GNU Library General Public
00008 ** License as published by the Free Software Foundation; either
00009 ** version 2 of the License, or (at your option) any later version.
00010 **
00011 ** This library is distributed in the hope that it will be useful,
00012 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 ** Library General Public License for more details.
00015 **
00016 ** To receive a copy of the GNU Library General Public License, write to the
00017 ** Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 **
00020 */
00021 
00022 #include <kdebug.h>     /* for kdDebug stream */
00023 
00024 #include "row.h"
00025 
00026 /*******************************************/
00027 /* Constructor                             */
00028 /*******************************************/
00029 Row::Row(): Format()
00030 {
00031     setRow(0);
00032 }
00033 
00034 /*******************************************/
00035 /* Destructor                              */
00036 /*******************************************/
00037 Row::~Row()
00038 {
00039 }
00040 
00041 void Row::analyse(const QDomNode balise)
00042 {
00043     _row = getAttr(balise, "row").toLong();
00044     _height = getAttr(balise, "height").toDouble();
00045     Format::analyse(getChild(balise, "format"));
00046 }
00047 
00048 /*******************************************/
00049 /* generate                                */
00050 /*******************************************/
00051 void Row::generate(QTextStream& out)
00052 {
00053     //generateTopBorder(out);
00054     if(getBrushStyle() >= 1)
00055     {
00056         out << "\\rowcolor";
00057         generateColor(out);
00058     }
00059     //generateBottomBorder(out);
00060         
00061     //out << "m{" << getHeight() << "pt}";
00062     
00063 }
00064 
00065 
KDE Home | KDE Accessibility Home | Description of Access Keys