if (!dont_render)
{
+ wxHtmlRenderingInfo rinfo;
+ wxDefaultHtmlRenderingStyle rstyle;
+ rinfo.SetStyle(&rstyle);
m_DC->SetBrush(*wxWHITE_BRUSH);
-
m_DC->SetClippingRegion(x, y, m_Width, hght);
m_Cells->Draw(*m_DC,
- x, (y - from),
- y, pbreak + (y /*- from*/));
+ x, (y - from),
+ y, pbreak + (y /*- from*/),
+ rinfo);
m_DC->DestroyClippingRegion();
}
//----------------------------------------------------------------------------
-wxHtmlEasyPrinting::wxHtmlEasyPrinting(const wxString& name, wxFrame *parent_frame)
+wxHtmlEasyPrinting::wxHtmlEasyPrinting(const wxString& name, wxWindow *parentWindow)
{
- m_Frame = parent_frame;
+ m_ParentWindow = parentWindow;
m_Name = name;
m_PrintData = new wxPrintData;
m_PageSetupData = new wxPageSetupDialogData;
return FALSE;
}
- wxPreviewFrame *frame = new wxPreviewFrame(preview, m_Frame,
+ wxPreviewFrame *frame = new wxPreviewFrame(preview, m_ParentWindow,
m_Name + _(" Preview"),
wxPoint(100, 100), wxSize(650, 500));
frame->Centre(wxBOTH);
wxPrintDialogData printDialogData(*m_PrintData);
wxPrinter printer(&printDialogData);
- if (!printer.Print(m_Frame, printout, TRUE))
+ if (!printer.Print(m_ParentWindow, printout, TRUE))
{
return FALSE;
}
void wxHtmlEasyPrinting::PrinterSetup()
{
wxPrintDialogData printDialogData(*m_PrintData);
- wxPrintDialog printerDialog(m_Frame, &printDialogData);
+ wxPrintDialog printerDialog(m_ParentWindow, &printDialogData);
printerDialog.GetPrintDialogData().SetSetupDialog(TRUE);
}
m_PageSetupData->SetPrintData(*m_PrintData);
- wxPageSetupDialog pageSetupDialog(m_Frame, m_PageSetupData);
+ wxPageSetupDialog pageSetupDialog(m_ParentWindow, m_PageSetupData);
if (pageSetupDialog.ShowModal() == wxID_OK)
{