#include "wx/msgdlg.h"
#include "wx/choicdlg.h"
#include "wx/docview.h"
+#include "wx/prntbase.h"
#include "wx/printdlg.h"
#include "wx/confbase.h"
return FALSE;
wxString fileName(tmp);
- wxString path("");
- wxString name("");
- wxString ext("");
+ wxString path, name, ext;
wxSplitPath(fileName, & path, & name, & ext);
if (ext.IsEmpty() || ext == _T(""))
void wxDocManager::OnPrint(wxCommandEvent& WXUNUSED(event))
{
+#if wxUSE_PRINTING_ARCHITECTURE
wxView *view = GetCurrentView();
if (!view)
return;
delete printout;
}
+#endif // wxUSE_PRINTING_ARCHITECTURE
}
void wxDocManager::OnPrintSetup(wxCommandEvent& WXUNUSED(event))
void wxDocManager::OnPreview(wxCommandEvent& WXUNUSED(event))
{
+#if wxUSE_PRINTING_ARCHITECTURE
wxView *view = GetCurrentView();
if (!view)
return;
frame->Initialize();
frame->Show(TRUE);
}
+#endif // wxUSE_PRINTING_ARCHITECTURE
}
void wxDocManager::OnUndo(wxCommandEvent& WXUNUSED(event))