Stimfit  0.13.15
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
printout.h
Go to the documentation of this file.
00001 // This program is free software; you can redistribute it and/or
00002 // modify it under the terms of the GNU General Public License
00003 // as published by the Free Software Foundation; either version 2
00004 // of the License, or (at your option) any later version.
00005 
00006 // This program is distributed in the hope that it will be useful,
00007 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00008 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00009 // GNU General Public License for more details.
00010 
00011 // You should have received a copy of the GNU General Public License
00012 // along with this program; if not, write to the Free Software
00013 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00014 
00021 #ifndef _PRINTOUT_H
00022 #define _PRINTOUT_H
00023 
00028 
00029 class wxStfPrintout : public wxPrintout
00030 {
00031 public:
00033 
00035     wxStfPrintout(const wxChar *title = _T("Printout"));
00036 
00038 
00041     bool OnPrintPage(int page);
00042     
00044 
00047     bool HasPage(int page);
00048     
00050 
00054     bool OnBeginDocument(int startPage, int endPage);
00055 
00057 
00062     void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo);
00063 
00065     void DrawPageOne();
00066 
00067 private:
00068     void PrintHeader(wxDC* pDC,double scale);
00069     bool store_noGimmicks;
00070 
00071     wxStfDoc* Doc() const {return wxGetApp().GetActiveDoc();}
00072 
00073 };
00074 
00077 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines