File indexing completed on 2025-12-07 11:53:19
0001 /* 0002 * This file is part of Office 2007 Filters for Calligra 0003 * 0004 * SPDX-FileCopyrightText: 2010 Nokia Corporation and /or its subsidiary(-ies). 0005 * 0006 * Contact: Suresh Chande suresh.chande@nokia.com 0007 * 0008 * SPDX-License-Identifier: LGPL-2.1-only 0009 * 0010 */ 0011 0012 #ifndef XLSXXMLTABLEREADER_H 0013 #define XLSXXMLTABLEREADER_H 0014 0015 #include <MsooXmlCommonReader.h> 0016 0017 class XlsxXmlTableReaderContext : public MSOOXML::MsooXmlReaderContext 0018 { 0019 public: 0020 XlsxXmlTableReaderContext(); 0021 0022 QString referenceArea; 0023 int headerStyleIndex; 0024 int dataStyleIndex; 0025 int totalsRowIndex; 0026 unsigned headerRowCount; 0027 unsigned totalsRowCount; 0028 }; 0029 0030 class XlsxXmlTableReader : public MSOOXML::MsooXmlCommonReader 0031 { 0032 public: 0033 explicit XlsxXmlTableReader(KoOdfWriters *writers); 0034 ~XlsxXmlTableReader() override; 0035 KoFilter::ConversionStatus read(MSOOXML::MsooXmlReaderContext* context = 0) override; 0036 0037 protected: 0038 KoFilter::ConversionStatus read_table(); 0039 0040 private: 0041 0042 XlsxXmlTableReaderContext *m_context; 0043 }; 0044 0045 #endif