wxLayoutExportObject *export;
wxLayoutExportStatus status(m_lwin->GetLayoutList());
- while((export = wxLayoutExport( &status, WXLO_EXPORT_AS_HTML)) != NULL)
+ while((export = wxLayoutExport( &status,
+ WXLO_EXPORT_AS_HTML)) != NULL)
{
if(export->type == WXLO_EXPORT_HTML)
cout << *(export->content.text);
{
wxGetApp().SetPrintMode(wxPRINT_POSTSCRIPT);
+#ifdef OS_UNIX
wxPostScriptPrinter printer;
wxLayoutPrintout printout( m_lwin->GetLayoutList(),"My printout");
printer.Print(this, &printout, TRUE);
+#endif
}
void MyFrame::OnPrintPreview(wxCommandEvent& WXUNUSED(event))
wxPrintData data;
data.SetOrientation(orientation);
+#ifdef __WXMSW__
+ wxPrintDialog printerDialog(this, & data);
+#else
wxGenericPrintDialog printerDialog(this, & data);
+#endif
printerDialog.GetPrintData().SetSetupDialog(TRUE);
printerDialog.ShowModal();
wxPageSetupData data;
data.SetOrientation(orientation);
+#ifdef __WXMSW__
+ wxPageSetupDialog pageSetupDialog(this, & data);
+#else
wxGenericPageSetupDialog pageSetupDialog(this, & data);
+#endif
pageSetupDialog.ShowModal();
orientation = pageSetupDialog.GetPageSetupData().GetOrientation();
wxLayoutObjectText *tobj = (wxLayoutObjectText *) *i;
tobj->GetText().insert(offset, text);
m_Length += text.Length();
+
+ return true;
}
else
return Insert(xpos, new wxLayoutObjectText(text));
void wxLayoutImportText(wxLayoutList &list, wxString const &str,
int withflag = WXLO_EXPORT_WITH_CRLF);
-wxLayoutExportObject *wxLayoutExport(wxLayoutList &list,
+wxLayoutExportObject *wxLayoutExport(wxLayoutExportStatus *status,
int mode = WXLO_EXPORT_AS_TEXT|WXLO_EXPORT_WITH_CRLF);
#else
/// import text into a wxLayoutList (including linefeeds):