row.cpp
1/*
2** A program to convert the XML rendered by KSpread into LATEX.
3**
4** Copyright (C) 2003 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#include <kdebug.h> /* for kdDebug stream */
23
24#include "row.h"
25
26/*******************************************/
27/* Constructor */
28/*******************************************/
30{
31 setRow(0);
32}
33
34/*******************************************/
35/* Destructor */
36/*******************************************/
37Row::~Row()
38{
39}
40
41void Row::analyse(const TQDomNode balise)
42{
43 _row = getAttr(balise, "row").toLong();
44 _height = getAttr(balise, "height").toDouble();
45 Format::analyse(getChild(balise, "format"));
46}
47
48/*******************************************/
49/* generate */
50/*******************************************/
51void Row::generate(TQTextStream& out)
52{
53 //generateTopBorder(out);
54 if(getBrushStyle() >= 1)
55 {
56 out << "\\rowcolor";
57 generateColor(out);
58 }
59 //generateBottomBorder(out);
60
61 //out << "m{" << getHeight() << "pt}";
62
63}
64
65
This class describe a cell, row or column format.
void generateColor(TQTextStream &out)
Generate the color format for a column or a row.
virtual void analyse(const TQDomNode)
Helpfull functions.
Row()
Constructors.
Definition row.cpp:29
void setRow(int r)
setters
Definition row.h:73
void analyse(const TQDomNode)
Helpfull functions.
Definition row.cpp:41