1
//--------------------------------------------------------------------------------------
2
// LenMus Phonascus: The teacher of music
3
// Copyright (c) 2002-2007 Cecilio Salmeron
5
// This program is free software; you can redistribute it and/or modify it under the
6
// terms of the GNU General Public License as published by the Free Software Foundation;
7
// either version 2 of the License, or (at your option) any later version.
9
// This program is distributed in the hope that it will be useful, but WITHOUT ANY
10
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
// PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
// You should have received a copy of the GNU General Public License along with this
14
// program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street,
15
// Fifth Floor, Boston, MA 02110-1301, USA.
17
// For any comment, suggestion or feature request, please contact the manager of
18
// the project at cecilios@users.sourceforge.net
20
//-------------------------------------------------------------------------------------
26
#ifndef __PRINTOUT_H //to avoid nested includes
31
class lmPrintout: public wxPrintout
34
lmPrintout(lmScoreView* pView, wxChar *title = _T("My printout"));
35
bool OnPrintPage(int page);
36
bool HasPage(int page);
37
bool OnBeginDocument(int startPage, int endPage);
38
void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo);
41
lmScoreView* m_pView; // the view to print/preview
42
int m_nMinPage; // page range: 1..n
50
#endif // __PRINTOUT_H