Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef HIPPDOCPRINTOUT_H_
00022 #define HIPPDOCPRINTOUT_H_
00023
00024 #include <wx/docview.h>
00025 #include "HippView.h"
00026 #include "HippPrintFormats.h"
00027
00028 namespace hipp {
00029
00030 class HippDocPrintout : public wxDocPrintout {
00031 public:
00032 HippDocPrintout(HippView *view = NULL, const wxString& title = _("Printout"));
00033 virtual ~HippDocPrintout();
00034
00035
00036 virtual bool OnPrintPage(int page);
00037 virtual bool HasPage(int page);
00038 virtual bool OnBeginDocument(int startPage, int endPage);
00039 virtual void GetPageInfo(int *minPage, int *maxPage,
00040 int *selPageFrom, int *selPageTo);
00041
00042 virtual HippView *GetView() { return m_printoutView; }
00043
00044 protected:
00045 HippView* m_printoutView;
00046
00047 private:
00048 DECLARE_DYNAMIC_CLASS(wxDocPrintout)
00049
00050 };
00051
00052 }
00053
00054 #endif