filters

gnumericexport.h
1/* This file is part of the KDE project
2 Copyright (C) 2000 David Faure <faure@kde.org>
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 GNUMERICEXPORT_TEST_H
21#define GNUMERICEXPORT_TEST_H
22
23#include <KoFilter.h>
24#include <tqdom.h>
25
26namespace KSpread
27{
28 class Cell;
29}
30
31class GNUMERICExport : public KoFilter {
32
33 TQ_OBJECT
34
35
36public:
37 GNUMERICExport(KoFilter *parent, const char*name, const TQStringList&);
38 virtual ~GNUMERICExport() {}
39
40 virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
41
42private:
43 TQDomElement GetCellStyle(TQDomDocument gnumeric_doc, KSpread::Cell* cell, int currentcolumn, int currentrow);
44 TQDomElement GetBorderStyle(TQDomDocument gnumeric_doc, KSpread::Cell* cell, int currentcolumn, int currentrow);
45 TQDomElement GetFontStyle(TQDomDocument gnumeric_doc, KSpread::Cell* cell, int currentcolumn, int currentrow);
46 TQDomElement GetLinkStyle(TQDomDocument gnumeric_doc );
47 TQDomElement GetValidity( TQDomDocument gnumeric_doc, KSpread::Cell* cell );
48
49 void addAttributeItem(TQDomDocument gnumeric_doc, TQDomElement attributes, const TQString& type, const TQString& name, bool value);
50 void addSummaryItem(TQDomDocument gnumeric_doc, TQDomElement summary, const TQString& name, const TQString& value);
51 bool hasBorder(KSpread::Cell*cell, int currentcolumn, int currentrow);
52 const TQString ColorToString(int red, int green, int blue);
53 TQString convertVariable( TQString headerFooter );
54 TQString convertRefToRange( const TQString & table, const TQRect & rect );
55 TQString convertRefToBase( const TQString & table, const TQRect & rect );
56 bool isLink;
57 TQString linkText;
58 TQString linkUrl;
59 bool isLinkBold;
60 bool isLinkItalic;
61
62};
63#endif
64