OSDN Git Service

fix compile problem
[tjqt4port/tj2qt4.git] / taskjuggler / TableColumnFormat.h
1 /*
2  * TableColumnFormat.h - TaskJuggler
3  *
4  * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of version 2 of the GNU General Public License as
8  * published by the Free Software Foundation.
9  *
10  * $Id$
11  */
12
13 #ifndef _TableColumnFormat_h_
14 #define _TableColumnFormat_h_
15
16 #include "RealFormat.h"
17
18 class ReportElement;
19 class TableCellInfo;
20
21 typedef void (ReportElement::*GenCellPtr) (TableCellInfo*);
22
23 /**
24  * @short Stores the format information of a table column.
25  * @author Chris Schlaeger <cs@kde.org>
26  */
27 class TableColumnFormat
28 {
29 public:
30     enum HorizAlign { center = 0, left, right };
31
32     TableColumnFormat(const QString& i, ReportElement* e, const QString& t);
33     ~TableColumnFormat() { }
34
35     const QString& getTitle() const { return title; }
36     HorizAlign getHAlign() const { return hAlign; }
37     int getFontFactor() const { return fontFactor; }
38     bool getNoWrap() const { return noWrap; }
39     bool getExpandable() const { return expandable; }
40     bool getIndent() const { return indent; }
41     RealFormat getRealFormat() const { return realFormat; }
42
43     GenCellPtr genHeadLine1;
44     GenCellPtr genHeadLine2;
45
46     GenCellPtr genTaskLine1;
47     GenCellPtr genTaskLine2;
48     GenCellPtr genResourceLine1;
49     GenCellPtr genResourceLine2;
50     GenCellPtr genAccountLine1;
51     GenCellPtr genAccountLine2;
52
53     GenCellPtr genSummaryLine1;
54     GenCellPtr genSummaryLine2;
55
56     HorizAlign hAlign;
57     int fontFactor;
58     bool noWrap;
59     bool expandable;
60     bool indent;
61     RealFormat realFormat;
62
63     const QString& getId() const { return id; }
64
65 protected:
66     QString id;
67     ReportElement* el;
68     QString title;
69 } ;
70
71 #endif
72