m_printToFileCheckBox = new wxCheckBox( this, wxPRINTID_PRINTTOFILE, _("Print to File") );
flex->Add( m_printToFileCheckBox, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
- if (factory->HasOwnPrintToFile())
- m_printToFileCheckBox->Enable( false );
-
m_setupButton = new wxButton(this, wxPRINTID_SETUP, _("Setup...") );
flex->Add( m_setupButton, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
{
m_printDialogData.GetPrintData().SetPrintMode(wxPRINT_MODE_PRINTER);
}
-
+
EndModal(wxID_OK);
}
}
if(m_rangeRadioBox)
{
- if (m_rangeRadioBox->GetSelection() == 0)
- m_printDialogData.SetAllPages(true);
- else
- m_printDialogData.SetAllPages(false);
+ if (m_rangeRadioBox->GetSelection() == 0)
+ {
+ m_printDialogData.SetAllPages(true);
+
+ // This means all pages, more or less
+ m_printDialogData.SetFromPage(1);
+ m_printDialogData.SetToPage(32000);
+ }
+ else
+ m_printDialogData.SetAllPages(false);
}
}
else
return true;
}
-/*
-TODO: collate and noCopies should be duplicated across dialog data and print data objects
-(slightly different semantics on Windows but let's ignore this for a bit).
-*/
-
wxDC *wxGenericPrintDialog::GetPrintDC()
{
return new wxPostScriptDC(GetPrintDialogData().GetPrintData());