karm

print.h
1 #ifndef KARM_PRINT_H
2 #define KARM_PRINT_H
3 
4 #undef Color // X11 headers
5 #undef GrayScale // X11 headers
6 #include <kprinter.h>
7 
8 class TQPainter;
9 class TQString;
10 
11 class Task;
12 class TaskView;
13 
18 class MyPrinter : public KPrinter
19 {
20  public:
21  MyPrinter( const TaskView *taskView );
22  void print();
23  void printLine( TQString total, TQString session, TQString name, TQPainter &,
24  int );
25  void printTask( Task *task, TQPainter &, int level );
26  int calculateReqNameWidth( Task *task, TQFontMetrics &metrics,
27  int level);
28 
29  private:
30  const TaskView *_taskView;
31 
32  int xMargin, yMargin;
33  int yoff;
34  int timeWidth;
35  int sessionTimeWidth;
36  int nameFieldWidth;
37  int lineHeight;
38  int pageHeight;
39 };
40 
41 #endif // KARM_PRINT_H
Provide printing capabilities.
Definition: print.h:19
Container and interface for the tasks.
Definition: taskview.h:43
A class representing a task.
Definition: task.h:42