20#ifndef GNUMERICFILTER_H
21#define GNUMERICFILTER_H
25#include <tqdatetime.h>
34class GNUMERICFilter : public KoFilter
39 GNUMERICFilter(KoFilter *parent, const char *name, const TQStringList&);
40 virtual ~GNUMERICFilter() {}
42 virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
44enum borderStyle { Left, Right, Top, Bottom, Diagonal, Revdiagonal};
46 class GnumericDate : public TQDate
49 static uint greg2jul( int y, int m, int d );
50 static void jul2greg( double num, int & y, int & m, int & d );
51 static TQTime getTime( double num );
56 TQString convertVars( TQString const & str, KSpread::Sheet * table ) const;
57 void ParsePrintInfo( TQDomNode const & printInfo, KSpread::Sheet * table );
58 void ParseFormat(TQString const & formatString, KSpread::Cell* kspread_cell);
59 void setStyleInfo(TQDomNode * sheet, KSpread::Sheet * table);
60 bool setType( KSpread::Cell* kspread_cell, TQString const & formatString, TQString & cell_content );
61 void convertFormula( TQString & formula ) const;
62 void importBorder( TQDomElement border, borderStyle _style, KSpread::Cell*cell);
63 void ParseBorder( TQDomElement & gmr_styleborder, KSpread::Cell* kspread_cell );
64 double parseAttribute( const TQDomElement &_element );
|