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 "row.h" 0023 0024 #include <QTextStream> 0025 0026 /*******************************************/ 0027 /* Constructor */ 0028 /*******************************************/ 0029 Row::Row(): Format() 0030 { 0031 setRow(0); 0032 } 0033 0034 /*******************************************/ 0035 /* Destructor */ 0036 /*******************************************/ 0037 Row::~Row() 0038 { 0039 } 0040 0041 void Row::analyze(const QDomNode node) 0042 { 0043 _row = getAttr(node, "row").toLong(); 0044 _height = getAttr(node, "height").toDouble(); 0045 Format::analyze(getChild(node, "format")); 0046 } 0047 0048 /*******************************************/ 0049 /* generate */ 0050 /*******************************************/ 0051 void Row::generate(QTextStream& out) 0052 { 0053 //generateTopBorder(out); 0054 if (getBrushStyle() >= 1) { 0055 out << "\\rowcolor"; 0056 generateColor(out); 0057 } 0058 //generateBottomBorder(out); 0059 0060 //out << "m{" << getHeight() << "pt}"; 0061 0062 } 0063 0064