00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _PRINTOUT_H
00021 #define _PRINTOUT_H
00022
00023 #include <ctype.h>
00024 #include "wx/print.h"
00025
00026 class GamePrintout : public wxPrintout
00027 {
00028 private:
00029 Game& m_game;
00030 ConfigDB config;
00031
00032 void SetSpaces(wxString*, int);
00033 void DrawStringJustif(wxDC*,wxString*,long,long,long,enum Justif, int);
00034 void DrawHeadingLine(wxDC*, long, float);
00035 void DrawTextLine(wxDC*, int, long, long, float);
00036 void DrawGameLines(wxDC*, long, long, float, float, float);
00037 public:
00038
00039 GamePrintout(Game& iGame, char* title = APPNAME)
00040 : wxPrintout(wxU(title)), m_game(iGame) {}
00041
00042 bool OnPrintPage(int);
00043 bool HasPage(int);
00044 bool OnBeginDocument(int startPage, int endPage);
00045 void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo);
00046 void DrawPage(wxDC *dc);
00047 };
00048
00049 #endif
00050
00051
00052
00053
00054
00055
00056
00057
00058