filters

gnumericexport.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2000 David Faure <faure@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef GNUMERICEXPORT_TEST_H
00021 #define GNUMERICEXPORT_TEST_H
00022 
00023 #include <KoFilter.h>
00024 #include <qdom.h>
00025 
00026 namespace KSpread
00027 {
00028   class Cell;
00029 }
00030 
00031 class GNUMERICExport : public KoFilter {
00032 
00033     Q_OBJECT
00034 
00035 public:
00036     GNUMERICExport(KoFilter *parent, const char*name, const QStringList&);
00037     virtual ~GNUMERICExport() {}
00038 
00039     virtual KoFilter::ConversionStatus convert( const QCString& from, const QCString& to );
00040 
00041 private:
00042     QDomElement GetCellStyle(QDomDocument gnumeric_doc, KSpread::Cell* cell, int currentcolumn, int currentrow);
00043     QDomElement GetBorderStyle(QDomDocument gnumeric_doc, KSpread::Cell* cell, int currentcolumn, int currentrow);
00044     QDomElement GetFontStyle(QDomDocument gnumeric_doc, KSpread::Cell* cell, int currentcolumn, int currentrow);
00045     QDomElement GetLinkStyle(QDomDocument gnumeric_doc );
00046     QDomElement GetValidity( QDomDocument gnumeric_doc, KSpread::Cell* cell );
00047 
00048     void addAttributeItem(QDomDocument gnumeric_doc, QDomElement attributes, const QString& type, const QString& name, bool value);
00049     void addSummaryItem(QDomDocument gnumeric_doc, QDomElement summary, const QString& name, const QString& value);
00050     bool hasBorder(KSpread::Cell*cell, int currentcolumn, int currentrow);
00051     const QString ColorToString(int red, int green, int blue);
00052     QString convertVariable( QString headerFooter );
00053     QString convertRefToRange( const QString & table, const QRect & rect );
00054     QString convertRefToBase( const QString & table, const QRect & rect );
00055     bool isLink;
00056     QString linkText;
00057     QString linkUrl;
00058     bool isLinkBold;
00059     bool isLinkItalic;
00060 
00061 };
00062 #endif
00063 
KDE Home | KDE Accessibility Home | Description of Access Keys