const wxColour& GetColour() const { return m_dataColour; }
wxColour& GetColour() { return m_dataColour; }
- // These functions modify colours in an internal array of NUM_CUSTOM custom
- // colours
+ // SetCustomColour() modifies colours in an internal array of NUM_CUSTOM
+ // custom colours;
void SetCustomColour(int i, const wxColour& colour);
- wxColour GetCustomColour(int i);
+ wxColour GetCustomColour(int i) const;
// Serialize the object to a string and restore it from it
wxString ToString() const;
bool FromString(const wxString& str);
-public: // TODO: make these fields private
+
+ // public for backwards compatibility only: don't use directly
+public:
wxColour m_dataColour;
wxColour m_custColours[NUM_CUSTOM];
bool m_chooseFull;
int GetNoCopies() const { return m_printNoCopies; }
bool GetCollate() const { return m_printCollate; }
- int GetOrientation() const { return m_printOrientation; }
+ wxPrintOrientation GetOrientation() const { return m_printOrientation; }
bool IsOrientationReversed() const { return m_printOrientationReversed; }
// Is this data OK for showing the print dialog?
void SetNoCopies(int v) { m_printNoCopies = v; }
void SetCollate(bool flag) { m_printCollate = flag; }
- void SetOrientation(int orient) { m_printOrientation = orient; }
+
+ // Please use the overloaded method below
+ wxDEPRECATED_INLINE(void SetOrientation(int orient),
+ m_printOrientation = (wxPrintOrientation)orient; )
+ void SetOrientation(wxPrintOrientation orient) { m_printOrientation = orient; }
void SetOrientationReversed(bool reversed) { m_printOrientationReversed = reversed; }
void SetPrinterName(const wxString& name) { m_printerName = name; }
wxString GetFilename() const { return m_filename; }
void SetFilename( const wxString &filename ) { m_filename = filename; }
- void operator=(const wxPrintData& data);
+ wxPrintData& operator=(const wxPrintData& data);
char* GetPrivData() const { return m_privData; }
int GetPrivDataLen() const { return m_privDataLen; }
wxPrintMode m_printMode;
int m_printNoCopies;
- int m_printOrientation;
+ wxPrintOrientation m_printOrientation;
bool m_printOrientationReversed;
bool m_printCollate;