class WXDLLIMPEXP_RICHTEXT wxRichTextPrintout : public wxPrintout
{
public:
- wxRichTextPrintout(const wxString& title = wxT("Printout"));
+ wxRichTextPrintout(const wxString& title = _("Printout"));
virtual ~wxRichTextPrintout();
/// The buffer to print
const wxRichTextHeaderFooterData& GetHeaderFooterData() const { return m_headerFooterData; }
/// Sets margins in 10ths of millimetre. Defaults to 1 inch for margins.
- void SetMargins(int top = 252, int bottom = 252, int left = 252, int right = 252);
+ void SetMargins(int top = 254, int bottom = 254, int left = 254, int right = 254);
/// Calculate scaling and rectangles, setting the device context scaling
void CalculateScaling(wxDC* dc, wxRect& textRect, wxRect& headerRect, wxRect& footerRect);
int m_numPages;
wxArrayInt m_pageBreaksStart;
wxArrayInt m_pageBreaksEnd;
+ wxArrayInt m_pageYOffsets;
int m_marginLeft, m_marginTop, m_marginRight, m_marginBottom;
wxRichTextHeaderFooterData m_headerFooterData;
- DECLARE_NO_COPY_CLASS(wxRichTextPrintout)
+ wxDECLARE_NO_COPY_CLASS(wxRichTextPrintout);
};
/*
class WXDLLIMPEXP_RICHTEXT wxRichTextPrinting : public wxObject
{
public:
- wxRichTextPrinting(const wxString& name = wxT("Printing"), wxWindow *parentWindow = NULL);
+ wxRichTextPrinting(const wxString& name = _("Printing"), wxWindow *parentWindow = NULL);
virtual ~wxRichTextPrinting();
/// Preview the file or buffer
wxPrintData *GetPrintData();
wxPageSetupDialogData *GetPageSetupData() { return m_pageSetupData; }
+ /// Set print and page setup data
+ void SetPrintData(const wxPrintData& printData);
+ void SetPageSetupData(const wxPageSetupData& pageSetupData);
+
/// Set the rich text buffer pointer, deleting the existing object if present
void SetRichTextBufferPreview(wxRichTextBuffer* buf);
wxRichTextBuffer* GetRichTextBufferPreview() const { return m_richTextBufferPreview; }
wxRichTextBuffer* m_richTextBufferPrinting;
wxRect m_previewRect;
- DECLARE_NO_COPY_CLASS(wxRichTextPrinting)
+ wxDECLARE_NO_COPY_CLASS(wxRichTextPrinting);
};
#endif // wxUSE_RICHTEXT & wxUSE_PRINTING_ARCHITECTURE