#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))
// template extension.
wxDocTemplate *wxDocManager::SelectDocumentPath(wxDocTemplate **templates,
+#ifdef __WXMSW__
int noTemplates,
+#else
+ int WXUNUSED(noTemplates),
+#endif
wxString& path,
long WXUNUSED(flags),
bool WXUNUSED(save))