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
}\\
9 \helpref{wxObject
}{wxobject
}
11 \wxheading{Include files
}
13 <wx/richtext/richtextprint.h>
17 \helpref{wxRichtext
}{librarieslist
}
19 \wxheading{Data structures
}
21 \latexignore{\rtfignore{\wxheading{Members
}}}
23 \membersection{wxRichTextPrintout::wxRichTextPrintout
}\label{wxrichtextprintoutwxrichtextprintout
}
25 \func{}{wxRichTextPrintout
}{\param{const wxString\&
}{title = wxT("Printout")
}}
29 \membersection{wxRichTextPrintout::CalculateScaling
}\label{wxrichtextprintoutcalculatescaling
}
31 \func{void
}{CalculateScaling
}{\param{wxDC*
}{dc
},
\param{wxRect\&
}{textRect
},
\param{wxRect\&
}{headerRect
},
\param{wxRect\&
}{footerRect
}}
33 Calculates scaling and text, header and footer rectangles.
35 \membersection{wxRichTextPrintout::GetHeaderFooterData
}\label{wxrichtextprintoutgetheaderfooterdata
}
37 \constfunc{const wxRichTextHeaderFooterData\&
}{GetHeaderFooterData
}{\void}
39 Returns the header and footer data associated with the printout.
41 \membersection{wxRichTextPrintout::GetPageInfo
}\label{wxrichtextprintoutgetpageinfo
}
43 \func{void
}{GetPageInfo
}{\param{int*
}{minPage
},
\param{int*
}{maxPage
},
\param{int*
}{selPageFrom
},
\param{int*
}{selPageTo
}}
45 Gets the page information.
47 \membersection{wxRichTextPrintout::GetRichTextBuffer
}\label{wxrichtextprintoutgetrichtextbuffer
}
49 \constfunc{wxRichTextBuffer*
}{GetRichTextBuffer
}{\void}
51 Returns a pointer to the buffer being rendered.
53 \membersection{wxRichTextPrintout::HasPage
}\label{wxrichtextprintouthaspage
}
55 \func{bool
}{HasPage
}{\param{int
}{page
}}
57 Returns
\true if the given page exists in the printout.
59 \membersection{wxRichTextPrintout::OnPreparePrinting
}\label{wxrichtextprintoutonprepareprinting
}
61 \func{void
}{OnPreparePrinting
}{\void}
63 Prepares for printing, laying out the buffer and calculating pagination.
65 \membersection{wxRichTextPrintout::OnPrintPage
}\label{wxrichtextprintoutonprintpage
}
67 \func{bool
}{OnPrintPage
}{\param{int
}{page
}}
69 Does the actual printing for this page.
71 \membersection{wxRichTextPrintout::SetHeaderFooterData
}\label{wxrichtextprintoutsetheaderfooterdata
}
73 \func{void
}{SetHeaderFooterData
}{\param{const wxRichTextHeaderFooterData\&
}{data
}}
75 Sets the header and footer data associated with the printout.
77 \membersection{wxRichTextPrintout::SetMargins
}\label{wxrichtextprintoutsetmargins
}
79 \func{void
}{SetMargins
}{\param{int
}{top =
252},
\param{int
}{bottom =
252},
\param{int
}{left =
252},
\param{int
}{right =
252}}
81 Sets margins in
10ths of millimetre. Defaults to
1 inch for margins.
83 \membersection{wxRichTextPrintout::SetRichTextBuffer
}\label{wxrichtextprintoutsetrichtextbuffer
}
85 \func{void
}{SetRichTextBuffer
}{\param{wxRichTextBuffer*
}{buffer
}}
87 Sets the buffer to print. wxRichTextPrintout does not manage this pointer; it should
88 be managed by the calling code, such as wxRichTextPrinting.