+wxPrintDialogData::~wxPrintDialogData()
+{
+}
+
+void wxPrintDialogData::operator=(const wxPrintDialogData& data)
+{
+ m_printFromPage = data.m_printFromPage;
+ m_printToPage = data.m_printToPage;
+ m_printMinPage = data.m_printMinPage;
+ m_printMaxPage = data.m_printMaxPage;
+ m_printNoCopies = data.m_printNoCopies;
+ m_printAllPages = data.m_printAllPages;
+ m_printCollate = data.m_printCollate;
+ m_printToFile = data.m_printToFile;
+ m_printSelection = data.m_printSelection;
+ m_printEnableSelection = data.m_printEnableSelection;
+ m_printEnablePageNumbers = data.m_printEnablePageNumbers;
+ m_printEnableHelp = data.m_printEnableHelp;
+ m_printEnablePrintToFile = data.m_printEnablePrintToFile;
+ m_printData = data.m_printData;
+}
+
+void wxPrintDialogData::operator=(const wxPrintData& data)
+{
+ m_printData = data;
+}
+
+// ----------------------------------------------------------------------------
+// wxPageSetupDialogData
+// ----------------------------------------------------------------------------
+
+wxPageSetupDialogData::wxPageSetupDialogData()
+{
+ m_paperSize = wxSize(0,0);
+
+ CalculatePaperSizeFromId();
+
+ m_minMarginTopLeft =
+ m_minMarginBottomRight =
+ m_marginTopLeft =
+ m_marginBottomRight = wxPoint(0,0);
+
+ // Flags
+ m_defaultMinMargins = false;
+ m_enableMargins = true;
+ m_enableOrientation = true;
+ m_enablePaper = true;
+ m_enablePrinter = true;
+ m_enableHelp = false;
+ m_getDefaultInfo = false;
+}
+
+wxPageSetupDialogData::wxPageSetupDialogData(const wxPageSetupDialogData& dialogData)
+ : wxObject()
+{
+ (*this) = dialogData;
+}
+
+wxPageSetupDialogData::wxPageSetupDialogData(const wxPrintData& printData)
+{
+ m_paperSize = wxSize(0,0);
+ m_minMarginTopLeft =
+ m_minMarginBottomRight =
+ m_marginTopLeft =
+ m_marginBottomRight = wxPoint(0,0);
+
+ // Flags
+ m_defaultMinMargins = false;
+ m_enableMargins = true;
+ m_enableOrientation = true;
+ m_enablePaper = true;
+ m_enablePrinter = true;
+ m_enableHelp = false;
+ m_getDefaultInfo = false;
+
+ m_printData = printData;
+
+ // The wxPrintData paper size overrides these values, unless the size cannot
+ // be found.
+ CalculatePaperSizeFromId();
+}
+
+wxPageSetupDialogData::~wxPageSetupDialogData()
+{
+}
+
+wxPageSetupDialogData& wxPageSetupDialogData::operator=(const wxPageSetupDialogData& data)
+{
+ m_paperSize = data.m_paperSize;
+ m_minMarginTopLeft = data.m_minMarginTopLeft;
+ m_minMarginBottomRight = data.m_minMarginBottomRight;
+ m_marginTopLeft = data.m_marginTopLeft;
+ m_marginBottomRight = data.m_marginBottomRight;
+ m_defaultMinMargins = data.m_defaultMinMargins;
+ m_enableMargins = data.m_enableMargins;
+ m_enableOrientation = data.m_enableOrientation;
+ m_enablePaper = data.m_enablePaper;
+ m_enablePrinter = data.m_enablePrinter;
+ m_getDefaultInfo = data.m_getDefaultInfo;
+ m_enableHelp = data.m_enableHelp;
+
+ m_printData = data.m_printData;
+
+ return *this;
+}
+
+wxPageSetupDialogData& wxPageSetupDialogData::operator=(const wxPrintData& data)
+{
+ m_printData = data;
+ CalculatePaperSizeFromId();
+
+ return *this;
+}
+
+// If a corresponding paper type is found in the paper database, will set the m_printData
+// paper size id member as well.
+void wxPageSetupDialogData::SetPaperSize(const wxSize& sz)
+{
+ m_paperSize = sz;
+
+ CalculateIdFromPaperSize();