karm Library API Documentation

print.h

00001 #ifndef KARM_PRINT_H
00002 #define KARM_PRINT_H
00003 
00004 #undef Color // X11 headers
00005 #undef GrayScale // X11 headers
00006 #include <kprinter.h>
00007 
00008 class QPainter;
00009 class QString;
00010 
00011 class Task;
00012 class TaskView;
00013 
00018 class MyPrinter : public KPrinter
00019 {
00020   public:
00021     MyPrinter( const TaskView *taskView );
00022     void print();
00023     void printLine( QString total, QString session, QString name, QPainter &,
00024                     int );
00025     void printTask( Task *task, QPainter &, int level );  
00026     int calculateReqNameWidth( Task *task, QFontMetrics &metrics,
00027                                int level);
00028   
00029   private:
00030     const TaskView *_taskView;
00031 
00032     int xMargin, yMargin;
00033     int yoff;
00034     int timeWidth;
00035     int sessionTimeWidth;
00036     int nameFieldWidth;
00037     int lineHeight;
00038     int pageHeight;  
00039 };
00040 
00041 #endif // KARM_PRINT_H
KDE Logo
This file is part of the documentation for karm Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:37:53 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003