odsstream
Loading...
Searching...
No Matches
qtablewriter.h
Go to the documentation of this file.
1
8/*******************************************************************************
9 * Copyright (c) 2019 Olivier Langella <Olivier.Langella@u-psud.fr>.
10 *
11 * This file is part of the libodsstream library.
12 *
13 * libodsstream is a library to read and write ODS documents as streams
14 * Copyright (C) 2019 Olivier Langella <Olivier.Langella@u-psud.fr>
15 *
16 * This program is free software: you can redistribute it and/or modify
17 * it under the terms of the GNU Lesser General Public License as published
18 *by the Free Software Foundation, either version 3 of the License, or (at your
19 *option) any later version.
20 *
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU Lesser General Public License for more details.
25 *
26 * You should have received a copy of the GNU Lesser General Public License
27 * along with this program. If not, see <http://www.gnu.org/licenses/>.
28 *
29 ******************************************************************************/
30
31#pragma once
32
33#include "calcwriterinterface.h"
34#include <QAbstractProxyModel>
35#include <map>
36
38{
39 private:
40 CalcWriterInterface *mp_writer;
41 const QAbstractProxyModel *mp_tableModel;
42 std::map<int, bool> m_percentColumns;
43
44
45 public:
47 const QAbstractProxyModel *p_table_model);
48
54 void writeSheet(const QString &sheetName);
55
56 void setFormatPercentForColumn(const QString &column_title);
57 void setFormatPercentForColumn(const QModelIndex &column_index);
58};
Definition calcwriterinterface.h:49
Definition qtablewriter.h:38
void writeSheet(const QString &sheetName)
write the entire table in a sheet
Definition qtablewriter.cpp:75