Code::Blocks  SVN r11506
cbeditorprintout.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3  * http://www.gnu.org/licenses/lgpl-3.0.html
4  */
5 
6 #ifndef CBEDITORPRINTOUT_H
7 #define CBEDITORPRINTOUT_H
8 
9 #include <wx/print.h>
10 
11 class cbStyledTextCtrl;
12 
14 {
15  public:
16  cbEditorPrintout(const wxString& title, cbStyledTextCtrl* control, bool selectionOnly);
17  ~cbEditorPrintout() override;
18  bool OnPrintPage(int page) override;
19  bool HasPage(int page) override;
20  void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo) override;
21  bool OnBeginDocument(int startPage, int endPage) override;
22  protected:
23  bool ScaleDC(wxDC *dc);
27  int m_printed;
29  int m_SelEnd;
31 };
32 
33 #endif // CBEDITORPRINTOUT_H
bool HasPage(int page) override
wxArrayInt * m_pPageSelStart
bool ScaleDC(wxDC *dc)
bool OnBeginDocument(int startPage, int endPage) override
cbStyledTextCtrl * m_TextControl
wxArray< int > wxArrayInt
void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo) override
bool OnPrintPage(int page) override
cbEditorPrintout(const wxString &title, cbStyledTextCtrl *control, bool selectionOnly)
~cbEditorPrintout() override