Warning, file /office/calligra/filters/sheets/gnumeric/gnumericexport.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* This file is part of the KDE project 0002 Copyright (C) 2000 David Faure <faure@kde.org> 0003 0004 This library is free software; you can redistribute it and/or 0005 modify it under the terms of the GNU Library General Public 0006 License as published by the Free Software Foundation; either 0007 version 2 of the License, or (at your option) any later version. 0008 0009 This library is distributed in the hope that it will be useful, 0010 but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0012 Library General Public License for more details. 0013 0014 You should have received a copy of the GNU Library General Public License 0015 along with this library; see the file COPYING.LIB. If not, write to 0016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0017 * Boston, MA 02110-1301, USA. 0018 */ 0019 0020 #ifndef GNUMERICEXPORT_TEST_H 0021 #define GNUMERICEXPORT_TEST_H 0022 0023 #include <KoFilter.h> 0024 #include <QDomDocument> 0025 #include <QByteArray> 0026 #include <QVariantList> 0027 0028 namespace Calligra 0029 { 0030 namespace Sheets 0031 { 0032 class Cell; 0033 } 0034 } 0035 0036 class QRect; 0037 0038 class GNUMERICExport : public KoFilter 0039 { 0040 0041 Q_OBJECT 0042 0043 public: 0044 GNUMERICExport(QObject *parent, const QVariantList&); 0045 ~GNUMERICExport() override {} 0046 0047 KoFilter::ConversionStatus convert(const QByteArray& from, const QByteArray& to) override; 0048 0049 private: 0050 QDomElement GetCellStyle(QDomDocument gnumeric_doc, const Calligra::Sheets::Cell& cell, int currentcolumn, int currentrow); 0051 QDomElement GetBorderStyle(QDomDocument gnumeric_doc, const Calligra::Sheets::Cell& cell, int currentcolumn, int currentrow); 0052 QDomElement GetFontStyle(QDomDocument gnumeric_doc, const Calligra::Sheets::Cell& cell, int currentcolumn, int currentrow); 0053 QDomElement GetLinkStyle(QDomDocument gnumeric_doc); 0054 QDomElement GetValidity(QDomDocument gnumeric_doc, const Calligra::Sheets::Cell& cell); 0055 0056 void addAttributeItem(QDomDocument gnumeric_doc, QDomElement attributes, const QString& type, const QString& name, bool value); 0057 void addSummaryItem(QDomDocument gnumeric_doc, QDomElement summary, const QString& name, const QString& value); 0058 bool hasBorder(const Calligra::Sheets::Cell&cell, int currentcolumn, int currentrow); 0059 const QString ColorToString(int red, int green, int blue); 0060 QString convertVariable(QString headerFooter); 0061 QString convertRefToRange(const QString & table, const QRect & rect); 0062 QString convertRefToBase(const QString & table, const QRect & rect); 0063 bool isLink; 0064 QString linkText; 0065 QString linkUrl; 0066 bool isLinkBold; 0067 bool isLinkItalic; 0068 0069 }; 0070 #endif 0071