wxFontData();
~wxFontData();
+ wxFontData(const wxFontData& data)
+ : wxObject()
+ , fontColour(data.fontColour)
+ , showHelp(data.showHelp)
+ , allowSymbols(data.allowSymbols)
+ , enableEffects(data.enableEffects)
+ , initialFont(data.initialFont)
+ , chosenFont(data.chosenFont)
+ , minSize(data.minSize)
+ , maxSize(data.maxSize)
+ , m_encoding(data.m_encoding)
+ , m_encodingInfo(data.m_encodingInfo)
+ {
+ }
+
+ wxFontData& operator=(const wxFontData& data)
+ {
+ (*this) = data;
+ return *this;
+ }
+
void SetAllowSymbols(bool flag) { allowSymbols = flag; }
bool GetAllowSymbols() const { return allowSymbols; }
// Use paper id in wxPrintData to set this object's paper size
void CalculatePaperSizeFromId();
- void operator=(const wxPageSetupData& data);
- void operator=(const wxPrintData& data);
+ wxPageSetupDialogData& operator=(const wxPageSetupData& data);
+ wxPageSetupDialogData& operator=(const wxPrintData& data);
wxPrintData& GetPrintData() { return m_printData; }
void SetPrintData(const wxPrintData& printData) { m_printData = printData; }
}
wxColourData::wxColourData(const wxColourData& data)
+ : wxObject()
{
(*this) = data;
}
}
wxPrintData::wxPrintData(const wxPrintData& printData)
+ : wxObject()
{
#ifdef __WXMSW__
m_devMode = (void*) NULL;
}
wxPrintDialogData::wxPrintDialogData(const wxPrintDialogData& dialogData)
+ : wxObject()
{
#ifdef __WXMSW__
m_printDlgData = NULL;
}
wxPageSetupDialogData::wxPageSetupDialogData(const wxPageSetupDialogData& dialogData)
+ : wxObject()
{
#if defined(__WIN95__)
m_pageSetupData = NULL;
#endif
}
-void wxPageSetupDialogData::operator=(const wxPageSetupDialogData& data)
+wxPageSetupDialogData& wxPageSetupDialogData::operator=(const wxPageSetupDialogData& data)
{
m_paperSize = data.m_paperSize;
m_minMarginTopLeft = data.m_minMarginTopLeft;
m_enableHelp = data.m_enableHelp;
m_printData = data.m_printData;
+
+ return *this;
}
-void wxPageSetupDialogData::operator=(const wxPrintData& data)
+wxPageSetupDialogData& wxPageSetupDialogData::operator=(const wxPrintData& data)
{
m_printData = data;
+
+ return *this;
}
#if defined(__WIN95__)