Further backward comp. changes for printing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -147,6 +147,50 @@ private:
|
|||||||
DECLARE_DYNAMIC_CLASS(wxPostScriptDC)
|
DECLARE_DYNAMIC_CLASS(wxPostScriptDC)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#if WXWIN_COMPATIBILITY_2_2
|
||||||
|
// Print Orientation
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
PS_PORTRAIT = wxPORTRAIT,
|
||||||
|
PS_LANDSCAPE = wxLANDSCAPE
|
||||||
|
};
|
||||||
|
|
||||||
|
// Print Actions
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
PS_NONE = wxPRINT_MODE_NONE,
|
||||||
|
PS_PREVIEW = wxPRINT_MODE_PREVIEW,
|
||||||
|
PS_FILE = wxPRINT_MODE_FILE,
|
||||||
|
PS_PRINTER = wxPRINT_MODE_PRINTER
|
||||||
|
};
|
||||||
|
|
||||||
|
class wxPrintSetupData: public wxPrintData
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxPrintSetupData() {}
|
||||||
|
|
||||||
|
void SetPrinterOrientation( int orient )
|
||||||
|
{ SetOrientation( orient ); }
|
||||||
|
void SetPrinterMode( wxPrintMode mode )
|
||||||
|
{ SetPrintMode( mode ); }
|
||||||
|
void SetAFMPath( const wxString &path )
|
||||||
|
{ SetFontMetricPath( path ); }
|
||||||
|
|
||||||
|
void SetPaperName(const wxString& paper) { m_paperName = paper; }
|
||||||
|
void SetPrinterFile(const wxString& file) { m_printerFile = file; }
|
||||||
|
wxString GetPaperName() const { return m_paperName; }
|
||||||
|
wxString GetPrinterFile() const { return m_printerFile; };
|
||||||
|
|
||||||
|
wxString m_paperName;
|
||||||
|
wxString m_printerFile;
|
||||||
|
};
|
||||||
|
|
||||||
|
WXDLLEXPORT_DATA(extern wxPrintSetupData*) wxThePrintSetupData;
|
||||||
|
WXDLLEXPORT extern void wxInitializePrintSetupData(bool init = TRUE);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// wxUSE_POSTSCRIPT
|
// wxUSE_POSTSCRIPT
|
||||||
|
|
||||||
|
@@ -27,8 +27,6 @@
|
|||||||
|
|
||||||
class WXDLLEXPORT wxPostScriptPrinter : public wxPrinterBase
|
class WXDLLEXPORT wxPostScriptPrinter : public wxPrinterBase
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxPostScriptPrinter(wxPrintDialogData *data = (wxPrintDialogData *) NULL);
|
wxPostScriptPrinter(wxPrintDialogData *data = (wxPrintDialogData *) NULL);
|
||||||
virtual ~wxPostScriptPrinter();
|
virtual ~wxPostScriptPrinter();
|
||||||
@@ -36,6 +34,9 @@ public:
|
|||||||
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = TRUE);
|
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = TRUE);
|
||||||
virtual wxDC* PrintDialog(wxWindow *parent);
|
virtual wxDC* PrintDialog(wxWindow *parent);
|
||||||
virtual bool Setup(wxWindow *parent);
|
virtual bool Setup(wxWindow *parent);
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -45,8 +46,6 @@ public:
|
|||||||
|
|
||||||
class WXDLLEXPORT wxPostScriptPrintPreview : public wxPrintPreviewBase
|
class WXDLLEXPORT wxPostScriptPrintPreview : public wxPrintPreviewBase
|
||||||
{
|
{
|
||||||
DECLARE_CLASS(wxPostScriptPrintPreview)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxPostScriptPrintPreview(wxPrintout *printout,
|
wxPostScriptPrintPreview(wxPrintout *printout,
|
||||||
wxPrintout *printoutForPrinting = (wxPrintout *) NULL,
|
wxPrintout *printoutForPrinting = (wxPrintout *) NULL,
|
||||||
@@ -62,6 +61,9 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void Init(wxPrintout *printout, wxPrintout *printoutForPrinting);
|
void Init(wxPrintout *printout, wxPrintout *printoutForPrinting);
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_CLASS(wxPostScriptPrintPreview)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -78,8 +78,6 @@ enum
|
|||||||
#if wxUSE_POSTSCRIPT
|
#if wxUSE_POSTSCRIPT
|
||||||
class WXDLLEXPORT wxGenericPrintDialog : public wxDialog
|
class WXDLLEXPORT wxGenericPrintDialog : public wxDialog
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxGenericPrintDialog)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxGenericPrintDialog(wxWindow *parent,
|
wxGenericPrintDialog(wxWindow *parent,
|
||||||
wxPrintDialogData* data = (wxPrintDialogData*)NULL);
|
wxPrintDialogData* data = (wxPrintDialogData*)NULL);
|
||||||
@@ -122,12 +120,11 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
|
DECLARE_DYNAMIC_CLASS(wxGenericPrintDialog)
|
||||||
};
|
};
|
||||||
|
|
||||||
class WXDLLEXPORT wxGenericPrintSetupDialog : public wxDialog
|
class WXDLLEXPORT wxGenericPrintSetupDialog : public wxDialog
|
||||||
{
|
{
|
||||||
DECLARE_CLASS(wxGenericPrintSetupDialog)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// There are no configuration options for the dialog, so we
|
// There are no configuration options for the dialog, so we
|
||||||
// just pass the wxPrintData object (no wxPrintSetupDialogData class needed)
|
// just pass the wxPrintData object (no wxPrintSetupDialogData class needed)
|
||||||
@@ -153,14 +150,15 @@ public:
|
|||||||
wxPrintData m_printData;
|
wxPrintData m_printData;
|
||||||
wxPrintData& GetPrintData() { return m_printData; }
|
wxPrintData& GetPrintData() { return m_printData; }
|
||||||
#endif // wxUSE_POSTSCRIPT
|
#endif // wxUSE_POSTSCRIPT
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_CLASS(wxGenericPrintSetupDialog)
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
// wxUSE_POSTSCRIPT
|
// wxUSE_POSTSCRIPT
|
||||||
|
|
||||||
class WXDLLEXPORT wxGenericPageSetupDialog : public wxDialog
|
class WXDLLEXPORT wxGenericPageSetupDialog : public wxDialog
|
||||||
{
|
{
|
||||||
DECLARE_CLASS(wxGenericPageSetupDialog)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxGenericPageSetupDialog(wxWindow *parent, wxPageSetupData* data = (wxPageSetupData*) NULL);
|
wxGenericPageSetupDialog(wxWindow *parent, wxPageSetupData* data = (wxPageSetupData*) NULL);
|
||||||
virtual ~wxGenericPageSetupDialog();
|
virtual ~wxGenericPageSetupDialog();
|
||||||
@@ -188,6 +186,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
|
DECLARE_CLASS(wxGenericPageSetupDialog)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user