Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
printout.h
Go to the documentation of this file.
1// This program is free software; you can redistribute it and/or
2// modify it under the terms of the GNU General Public License
3// as published by the Free Software Foundation; either version 2
4// of the License, or (at your option) any later version.
5
6// This program is distributed in the hope that it will be useful,
7// but WITHOUT ANY WARRANTY; without even the implied warranty of
8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9// GNU General Public License for more details.
10
11// You should have received a copy of the GNU General Public License
12// along with this program; if not, write to the Free Software
13// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14
20
21#ifndef _PRINTOUT_H
22#define _PRINTOUT_H
23
27
30{
31public:
33
35 wxStfPrintout(const wxChar *title = _T("Printout"));
36
38
41 bool OnPrintPage(int page);
42
44
47 bool HasPage(int page);
48
50
54 bool OnBeginDocument(int startPage, int endPage);
55
57
62 void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo);
63
66
67private:
68 void PrintHeader(wxDC* pDC,double);
69 bool store_noGimmicks;
70
71 wxStfDoc* Doc() const {return wxGetApp().GetActiveDoc();}
72
73};
74
76
77#endif
See http://www.wxwidgets.org/manuals/stable/wx_wxprintout.html (wxWidgets documentation)
The document class, derived from both wxDocument and Recording.
Definition doc.h:35
#define _T(x)
Definition common.h:60
wxStfPrintout(const wxChar *title=_T("Printout"))
Constructor.
void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo)
Retrieve information about the pages that will be printed.
bool HasPage(int page)
Checks whether a page exists.
void DrawPageOne()
Prints the first (and only) page.
StfDll wxStfApp & wxGetApp()
Returns a reference to the application.
bool OnBeginDocument(int startPage, int endPage)
Called by the framework at the start of document printing.
wxStfDoc * GetActiveDoc() const
Retrieves the currently active document.
bool OnPrintPage(int page)
Called by the framework when a page should be printed.