Warning, file /office/calligra/filters/sheets/qpro/qproimport.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    SPDX-FileCopyrightText: 1999 David Faure <faure@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef QPROIMPORT_H
0008 #define QPROIMPORT_H
0009 
0010 #include <KoFilter.h>
0011 #include <qpro/tablenames.h>
0012 
0013 #include <QByteArray>
0014 #include <QVariantList>
0015 #include <QLoggingCategory>
0016 
0017 Q_DECLARE_LOGGING_CATEGORY(lcQPro)
0018 
0019 namespace Calligra
0020 {
0021 namespace Sheets
0022 {
0023 class SheetBase;
0024 }
0025 }
0026 
0027 class QpImport : public KoFilter
0028 {
0029 
0030     Q_OBJECT
0031 
0032 public:
0033     QpImport(QObject* parent, const QVariantList&);
0034     ~QpImport() override {}
0035 
0036     KoFilter::ConversionStatus convert(const QByteArray& from, const QByteArray& to) override;
0037     void InitTableName(int pIdx, QString& pResult);
0038 
0039 protected:
0040     void setText(Calligra::Sheets::SheetBase* sheet, int row, int column, const QString& text, bool asString = false);
0041 };
0042 
0043 class QpTableList : public QpTableNames
0044 {
0045 public:
0046     QpTableList();
0047     ~QpTableList();
0048 
0049     void          table(unsigned pIdx, Calligra::Sheets::SheetBase* pTable);
0050     Calligra::Sheets::SheetBase* table(unsigned pIdx);
0051 protected:
0052     Calligra::Sheets::SheetBase* cTable[cNameCnt];
0053 };
0054 
0055 #endif // QPROIMPORT_H