filters

applixwordimport.h
1/* This file is part of the KDE project
2 Copyright (C) 2000 Enno Bartels <ebartels@nwn.de>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef APPLIXWORDIMPORT_H
21#define APPLIXWORDIMPORT_H
22
23#include <tqstring.h>
24#include <tqstringlist.h>
25#include <tqfile.h>
26#include <tqobject.h>
27#include <tqtextstream.h>
28
29#include <KoFilter.h>
30#include <KoStore.h>
31
32typedef struct
33{
34 int c;
35 int m;
36 int y;
37 int k;
38
39 int r;
40 int g;
41 int b;
42}t_mycolor;
43
44class APPLIXWORDImport : public KoFilter {
45
46 TQ_OBJECT
47
48
49public:
50 APPLIXWORDImport(KoFilter *parent, const char *name, const TQStringList&);
51 virtual ~APPLIXWORDImport() {}
52
53 virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
54
55protected:
56 TQChar specCharfind (TQChar , TQChar );
57 TQString readTagLine (TQTextStream &, TQFile &);
58 void replaceSpecial (TQString &);
59 TQString nextLine (TQTextStream &);
60 int readHeader (TQTextStream &stream, TQFile &);
61
62private:
63 int m_stepsize;
64 int m_instep;
65 int m_progress;
66
67};
68#endif // APPLIXWORDIMPORT_H