File indexing completed on 2025-01-19 13:27:34
0001 /* 0002 * This file is part of Office 2007 Filters for Calligra 0003 * Copyright (C) 2002 Laurent Montel <lmontel@mandrakesoft.com> 0004 * Copyright (C) 2003 David Faure <faure@kde.org> 0005 * Copyright (C) 2002, 2003, 2004 Nicolas GOUTTE <goutte@kde.org> 0006 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 0007 * 0008 * Contact: Suresh Chande suresh.chande@nokia.com 0009 * 0010 * This library is free software; you can redistribute it and/or 0011 * modify it under the terms of the GNU Lesser General Public License 0012 * version 2.1 as published by the Free Software Foundation. 0013 * 0014 * This library is distributed in the hope that it will be useful, but 0015 * WITHOUT ANY WARRANTY; without even the implied warranty of 0016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0017 * Lesser General Public License for more details. 0018 * 0019 * You should have received a copy of the GNU Lesser General Public 0020 * License along with this library; if not, write to the Free Software 0021 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 0022 * 02110-1301 USA 0023 * 0024 */ 0025 0026 #ifndef XLSXIMPORT_H 0027 #define XLSXIMPORT_H 0028 0029 #include <MsooXmlImport.h> 0030 #include <QVariantList> 0031 0032 //! XLSX to ODS import filter 0033 class XlsxImport : public MSOOXML::MsooXmlImport 0034 { 0035 Q_OBJECT 0036 public: 0037 XlsxImport(QObject * parent, const QVariantList &); 0038 ~XlsxImport() override; 0039 0040 protected: 0041 bool acceptsSourceMimeType(const QByteArray& mime) const override; 0042 0043 bool acceptsDestinationMimeType(const QByteArray& mime) const override; 0044 0045 KoFilter::ConversionStatus parseParts(KoOdfWriters *writers, 0046 MSOOXML::MsooXmlRelationships *relationships, QString& errorMessage) override; 0047 0048 class Private; 0049 Private * const d; 0050 }; 0051 0052 #endif