Logo Search packages:      
Sourcecode: facturalux version File versions  Download package

void MReportEngine::copy ( const MReportEngine mReportEngine  )  [protected]

Copies member data from one object to another. Used by the copy constructor and assignment operator

Copies member data from one object to another. Used by the copy constructor and assignment operator

Definition at line 909 of file mreportengine.cpp.

References bottomMargin, cancelRender, currDate, currHeight, currPage, currY, details, grandTotal, leftMargin, pageHeight, pageOrientation, pageSize, pageWidth, pFooter, pHeader, rd, rFooter, rHeader, rightMargin, rt, and topMargin.

Referenced by MReportEngine(), and operator=().

{
  // Copy document data
  rd = mReportEngine->rd;
  rt = mReportEngine->rt;

  // Copy page metrics
  pageSize = mReportEngine->pageSize;
  pageOrientation = mReportEngine->pageOrientation;
  topMargin = mReportEngine->topMargin;
  bottomMargin = mReportEngine->bottomMargin;
  leftMargin = mReportEngine->leftMargin;
  rightMargin = mReportEngine->rightMargin;
  pageWidth = mReportEngine->pageWidth;
  pageHeight = mReportEngine->pageHeight;

  // Copy the report header
  rHeader = mReportEngine->rHeader;
  // Copy the page header
  pHeader = mReportEngine->pHeader;
  // Copy the detail sections
  MReportDetail *detail;

  QPtrList < MReportDetail > temp = mReportEngine->details;
  temp.setAutoDelete (false);
  for (detail = temp.first (); detail; detail = temp.next ())
      {
        MReportDetail *new_detail = new MReportDetail;

        *new_detail = *detail;
        details.append (new_detail);
      }
  // Copy the page footer
  pFooter = mReportEngine->pFooter;
  // Copy the report footer
  rFooter = mReportEngine->rFooter;

  // Copy the rendering state
  currY = mReportEngine->currY;
  currHeight = mReportEngine->currHeight;
  currPage = mReportEngine->currPage;
  currDate = mReportEngine->currDate;
  cancelRender = mReportEngine->cancelRender;

  // Copy grand totals list
  grandTotal = mReportEngine->grandTotal;
}


Generated by  Doxygen 1.6.0   Back to index