filters

column.cc

00001 /*
00002 ** A program to convert the XML rendered by KSpread into LATEX.
00003 **
00004 ** Copyright (C) 2002 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 "column.h"
00025 
00026 /*******************************************/
00027 /* Constructor                             */
00028 /*******************************************/
00029 Column::Column(): Format()
00030 {
00031     setCol(0);
00032 }
00033 
00034 /*******************************************/
00035 /* Destructor                              */
00036 /*******************************************/
00037 Column::~Column()
00038 {
00039 }
00040 
00041 void Column::analyse(const QDomNode balise)
00042 {
00043     _col = getAttr(balise, "column").toLong();
00044     _width = getAttr(balise, "width").toDouble();
00045     Format::analyse(getChild(balise, "format"));
00046 }
00047 
00048 /*******************************************/
00049 /* generate                                */
00050 /*******************************************/
00051 void Column::generate(QTextStream& out)
00052 {
00053     //generateLeftBorder(out);
00054     if(getBrushStyle() >= 1)
00055     {
00056         out << ">{\\columncolor";
00057         generateColor(out);
00058         out << "}";
00059     }
00060     //generateRightBorder(out);
00061         
00062     out << "m{" << getWidth() << "pt}";
00063     
00064 }
00065 
00066 
KDE Home | KDE Accessibility Home | Description of Access Keys