filters

KSpreadLeader.h
1/*
2This file is part of the KDE project
3Copyright (C) 2002 Fred Malabre <fmalabre@yahoo.com>
4
5This library is free software; you can redistribute it and/or
6modify it under the terms of the GNU Library General Public
7License as published by the Free Software Foundation; either
8version 2 of the License, or (at your option) any later version.
9
10This library is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13Library General Public License for more details.
14
15You should have received a copy of the GNU Library General Public License
16along with this library; see the file COPYING.LIB. If not, write to
17the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KSPREAD_LEADER_H
22#define KSPREAD_LEADER_H
23
24#include <KSpreadBaseWorker.h>
25#include <KoFilterChain.h>
26#include <kdebug.h>
27#include <kspread_doc.h>
28#include <KoDocumentInfo.h>
29#include <kspread_map.h>
30
31namespace KSpread
32{
33
46class Leader
47{
48public:
55 Leader(KoFilterChain *filterChain);
56
64 Leader(KoFilterChain *filterChain, KSpreadBaseWorker *newWorker);
65
70 virtual ~Leader();
71
72private:
73 KSpreadBaseWorker *m_worker;
74 KoFilterChain *m_filterChain;
75 int m_maxCellColumn;
76 int m_maxCellRow;
77 void updateMaxCells(KSpreadSheet *spreadSheet);
78
79protected:
80 KSpreadBaseWorker *getWorker() const;
81 KoFilter::ConversionStatus doSpreadCell(Cell *spreadCell, int column, int row);
82 KoFilter::ConversionStatus doSpreadSheet(Sheet *spreadSheet);
83 KoFilter::ConversionStatus doSpreadBook(Doc *document);
84 KoFilter::ConversionStatus doInfo(KoDocumentInfo *info);
85
86public:
92 void setWorker(KSpreadBaseWorker *newWorker);
93
100 KoFilter::ConversionStatus convert();
101};
102
103} // namespace KSpread
104
105#endif /* KSPREAD_LEADER_H */
void setWorker(KSpreadBaseWorker *newWorker)
Set your own implementation of the Worker.
Leader(KoFilterChain *filterChain)
Default constructor.
KoFilter::ConversionStatus convert()
Start the conversion process.
virtual ~Leader()
Default destructor.