~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to filters/kspread/applixspread/applixspreadimport.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#include <KoFilter.h>
31
31
#include <KoStore.h>
32
32
 
33
 
typedef struct
34
 
{
35
 
  int r;
36
 
  int g;
37
 
  int b;
 
33
typedef struct {
 
34
    int r;
 
35
    int g;
 
36
    int b;
38
37
 
39
 
  int c;
40
 
  int m;
41
 
  int y;
42
 
  int k;
 
38
    int c;
 
39
    int m;
 
40
    int y;
 
41
    int k;
43
42
} t_mycolor;
44
43
 
45
 
typedef struct
46
 
{
47
 
  QStringList tabname;
48
 
  QStringList rc;
 
44
typedef struct {
 
45
    QStringList tabname;
 
46
    QStringList rc;
49
47
} t_rc;
50
48
 
51
49
 
52
 
class APPLIXSPREADImport : public KoFilter {
 
50
class APPLIXSPREADImport : public KoFilter
 
51
{
53
52
 
54
53
    Q_OBJECT
55
54
 
56
55
public:
57
 
    APPLIXSPREADImport ( QObject *parent, const QStringList& );
 
56
    APPLIXSPREADImport(QObject *parent, const QStringList&);
58
57
    virtual ~APPLIXSPREADImport() {}
59
58
 
60
 
    virtual KoFilter::ConversionStatus convert( const QByteArray& from, const QByteArray& to );
 
59
    virtual KoFilter::ConversionStatus convert(const QByteArray& from, const QByteArray& to);
61
60
 
62
61
protected:
63
 
    QString nextLine           (QTextStream &);
64
 
    QChar   specCharfind       (QChar , QChar );
65
 
    void    writePen           (QString &, int, int, QString);
66
 
    QString writeColor         (t_mycolor *);
67
 
    void    readTypefaceTable  (QTextStream &, QStringList &);
68
 
    void    readColormap       (QTextStream &, QList<t_mycolor*> &);
69
 
    void    readView           (QTextStream &, QString, t_rc &);
70
 
    void    filterSHFGBG       (QString, int *, int *, int *);
71
 
    void    transPenFormat     (QString, int *, int *);
72
 
    int     readHeader         (QTextStream &);
73
 
    int     translateColumnNumber (QString);
 
62
    QString nextLine(QTextStream &);
 
63
    QChar   specCharfind(QChar , QChar);
 
64
    void    writePen(QString &, int, int, QString);
 
65
    QString writeColor(t_mycolor *);
 
66
    void    readTypefaceTable(QTextStream &, QStringList &);
 
67
    void    readColormap(QTextStream &, QList<t_mycolor*> &);
 
68
    void    readView(QTextStream &, QString, t_rc &);
 
69
    void    filterSHFGBG(QString, int *, int *, int *);
 
70
    void    transPenFormat(QString, int *, int *);
 
71
    int     readHeader(QTextStream &);
 
72
    int     translateColumnNumber(QString);
74
73
 
75
74
private:
76
75
    int m_stepsize;