Code::Blocks
SVN r11506
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
x
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
Enumerations
+
Enumerator
b
c
d
e
f
k
n
p
r
s
u
v
w
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Typedefs
a
b
c
d
e
f
i
l
m
p
r
s
t
w
+
Enumerations
b
c
d
e
f
l
o
p
q
r
s
t
+
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
+
Related Functions
b
c
d
e
f
l
m
n
p
s
t
u
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Variables
_
b
c
d
e
f
g
h
i
k
m
n
r
s
t
u
w
+
Typedefs
b
c
e
f
h
n
o
p
r
s
t
v
w
+
Enumerations
a
b
c
d
e
f
l
m
o
p
s
t
w
+
Enumerator
a
b
c
d
e
f
h
l
m
o
p
s
t
u
w
+
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
w
include
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
13
class
cbEditorPrintout
:
public
wxPrintout
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);
24
cbStyledTextCtrl
*
m_TextControl
;
25
wxRect
m_pageRect
;
26
wxRect
m_printRect
;
27
int
m_printed
;
28
int
m_SelStart
;
29
int
m_SelEnd
;
30
wxArrayInt
*
m_pPageSelStart
;
31
};
32
33
#endif // CBEDITORPRINTOUT_H
print.h
wxRect
cbEditorPrintout::m_SelStart
int m_SelStart
Definition:
cbeditorprintout.h:28
cbEditorPrintout::HasPage
bool HasPage(int page) override
Definition:
cbeditorprintout.cpp:73
cbEditorPrintout::m_SelEnd
int m_SelEnd
Definition:
cbeditorprintout.h:29
cbEditorPrintout::m_pPageSelStart
wxArrayInt * m_pPageSelStart
Definition:
cbeditorprintout.h:30
wxDC
cbEditorPrintout::m_printed
int m_printed
Definition:
cbeditorprintout.h:27
cbEditorPrintout::ScaleDC
bool ScaleDC(wxDC *dc)
Definition:
cbeditorprintout.cpp:177
cbEditorPrintout::OnBeginDocument
bool OnBeginDocument(int startPage, int endPage) override
Definition:
cbeditorprintout.cpp:162
wxString
cbStyledTextCtrl
Definition:
cbstyledtextctrl.h:21
cbEditorPrintout::m_TextControl
cbStyledTextCtrl * m_TextControl
Definition:
cbeditorprintout.h:24
wxArrayInt
wxArray< int > wxArrayInt
cbEditorPrintout::m_pageRect
wxRect m_pageRect
Definition:
cbeditorprintout.h:25
cbEditorPrintout::GetPageInfo
void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo) override
Definition:
cbeditorprintout.cpp:78
cbEditorPrintout::OnPrintPage
bool OnPrintPage(int page) override
Definition:
cbeditorprintout.cpp:47
cbEditorPrintout::cbEditorPrintout
cbEditorPrintout(const wxString &title, cbStyledTextCtrl *control, bool selectionOnly)
Definition:
cbeditorprintout.cpp:25
cbEditorPrintout
Definition:
cbeditorprintout.h:13
cbEditorPrintout::m_printRect
wxRect m_printRect
Definition:
cbeditorprintout.h:26
cbEditorPrintout::~cbEditorPrintout
~cbEditorPrintout() override
Definition:
cbeditorprintout.cpp:40
wxPrintout
Generated by
1.8.13