Code::Blocks  SVN r11506
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cbEditorPrintout Class Reference

#include <cbeditorprintout.h>

Inheritance diagram for cbEditorPrintout:
Collaboration diagram for cbEditorPrintout:

Public Member Functions

 cbEditorPrintout (const wxString &title, cbStyledTextCtrl *control, bool selectionOnly)
 
 ~cbEditorPrintout () override
 
bool OnPrintPage (int page) override
 
bool HasPage (int page) override
 
void GetPageInfo (int *minPage, int *maxPage, int *selPageFrom, int *selPageTo) override
 
bool OnBeginDocument (int startPage, int endPage) override
 

Protected Member Functions

bool ScaleDC (wxDC *dc)
 

Protected Attributes

cbStyledTextCtrlm_TextControl
 
wxRect m_pageRect
 
wxRect m_printRect
 
int m_printed
 
int m_SelStart
 
int m_SelEnd
 
wxArrayIntm_pPageSelStart
 

Detailed Description

Definition at line 13 of file cbeditorprintout.h.

Constructor & Destructor Documentation

◆ cbEditorPrintout()

cbEditorPrintout::cbEditorPrintout ( const wxString title,
cbStyledTextCtrl control,
bool  selectionOnly 
)

◆ ~cbEditorPrintout()

cbEditorPrintout::~cbEditorPrintout ( )
override

Definition at line 40 of file cbeditorprintout.cpp.

References m_pPageSelStart.

Member Function Documentation

◆ GetPageInfo()

void cbEditorPrintout::GetPageInfo ( int *  minPage,
int *  maxPage,
int *  selPageFrom,
int *  selPageTo 
)
override

◆ HasPage()

bool cbEditorPrintout::HasPage ( int  page)
override

Definition at line 73 of file cbeditorprintout.cpp.

References m_printed, and m_SelEnd.

Referenced by GetPageInfo().

◆ OnBeginDocument()

bool cbEditorPrintout::OnBeginDocument ( int  startPage,
int  endPage 
)
override

◆ OnPrintPage()

bool cbEditorPrintout::OnPrintPage ( int  page)
override

◆ ScaleDC()

bool cbEditorPrintout::ScaleDC ( wxDC dc)
protected

Definition at line 177 of file cbeditorprintout.cpp.

Referenced by GetPageInfo(), and OnPrintPage().

Member Data Documentation

◆ m_pageRect

wxRect cbEditorPrintout::m_pageRect
protected

Definition at line 25 of file cbeditorprintout.h.

Referenced by GetPageInfo(), and OnPrintPage().

◆ m_pPageSelStart

wxArrayInt* cbEditorPrintout::m_pPageSelStart
protected

◆ m_printed

int cbEditorPrintout::m_printed
protected

Definition at line 27 of file cbeditorprintout.h.

Referenced by GetPageInfo(), HasPage(), and OnPrintPage().

◆ m_printRect

wxRect cbEditorPrintout::m_printRect
protected

Definition at line 26 of file cbeditorprintout.h.

Referenced by GetPageInfo(), and OnPrintPage().

◆ m_SelEnd

int cbEditorPrintout::m_SelEnd
protected

Definition at line 29 of file cbeditorprintout.h.

Referenced by cbEditorPrintout(), GetPageInfo(), HasPage(), and OnPrintPage().

◆ m_SelStart

int cbEditorPrintout::m_SelStart
protected

Definition at line 28 of file cbeditorprintout.h.

Referenced by cbEditorPrintout(), and GetPageInfo().

◆ m_TextControl

cbStyledTextCtrl* cbEditorPrintout::m_TextControl
protected

Definition at line 24 of file cbeditorprintout.h.

Referenced by GetPageInfo(), and OnPrintPage().


The documentation for this class was generated from the following files: