2 * TableColumnFormat.h - TaskJuggler
4 * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
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.
13 #ifndef _TableColumnFormat_h_
14 #define _TableColumnFormat_h_
16 #include "RealFormat.h"
21 typedef void (ReportElement::*GenCellPtr) (TableCellInfo*);
24 * @short Stores the format information of a table column.
25 * @author Chris Schlaeger <cs@kde.org>
27 class TableColumnFormat
30 enum HorizAlign { center = 0, left, right };
32 TableColumnFormat(const QString& i, ReportElement* e, const QString& t);
33 ~TableColumnFormat() { }
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; }
43 GenCellPtr genHeadLine1;
44 GenCellPtr genHeadLine2;
46 GenCellPtr genTaskLine1;
47 GenCellPtr genTaskLine2;
48 GenCellPtr genResourceLine1;
49 GenCellPtr genResourceLine2;
50 GenCellPtr genAccountLine1;
51 GenCellPtr genAccountLine2;
53 GenCellPtr genSummaryLine1;
54 GenCellPtr genSummaryLine2;
61 RealFormat realFormat;
63 const QString& getId() const { return id; }