File indexing completed on 2025-01-19 13:27:36
0001 /* 0002 * This file is part of Office 2007 Filters for Calligra 0003 * 0004 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 0005 * 0006 * Contact: Suresh Chande suresh.chande@nokia.com 0007 * 0008 * This library is free software; you can redistribute it and/or 0009 * modify it under the terms of the GNU Lesser General Public License 0010 * version 2.1 as published by the Free Software Foundation. 0011 * 0012 * This library is distributed in the hope that it will be useful, but 0013 * WITHOUT ANY WARRANTY; without even the implied warranty of 0014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0015 * Lesser General Public License for more details. 0016 * 0017 * You should have received a copy of the GNU Lesser General Public 0018 * License along with this library; if not, write to the Free Software 0019 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 0020 * 02110-1301 USA 0021 * 0022 */ 0023 0024 #ifndef XLSXXMLTABLEREADER_H 0025 #define XLSXXMLTABLEREADER_H 0026 0027 #include <MsooXmlCommonReader.h> 0028 0029 class XlsxXmlTableReaderContext : public MSOOXML::MsooXmlReaderContext 0030 { 0031 public: 0032 XlsxXmlTableReaderContext(); 0033 0034 QString referenceArea; 0035 int headerStyleIndex; 0036 int dataStyleIndex; 0037 int totalsRowIndex; 0038 unsigned headerRowCount; 0039 unsigned totalsRowCount; 0040 }; 0041 0042 class XlsxXmlTableReader : public MSOOXML::MsooXmlCommonReader 0043 { 0044 public: 0045 explicit XlsxXmlTableReader(KoOdfWriters *writers); 0046 ~XlsxXmlTableReader() override; 0047 KoFilter::ConversionStatus read(MSOOXML::MsooXmlReaderContext* context = 0) override; 0048 0049 protected: 0050 KoFilter::ConversionStatus read_table(); 0051 0052 private: 0053 0054 XlsxXmlTableReaderContext *m_context; 0055 }; 0056 0057 #endif