Readded deprec. constructor.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -42,9 +42,15 @@ public:
|
||||
|
||||
// Recommended constructor
|
||||
wxPostScriptDC(const wxPrintData& printData);
|
||||
|
||||
|
||||
~wxPostScriptDC();
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_2
|
||||
wxPostScriptDC( const wxString &output, bool interactive = FALSE, wxWindow *parent = NULL )
|
||||
{ Create( output, interactive, parent ); }
|
||||
bool Create ( const wxString &output, bool interactive = FALSE, wxWindow *parent = NULL );
|
||||
#endif
|
||||
|
||||
virtual bool Ok() const;
|
||||
|
||||
virtual void BeginDrawing() {}
|
||||
|
@@ -318,6 +318,31 @@ wxPostScriptDC::~wxPostScriptDC ()
|
||||
}
|
||||
}
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_2
|
||||
bool wxPostScriptDC::Create( const wxString &output, bool interactive, wxWindow *parent )
|
||||
{
|
||||
wxPrintData data;
|
||||
data.SetFilename( output );
|
||||
data.SetPrintMode( wxPRINT_MODE_FILE );
|
||||
|
||||
if (interactive)
|
||||
{
|
||||
wxPrintDialogData ddata( data );
|
||||
wxPrintDialog dialog( parent, &data );
|
||||
dialog.GetPrintDialogData().SetSetupDialog(TRUE);
|
||||
if (dialog.ShowModal() != wxID_OK)
|
||||
{
|
||||
m_ok = FALSE;
|
||||
return FALSE;
|
||||
}
|
||||
data = dialog.GetPrintDialogData().GetPrintData();
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
bool wxPostScriptDC::Ok() const
|
||||
{
|
||||
return m_ok;
|
||||
|
Reference in New Issue
Block a user