wxRichTextPrintoutThis class implements print layout for wxRichTextBuffer. Instead of using it directly, you should normally use the wxRichTextPrinting class. Derived from Include files <wx/richtext/richtextprint.h> Data structures Members
wxRichTextPrintout::wxRichTextPrintout
wxRichTextPrintout::wxRichTextPrintoutwxRichTextPrintout(const wxString& title = wxT("Printout")) Constructor.
wxRichTextPrintout::CalculateScalingvoid CalculateScaling(wxDC* dc, wxRect& textRect, wxRect& headerRect, wxRect& footerRect) Calculates scaling and text, header and footer rectangles.
wxRichTextPrintout::GetHeaderFooterDataconst wxRichTextHeaderFooterData& GetHeaderFooterData() const Returns the header and footer data associated with the printout.
wxRichTextPrintout::GetPageInfovoid GetPageInfo(int* minPage, int* maxPage, int* selPageFrom, int* selPageTo) Gets the page information.
wxRichTextPrintout::GetRichTextBufferwxRichTextBuffer* GetRichTextBuffer() const Returns a pointer to the buffer being rendered.
wxRichTextPrintout::HasPagebool HasPage(int page) Returns true if the given page exists in the printout.
wxRichTextPrintout::OnPreparePrintingvoid OnPreparePrinting() Prepares for printing, laying out the buffer and calculating pagination.
wxRichTextPrintout::OnPrintPagebool OnPrintPage(int page) Does the actual printing for this page.
wxRichTextPrintout::SetHeaderFooterDatavoid SetHeaderFooterData(const wxRichTextHeaderFooterData& data) Sets the header and footer data associated with the printout.
wxRichTextPrintout::SetMarginsvoid SetMargins(int top = 252, int bottom = 252, int left = 252, int right = 252) Sets margins in 10ths of millimetre. Defaults to 1 inch for margins.
wxRichTextPrintout::SetRichTextBuffervoid SetRichTextBuffer(wxRichTextBuffer* buffer) Sets the buffer to print. wxRichTextPrintout does not manage this pointer; it should be managed by the calling code, such as wxRichTextPrinting.
|