1 \section{\class{wxRichTextPrintout
}}\label{wxrichtextprintout
}
3 This class implements print layout for
\helpref{wxRichTextBuffer
}{wxrichtextbuffer
}. Instead of using it directly, you
4 should normally use the
\helpref{wxRichTextPrinting
}{wxrichtextprinting
} class.
6 \wxheading{Derived from
}
8 \helpref{wxPrintout
}{wxprintout
}
10 \wxheading{Include files
}
12 <wx/richtext/richtextprint.h>
14 \wxheading{Data structures
}
16 \latexignore{\rtfignore{\wxheading{Members
}}}
18 \membersection{wxRichTextPrintout::wxRichTextPrintout
}\label{wxrichtextprintoutwxrichtextprintout
}
20 \func{}{wxRichTextPrintout
}{\param{const wxString\&
}{title = wxT("Printout")
}}
24 \membersection{wxRichTextPrintout::CalculateScaling
}\label{wxrichtextprintoutcalculatescaling
}
26 \func{void
}{CalculateScaling
}{\param{wxDC*
}{dc
},
\param{wxRect\&
}{textRect
},
\param{wxRect\&
}{headerRect
},
\param{wxRect\&
}{footerRect
}}
28 Calculates scaling and text, header and footer rectangles.
30 \membersection{wxRichTextPrintout::GetHeaderFooterData
}\label{wxrichtextprintoutgetheaderfooterdata
}
32 \constfunc{const wxRichTextHeaderFooterData\&
}{GetHeaderFooterData
}{\void}
34 Returns the header and footer data associated with the printout.
36 \membersection{wxRichTextPrintout::GetPageInfo
}\label{wxrichtextprintoutgetpageinfo
}
38 \func{void
}{GetPageInfo
}{\param{int*
}{minPage
},
\param{int*
}{maxPage
},
\param{int*
}{selPageFrom
},
\param{int*
}{selPageTo
}}
40 Gets the page information.
42 \membersection{wxRichTextPrintout::GetRichTextBuffer
}\label{wxrichtextprintoutgetrichtextbuffer
}
44 \constfunc{wxRichTextBuffer*
}{GetRichTextBuffer
}{\void}
46 Returns a pointer to the buffer being rendered.
48 \membersection{wxRichTextPrintout::HasPage
}\label{wxrichtextprintouthaspage
}
50 \func{bool
}{HasPage
}{\param{int
}{page
}}
52 Returns
\true if the given page exists in the printout.
54 \membersection{wxRichTextPrintout::OnPreparePrinting
}\label{wxrichtextprintoutonprepareprinting
}
56 \func{void
}{OnPreparePrinting
}{\void}
58 Prepares for printing, laying out the buffer and calculating pagination.
60 \membersection{wxRichTextPrintout::OnPrintPage
}\label{wxrichtextprintoutonprintpage
}
62 \func{bool
}{OnPrintPage
}{\param{int
}{page
}}
64 Does the actual printing for this page.
66 \membersection{wxRichTextPrintout::SetHeaderFooterData
}\label{wxrichtextprintoutsetheaderfooterdata
}
68 \func{void
}{SetHeaderFooterData
}{\param{const wxRichTextHeaderFooterData\&
}{data
}}
70 Sets the header and footer data associated with the printout.
72 \membersection{wxRichTextPrintout::SetMargins
}\label{wxrichtextprintoutsetmargins
}
74 \func{void
}{SetMargins
}{\param{int
}{top =
252},
\param{int
}{bottom =
252},
\param{int
}{left =
252},
\param{int
}{right =
252}}
76 Sets margins in
10ths of millimetre. Defaults to
1 inch for margins.
78 \membersection{wxRichTextPrintout::SetRichTextBuffer
}\label{wxrichtextprintoutsetrichtextbuffer
}
80 \func{void
}{SetRichTextBuffer
}{\param{wxRichTextBuffer*
}{buffer
}}
82 Sets the buffer to print. wxRichTextPrintout does not manage this pointer; it should
83 be managed by the calling code, such as wxRichTextPrinting.