-public:
- wxColour fontColour;
- bool showHelp;
- bool allowSymbols;
- bool enableEffects;
- wxFont initialFont;
- wxFont chosenFont;
- int minSize;
- int maxSize;
-};
-
-/*
- * wxPrintData
- * Encapsulates printer information (not printer dialog information)
- */
-
-class WXDLLEXPORT wxPrintData: public wxObject
-{
- DECLARE_DYNAMIC_CLASS(wxPrintData)
-
- wxPrintData();
- wxPrintData(const wxPrintData& printData);
- ~wxPrintData();
-
- inline int GetNoCopies() const { return m_printNoCopies; };
- inline bool GetCollate() const { return m_printCollate; };
- inline int GetOrientation() const { return m_printOrientation; };
-
- inline const wxString& GetPrinterName() const { return m_printerName; }
- inline bool GetColour() const { return m_colour; }
- inline wxDuplexMode GetDuplex() const { return m_duplexMode; }
- inline wxPaperSize GetPaperId() const { return m_paperId; }
- inline const wxSize& GetPaperSize() const { return m_paperSize; } // Not used yet: confusable with paper size
- // in wxPageSetupDialogData
- inline wxPrintQuality GetQuality() const { return m_printQuality; }
-
- inline void SetNoCopies(int v) { m_printNoCopies = v; };
- inline void SetCollate(bool flag) { m_printCollate = flag; };
- inline void SetOrientation(int orient) { m_printOrientation = orient; };
-
- inline void SetPrinterName(const wxString& name) { m_printerName = name; }
- inline void SetColour(bool colour) { m_colour = colour; }
- inline void SetDuplex(wxDuplexMode duplex) { m_duplexMode = duplex; }
- inline void SetPaperId(wxPaperSize sizeId) { m_paperId = sizeId; }
- inline void SetPaperSize(const wxSize& sz) { m_paperSize = sz; }
- inline void SetQuality(wxPrintQuality quality) { m_printQuality = quality; }
-
- // PostScript-specific data
- inline const wxString& GetPrinterCommand() const { return m_printerCommand; }
- inline const wxString& GetPrinterOptions() const { return m_printerOptions; }
- inline const wxString& GetPreviewCommand() const { return m_previewCommand; }
- inline const wxString& GetFilename() const { return m_filename; }
- inline const wxString& GetFontMetricPath() const { return m_afmPath; }
- inline double GetPrinterScaleX() const { return m_printerScaleX; }
- inline double GetPrinterScaleY() const { return m_printerScaleY; }
- inline long GetPrinterTranslateX() const { return m_printerTranslateX; }
- inline long GetPrinterTranslateY() const { return m_printerTranslateY; }
- inline wxPrintMode GetPrintMode() const { return m_printMode; }
-
- inline void SetPrinterCommand(const wxString& command) { m_printerCommand = command; }
- inline void SetPrinterOptions(const wxString& options) { m_printerOptions = options; }
- inline void SetPreviewCommand(const wxString& command) { m_previewCommand = command; }
- inline void SetFilename(const wxString& filename) { m_filename = filename; }
- inline void SetFontMetricPath(const wxString& path) { m_afmPath = path; }
- inline void SetPrinterScaleX(double x) { m_printerScaleX = x; }
- inline void SetPrinterScaleY(double y) { m_printerScaleY = y; }
- inline void SetPrinterScaling(double x, double y) { m_printerScaleX = x; m_printerScaleY = y; }
- inline void SetPrinterTranslateX(long x) { m_printerTranslateX = x; }
- inline void SetPrinterTranslateY(long y) { m_printerTranslateY = y; }
- inline void SetPrinterTranslation(long x, long y) { m_printerTranslateX = x; m_printerTranslateY = y; }
- inline void SetPrintMode(wxPrintMode printMode) { m_printMode = printMode; }
-
- void operator=(const wxPrintData& data);
-
- // For compatibility
-#if (defined(__WXMOTIF__) || defined(__WXGTK__)) && wxUSE_POSTSCRIPT
- void operator=(const wxPrintSetupData& setupData);
-#endif
-
-#ifdef __WXMSW__
- // Convert to/from the DEVMODE structure